Some bsddb changes

* allow to use bsddb3 as database via a config setting
  * set async write to disk to improve speed, eg import * 40


svn: r16446
This commit is contained in:
Benny Malengier
2011-01-23 21:25:51 +00:00
parent 551b70a8f3
commit b3beba53d8
18 changed files with 112 additions and 26 deletions

View File

@@ -32,7 +32,11 @@ Show uncollected objects in a window.
#
#------------------------------------------------------------------------
from gen.ggettext import gettext as _
from bsddb.db import DBError
import config
if config.get('preferences.use-bsddb3'):
from bsddb3.db import DBError
else:
from bsddb.db import DBError
#------------------------------------------------------------------------
#