From 98a565c3e234729806a9722442bb92560fbf6eca Mon Sep 17 00:00:00 2001 From: Anindya Chatterjee Date: Sat, 14 Dec 2024 14:18:50 +0530 Subject: [PATCH] fix id filter optimisation --- .../org/dizitart/no2/collection/operation/FindOptimizer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nitrite/src/main/java/org/dizitart/no2/collection/operation/FindOptimizer.java b/nitrite/src/main/java/org/dizitart/no2/collection/operation/FindOptimizer.java index 919d5d36d..935cc69e3 100644 --- a/nitrite/src/main/java/org/dizitart/no2/collection/operation/FindOptimizer.java +++ b/nitrite/src/main/java/org/dizitart/no2/collection/operation/FindOptimizer.java @@ -160,8 +160,8 @@ private void planForIdFilter(FindPlan findPlan, List filters) { // handle byId filter specially if (equalsFilter.getField().equals(DOC_ID)) { findPlan.setByIdFilter(equalsFilter); + break; } - break; } } }