summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2018-04-20 11:44:09 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2018-04-20 14:36:00 -0400
commit43f278356d94b5342a1020a9a97feea0bb7cd88f (patch)
treece38c527faf41b0e31b3a5e616cb75e9574e5ef5 /doc
parent65ba2606be7f0eef2736270a099940ab2c218c4d (diff)
downloadsqlalchemy-43f278356d94b5342a1020a9a97feea0bb7cd88f.tar.gz
Refactor "get" to allow for pluggable identity token schemes
Fixed regression in 1.2 within sharded query feature where the new "identity_token" element was not being correctly considered within the scope of a lazy load operation, when searching the identity map for a related many-to-one element. The new behavior will allow for making use of the "id_chooser" in order to determine the best identity key to retrieve from the identity map. In order to achieve this, some refactoring of 1.2's "identity_token" approach has made some slight changes to the implementation of ``ShardedQuery`` which should be noted for other derivations of this class. Change-Id: I04fa60535deec2d0cdec89f602935dfebeb9eb9d Fixes: #4228
Diffstat (limited to 'doc')
-rw-r--r--doc/build/changelog/unreleased_12/4228.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/build/changelog/unreleased_12/4228.rst b/doc/build/changelog/unreleased_12/4228.rst
new file mode 100644
index 000000000..c0e503e3b
--- /dev/null
+++ b/doc/build/changelog/unreleased_12/4228.rst
@@ -0,0 +1,13 @@
+.. change::
+ :tags: bug, orm
+ :tickets: 4228
+
+ Fixed regression in 1.2 within sharded query feature where the
+ new "identity_token" element was not being correctly considered within
+ the scope of a lazy load operation, when searching the identity map
+ for a related many-to-one element. The new behavior will allow for
+ making use of the "id_chooser" in order to determine the best identity
+ key to retrieve from the identity map. In order to achieve this, some
+ refactoring of 1.2's "identity_token" approach has made some slight changes
+ to the implementation of ``ShardedQuery`` which should be noted for other
+ derivations of this class.