Fix some perf tests

This commit is contained in:
avogar 2022-01-31 21:07:20 +03:00
parent 321fa4a9e8
commit 6229ec530d
3 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@
<create_query>CREATE TABLE IF NOT EXISTS table_{format} (x UInt64) ENGINE = File(`{format}`)</create_query>
<create_query>CREATE TABLE IF NOT EXISTS table_{format_fast} (x UInt64) ENGINE = File(`{format}`)</create_query>
<query>INSERT INTO table_{format} SELECT number FROM numbers(10000000)</query>
<query>INSERT INTO table_{format} SELECT number FROM numbers(10000000) SETTINGS engine_file_truncate_on_insert = 1</query>
<query>INSERT INTO table_{format_fast} SELECT number FROM numbers(20000000)</query>
<drop_query>DROP TABLE IF EXISTS table_{format}</drop_query>

View File

@ -49,8 +49,8 @@
<create_query>CREATE TABLE IF NOT EXISTS table_{format_slow} ENGINE = File({format_slow}, '/dev/null') AS test.hits</create_query>
<create_query>CREATE TABLE IF NOT EXISTS table_{format_fast} ENGINE = File({format_fast}, '/dev/null') AS test.hits</create_query>
<query>INSERT INTO table_{format_slow} SELECT * FROM test.hits LIMIT 10000</query>
<query>INSERT INTO table_{format_fast} SELECT * FROM test.hits LIMIT 100000</query>
<query>INSERT INTO table_{format_slow} SELECT * FROM test.hits LIMIT 10000 SETTINGS engine_file_truncate_on_insert = 1</query>
<query>INSERT INTO table_{format_fast} SELECT * FROM test.hits LIMIT 100000 SETTINGS engine_file_truncate_on_insert = 1</query>
<drop_query>DROP TABLE IF EXISTS table_{format_slow}</drop_query>
<drop_query>DROP TABLE IF EXISTS table_{format_fast}</drop_query>

View File

@ -20,7 +20,7 @@
<create_query>CREATE TABLE IF NOT EXISTS table_{format} ENGINE = File({format}, '/dev/null') AS SELECT SearchPhrase, ClientIP6, URL, Referer, URLDomain FROM test.hits limit 0</create_query>
<query>INSERT INTO table_{format} SELECT SearchPhrase, ClientIP6, URL, Referer, URLDomain FROM test.hits LIMIT 100000</query>
<query>INSERT INTO table_{format} SELECT SearchPhrase, ClientIP6, URL, Referer, URLDomain FROM test.hits LIMIT 100000 SETTINGS engine_file_truncate_on_insert = 1</query>
<drop_query>DROP TABLE IF EXISTS table_{format}</drop_query>
</test>