Changes between Initial Version and Version 1 of Ticket #30053, comment 18


Ignore:
Timestamp:
Dec 28, 2018, 1:00:05 PM (6 years ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30053, comment 18

    initial v1  
    11> Moreover `get_or_create` itself does 2 queries.
    22
    3 `get_or_create` only does two query by 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.
    44
    55In other words, both the solution in comment:13 and the one proposed here through `update_or_create(update_condition)` perform the same optimistic queries.
Back to Top