Skip to content

Commit 8278085

Browse files
authored
Merge 91dad4e into 6cf4565
2 parents 6cf4565 + 91dad4e commit 8278085

File tree

8 files changed

+301
-333
lines changed

8 files changed

+301
-333
lines changed

ydb/core/tablet_flat/flat_stat_table.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ bool BuildStats(const TSubset& subset, TStats& stats, ui64 rowCountResolution, u
1717
}
1818
}
1919

20-
// TODO: enable b-tree index after benchmarks
21-
mixedIndex = true;
22-
2320
return mixedIndex
2421
? BuildStatsMixedIndex(subset, stats, rowCountResolution, dataSizeResolution, env, yieldHandler)
2522
: BuildStatsBTreeIndex(subset, stats, histogramBucketsCount, env, yieldHandler);

ydb/core/tablet_flat/flat_stat_table_btree_index.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,9 @@ inline bool BuildStatsBTreeIndex(const TSubset& subset, TStats& stats, ui32 hist
209209
return false;
210210
}
211211

212-
ready &= BuildStatsHistogramsBTreeIndex(subset, stats, histogramBucketsCount, env, yieldHandler);
212+
ready &= BuildStatsHistogramsBTreeIndex(subset, stats,
213+
stats.RowCount / histogramBucketsCount, stats.DataSize.Size / histogramBucketsCount,
214+
env, yieldHandler);
213215

214216
return ready;
215217
}

0 commit comments

Comments
 (0)