akankshajain18 commented on pull request #24: URL: https://github.com/apache/sling-org-apache-sling-resourceresolver/pull/24#issuecomment-731982548
@wimsymons The initial thought was changing the query itself. But as the number path will increase, we need to append ISDESCENDANTNODE with "OR" keyword. ========== Sample query: SELECT [sling:alias] FROM [nt:base] AS page WHERE (ISDESCENDANTNODE(page ,"/content/") OR ISDESCENDANTNODE(page ,"/apps/")) AND [sling:alias] IS NOT NULL ========== As we are checking multiple paths, will it not slow down the query performance as the path will increase ? ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
