Hi,
I’m trying to optimize oak indexes in a Clou. We have a few custom queries that are running very slow, and after checking explain plans, it looks like they’re falling back to traversal. I know AEMaaCS doesn’t allow direct CRXDE changes, so indexes need to be managed via code deployments.
What’s the best way to properly define and deploy a custom oak:index in Cloud Service, and how can I safely test changes before pushing them through Cloud Manager? Also, are there tools or recommended steps to validate whether the new index is actually being used by queries?
Thanks!
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @SanaQu ,
First you can try to set up a local development environment and deploy the customized indices. Ensure that the updated indices are up to date.
The local development environment for AEM can be broken up into three logical groups:
You can follow below links for more details on it:
https://experienceleague.adobe.com/en/docs/experience-manager-learn/cloud-service/local-development-...
Once you test it on local you can move it higher environment.
For deployment purpose you can follow below link
https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/operations/index...
-Tarun
Hi @SanaQu,
Yes as you mentioned on a Cloud you can’t edit indexes directly - everything has to be deployed through code, and only Lucene indexes are supported. The right way to do this is:
Define your custom index under /oak:index in your codebase (set type=lucene).
If you need to change it later, don’t flip reindex=true. Instead, bump the version suffix (eg. myIndex-1 -> myIndex-2) and redeploy - Cloud Manager will do a rolling reindex for you.
Test queries locally with the AEM SDK using EXPLAIN to make sure they actually pick up your index and not traversal.
Adobe has good docs that walk through this: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/operations/index...
Views
Replies
Total Likes
Hi @SanaQu
Hope this helpful:)
Regards,
Karishma.
Hi @SanaQu ,
First you can try to set up a local development environment and deploy the customized indices. Ensure that the updated indices are up to date.
The local development environment for AEM can be broken up into three logical groups:
You can follow below links for more details on it:
https://experienceleague.adobe.com/en/docs/experience-manager-learn/cloud-service/local-development-...
Once you test it on local you can move it higher environment.
For deployment purpose you can follow below link
https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/operations/index...
-Tarun
Views
Likes
Replies