-
Notifications
You must be signed in to change notification settings - Fork 0
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
Optimize DB queries where many-to-many relationships are used #222
Comments
I need access to the prod to do proper debugging. Please share it. |
@KseniyaKuprina how can we help with access to prod? What kind of access do you need? |
There are a lot of lines like this in the controllers: This is starting to become a problem: If our first query returns a lot of (in this case, but many controllers are affected) companies, then a lot of new queries result. This has two issues:
The fix would be to stuff all the entity IDs into an array and only run one query on the links to return all links with any of those (e.g.) company IDs. Then with the result of that query the entity can be populated with the information from the relative links relating to that entity. @KseniyaKuprina At the moment this issue is assigned to you but let me know if you need assistance |
I am wondering where the performance issue is located. Or maybe I was just unlucky...
The text was updated successfully, but these errors were encountered: