AnsweredAssumed Answered

Performance problem with the search

Question asked by djimenez on Aug 21, 2007
Latest reply on Sep 17, 2009 by witho
Hello,

I have a problem when I list contents using webscripts and the freemarker APi. I realize a probe with 700 contents in the repository, In listing 700 contents the doclist webscript  spent 53 seconds. I modify this webscript and I limit to 20 the number of contents that the webscript show, it was executed in 45 seconds. I have checked that the searches depends directly the number of contents in the repository but this times are unacceptable. Is normal his situation?

The most time it's spent in the next instruction of freemarker

<#assign docs=companyhome.childrenByLuceneSearch[PATH:\"/app:company_home/cm:folder/*\"]?sort_by(["properties","name") >

I think if It could limit the size of the result the execution time improve. How can I do this limitation?

Thank u.

Outcomes