Changes between Initial Version and Version 1 of Ticket #30053, comment 18
- Timestamp:
- Dec 28, 2018, 1:00:05 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30053, comment 18
initial v1 1 1 > Moreover `get_or_create` itself does 2 queries. 2 2 3 `get_or_create` only does two quer yby itself in the ''create'' case which the proposed solution through `update_or_create(update_condition)` does as well so this argument is moot.3 `get_or_create` only does two queries by itself in the ''create'' case which the proposed solution through `update_or_create(update_condition)` does as well so this argument is moot. 4 4 5 5 In other words, both the solution in comment:13 and the one proposed here through `update_or_create(update_condition)` perform the same optimistic queries.