Typically SQLite databases can handle multiple rea...
# squarelibraries
j
Typically SQLite databases can handle multiple readers, but only a single writer (assuming WAL journal mode). To ensure a single write queue, you could create a write
CoroutineScope
associated with your database instance with a limited parallelism of 1, and use that scope to launch the coroutines your write operations are performed in.
Copy code
val writeScope = CoroutineScope(Dispatchers.IO.limitedParallelism(1))