From 817ae221699f76351177ceb15f4cca8e4ae03f35 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sat, 5 Dec 2009 16:37:45 +0200 Subject: [PATCH] * mu-store-xapian.cc: increase transaction size to 2000 --- src/mu-store-xapian.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mu-store-xapian.cc b/src/mu-store-xapian.cc index 0cbabada..929003d7 100644 --- a/src/mu-store-xapian.cc +++ b/src/mu-store-xapian.cc @@ -29,6 +29,9 @@ #include "mu-msg-gmime.h" #include "mu-store-xapian.h" +/* number of new messages after which we commit to the database */ +#define MU_STORE_XAPIAN_TRANSACTION_SIZE 2000 + struct _MuStoreXapian { Xapian::WritableDatabase *_db; @@ -51,7 +54,7 @@ mu_store_xapian_new (const char* path) (path,Xapian::DB_CREATE_OR_OPEN); /* keep count of processed docs */ - store->_transaction_size = 1000; /* default */ + store->_transaction_size = MU_STORE_XAPIAN_TRANSACTION_SIZE; store->_in_transaction = false; store->_processed = 0;