A computer program product embodied on a non-transitory computer readable medium, the non-transitory computer readable medium having stored thereon a sequence of instructions which, when executed by a processor, causes the processor to execute a set of acts, the set of acts comprising:
- identifying a memory area of a global memory of a computing system, the memory area comprising a buffer memory area and allocated for ingesting data for a database;
- identifying a persistent storage device into which data stored in the memory area is to be flushed;
- determining a predicted ingest rate and a predicted flush rate for a memory area of a global memory for a database;
- adaptively resizing the memory area at least by executing the memory management task on the memory area.