diff --git a/stress-test/data_generator.lua b/stress-test/data_generator.lua index b2a256923a6235e1a37c3b0da7ceb5e231eb3d30..d1b33574fd499057a93206b8fe4f8b3d89ae4cb8 100755 --- a/stress-test/data_generator.lua +++ b/stress-test/data_generator.lua @@ -22,7 +22,7 @@ api:eval("function set_schema(s) local cartridge = require('cartridge'); cartrid local config = { spaces = { - VEHICLE_ACTUAL = { + vehicle_actual = { format = { { name = "id", @@ -81,7 +81,7 @@ local config = { is_local = false, sharding_key = { "id" }, }, - VEHICLE_HISTORY = { + vehicle_history = { format = { { name = "id", @@ -159,7 +159,7 @@ storage2:eval("return box.space.VEHICLE_HISTORY:truncate();") for i = 1, record_count, 1 do api:call("insert_record", { - "VEHICLE_ACTUAL", + "vehicle_actual", { id = i, gov_number = "a777a750", @@ -168,7 +168,7 @@ for i = 1, record_count, 1 do }) api:call("insert_record", { - "VEHICLE_HISTORY", + "vehicle_history", { id = i, gov_number = "a777a750", @@ -184,16 +184,16 @@ fiber.sleep(3) print( string.format( "Storage 1 has %d actual and %d history records", - storage1:eval("return box.space.VEHICLE_ACTUAL:count();"), - storage1:eval("return box.space.VEHICLE_HISTORY:count();") + storage1:eval("return box.space.vehicle_actual:count();"), + storage1:eval("return box.space.vehicle_history:count();") ) ) print( string.format( "Storage 2 has %d actual and %d history records", - storage2:eval("return box.space.VEHICLE_ACTUAL:count();"), - storage2:eval("return box.space.VEHICLE_HISTORY:count();") + storage2:eval("return box.space.vehicle_actual:count();"), + storage2:eval("return box.space.vehicle_history:count();") ) ) diff --git a/stress-test/k6.js b/stress-test/k6.js index ad691b6cab6c98dbb253bc547506848d13a8c9ff..b60142e5a6352ec342e39d057ed78490c0d287b4 100644 --- a/stress-test/k6.js +++ b/stress-test/k6.js @@ -10,11 +10,11 @@ let queries = Array.from( (_, id) => `SELECT * FROM ( SELECT "id", "gov_number" - FROM VEHICLE_ACTUAL + FROM "vehicle_actual" WHERE "sys_op" = 0 UNION ALL SELECT "id", "gov_number" - FROM VEHICLE_HISTORY + FROM "vehicle_history" WHERE "sys_op" < 1 ) as "t1" WHERE "id" = ${id}`