bhabegger opened a new pull request, #2831: URL: https://github.com/apache/jackrabbit-oak/pull/2831
## Summary Adds a feature toggle (`FT_IGNORE_LIMIT_IN_INDEX_SELECTION`) to enable gradual rollout of OAK-12057 (wrong index selection when using LIMIT). - **Default (ON)**: Uses the optimized behavior from PR #2724 - ignores LIMIT/OFFSET when calculating index costs - **Toggle OFF**: Reverts to legacy behavior - caps entry counts by offset+limit ## Changes - Added toggle constant and infrastructure in `QueryEngineSettings` - Registered feature in `Oak.java` - Wrapped index entry count capping logic in `QueryImpl.java` with toggle check Allows safe gradual deployment without requiring immediate rollout to all environments. [AI] -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
