TRIGGER GC
On this page
The TRIGGER GC command triggers the garbage collector on the source aggregator and propagates to all the leaves.
Introduction
Garbage collection is a process where unneeded versioned nodes for multi-version concurrency are eliminated.
The garbage collection process automatically runs in the background, so it's normally not necessary to execute TRIGGER GC [FLUSH].TRIGGER GC [FLUSH] might be appropriate.rowstore_ engine variable.
Syntax
TRIGGER GC [FLUSH]Arguments
-
FLUSH: Releases the unused Buffer Manager cached memory and returns it to the operating system on both the aggregator node where the command is run and on the leaf node(s) that receive it.Refer to Identifying and Reducing Memory Usage for more information on Buffer Manager cached memory.
Remarks
-
The garbage collector runs automatically.
You may still need to manually trigger the GC in the following scenarios: -
If you need to free up the cached memory, use the
FLUSHoption.(SingleStore only caches memory when it is available and not under any duress. Hence, this practice may turn out to be counter-productive because the caches will refill themselves over time as queries run. ) -
If one of the partitions is using more memory (while bulk-loading/deleting data or recovering from a restart) and you are forced to wait until the garbage collection completes.
-
-
This command can be run on any aggregator.
-
Only users with
SUPERprivileges can run this command. -
Refer to the Permissions Matrix for the required permissions.
Examples
TRIGGER GC FLUSH;
Last modified: