I'm using sqlite
database for storing my data, a application which keep writing to the database non-stop. (example windows perf data every 5 minutes)
What I need,
- get all the data incremental every 5 minutes and move to some log/text file
- delete that piece of data which successfully move to log/text file from the
sqlite
db.
I have all below 3 files generated while I'm writing data to db.
- MyData.db
- MyData.db-shm
- MyData.db-wal
I know may be based of last event insert time, query the data, process and delete, store last time in some place and next time read from that point onward.
I there a way that I can copy the Wal
file in a incremental way every 5 minute to skip read/delete operation through C#?
I'm also open to change the database like Maria, etc, if other database provide this kind of solution, etc. Please suggest.