Changes between Initial Version and Version 1 of Ticket #30690, comment 1
- Timestamp:
- Aug 8, 2019, 4:27:20 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30690, comment 1
initial v1 1 By it's nature o rdealing with both read and writes the `get_or_create` method '''has''' to be targeting the ''write'' database for reads.1 By it's nature of dealing with both read and writes the `get_or_create` method '''has''' to be targeting the ''write'' database for reads. 2 2 3 3 [https://github.com/django/django/blob/5b57798513066bb6d5ea54225d0bd030a089c501/django/db/models/query.py#L545-L546 There's a comment in the method definition about it] and following the `git blame` trace leads to [https://github.com/django/django/commit/4e9a74b81df1c7aaea2f90a3a4911920e134b275 this commit].