Allow better multithreaded use of SqliteConnection
Issue #49
wontfix
Originally reported on Google Code with ID 49
http://www.sqlite.org/threadsafe.html
Sqlite, by default, is compiled in "serialized mode". This means that sqlite connections
can be used by multiple threads with no restrictions.
I would like to get some discussion going to determine if it makes sense for this light
SQLite wrapper to have similar multithreading capabilities.
Currently, SqliteConnection will ensure that all SQL that is executed will execute
on the same thread that the connection was opened with. This doesn't seem necessary.
Are these protections left over from previous versions of SQLite that were not threadsafe?
What dangers and pitfalls are there for allowing an SqliteConnection to be used by
multiple threads, besides proper locking and maintenance of the state inside of the
java object SqliteConnection?
I realize that there is already an SqliteQueue and SqliteJob class that helps users
dedicate a thread to sqlite and queue jobs on it, but this is not always desired or
convenient.
Reported by brainn
on 2012-10-25 16:48:43
Comments (2)
-
-
Account Deleted There were no other requests for connection pooling so we'll close this issue as wontfix at this time. Thanks, Igor
Reported by
sereda@almworks.com
on 2014-09-21 18:33:01 - Status changed:WontFix
- Log in to comment
Reported by
sereda
on 2012-10-30 01:26:00 - Status changed:Accepted
- Labels added: Type-Enhancement - Labels removed: Type-Defect