Skip to content

Commit

Permalink
minor tuning minimum number of point reads
Browse files Browse the repository at this point in the history
  • Loading branch information
littlepig2013 committed Oct 9, 2024
1 parent efa926a commit fc9d46b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions db/compaction/compaction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -400,10 +400,10 @@ Compaction::Compaction(
input_vstorage_->LevelFiles(output_level_)) {
max_num_entries_in_output_level_ +=
meta->num_entries - meta->num_range_deletions;
// auto result =
// meta->stats.GetEstimatedNumPointReads(vstorage->GetAccumulatedNumPointReads(),
// immutable_options_.point_read_learning_rate); min_num_point_reads_ =
// std::min(min_num_point_reads_, result.first);
auto result = meta->stats.GetEstimatedNumPointReads(
vstorage->GetAccumulatedNumPointReads(),
immutable_options_.point_read_learning_rate);
min_num_point_reads_ = std::min(min_num_point_reads_, result.first);
}

if (immutable_options_.point_reads_track_method == kNaiiveTrack) {
Expand Down

0 comments on commit fc9d46b

Please sign in to comment.