reschke commented on code in PR #63: URL: https://github.com/apache/sling-org-apache-sling-resourceresolver/pull/63#discussion_r865844375
########## src/main/java/org/apache/sling/resourceresolver/impl/mapping/MapEntries.java: ########## @@ -975,52 +976,52 @@ private boolean addEntry(final Map<String, List<MapEntry>> entryMap, final Strin } /** - * Load aliases Search for all nodes inheriting the sling:alias - * property + * Load aliases - Search for all nodes (except under /jcr:system) below + * configured alias locations having the sling:alias property */ private Map<String, Map<String, String>> loadAliases(final ResourceResolver resolver) { final Map<String, Map<String, String>> map = new ConcurrentHashMap<>(); - final String queryString = updateAliasQuery(); + final String queryString = generateAliasQuery(); + log.debug("start alias query: {}", queryString); + long queryStart = System.nanoTime(); final Iterator<Resource> i = resolver.findResources(queryString, "sql"); - log.debug("end alias query"); + long queryElapsed = System.nanoTime() - queryStart; Review Comment: Does it hurt? Reminder: this is for people looking at DEBUG logs. -- 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: dev-unsubscr...@sling.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org