pro document detailed view: optimize item loading #3400
Labels
developers
From a developer point of view.
enhancement
Improvement of an existing feature
performance
How it works
When loading holdings/items in the document detailed view, many ES queries are used to check the permissions for the delete buttons beacause the holdings'
reasons_not_to_delete
must check that all items can be deleted. For holdings with many items, this can lead to thousands of ES queries on page loading. Some of these queries are useless or redundant and could be better optimized.Example for a document with many items: https://bib.rero.ch/professional/records/documents/detail/460668
Improvement suggestion
links_to_me
method allowing to not take into account the links fromlocal_fields
and use it inreasons_not_to_delete
for documents, holdings and items.reasons_not_to_delete
for every item but instead build 3 ES queries (loans, fees, collections) for all items?The text was updated successfully, but these errors were encountered: