Skip to content

WIP: Do not create transaction on safe_find_or_create_by

Kamil Trzciński requested to merge improve-safe_find_or_create_by into master

What does this MR do?

It seems that safe_find_or_create_by always runs within additional transaction, where it is not really needed.

If we find an object we don't need transaction. Let's improve that and create it only when we actually want to create an object.

Does this MR meet the acceptance criteria?

Conformity

Edited by Kamil Trzciński

Merge request reports