Skip to content

Commit 46c78c0

Browse files
committed
readme: fix update_cache() recipe
When a sharding key is updated on storages a user should call this function on routers to re-fetch the new sharding keys. I would highlight that even if we add a space that was never seen before, we should call the function on routers. Otherwise crud will assume that the new space has the sharding key equal to the primary key and will calculate `bucket_id` incorrectly. Follows up #166 Related to #212 Related to TNT-462
1 parent 76e3374 commit 46c78c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Current limitations for using custom sharding key:
100100
- It's not possible to update sharding keys automatically when schema is
101101
updated on storages, see
102102
[#212](https://github.com/tarantool/crud/issues/212). However it is possible
103-
to do it manually with `require('crud.sharding_key').update_cache()`.
103+
to do it manually with `require('crud.common.sharding_key').update_cache()`.
104104
- No support of JSON path for sharding key, see
105105
[#219](https://github.com/tarantool/crud/issues/219).
106106
- `primary_index_fieldno_map` is not cached, see

0 commit comments

Comments
 (0)