reschke commented on code in PR #119:
URL:
https://github.com/apache/sling-org-apache-sling-resourceresolver/pull/119#discussion_r1682760330
##########
src/main/java/org/apache/sling/resourceresolver/impl/mapping/MapEntries.java:
##########
@@ -1389,6 +1419,16 @@ public Resource next() throws NoSuchElementException {
next = null;
return result;
}
+
+ public String getStatistics() {
+ String result = String.format(" (max. page size: %d, number of
pages: %d)", largestPage, page);
+ if (largestKeyCount > pageSize * 10) {
+ result += String.format(" - WARNING: largest number of aliases
with the same 'first' selector exceeds expectations (value '%s' appears %d
times)",
Review Comment:
Log the WARN from inside the PagedQueryIterator, or add a new getter for
warnings?
--
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]