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

Improve candidate account creation using bulk create #499

Open
bri25yu opened this issue Oct 7, 2022 · 0 comments
Open

Improve candidate account creation using bulk create #499

bri25yu opened this issue Oct 7, 2022 · 0 comments
Labels

Comments

@bri25yu
Copy link
Contributor

bri25yu commented Oct 7, 2022

For https://github.com/compserv/hknweb/blob/master/hknweb/forms.py#L243

Currently each user creation is separate in a for loop, which is a single query per user, very slow. Try https://docs.djangoproject.com/en/4.1/ref/models/querysets/#bulk-create for bulk creation of users to speed this up to avoid timeout.

@oliver-ni oliver-ni added the good first issue Good for newcomers label Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants