Skip to content
Snippets Groups Projects
Commit ef30ca9b authored by Ilya Verbin's avatar Ilya Verbin Committed by Vladimir Davydov
Browse files

perf: speed up column scan test initialization

It was intended to do 1000 inserts per transaction, but by mistake
box.commit() was called after each insertion.

NO_DOC=perf test
NO_TEST=perf test
NO_CHANGELOG=perf test
parent 1c4605bb
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,7 @@ box.once('init', function()
end
end
s:insert(tuple)
if i % 1000 then
if i % 1000 == 0 then
box.commit()
local pct = math.floor(100 * i / params.row_count)
if pct ~= pct_complete then
......
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