* mu-store-xapian.cc: increase transaction size to 2000

This commit is contained in:
Dirk-Jan C. Binnema 2009-12-05 16:37:45 +02:00
parent 107852b79d
commit 817ae22169
1 changed files with 4 additions and 1 deletions

View File

@ -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;