* 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:
parent
39ce70025b
commit
b75719b984
1 changed files with 1 additions and 1 deletions
|
@ -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); }
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue