-
-
Notifications
You must be signed in to change notification settings - Fork 357
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
Deadlocking in update_positions count query #285
Comments
Hi @cmentch, Thanks for picking this up. I've committed a change to |
There was some trouble with Timecop. I think I've fixed it, so we'll see :) |
Thank you for the quick response. I have pointed this to master in my Gemfile. It looks like it is no longer performing the count query when the ordering column is not updated. Perfect! I won't be able to try this out in production yet. When do you formally publish a new version of the gem? |
Roger. I'll release a new version @cmentch :) |
I have a larger database where I am using acts_as_list on various models. I have started seeing increased deadlocking on a specific count query. The stack dump revealed it was from the method "update_positions". This is being called from an after_update trigger on the model. Even if I am not updating the ordering column, this method is still firing off which seems unnecessary. Is there a need to trigger this even if the ordering column is not updated?
The text was updated successfully, but these errors were encountered: