I have an application that uses SQLite(version 3.7.2) to store data. I have a SQLite connection shared between multiple threads that writes and reads from the same SQLite db. SQLite is compiled with DSQLITE_THREADSAFE=1 which means SQLite is in Serialized mode.
Quoting from SQLite docs
Serialized: In serialized mode, SQLite can be safely used by multiple threads with no restriction.
On the contrary the SQLite Wiki entry says
Do not use the same database connection at the same time in more than one thread
I tried with a sample application that spawns hundreds of threads and shares an SQLite handle to read & write which is working fine.
So is the SQLite wiki entry outdated or SQLite might not be able to handle read and write happening from different threads at the same time using the same connection?