rero / rero-ils

Integrated Library System flavour of Invenio by RERO+.
http://ils.test.rero.ch
GNU Affero General Public License v3.0
73 stars 25 forks source link

Holdings with many items are very slow to load #3759

Open PascalRepond opened 1 month ago

PascalRepond commented 1 month ago

How it works

Certain holdings have hundreds of items and loading their permissions to display the buttons can be very long.

Loading the holdings detailed view is also quite slow, and displaying a specific item can be very difficult if it is down in the list (linked to https://github.com/rero/rero-ils/issues/3392).

Examples: This document (https://bib.rero.ch/professional/records/documents/detail/207507) has a holdings with 500+ items, the document detailed view can take more than a minute to fully load because of the API requests for permissions to display the buttons (delete, edit, etc.). This request alone (https://bib.rero.ch/api/permissions/holdings/348979?current_library=23) takes more than 30 seconds.

Improvement suggestion