* mu-store.cc: some optimizations, and add the possibility to use the slightly

faster 'add_document' instead of 'replace_document' (it's not used yet though)
This commit is contained in:
Dirk-Jan C. Binnema
2011-04-30 11:31:34 +03:00
parent fda03bd562
commit efa026648b
4 changed files with 40 additions and 21 deletions

View File

@ -100,11 +100,16 @@ void mu_store_flush (MuStore *store);
* store an email message in the XapianStore
*
* @param store a valid store
* @param msg a valid message
* @param msg a valid message
* @param replace whether or not we should try to replace the same
* message if it already exists; that is usually desirable, but when
* we're sure already that the document does not exist (e.g, in case
* of a initial fill or rebuild of the database), we can set 'replace'
* to FALSE for a couple% performance gain
*
* @return TRUE if it succeeded, FALSE otherwise
*/
MuResult mu_store_store (MuStore *store, MuMsg *msg);
MuResult mu_store_store (MuStore *store, MuMsg *msg, gboolean replace);
/**