-
Notifications
You must be signed in to change notification settings - Fork 5
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
Optimise multiple queries in viewall students #52
Comments
@aniarya82
This will solve the above problem in just 2 queries, as compared to the 2n queries you were using before. ( |
yeah i figured this as the only way out. Anyways working on it.. All four issues expected to close by tomorrow. On Fri, Jun 12, 2015 at 11:47 PM, Siddharth Kannan <[email protected]
Regards, Hiten Chowdhary Undergraduate Student Department of Mathematics IIT Kharagpur Ph: +919800111032 |
@aniarya82 |
Optimize queries further. - Using JOIN reduce everything to just one query. - Work towards https://github.com/icyflame/erp-rails/milestones/Optimize%20the%20app%20to%20improve%20speed - Currently only #52 is remainin g under this milestone.
The last PR #63 did not have any effect on the query scenario of the application. You need to spend some more time to close this out. (I have merged it because it improved the front end quite a bit) |
https://github.com/icyflame/erp-rails/blob/master/app/views/viewall/students.html.erb#L28
@aniarya82
In this module, you are sending a query for each alumni ID. This is a very very network intensive operation. You should not calculate the count this way. You should calculate the count using the
count
feature in ActiveRecord. Fix this on an urgent basis.The text was updated successfully, but these errors were encountered: