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

fix(baking): bake graphers in parallel, using multiple db transactions #3539

Merged
merged 1 commit into from
May 1, 2024

Conversation

marcelgerber
Copy link
Member

@marcelgerber marcelgerber commented Apr 27, 2024

Addresses #3462.

This doubles the baking speed of the bakeAllChangedGrapherPagesVariablesPngSvgAndDeleteRemovedGraphers step.

There are probably also other baking steps that we want to use a similar pattern for - especially those using a read-only transaction (screw you, images!), and those that are currently using pMap or Promise.all.

@Marigold
Copy link
Contributor

@marcelgerber amazing, please merge this asap 🙏 It's starting to be a serious drag on staging servers. It's not just performance, but sometimes it's just so slow that it runs into 30 min timeout.

@marcelgerber marcelgerber force-pushed the baking-graphers-parallel branch from 8843ead to 3f16e23 Compare May 1, 2024 09:19
@marcelgerber marcelgerber marked this pull request as ready for review May 1, 2024 09:19
@marcelgerber marcelgerber merged commit 6eb7b01 into master May 1, 2024
15 of 19 checks passed
@marcelgerber marcelgerber deleted the baking-graphers-parallel branch May 1, 2024 09:20
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.

3 participants