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

n+1 queries #23

Open
preliot opened this issue Jul 14, 2020 · 1 comment
Open

n+1 queries #23

preliot opened this issue Jul 14, 2020 · 1 comment

Comments

@preliot
Copy link

preliot commented Jul 14, 2020

This package seems to generate several n+1 queries. Could you fix those or how could i fix those?

I am using beyondcode/laravel-query-detector to detect those queries and i get the following messages:

Found N+1 queries in a random request:

Model: App\\Models\\User => Relation: Silvanite\\Brandenburg\\Role - You should add "with(\'Silvanite\\Brandenburg\\Role\')" to eager-load this relation.

Model: Silvanite\\Brandenburg\\Role => Relation: Silvanite\\Brandenburg\\Permission - You should add "with(\'Silvanite\\Brandenburg\\Permission\')" to eager-load this relation.

Model: App\\Models\\User => Relation: Silvanite\\Brandenburg\\Role - You should add "with(\'Silvanite\\Brandenburg\\Role\')" to eager-load this relation.'
@preliot
Copy link
Author

preliot commented Aug 26, 2020

This is still an issue, unfortunatly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant