Jasha Joachimsthal wrote:
If you use the newDocument method each time propfinds ars done to look
for the current highest index number. If you use this for batch upload
it gets exponentially slower because it has to recalculate every time
which number is the highest over an increasing number of documents.

It does only 1 propfind (on the folder) after each added document. The result is then parsed, looping through all the documents' index properties the determine the highest number. Since one document is added at a time, that would be a linear time increase rather than exponential, wouldn't it?

For assets there's already a method that skips setting the index.
Afterwards you can set the index numbers manually.

In case of a bulk operation it is indeed better to set all the indices at the end.

Regards,
Niels

********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Reply via email to