shrinkMemory

Attempts to free up memory that is no longer needed by the database connection.

This pragma causes the database connection to release as much memory as it can, including memory allocated for the page cache and schema parsing. It can be useful in memory-constrained environments to reduce the application's memory footprint after a period of intense database activity.

This operation is usually fast but its effectiveness depends on the internal state of the SQLite library.

Author

MOHAMMAD AZIM ANSARI

See also