Closed adamchainz closed 1 year ago
FlagState.objects.create calls FlagState.save, but this isn't necessary as the line below calls it after setting the right value. Avoiding this extra save() will speed up creating flags through enable_flag / disable_flag.
FlagState.objects.create
FlagState.save
save()
enable_flag
disable_flag
Thank you, @adamchainz!
FlagState.objects.create
callsFlagState.save
, but this isn't necessary as the line below calls it after setting the right value. Avoiding this extrasave()
will speed up creating flags throughenable_flag
/disable_flag
.