mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
opt: record xapian total length
This commit is contained in:
parent
bd26bb241f
commit
2205997322
|
@ -113,7 +113,7 @@ void makeFTSIndex( BtreeIndexing::BtreeDictionary * dict, QAtomicInt & isCancell
|
||||||
bool no_position = false;
|
bool no_position = false;
|
||||||
|
|
||||||
for ( auto const & address : offsets ) {
|
for ( auto const & address : offsets ) {
|
||||||
//check every 1000 documents.
|
//check every 10000 documents.
|
||||||
if ( indexedDoc % 10000 == 0 && !no_position ) {
|
if ( indexedDoc % 10000 == 0 && !no_position ) {
|
||||||
auto totalLength = db.get_total_length();
|
auto totalLength = db.get_total_length();
|
||||||
//arbitrary value.
|
//arbitrary value.
|
||||||
|
|
Loading…
Reference in a new issue