Skip to content
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

rpush_notifications active_record performance improvements #428

Merged
merged 3 commits into from
Apr 11, 2018

Conversation

aried3r
Copy link
Member

@aried3r aried3r commented Apr 11, 2018

Rebased and updated version of #426. All credit goes to @loadhigh.

Fixes #200

1. Change the index on rpush_notifications to minimized number of locked records and pre-sort the records
2. Minimize the locking duration by moving the row dump code outside of the transaction

fixes #200
@aried3r aried3r merged commit d05fd13 into master Apr 11, 2018
@aried3r aried3r deleted the ar/rnindex branch April 11, 2018 14:19
masolin added a commit to cardinalblue/rpush that referenced this pull request Jan 28, 2019
v3.1.1

Fixed

- Database deadlock [rpush#200](rpush#200) (by [@loadhigh](https://github.com/loadhigh) in [rpush#428](rpush#428))

Enhancements

- Change the index on `rpush_notifications` to minimize number of locked records and pre-sort the records ([rpush#428](rpush#428) by [@loadhigh](https://github.com/loadhigh))
- Minimize the locking duration by moving the row dump code outside of the transaction ([rpush#428](rpush#428) by [@loadhigh](https://github.com/loadhigh))
Adrian1707 pushed a commit to Adrian1707/rpush that referenced this pull request Apr 24, 2024
rpush_notifications active_record performance improvements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants