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

Adding to Resources to large Resource collection takes a long time #3592

Open
Ian-BD opened this issue May 10, 2023 · 0 comments
Open

Adding to Resources to large Resource collection takes a long time #3592

Ian-BD opened this issue May 10, 2023 · 0 comments

Comments

@Ian-BD
Copy link

Ian-BD commented May 10, 2023

So a client of mine noted it was taking a long time to add resources to a collection they've been working on, after taking a look I spotted that when adding a resource, the API seems to PUT the state of the Resourse collection, which means as a collection grows it progressively gets slower and slower.

Expected Behavior

I would expect that when adding a resource the API simply adds the relevant resource to the collection.

Current Behavior

In our case a very large collection of over 3000 resources are all present in the PUT request

Possible Solution

I think the simplest solution would be to have API calls to remove and add things to the collection.

Steps to Reproduce

  1. Create a resource collection
  2. Add Resources to the collection
  3. Note that every time one more is added the request get's larger and takes longer.

Context (Environment)

Our client has been using a large resouce collection and over time it's becoming harder and harder to manage as it takes longer and longer to add resources, the actualy collection itself loads fine on the front-end as the results are paginated.

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