On 26 Nov 2011, at 2:29pm, Jean-Christophe Deschamps wrote:

> Hi Simon,
> 
>> Ah, so it's the first _step which does the locking, rather than the _prepare.
> 
> That makes sense to me.  If I had a serious application using, say, a hundred 
> of different prepared queries, I'd rather batch-prepare them all up front 
> then use them when needed without asking question.  Compared to having to 
> check before every use whether to prepare or not right in the core of the app 
> code.  If prepare were to lock thing up, it would defeat such use. 

Sure.  And it's convenient to be able to do the prepare during startup.  I've 
just never had to worry about this situation.  It means you have to do special 
handling for the first _step, but it's a reasonably compact way of handling the 
potential problem.

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

Reply via email to