Hello Igor Tandetnik,

Many thanks. It is working !

Regards,
Souvik

-----Original Message-----
From: sqlite-users-boun...@sqlite.org on behalf of Igor Tandetnik
Sent: Mon 5/4/2009 5:04 PM
To: sqlite-users@sqlite.org
Subject: Re: [sqlite] Updating Database from multiple threads
 
<souvik.da...@wipro.com> wrote in message
news:61c4c33b211cd64ebf4b6eb0d03dd56e20d...@blr-m3-msg.wipro.com
> I have an application that requires two threads to insert data into
> the database simultaneously ( both the threads are updating
> independent tables which are in the same database).

http://sqlite.org/sharedcache.html

Normally, SQLite locks the whole database on write, so two connections 
can't write simultaneously. But in shared cache mode, SQLite supports 
table-level locking, so two connections could write simultaneously to 
different tables.

Igor Tandetnik 



_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email. 

www.wipro.com
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to