SQLite Forum

config SQLITE_CONFIG_MALLOC for connection instance
Login

config SQLITE_CONFIG_MALLOC for connection instance

(1) By phpstatic on 2020-11-21 02:45:15 [link] [source]

I like to know if there is a way to set sqlite3_mem_methods for each sqlite3 connection instance.

The current methods setup a global sqlite3_mem_methods for process, in multithread app set sqlite3_mem_methods for each connection could reduce race condition.

(2) By Richard Hipp (drh) on 2020-11-21 12:44:45 in reply to 1 [source]

There is not. The heap is a process-global resource.