Skip to content

Global search api call causes instances api service to crash #3873

@finnar-bin

Description

@finnar-bin

Problem

When loading manager-ui on specific instances with huge amounts of content items the instances api service crashes and restarts.

Upon investigation, on load there is an api call to /search/items?q=&limit=10000, the 10k limit is quite huge, there are times that the api eventually responds and the raw resource size is 100mb+. Refreshing this instance several times would sometimes cause the instances api service to crash and restart.

Screenshots

Image

Steps to reproduce

Steps to reproduce the behavior:

  1. Go to a customer instance with a lot of content items
  2. Check network tab, on manager-ui load, there is an api call to the search endpoint with 10k limit
  3. Leave it to try and resolve the response for a minute or so
  4. Refresh the page then leave it again for a minute or so
  5. Doing this over and over would eventually take down the service and the api calls to the instances api end up in CORS errors

Expected behavior

The limit should be lowered down as 10k is too much

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions