Setting memory limits for ENABLE_JOIN_SPILL
We have a SQL query that takes upto 30GB of memory and runs for 20 minutes without the ENABLE_JOIN_SPILL and approx. 2 GB and 2 hours when the ENABLE_JOIN_SPILL is turned on. Is it possible to change the memory requirements when a query runs with the ENABLE_JOIN_SPILL turned on? We would like to bump it up to balance out speed and memory consumption.
0
Comments
create resource pool sampleonly memorysize '20G' maxmemorysize '20G' queuetimeout none plannedconcurrency 1 singleinitiator false maxconcurrency 1;<CODE> We plan to have only 1 SQL query being executed in this pool at any point in time. When we run the SQL, it only takes 10.2G. SHOW MEMORYCAP query indicates the session memory is UNLIMITED. Is there any way to make the query use the entire MEMORYSIZE of the pool, and not borrow anything from the GENERAL pool?