Save models with update_fields for better performance in Django
Nov. 25, 2022
|
Articles
TIL that you can specify
update_fields
while saving a Django model to generate a leaner underlying SQL query. This yields better performance while updating multiple objects in a tight loop.
Filed in:
Articles
Sponsor Number One
Subscribe to Django News
Weekly Django news, articles, projects, and more. Curated by Jeff Triplett & William Vincent.
No spam, ever. We'll never share your email address and you can opt out at any time.