thomasmueller commented on code in PR #662:
URL: https://github.com/apache/jackrabbit-oak/pull/662#discussion_r942589521
##########
oak-core/src/main/java/org/apache/jackrabbit/oak/Oak.java:
##########
@@ -576,6 +577,8 @@ public Oak with(@NotNull Whiteboard whiteboard) {
newSettings.setLimitReads(this.queryEngineSettings.getLimitReads());
this.queryEngineSettings = new
AnnotatedQueryEngineSettings(newSettings);
}
+ Feature prefetchFeature =
Feature.newFeature(QueryEngineSettings.FT_NAME_PREFETCH_FOR_QUERIES,
whiteboard);
+ queryEngineSettings.setPrefetchFeature(prefetchFeature);
Review Comment:
> Why do you set this feature here?
Because "whiteboard" is not available in the QueryEngine.
##########
oak-core/src/main/java/org/apache/jackrabbit/oak/Oak.java:
##########
@@ -576,6 +577,8 @@ public Oak with(@NotNull Whiteboard whiteboard) {
newSettings.setLimitReads(this.queryEngineSettings.getLimitReads());
this.queryEngineSettings = new
AnnotatedQueryEngineSettings(newSettings);
}
+ Feature prefetchFeature =
Feature.newFeature(QueryEngineSettings.FT_NAME_PREFETCH_FOR_QUERIES,
whiteboard);
+ queryEngineSettings.setPrefetchFeature(prefetchFeature);
Review Comment:
> Why do you set this feature here?
Because "whiteboard" is not available in the QueryEngine.
--
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]