Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x] Refactoring of Barry ORM for support data caching #213

Closed
papac opened this issue Apr 25, 2023 · 0 comments
Closed

[5.x] Refactoring of Barry ORM for support data caching #213

papac opened this issue Apr 25, 2023 · 0 comments
Assignees

Comments

@papac
Copy link
Member

papac commented Apr 25, 2023

The ORM should cache the result on Relationship action for more performance

    /**
     * Get the results of the relationship.
     *
     * @return Model
     */
    public function getResults(): ?Model
    {
        // TODO: Cache the result
        return $this->query->first();
    }

There are methods getResults in each relationship.

@papac papac added this to v5 Apr 25, 2023
@papac papac converted this from a draft issue Apr 25, 2023
@papac papac self-assigned this Apr 25, 2023
@papac papac closed this as completed May 23, 2023
@github-project-automation github-project-automation bot moved this from 🔖 Ready to ✅ Done in v5 May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant