You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been noticing some slow queries on Merit::Action find. Finds where in the range of 100ms whereas most of the simple queries would be in the range of a few ms.
The exact query is:
SELECT"merit_actions".*FROM"merit_actions"WHERE"merit_actions"."processed"= $? ORDER BY"merit_actions"."id"ASCLIMIT $?
After adding an index to the column processed the query time dropped drastically to an average 2ms
Shouldn't this index be added by default during the install? Or should it simply be documented somewhere?
Thanks for this great gem
The text was updated successfully, but these errors were encountered:
Yes, it should! Thanks for your report. Do you want to send a PR adding the index to that migration's template? So new installations will carry it.
(I wouldn't take care of preexisting installations, as adding an index to a big table can be time consuming, and the developer should do it with care.)
I have been noticing some slow queries on Merit::Action find. Finds where in the range of 100ms whereas most of the simple queries would be in the range of a few ms.
The exact query is:
After adding an index to the column
processed
the query time dropped drastically to an average 2msShouldn't this index be added by default during the install? Or should it simply be documented somewhere?
Thanks for this great gem
The text was updated successfully, but these errors were encountered: