Fix slow performance test

This commit is contained in:
Alexey Milovidov 2021-06-27 18:54:21 +03:00
parent 1b644b9a31
commit 887be640f9

View File

@ -1,6 +1,7 @@
<test> <test>
<preconditions> <preconditions>
<table_exists>hits_100m_single</table_exists> <table_exists>hits_100m_single</table_exists>
<table_exists>hits_10m_single</table_exists>
</preconditions> </preconditions>
<substitutions> <substitutions>
@ -10,9 +11,17 @@
<value>SearchEngineID</value> <value>SearchEngineID</value>
<value>RegionID</value> <value>RegionID</value>
<value>SearchPhrase</value> <value>SearchPhrase</value>
</values>
</substitution>
<!-- For some keys, the query is slower, so we choose smaller dataset. -->
<substitution>
<name>key_slow</name>
<values>
<value>ClientIP</value> <value>ClientIP</value>
</values> </values>
</substitution> </substitution>
<substitution> <substitution>
<name>func</name> <name>func</name>
<values> <values>
@ -26,4 +35,5 @@
</substitutions> </substitutions>
<query>SELECT {key} AS k, {func}(ResolutionWidth) FROM hits_100m_single GROUP BY k FORMAT Null</query> <query>SELECT {key} AS k, {func}(ResolutionWidth) FROM hits_100m_single GROUP BY k FORMAT Null</query>
<query>SELECT {key_slow} AS k, {func}(ResolutionWidth) FROM hits_10m_single GROUP BY k FORMAT Null</query>
</test> </test>