Reduce hashed_dictionary.xml

This commit is contained in:
Raúl Marín 2024-01-04 11:29:17 +00:00
parent 39eaa8dc9c
commit 2aa6690f2c

View File

@ -82,7 +82,6 @@
<name>elements_count</name>
<values>
<value>5000000</value>
<value>7500000</value>
</values>
</substitution>
</substitutions>
@ -90,16 +89,14 @@
<query>
WITH rand64() % toUInt64({elements_count}) as key
SELECT dictGet('default.simple_key_hashed_dictionary', {column_name}, key)
FROM system.numbers
LIMIT {elements_count}
FROM numbers_mt({elements_count})
FORMAT Null;
</query>
<query>
WITH rand64() % toUInt64({elements_count}) as key
SELECT dictHas('default.simple_key_hashed_dictionary', key)
FROM system.numbers
LIMIT {elements_count}
FROM numbers_mt({elements_count})
FORMAT Null;
</query>
@ -111,16 +108,14 @@
<query>
WITH (rand64() % toUInt64({elements_count}), toString(rand64() % toUInt64({elements_count}))) as key
SELECT dictGet('default.complex_key_hashed_dictionary', {column_name}, key)
FROM system.numbers
LIMIT {elements_count}
FROM numbers_mt({elements_count})
FORMAT Null;
</query>
<query>
WITH (rand64() % toUInt64({elements_count}), toString(rand64() % toUInt64({elements_count}))) as key
SELECT dictHas('default.complex_key_hashed_dictionary', key)
FROM system.numbers
LIMIT {elements_count}
FROM numbers_mt({elements_count})
FORMAT Null;
</query>