database - Django "bulk_save" and "bulk_update" -


Update: Added an example in a bowl Please provide an example and I will accept the best answer

Update 2: A clear example is now included

I was wondering if anyone essentially "bulk_save" the path - if that first If it exists, then unnecessary or just update.

For example:

  class person (models.model): first_name = Models.CharField (max_length = 30) last_name = models.CharField (max_length = 30) height = Models.DecimalField (empty = true, zero = true) weight = model. I have a list of dictionaries with key-value pairs for these areas, I want to filter by name, and then height and / Or we will update the weight because these are my players still growing and if there is no easy way of "bulk_save" conditioning, a bulk update will also be useful.  

I just listed below the update_many function There was a difference, I think speed has already improved.

UPDATE - Apparently DSE 2 is also an option.

Tomorrow will update with the speed test.

Comments