File tree Expand file tree Collapse file tree 4 files changed +9
-15
lines changed Expand file tree Collapse file tree 4 files changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
18
18
19
19
### Changed
20
20
* Optimize select with known bucket_id (#234 ).
21
+ * Deprecate manual sharding schema reload (#212 ).
21
22
22
23
### Fixed
23
24
* Fix processing storage error for tuple-merger implementation of
Original file line number Diff line number Diff line change @@ -117,26 +117,11 @@ Table below describe what operations supports custom sharding key:
117
117
118
118
Current limitations for using custom sharding key:
119
119
120
- - It's not possible to update sharding keys automatically when schema is
121
- updated on storages, see
122
- [ #212 ] ( https://github.com/tarantool/crud/issues/212 ) . However it is possible
123
- to do it manually with ` require('crud.common.sharding_key').update_cache() `
124
- (this function updates both caches: sharding key cache and sharding function
125
- cache, but returned value is sharding key from cache).
126
120
- No support of JSON path for sharding key, see
127
121
[ #219 ] ( https://github.com/tarantool/crud/issues/219 ) .
128
122
- ` primary_index_fieldno_map ` is not cached, see
129
123
[ #243 ] ( https://github.com/tarantool/crud/issues/243 ) .
130
124
131
- Current limitations for using custom sharding functions:
132
-
133
- - It's not possible to update sharding functions automatically when schema is
134
- updated on storages, see
135
- [ #212 ] ( https://github.com/tarantool/crud/issues/212 ) . However it is possible
136
- to do it manually with ` require('crud.common.sharding_func').update_cache() `
137
- (this function updates both caches: sharding key cache and sharding function
138
- cache, but returned value is sharding function from cache).
139
-
140
125
### Insert
141
126
142
127
``` lua
Original file line number Diff line number Diff line change
1
+ local log = require (' log' )
2
+
1
3
local sharding_metadata_module = require (' crud.common.sharding.sharding_metadata' )
2
4
3
5
local sharding_func_cache = {}
@@ -9,6 +11,8 @@ local sharding_func_cache = {}
9
11
-- This method provides similar behavior for
10
12
-- sharding function cache.
11
13
function sharding_func_cache .update_cache (space_name )
14
+ log .warn (" require('crud.common.sharding_func').update_cache()" ..
15
+ " is deprecated and will be removed in future releases" )
12
16
return sharding_metadata_module .update_sharding_func_cache (space_name )
13
17
end
14
18
Original file line number Diff line number Diff line change
1
+ local log = require (' log' )
2
+
1
3
local sharding_metadata_module = require (' crud.common.sharding.sharding_metadata' )
2
4
3
5
local sharding_key_cache = {}
@@ -7,6 +9,8 @@ local sharding_key_cache = {}
7
9
-- for updating sharding key cache in their
8
10
-- projects like `require('crud.common.sharding_key').update_cache()`
9
11
function sharding_key_cache .update_cache (space_name )
12
+ log .warn (" require('crud.common.sharding_key').update_cache()" ..
13
+ " is deprecated and will be removed in future releases" )
10
14
return sharding_metadata_module .update_sharding_key_cache (space_name )
11
15
end
12
16
You can’t perform that action at this time.
0 commit comments