AnsweredAssumed Answered

Search latency when saving a doc

Question asked by simonsimonson on Jul 30, 2015
Latest reply on Jul 30, 2015 by mrogers
I notices a a significant latency after creating a document on the share before that document can be found in a IN_TREE search. The doc can be found straight away if you define the type and search param without the IN_TREE clause. so for example I have a doc of type cmpdl:companyCustomer, and I create it in the repo.
Then I run a search like:

SELECT cmis:objectId from cmpdl:companyCustomer where IN_TREE(?)
and this type of search usualy takes 2-10 seconds to return the new document to the list.
where as if i specify the search like
SELECT cmis:objectId from cmpdl:companyCustomer where cmpdl:firstName = ?
it returns the result straight away.

The interesting thing is that sometimes the first search returns the result straight away sometimes it might take up to 10 seconds to succeed. Is there any configuration or workaround that can be applied in this case?