Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi.
Is it legal to use multiple connections to a database when the db is in serialized mode, wal is enabled and shared cache mode is off. Additionally i would like to open the connections and use them from several threads. I keep getting SQLITE_LOCKED errors and cannot read from the db when a write transaction from another connection is ongoing.

I do not try to use the same connection from multiple threads at the same time.

Regards
Posted

Just to be clear - you have multiple threads and EACH thread has its OWN connection?

If not then far as I am concerned that is problem regardless of what the database is doing.
 
Share this answer
 
Hi,
yes, each thread has its own connection.
 
Share this answer
 
Comments
nv3 25-Nov-13 4:07am    
Please, don't post comments as answers. This lowers your chances of getting an answer to your question as everybody will see that your question has already been sufficiently answered by looking at the answer count. Instead, use the "have a question of comment" button of the "Improve question" button answer other postings or to post amendments to your question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900