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

Store pretranslations for each locale separately #3075

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

mathjazz
Copy link
Collaborator

@mathjazz mathjazz commented Jan 15, 2024

Fix #3073.

We currently retrieve pretranslations for each locale separately, and store them all at once with a single DB query (for all locales). That makes our DB performance a little bit better, but risks the need for additional retrieval of already retrieved pretranslations in case of an error during processing of one of the locales.

Since retrieving pretranslations is significantly slower than writing them to the DB, we should write to DB for each locale separately, right after pretranslations are retrieved.

@mathjazz mathjazz requested a review from eemeli January 15, 2024 21:07
@mathjazz mathjazz merged commit d9f47f3 into mozilla:main Jan 18, 2024
4 checks passed
@mathjazz mathjazz deleted the pt-store-translations-per-locale branch January 18, 2024 12:59
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.

Store pretranslations for each locale separately
2 participants