Skip to main content
New Participant
August 23, 2022
Solved

Search content issue

  • August 23, 2022
  • 2 replies
  • 602 views

Hi 

I have this search content functionality which searches the content with images on a product my issue is there are times that the content load so slow that causes heap memory issue is there any configuration to prevent too much loading time in the OSGI configuration and also set default number of result content?

 

Best Regards

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 Manu_Mathew_

@farnsbert You can use limit query and pagination logic if the results are too large. You could have a custom OSGI configuartion to set the limit value for the query used.

Not sure what exactly is the use case here, but hope this helps.

2 replies

Sachin_Arora_
New Participant
August 23, 2022

Slow queries could be due to following reasons :

  • Index not available
  • Result is huge
  • Query using different indexes to collect data

You can examine your query in Query performance tool in AEM. It will guide you if your query is using any index or not with other details. Path for same is /libs/granite/operations/content/diagnosistools/queryPerformance.html

Link for troubleshooting slow queries : https://experienceleague.adobe.com/docs/experience-manager-65/developing/bestpractices/troubleshooting-slow-queries.html?lang=en

 

Manu_Mathew_
Manu_Mathew_Accepted solution
New Participant
August 23, 2022

@farnsbert You can use limit query and pagination logic if the results are too large. You could have a custom OSGI configuartion to set the limit value for the query used.

Not sure what exactly is the use case here, but hope this helps.