Search Results should be loaded using fewer REST requests #3163
Labels
affects: 7.x
Issue impacts 7.x releases
affects: 8.x
Issue impacts 8.x releases
bug
component: Discovery
related to discovery search or browse system
performance / caching
Related to performance, caching or embedded objects
Describe the bug
In 7.x and 8.x, when a user searches the system, this makes many calls to the REST API to load all the required information to display on the search page. Currently, it first loads the results, then each facet (one by one), then any thumbnails and "accessStatus" (if enabled). We should be able to decrease the number of calls made on this page.
Here's what it looks like on the sandbox.dspace.org in Chrome DevTools when running a search on "test":
We should be able to minimize the number of calls here by using Projections (
embed
parameter). It may still be necessary to load thumbnails individually though.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Ideally, better usage of projections should allow us to load all this information in fewer REST requests. If additional endpoints need to be added to the REST API to support this behavior, then we should add them.
The text was updated successfully, but these errors were encountered: