You can limit both the time spent and the number of documents checked before Alfresco returns a search query. Alfresco uses the system.acl.maxPermissionCheckTimeMillis and the system.acl.maxPermissionChecks properties to set a limit to these values. The default values are 10000 and 1000 respectively.To change these values:
Browse to the <classpathRoot> directory.
For example, for Tomcat 6, browse to the $TOMCAT_HOME/shared/classes/ directory.
- Open the alfresco-global.properties file.
Add the system.acl.maxPermissionCheckTimeMillis property and
the value you want it to contain.
For example, system.acl.maxPermissionCheckTimeMillis=20000.
Add the system.acl.maxPermissionChecks property and the value
you want it to contain.
For example, system.acl.maxPermissionChecks=1000.Note:
- If you increase these values and have a query that returns a very large number of results, (a) the search results will take longer to be returned to the user, and (b) the system will spend longer to check permissions, leading to the possibility of performance degradation.
- If you set these values to a low number, you run the risk of inconsistent search results every time you run the same search.