mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Small refinement in test
This commit is contained in:
parent
114d30d2bb
commit
ff47aa1eb2
@ -1 +1,3 @@
|
||||
99999
|
||||
99999
|
||||
0 0 13
|
||||
|
@ -13,15 +13,24 @@ $CLICKHOUSE_CLIENT --query="CREATE TABLE small_table (a UInt64 default 0, n UInt
|
||||
$CLICKHOUSE_CLIENT --query="INSERT INTO small_table (n) SELECT * from system.numbers limit 100000;"
|
||||
$CLICKHOUSE_CLIENT --query="OPTIMIZE TABLE small_table FINAL;"
|
||||
|
||||
cached_query="SELECT count() FROM small_table where n > 0;"
|
||||
cached_query="SELECT count() FROM small_table WHERE n > 0;"
|
||||
|
||||
$CLICKHOUSE_CLIENT --use_uncompressed_cache=1 --query="$cached_query" &> /dev/null
|
||||
|
||||
$CLICKHOUSE_CLIENT --use_uncompressed_cache=1 --allow_prefetched_read_pool_for_remote_filesystem=0 --allow_prefetched_read_pool_for_local_filesystem=0 --query_id="test-query-uncompressed-cache" --query="$cached_query" &> /dev/null
|
||||
$CLICKHOUSE_CLIENT --log_queries 1 --use_uncompressed_cache 1 --query="$cached_query"
|
||||
$CLICKHOUSE_CLIENT --log_queries 1 --use_uncompressed_cache 1 --allow_prefetched_read_pool_for_remote_filesystem 0 --allow_prefetched_read_pool_for_local_filesystem 0 --query_id="test-query-uncompressed-cache" --query="$cached_query"
|
||||
|
||||
$CLICKHOUSE_CLIENT --query="SYSTEM FLUSH LOGS"
|
||||
|
||||
|
||||
$CLICKHOUSE_CLIENT --query="SELECT ProfileEvents['Seek'], ProfileEvents['ReadCompressedBytes'], ProfileEvents['UncompressedCacheHits'] AS hit FROM system.query_log WHERE (query_id = 'test-query-uncompressed-cache') and current_database = currentDatabase() AND (type = 2) AND event_date >= yesterday() ORDER BY event_time DESC LIMIT 1"
|
||||
$CLICKHOUSE_CLIENT --query="
|
||||
SELECT
|
||||
ProfileEvents['Seek'],
|
||||
ProfileEvents['ReadCompressedBytes'],
|
||||
ProfileEvents['UncompressedCacheHits'] AS hit
|
||||
FROM system.query_log
|
||||
WHERE query_id = 'test-query-uncompressed-cache'
|
||||
AND current_database = currentDatabase()
|
||||
AND type = 2
|
||||
AND event_date >= yesterday()
|
||||
ORDER BY event_time DESC
|
||||
LIMIT 1"
|
||||
|
||||
$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS small_table"
|
||||
|
Loading…
Reference in New Issue
Block a user