On Tue, Jun 16, 2009 at 9:56 AM, Hippo WCMTech<[email protected]> wrote: > Hi, > > > > I have a question about ToDo List. > > > > We have 400 files for one action (e.g. : > waitingForPublicationReviewToProduction) , > > In workflow we use : > > <meta name="queryBulkAuthorizerClass"> > nl.hippo.cms.workflow.DocumentPermissionsBasedQueryBulkAuthorizer</meta>. > > > > > > In CMS (v6.05.03) for the workflow.js, we have a problem, the function > “query” takes too much time. > > (between 5 to 10 minutes) > > After having to recover the instances ID of the files, there is a loop which > will look for their path. > > It’s this loop which takes time. > > > > generic.forEach(matchingInstances, *function*(instanceIdAsObject) { > > *var* instanceId = instanceIdAsObject.longValue(); > > authorizer.gatherLocationsAndPropertyNames(instanceId, locations, > propertyNames, authorizerContext); > > }); > > > > My questions are: > > > > What can I do to improve this? Clean up the todo list ;-)
Afaik it's not really easy to improve the performance without significantly rewriting how the todo list works. If you really want to give it a go, you can start by trying to query by the repository to get a (paged) list of document that you need in the todo. Then you would only have to query the workflow for the document that are displayed. > Is it possible to recover the paths at the same time as the instances ID? I'm not sure about this one. Regards, Bart > ******************************************** > Hippocms-dev: Hippo CMS development public mailinglist > > Searchable archives can be found at: > MarkMail: http://hippocms-dev.markmail.org > Nabble: http://www.nabble.com/Hippo-CMS-f26633.html > > -- Hippo B.V. - Amsterdam Oosteinde 11, 1017 WT, Amsterdam, +31(0)20-5224466 Hippo USA Inc. - San Francisco 101 H Street, Suite Q, Petaluma CA, 94952-3329, +1 (707) 773-4646 ----------------------------------------------------------------- http://www.onehippo.com - [email protected] ----------------------------------------------------------------- ******************************************** Hippocms-dev: Hippo CMS development public mailinglist Searchable archives can be found at: MarkMail: http://hippocms-dev.markmail.org Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
