-
-
Notifications
You must be signed in to change notification settings - Fork 892
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an identity_token to the identity key
For the purposes of assisting with sharded setups, add a new member to the identity key that can be customized. this allows sharding across databases where the primary key space is shared. Change-Id: Iae3909f5d4c501b62c10d0371fbceb01abda51db Fixes: #4137
- Loading branch information
Showing
15 changed files
with
388 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.. change:: | ||
:tags: orm, feature | ||
:tickets: 4137 | ||
|
||
Added a new data member to the identity key tuple | ||
used by the ORM's identity map, known as the | ||
"identity_token". This token defaults to None but | ||
may be used by database sharding schemes to differentiate | ||
objects in memory with the same primary key that come | ||
from different databases. The horizontal sharding | ||
extension integrates this token applying the shard | ||
identifier to it, thus allowing primary keys to be | ||
duplicated across horizontally sharded backends. | ||
|
||
.. seealso:: | ||
|
||
:ref:`change_4137` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.