mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed #32388 -- Clarified QuerySet.bulk_update() caveat about duplicates for multiple batches.
This commit is contained in:
		
				
					committed by
					
						 Mariusz Felisiak
						Mariusz Felisiak
					
				
			
			
				
	
			
			
			
						parent
						
							54102d20b2
						
					
				
				
					commit
					241da3f06e
				
			| @@ -2241,7 +2241,8 @@ them, but it has a few caveats: | ||||
|   ``batch_size``. | ||||
| * Updating fields defined on multi-table inheritance ancestors will incur an | ||||
|   extra query per ancestor. | ||||
| * If ``objs`` contains duplicates, only the first one is updated. | ||||
| * When an individual batch contains duplicates, only the first instance in that | ||||
|   batch will result in an update. | ||||
|  | ||||
| The ``batch_size`` parameter controls how many objects are saved in a single | ||||
| query. The default is to update all objects in one batch, except for SQLite | ||||
|   | ||||
		Reference in New Issue
	
	Block a user