From 4ce76b78942be841f1d7eec116a45c79f7b12fb9 Mon Sep 17 00:00:00 2001 From: Xiao Yi Fang Date: Fri, 19 Jul 2024 16:36:08 +0800 Subject: [PATCH] opt: record xapian total length --- src/ftshelpers.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ftshelpers.cc b/src/ftshelpers.cc index edf263ff..e147c337 100644 --- a/src/ftshelpers.cc +++ b/src/ftshelpers.cc @@ -164,7 +164,8 @@ void makeFTSIndex( BtreeIndexing::BtreeDictionary * dict, QAtomicInt & isCancell db.commit(); db.compact( dict->ftsIndexName() ); - + auto totalLength = db.get_total_length(); + qDebug() << "xapian database total length(compact):" << totalLength; db.close(); Utils::Fs::removeDirectory( dict->ftsIndexName() + "_temp" );