SciCatProject / frontend

SciCat open data catalogue web client
https://scicatproject.github.io
BSD 3-Clause "New" or "Revised" License
23 stars 23 forks source link

Investigate batching thumbnail requests #1500

Open nitrosx opened 2 weeks ago

nitrosx commented 2 weeks ago

Currently the Datasets list page for a list of n datasets perform n+1 requests to the backend. One request for the datasets list and n requests to retrieve the thumbnail for each dataset listed.

Can we refactor the code to requests m thumbnails in a single request? Pros and Cons

Ingvord commented 2 weeks ago

Another option is to ensure http2 and do server side push. There is also already a newer version of http - http3, not sure if it is wide spread though, definitely present in Google based products under code name QUIC, basically an enhanced transport protocol

On Wed, Jun 12, 2024, 18:12 Max Novelli @.***> wrote:

Currently the Datasets list page for a list of n datasets perform n+1 requests to the backend. One request for the datasets list and n requests to retrieve the thumbnail for each dataset listed.

Can we refactor the code to requests m thumbnails in a single request? Pros and Cons

— Reply to this email directly, view it on GitHub https://github.com/SciCatProject/frontend/issues/1500, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACZDFHAESUCA6MJUSH7YTXDZHBXPZAVCNFSM6AAAAABJGV3ZZCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2DSMJWGE3DCMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>