Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you’re not actively writing to the database you can cp or commit it safely. SQLite uses a journal or a write ahead log (WAL) file to process transactions.

If you cp a database mid transaction you will loose the transaction as it is processed in the separate journal or WAL file until commit. If you copy mid commit then you will have incomplete data in the main database file and possibly data corruption.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: