Oak Indexing : Traversal Warning : AEM 6.5.10
We have below mentioned TRAVERSAL warn in logs, due to OOB query which generates whenever we open the DAM folder. :-
Traversed 1000 nodes with filter Filter(query=select [jcr:path], [jcr:score], * from [nt:base] as a where ischildnode(a, '/content/dam/abcFolder') and [hidden] = 'false' union select [jcr:path], [jcr:score], * from [nt:base] as a where ischildnode(a, '/content/dam/abcFolder') and [hidden] is null /* xpath: /jcr:root/content/dam/abcFolder/*[((@hidden = 'false' or not(@hidden)))] */, path=/content/dam/abcFolder/*, property=[hidden=[false]]); consider creating an index or changing the query
Also, I tried to run a simplified version of this query on Explain Query:-
select [jcr:path], [jcr:score] from [nt:base] as a where ischildnode(a, '/content/dam/abcFolder')
Result :-
No indexes were used.
This is a traversal query.
Re-indexing wont help because the query is fired on [nt:base], and not [dam:Asset], due to which OOB /oak:index/damAssetLucene, is not getting used.
Any suggestions to resolve the issue (except keeping less than 1000 files in each dam folder)
Results on Vanilla Instance :-
Query :- select [jcr:path], [jcr:score] from [nt:base] as a where ischildnode(a, '/content/dam')
Explain Query Results :-
No indexes were used.
This is a traversal query.
