This commit is contained in:
alesapin 2021-10-13 18:12:04 +03:00
parent 1801ea4955
commit 2473bc5aff

View File

@ -1,7 +1,7 @@
SELECT sum(cityHash64(*)) FROM test.hits SETTINGS max_threads=40
SELECT sum(cityHash64(*)) FROM test.hits SETTINGS max_threads=40;
SYSTEM FLUSH LOGS;
-- We had a bug which lead to additional compressed data read. hits compressed size if about 1.2G, but we read more then 3GB.
-- We had a bug which lead to additional compressed data read. test.hits compressed size is about 1.2Gb, but we read more then 3Gb.
-- Small additional reads still possible, so we compare with about 1.5Gb.
SELECT ProfileEvents['ReadBufferFromFileDescriptorReadBytes'] < 1500000000 from system.query_log where query = 'SELECT sum(cityHash64(*)) FROM datasets.hits_v1 SETTINGS max_threads=40' and type = 'QueryFinish'
SELECT ProfileEvents['ReadBufferFromFileDescriptorReadBytes'] < 1500000000 from system.query_log where query = 'SELECT sum(cityHash64(*)) FROM datasets.hits_v1 SETTINGS max_threads=40' and databaser=currentDatabase() and type = 'QueryFinish';