Wooops.  You may need to call

int sqlite3_enable_shared_cache(int);

to enable shared-cache mode first ...

https://www.sqlite.org/sharedcache.html

---
()  ascii ribbon campaign against html e-mail
/\  www.asciiribbon.org


> -----Original Message-----
> From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-
> boun...@sqlite.org] On Behalf Of Keith Medcalf
> Sent: Friday, 21 September, 2012 11:46
> To: General Discussion of SQLite Database
> Subject: Re: [sqlite] Store error messages in thread local memory
> 
> 
> On Friday, 21 September, 2012, @10:53, Sebastian Krysmanski said:
> 
> > I wish it were like you said. However, in my understanding multiple
> > connections to the same database are realized by file system locks. So
> > switching from serialized to multi-threading mode doesn't make much
> > difference because the main slow down are the file system locks.
> 
> Can you try passing the SQLITE_OPEN_SHAREDCACHE and SQLITE_OPEN_NOMUTEX to
> the connection per thread and see how that behaves.  You get the same
> advantage of reducing I/O and memory management by using a single page-cache,
> yet you now no longer have serialization (or mutexes to enforce
> serialization) in the library call path.  If the serialization/mutex code is
> causing any significant performance effect, this should demonstrate it
> clearly.
> 
> ---
> ()  ascii ribbon campaign against html e-mail
> /\  www.asciiribbon.org
> 
> 
> 
> 
> _______________________________________________
> 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