Hi,
I've got a strange behavior in terms of performance in a webscript that consists in a Lucene query with some condition (by path, by date, by aspect and sometimes by some imap aspect metadata).
The webscript is very slow when it is called after a while that is not used but is very very fast if it is called many times in a short range of time; it not seems to be related to the cache, because if i completely change the conditions (so the results will be a completely different) it remains extremely fast.
We are on a old 3.3 alfresco version and the webscript is written in javascript and it is executed always with the same user (that is not an admin).
I can't figure out which components could cause this behavior (eg: there is a loading phase of a webscript?)
Someone have an some ideas?