After reading this post, about setting journal_mode to val,
I wonder, is it safe to use multi-thread handlers, without worrying for non-queries coming from 5-10 clients?
Thank you.
and at the same time, reading this post, about choosing single or multi-thread handlers,This mode allows multiple readers and a single writer to access the database at the same time. B4J SQL library (when initialized with InitializeSQLite) will serialize writers access.
,A single threaded handler will always be executed by the main thread. This means that if there are multiple requests they will be queued and executed one by one. Single threaded handlers can be useful in many cases. Some examples:
- A handler that accesses a SQLite database, which is less suitable for concurrent connections.
- A handler that writes to a specific file.
- A handler that sends a job to the printer
I wonder, is it safe to use multi-thread handlers, without worrying for non-queries coming from 5-10 clients?
Thank you.