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

feat: faster init by avoiding repeated waffle flag listing #219

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

regisb
Copy link
Contributor

@regisb regisb commented Jul 26, 2024

Calling ./manage.py lms waffle_flag --list so many times causes the MFE initialisation step to take a very long time, because ./manage.py lms is very slow. We avoid this by listing existing waffle flags in a temporary file.

On an already initialized system, tutor local do init --limit=mfe
drops from 3min 27s to 25s.

Copy link
Contributor

@DawoudSheraz DawoudSheraz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you have some before and after stats, please add them to PR.
Looks good.

Calling `./manage.py lms waffle_flag --list` so many times causes the
MFE initialisation step to take a very long time, because `./manage.py
lms` is very slow. We avoid this by listing existing waffle flags in a
temporary file.

On an already initialized system, `tutor local do init --limit=mfe`
drops from 3min 27s to 25s.
@regisb
Copy link
Contributor Author

regisb commented Aug 8, 2024

I have added some stats to the git message.

@regisb regisb merged commit 62b2b3d into master Aug 8, 2024
2 checks passed
@regisb regisb deleted the regisb/faster-init branch August 8, 2024 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants