Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operations: Allow updating the same entity multiple times in one batch (operations) #282

Open
martastain opened this issue Jul 18, 2024 · 0 comments
Assignees

Comments

@martastain
Copy link
Member

operations endpoint prevents duplicate targets tuple(entity_type, entity_id) for update and delete operations,
since entity is loaded first using SELECT FOR UPDATE.

#74

To lift this limit, we could reuse existing entity instances (keep all opened entities in a cache for the entire request lifecycle). That would require a refactoring of the endpoint.

Possible use case:

  • change name folder-a ➝ tmp111
  • change name folder-b ➝ folder-a
  • change name tmp111 ➝ folder-b
@martastain martastain added the type: feature Adding something new and exciting to the product label Jul 18, 2024
@martastain martastain self-assigned this Jul 24, 2024
@martastain martastain removed the type: feature Adding something new and exciting to the product label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant