-
Notifications
You must be signed in to change notification settings - Fork 27
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
Too many db queries with collectionOperations #10
Comments
@CHenzel do you maybe have some solution for this? |
@CHenzel ping for this one |
@antonioperic It's more easier to make that manually Some solutions with api-platform Create an HydrationExtension
Other tips : when doctrine need to automatically JOIN missing values (translations), you can make two queries to pre-hydrate what doctrine needs on the second query. Example nested Tree with translations
We have just two queries in symfony profiler and if we use redis cache it's zero. |
First of all thank you for this good bundle.
It works very well.
But looking more closely at the number of doctrine queries via the symfony profiler.
I notice that there are a lot of duplicate requests when we get the translations.
Example: if the collection contains 6 elements, we have 6 times the same request.
I had the same problem with Gedmo\Translatable and I used the TranslationWalker. Would it be possible to use something equivalent?
Thanks
The text was updated successfully, but these errors were encountered: