(index) Improve granularity of candidate queue polling

This commit is contained in:
Viktor Lofgren 2024-02-25 13:34:12 +01:00
parent 427f3e922f
commit 3eb0800742

View File

@ -348,7 +348,7 @@ public class IndexGrpcService extends IndexApiGrpc.IndexApiImplBase {
long start = System.currentTimeMillis();
CombinedDocIdList resultIds = resultCandidateQueue.poll(
Math.clamp(parameters.budget.timeLeft(), 1, 25),
Math.clamp(parameters.budget.timeLeft(), 1, 5),
TimeUnit.MILLISECONDS);
if (resultIds == null) {