Closed yatish27 closed 7 years ago
Updated original comment with slightly better formatting
@yatish27 Either @brendon or I will look into this shortly.
@swanandp @brendon Any updates on this one ?
Hi @yatish27, this original change came in through another contributor's PR.
Thanks for your patience on this. Let me know if the new PR works for you.
@yatish27, this should solve your problem. Let me know if not.
This line is causing to load/locking the entire table. It causes the following query:
This is a huge performance issue, if the table is large. We should either remove the temporary position setting or use scope which is attached to acts_as_list for that class.
Maybe we can also add
acts_as_list_class.where(scope_condition)
before callingmaximum
.