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 919d5d36..935cc69e 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; } } }