* Don't sync the database on close. This was killing performance.

(Of course, the real problem is that we open the database for
  *every* operation; we should only open it once.  And we should use
  transactions.)
This commit is contained in:
Eelco Dolstra 2003-07-24 08:24:32 +00:00
parent 39ce70025b
commit b75719b984

View file

@ -12,7 +12,7 @@ class Db2 : public Db
{
public:
Db2(DbEnv *env, u_int32_t flags) : Db(env, flags) { }
~Db2() { close(0); }
~Db2() { close(DB_NOSYNC); }
};