summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorCarl Meyer <carl@oddbird.net>2012-09-19 10:06:53 -0600
committerCarl Meyer <carl@oddbird.net>2012-09-19 10:06:53 -0600
commit901af865505310a70dd02ea5b3becbf45819b652 (patch)
tree81ac520a776fb9aaa12f831a23c202ce5b19baf6 /docs
parent44767f2caf028d89e1a283d04bb552d0e18bb936 (diff)
Fixed #16865 -- Made get_or_create use read database for initial get query.
Thanks Rick van Hattem for the report and trbs for the patch.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/1.5.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/releases/1.5.txt b/docs/releases/1.5.txt
index 26b6ad1bfa..84c37af9ee 100644
--- a/docs/releases/1.5.txt
+++ b/docs/releases/1.5.txt
@@ -338,6 +338,15 @@ Miscellaneous
needs. The new default value is `0666` (octal) and the current umask value
is first masked out.
+* In a multi-database situation, ``get_or_create()`` will now use a read
+ database for the initial ``get`` attempt (previously, it used only the write
+ database for all queries). This change reduces load on the write (master)
+ database, in exchange for slightly more frequent false-negatives on the
+ initial ``get`` due to replication lag. In those cases the subsequent insert
+ will still go to the master and fail, after which the existing object will be
+ fetched from the master.
+
+
Features deprecated in 1.5
==========================