Best optimum query for creating reports in AEM?
Hi All,
I want to create a custom report something like OOTB component report of AEM. I was thinking of what logic I should implement to get all data related to the report. One simplest way would be to use NodeIterator and traverse through node and read related property, but i feel this would be really inefficient approach (performance issue may occur). Can you guys suggest any better approach to this problem? Should I use SQL query to get desired results or should I use Query Builder API, which would be more efficient approach? If possible please share what sample for this.
I have gone through the Adobe documentation (http://dev.day.com/docs/en/cq/current/developing/developing-reports.html#Creating%20Your%20Own%20Report%20-%20An%20Example)
but it does not provide any inputs on how query should be written.
Thanks,
Shehjad