Conversation
Signed-off-by: Jeremy Cole <jeremy.cole@shopify.com>
|
Sorry I’ve been slow to provide feedback. I wanted to make sure I understood how the various vindexes behaved. I've tried modeling carts using
"carts_multicol": {
"type": "multicol",
"params": {
"column_count": "2",
"column_bytes": "2,6",
"column_vindex": "static_map,xxhash",
"static_map_json_path": "/foo/static_region_map.json",
}
}in static_region_map.json: {
"key_type": "string",
"value_type": "uint16",
"map": {
"foo-east1": "5",
"bar-west2": "99"
}
}I'm not convinced any of those is definitely a better option, but figured they're worth a thought. Also, as part of my exploration I put together an example modeling carts using |
0c6bafa to
8e9611b
Compare
Signed-off-by: Jeremy Cole <jeremy.cole@shopify.com>
8e9611b to
6faac58
Compare
|
This PR is being marked as stale because it has been open for 30 days with no activity. To rectify, you may do any of the following:
If no action is taken within 7 days, this PR will be closed. |
|
This PR was closed because it has been stale for 7 days with no activity. |
Signed-off-by: Jeremy Cole jeremy.cole@shopify.com
Description
Add a
placementVindex type for use in regional sharding.A Vindex which uses a mapping lookup table
placement_mapto set the firstplacement_prefix_bytesof the Keyspace ID and another Vindex typeplacement_sub_vindex_type(which must support Hashing) as a sub-Vindex to set the rest. This is suitable for regional sharding (likeregion_jsonorregion_experimental) but does not require a mapping file, and can support non-integer types for the sharding column.All parameters are prefixed with
placement_to avoid conflict, because theparamsmap is passed to the sub-Vindex as well.Related Issue(s)
Checklist
Deployment Notes