QueryBuilder vs SQL2 | Community
Skip to main content
Level 2
October 16, 2015
Solved

QueryBuilder vs SQL2

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.
Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

XPATH is preffered

5 replies

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

XPATH is preffered

Translate
smacdonald2008
Level 10
October 16, 2015

The documentation on QueryBuilder is located here:

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

Translate
SouradeepAuthor
Level 2
October 16, 2015

Is there any documentation which says the same??

Translate
SouradeepAuthor
Level 2
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

Translate
SouradeepAuthor
Level 2
October 16, 2015

Hi,

Any answer to the question here would be appreciated.

Thanks, Souradeep

Translate