Skip to content

Commit

Permalink
[improvement](scan_queue_mem_limit) scan queue mem limit is so small …
Browse files Browse the repository at this point in the history
…for (apache#24553)

a wide table

Users rarely set scan_queue_mem_limit, so it almost often works as 2G/20. However,
somecases we need set it to a larger value, especially for insrt into
select from a wide table.
  • Loading branch information
dataroaring authored Sep 18, 2023
1 parent c54fc82 commit 1ac7c8f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1551,7 +1551,7 @@ public void setMaxExecMemByte(long maxExecMemByte) {
}

public void setMaxScanQueueMemByte(long scanQueueMemByte) {
this.maxScanQueueMemByte = Math.min(scanQueueMemByte, maxExecMemByte / 20);
this.maxScanQueueMemByte = Math.min(scanQueueMemByte, maxExecMemByte / 2);
}

public boolean isSqlQuoteShowCreate() {
Expand Down

0 comments on commit 1ac7c8f

Please sign in to comment.