mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Add comments for 01281_group_by_limit_memory_tracking test
This commit is contained in:
parent
1a6c1d1796
commit
ba4d964388
@ -20,6 +20,14 @@ function execute_null()
|
||||
|
||||
function execute_group_by()
|
||||
{
|
||||
# Peak memory usage for the main query (with GROUP BY) is ~100MiB (with
|
||||
# max_threads=2 as here).
|
||||
# So set max_memory_usage_for_user to 150MiB and if the memory tracking
|
||||
# accounting will be incorrect then the second query will fail
|
||||
#
|
||||
# Note that we also need one running query for the user (sleep(3)), since
|
||||
# max_memory_usage_for_user is installed to 0 once there are no more
|
||||
# queries for user.
|
||||
local opts=(
|
||||
--max_memory_usage_for_user=$((150<<20))
|
||||
--max_threads=2
|
||||
|
Loading…
Reference in New Issue
Block a user