php - Writing a SQLite db loaded using :memory to disk -


i'm generating quite substantial (~50mb) sqlite3 database in memory need able write disk once generation of said database complete. best way of approaching using php?

i have tried creating structurally identical sqlite3 db on disk, , using inserts populate it, far slow. have drawn blank looking @ online php sqlite3 docs.

what have found sqlite3 backup api, not sure how best approach interfacing php. ideas?

the backup api not available in php.

if wrap inserts single transaction, speed should ok.

you avoid separate temporay database , make disk database fast increasing page cache size larger 50 mb, disabling journaling, , disabling synchronous writes.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -