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

Speed up startup even more #213

Merged
merged 3 commits into from
Jul 20, 2023
Merged

Speed up startup even more #213

merged 3 commits into from
Jul 20, 2023

Conversation

kegsay
Copy link
Member

@kegsay kegsay commented Jul 19, 2023

I realised that we are basically pulling out all joined/invited members for calculating the counts, so we might as well pull out a bit more information and use that to calculate heroes, which saves on the awful rank/partition query which took 2m45s! Byte-for-byte identical from what I can see, though I'll double check on m.org.

Also remove unused function.

With this change, startup takes 4m10s on m.org.
Without this change, startup takes 6m47s on m.org.

I have a script which JSON serialises the StartupSnapshot to a .json file, which I then ran through diff, which shows zero diffs on a static DB on my laptop. It obviously changes due to live traffic when run against m.org.

@kegsay kegsay merged commit d19bbbd into main Jul 20, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants