> Can some one please tell me whether it is possible that the read thread is 
> causing the write thread to miss inserting some records?

If you do not check for the result of executing INSERTs in write
thread and then blindly reset the statement then answer is yes. In
case if INSERT returned SQLITE_BUSY (or SQLITE_LOCKED in case if you
use shared cache) this row will be lost.


Pavel

On Wed, Aug 26, 2009 at 7:18 AM, <souvik.da...@wipro.com> wrote:
> Hi,
>
> I am having two threads running say Thread-A and Thread-B. Thread-A is 
> populating a DB table with while Thread-B is trying to read
> from the same table. In side Thread-B , I am creating a temporary table based 
> on filtered queries made on the
> table which is getting populated by Thread-A. To make the query response fast 
> the creation of  the temporary table is done within a BEGIN-END Transaction.
>
> The observation is that when the permanent table population is complete, I 
> find there are some records that are missing.
> This does not happen when the Thread-B is not querying the table while it is 
> in the process of getting built.
>
> Can some one please tell me whether it is possible that the read thread is 
> causing the write thread to miss inserting some records?
>
> Thanks and Regards,
> Souvik
>
>
> 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
>
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to