Skip to content

Pasting objects takes a long time #1934

Description

@wesleybl

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:

for parent, ids in parents_ids.items():
result = self.context.manage_pasteObjects(
cb_copy_data=self.clipboard(parent, ids)
)

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions