-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Speed up public stream and remove obsolete indexes #7944
Conversation
Whaouh – I can't test this, but this could be BIG. Sharing some love for this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, also improves MySQL performance by a factor of 10 on an old export of my prod DB on my dev-pod. Thanks for the analysis 🍪 Migration took around 15s on my dev-pod with MySQL, so should be OK for a minor release.
Merged as a21cde4 Thanks again @CSammy 🍪 @goobertron you can now test the speed of it on the HQ-pod :) |
\o/ Now, to the user stream! 😛 |
I also haven't noticed a dramatic improvement on the HQ pod. From manual timing of how long the 'spinning wheel' is present, it's 7 seconds on the |
Ahh, I thought this was about the |
Looking into the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/db/migrate/20181227235201_clean_up_posts_indexes.rb
Speeds up the public stream by a factor of 1000 on a production PostgreSQL database, it's lightning fast now. MySQL shows improvement as well.