QueryBuilder vs SQL2 | Community
Skip to main content
New Participant
October 16, 2015
Solved

QueryBuilder vs SQL2

  • October 16, 2015
  • 5 replies
  • 3892 views

Hi,

Could you please let me know which is better to use performance wise: QueryBuilder APIs or SQL2?

I understand QueryBuilder APIs internally converts to XPath queries, however would like to know which will perform better.

Thanks,Souradeep

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

XPATH is preffered

5 replies

Sham_HC
Sham_HCAccepted solution
New Participant
October 16, 2015

XPATH is preffered

smacdonald2008
New Participant
October 16, 2015

The documentation on QueryBuilder is located here:

http://docs.adobe.com/docs/en/aem/6-0/develop/search/querybuilder-api.html

SouradeepAuthor
New Participant
October 16, 2015

Is there any documentation which says the same??

SouradeepAuthor
New Participant
October 16, 2015

I am asking if there is any documentation from Adobe which suggests QueryBuilder performs better than SQL2 in AEM 6.

I am asking so because in the below forum as per Justin, QueryBuilder APIs in turn forms XPath queries which finally get converted to JCR-SQL2 in OAK/AEM 6.0. So QueryBuilder APIs and SQL2 are effectively equivalent in AEM 6.

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__uday-hi_are_thereany.html#forum__uday-hi_are_thereany-composer

SouradeepAuthor
New Participant
October 16, 2015

Hi,

Any answer to the question here would be appreciated.

Thanks, Souradeep