Re: updating before insert

Ed Pasma <[email protected]>
Newsgroups gmane.comp.python.db.pysqlite.user
Message-ID <[email protected]>
Hello, here is just a side remark to one paragraph.

> The other problem where I  test first (select)I
> should also grab exclusive lock.  Then around all other queries I  
> should place a
> shared lock.

The other queries do not need a shared lock around them. It is taken  
implicitly. So they automatically wait until the exclusive lock is  
released, or until the timeout is expired.

Ed.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.