[PATCH 7/9] Re: Don't keep sqlite connections open

Nicolas Sebrecht nicolas.s-dev at laposte.net
Wed Apr 27 18:26:21 UTC 2011


On Tue, Apr 26, 2011 at 12:31:38PM +0200, Sebastian Spaeth wrote:
> 
> Due to non-threadsafeness, we need to close the sqlite connection after
> we used it. It would be nicer to keep a cursor open, but apparently the
> python bindings to sqlite don't allow this as early versions of sqlite
> could not deal with several threads accessing an sqlite object.

It's good enough like this! :-)

If we really want to improve this area we could still use a thread
dedicated to manage all databases. That beeing said, it would be
over-engineering FMPOV.

-- 
Nicolas Sebrecht



More information about the OfflineIMAP-project mailing list