﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
34282	Optimize update_or_create when defaults is empty / False-y	Tim Schilling	Tim Schilling	"The defaults parameter to `update_or_create` is used to change the values on a model instance after it's been fetched from the database. However, it's not required to pass anything in through `defaults`. In these cases where `defaults` is False-y, Django is performing an update on the model instance that shouldn't be changing any values. Instead the call to [object.save()](https://github.com/django/django/blob/stable/4.2.x/django/db/models/query.py#L971-L972) should be skipped.

The concern would be needing to check for fields that use something like `auto_now`.

"	Cleanup/optimization	closed	Database layer (models, ORM)	dev	Normal	wontfix			Unreviewed	0	0	0	0	0	0
