Skip to content
Snippets Groups Projects
Commit 5bcf8264 authored by Дмитрий Кольцов's avatar Дмитрий Кольцов
Browse files

perf(cartridge/execute_sql): use 'callbre' instead of 'callro' to execute SQL

Basically callbre means that we call replicaset with two additional parameters:
    1) prefer_replica = true. We can use read from replicas because
        transactional consistency is out of Sbroad scope. Basically we
        do not care about data consistency at all.
    2) balance = true. This parameters enables internal vshard load
        balancing between replicaset nodes in round-robin fashion,
        with a preference for replicas if prefer_replica=true is also set
parent 39fd6e37
No related branches found
No related tags found
1 merge request!90perf(cartridge/execute_sql): use 'callbre' instead of 'callro' to execute SQL
Pipeline #8414 passed
......@@ -271,7 +271,7 @@ impl Runtime {
local futures = {}
for _, replica in pairs(replicas) do
local future, err = replica:callro("box.execute", { query }, {is_async = true})
local future, err = replica:callbre("box.execute", { query }, {is_async = true})
if err ~= nil then
error(err)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment