From 07ef2ff1c31735539ae1511d6aca1f35834aae6b Mon Sep 17 00:00:00 2001 From: Denis Smirnov <sd@picodata.io> Date: Wed, 17 Aug 2022 22:18:03 +0700 Subject: [PATCH] fix: stress test --- stress-test/data_generator.lua | 4 ++-- stress-test/k6.js | 2 +- stress-test/target_data/generator.lua | 4 ++-- stress-test/target_data/scenario.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/stress-test/data_generator.lua b/stress-test/data_generator.lua index bf2b37f381..4b7d4b528c 100755 --- a/stress-test/data_generator.lua +++ b/stress-test/data_generator.lua @@ -158,12 +158,12 @@ storage2:eval("return box.space.vehicle_actual:truncate();") storage2:eval("return box.space.vehicle_history:truncate();") for i = 1, record_count, 1 do - api:call("query", { + api:call("sbroad.execute", { [[insert into "vehicle_actual" ("id", "gov_number", "sys_op") values (?, ?, ?)]], {i, "a777a750", 0} }) - api:call("query", { + api:call("sbroad.execute", { [[insert into "vehicle_history" ("id", "gov_number", "sys_op") values (?, ?, ?)]], {i, "a777a750", 0} }) diff --git a/stress-test/k6.js b/stress-test/k6.js index a8058b2e95..7363389fc3 100644 --- a/stress-test/k6.js +++ b/stress-test/k6.js @@ -23,5 +23,5 @@ let pattern = `SELECT * WHERE "id" = ?` export default () => { - tarantool.call(client, "query", [pattern, [randomItem(ids)]]); + tarantool.call(client, "sbroad.execute", [pattern, [randomItem(ids)]]); } \ No newline at end of file diff --git a/stress-test/target_data/generator.lua b/stress-test/target_data/generator.lua index 458f62d9ce..cc892d43fd 100755 --- a/stress-test/target_data/generator.lua +++ b/stress-test/target_data/generator.lua @@ -1376,7 +1376,7 @@ insert into "%s" ( for i = 1, record_count, 1 do local pattern_vehicle_actual = string.format(pattern, "vehicle_actual") - _, err = api:call("query", { + _, err = api:call("sbroad.execute", { pattern_vehicle_actual, { i, i, "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", @@ -1396,7 +1396,7 @@ for i = 1, record_count, 1 do end local pattern_vehicle_history = string.format(pattern, "vehicle_history") - _, err = api:call("query", { + _, err = api:call("sbroad.execute", { pattern_vehicle_history, { i, i, "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", diff --git a/stress-test/target_data/scenario.js b/stress-test/target_data/scenario.js index a7acbb4d32..4f0ea226d3 100644 --- a/stress-test/target_data/scenario.js +++ b/stress-test/target_data/scenario.js @@ -37,5 +37,5 @@ const pattern = `SELECT * WHERE "reestrid" = ?` export default () => { - tarantool.call(get_client(), "query", [pattern, [randomItem(ids)]]); + tarantool.call(get_client(), "sbroad.execute", [pattern, [randomItem(ids)]]); } \ No newline at end of file -- GitLab