SQLite is an ACID db flushes with every commit OR with every insert / delete / update, not completed transaction. Use transactions for grouping operations OR DISABLE ACIDity and set PRAGMA synchronous = OFF.
"PRAGMA synchronous = OFF" and SQLite will not completely clear the data (actually leaving this for the OS cache)
SQLITE_DEFAULT_CACHE_SIZE ONLY for cache size. And the cache is used ONLY for reading data.
- VFS , . http://www.sqlite.org/c3ref/vfs.html
, sync = off ( ) ( db reset = ).
- . - , .