-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync versions: create new versions in bulk (#7382)
Currently we create version per version, this is calling the db n times (n the number of new versions). Bulk creation will produce only one call. To avoid having in memory all versions, we create them in batch as needed. https://docs.djangoproject.com/en/3.0/ref/models/querysets/#bulk-create
- Loading branch information
Showing
1 changed file
with
35 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters