chibenwa commented on code in PR #2514: URL: https://github.com/apache/james-project/pull/2514#discussion_r1853446469
########## backends-common/postgres/src/main/java/org/apache/james/backends/postgres/utils/PostgresExecutor.java: ########## @@ -125,16 +126,26 @@ public Mono<Void> executeVoid(Function<DSLContext, Mono<?>> queryFunction) { } public Flux<Record> executeRows(Function<DSLContext, Flux<Record>> queryFunction) { + return executeRows(queryFunction, !EAGER_FETCH); + } + + public Flux<Record> executeRows(Function<DSLContext, Flux<Record>> queryFunction, boolean isEagerFetch) { Review Comment: Document in a comment what `isEagerFetch` is doing, why it is needed, when it is Ok to use, when it is not Ok to use, and which are the alternative I can use. -- 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: notifications-unsubscr...@james.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org For additional commands, e-mail: notifications-h...@james.apache.org