DV
Size: a a a
DV
M
АД
MA
memtx_min_tuple_size = 8,
slab_alloc_factor = 2,
MA
vshard.router.callвесь набор записей с посчитанными бакетами ?
vshard.router.call(100,```
'write',
'customer_add',
{{customer_id = 2, bucket_id = 100, name = 'name2', accounts = {}}},
{timeout = 5})
DK
memtx_min_tuple_size = 8,
slab_alloc_factor = 2,
VS
M
VS
MA
local to_call = {}
for row in pairs(mydata) do
local bucket = calc_my_bucket_id(row)
to_call[bucket] = to_call[bucket] or {}
table.insert(to_call[bucket], row)
end
for bucket,rows in pairs(to_call) do
vshard.router.call(bucket,'write','customer_add', {rows})
end
M
local to_call = {}
for row in pairs(mydata) do
local bucket = calc_my_bucket_id(row)
to_call[bucket] = to_call[bucket] or {}
table.insert(to_call[bucket], row)
end
for bucket,rows in pairs(to_call) do
vshard.router.call(bucket,'write','customer_add', {rows})
end
VS
VS
VS
MA
VS
MA
AP