Home › Forums › kdb+ › What did -11!log do underlying › Re: What did -11!log do underlying
-
Hello,
Returning with some feedback; the -11! command itself is not consuming large amounts of memory. It simply reads each line of the log file and applies ‘value’ to it. So the memory will be consumed by what happens when value is applied. It’s usually something simple like an insert or update to a table but it can be more complex leading to more memory usage.
Secondly, you can set garbage collection to immediate by using
system”g 1″
It is to an extent automatic but it doesn’t have the full effect as the manually invoked .Q.gc[]. Here is some documentation with more information; https://code.kx.com/q/basics/syscmds/#g-garbage-collection-mode and https://code.kx.com/q4m3/13_Commands_and_System_Variables/#13110-garbage-collection-g.
I hope this helps.
Many Thanks
Luke