plone.restapi
plone.restapi copied to clipboard
Pasting objects takes a long time
When we are going to paste multiple objects into a folder, it is taking a long time. I see that the manage_pasteObjects method is called once for each object, inside a for:
https://github.com/plone/plone.restapi/blob/ae90f0e56e50e81c344fb3d0c84bc6cfc8310cab/src/plone/restapi/services/copymove/copymove.py#L82-L85
Doesn't this slow down the operation?
I see that in Plone Classic it is called only once:
https://github.com/plone/plone.app.content/blob/a61a7d2335b0d24b15cae9d9422b376a948177e6/plone/app/content/browser/contents/paste.py#L41