- attached horizontal_shard.py.patch
Include shard_id in results from query
Issue #2031
resolved
Hi. My situation is the following: I want to get, in a query, from which shard each row came from. This is because I don't have a rule for saving rows, since I only query on the dbs. And I can't tell from where each row came from using only the information in the database. So I made this small patch that fixes my issue.
Comments (4)
-
Account Deleted -
repo owner de725a0a4daea48fa4d6ffff892620e93c358b5e places "shard_id" in the QueryContext where it's accessible by the 0.7 version of the load() event. At that point the identifier can be associated with the objects in whatever way needed. Example updated in 3be8746527f17d18a56b773110bbb640c43e3d11
-
Account Deleted Thank you for that, I've never seen a bug fix happen so fast.
-
repo owner - removed milestone
Removing milestone: 0.7.0 (automated comment)
- Log in to comment
Suggestion of patch