Skip to content

Commit

Permalink
SOLR-14608: Reduce percentage of priority queue size above total hits
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-bernstein committed Jan 19, 2021
1 parent 64df5a6 commit 5328ced
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ public MergeIterator getMergeIterator(List<LeafReaderContext> leaves, FixedBitSe
}

//Resize the priorityQueueSize down for small result sets.
this.priorityQueueSize = Math.min(this.priorityQueueSize, (int)(this.totalHits*1.5));
this.priorityQueueSize = Math.min(this.priorityQueueSize, (int)(this.totalHits*1.2));

if(log.isDebugEnabled()) {
log.debug("Total priority queue size {}:", this.priorityQueueSize);
Expand Down

0 comments on commit 5328ced

Please sign in to comment.