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

@@ -21,7 +21,11 @@
# $Id$
import bsddb
import config
if config.get('preferences.use-bsddb3'):
import bsddb3 as bsddb
else:
import bsddb
import types
from gen.ggettext import gettext as _