-
Notifications
You must be signed in to change notification settings - Fork 77
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
[DONE] Fix migrations for 3.4.0 #957
[DONE] Fix migrations for 3.4.0 #957
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
une petite remarque sur le nb_batch = 1000
pod/playlist/apps.py
Outdated
) | ||
favorites_playlists_to_create.append(playlist) | ||
playlist_id += 1 | ||
Playlist.objects.bulk_create(favorites_playlists_to_create) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Attention, il faut rajouter un batch_size sinon, on risque le timeout sur de grandes instances : , batch_size=nb_batch avec nb_batch = 1000 (voir pod/video/apps.py L.190 et L.233)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
* Improve code & change constraint of video password * Optimisation of favorites playlist creation * Fix favorites migration * Fix password encryption * Add batch_size
* Improve code & change constraint of video password * Optimisation of favorites playlist creation * Fix favorites migration * Fix password encryption * Add batch_size
Video
80 --> 250.bulk_update
pour la création des playlists favoris