opt: record xapian total length

This commit is contained in:
Xiao Yi Fang 2024-07-19 16:36:08 +08:00 committed by xiaoyifang
parent 446c804c7d
commit 4ce76b7894

View file

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