Too many dam nodes need to be traversed
I hvave more than 800000 images in the dam. When I publish or unpublish a page, AEM will auto find the reference imges for this page, it will take a lot of time. This caue a page successfully be published will take serveral minutes.
Does anyone know how can I reduce the search time?
Where and how can I create a index for the query of the follow log.
POST /bin/wcmcommand HTTP/1.1] org.apache.jackrabbit.oak.plugins.index.Cursors$TraversingCursor Traversed 810000 nodes with filter Filter(query=select [jcr:path], [jcr:score], * from [dam:Asset] as a where [jcr:content/contentFragment] = 'true' and contains(*, '/content/demo/test') and isdescendantnode(a, '/content/dam') order by [jcr:created] desc option(index tag [visualSimilaritySearch]) /* xpath: /jcr:root/content/dam//element(*, dam:Asset)[(jcr:content/@contentFragment = 'true' and jcr:contains(., '/content/demo/test'))] order by :created descending option (index tag visualSimilaritySearch) */ fullText="/content/demo/test", path=/content/dam//*, property=[:indexTag=[visualSimilaritySearch], jcr:content/contentFragment=[true]]); consider creating an index or changing the query
AEM : 6.5
Service Package : 6.5.11
Thanks,
Forrest