Pasting objects takes a long time
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 109
- Forks
- 107
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 4
Description
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:
Doesn't this slow down the operation?
I see that in Plone Classic it is called only once:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in src/plone/restapi/services/copymove/copymove.py at lines 82-85 and compare the single-call flow in plone/app/content/browser/contents/paste.py at line 41. Determine how multiple pasted objects are passed through the REST endpoint and whether the operation can avoid calling manage_pasteObjects once per object; done means multi-object pasting preserves its behavior without the repeated-call slowdown.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100