rfcx / rfcx-api

Core, Media/Assets and MQTT APIs
https://api.rfcx.org/docs/
Apache License 2.0
0 stars 0 forks source link

CNN - cache the spectrogram image #603

Closed naluinui closed 4 months ago

naluinui commented 4 months ago

Background

In validation page, it took quite long to load spectrogram image. It's requesting spectrogram every time the user come into the page, swap between page, change filters, etc.

It would be nice if we can implement caching mechanism so that it's saving the load time of the page.

Expected outcome

Make change on Media API to cache these blobs image data

Image

naluinui commented 4 months ago

I'll be bringing this up in the next EC call

grindarius commented 4 months ago

I've had a chat with Frongs and tested it out on the CNN page and found that this problem does not occur anymore. The caches are being served just fine when navigating back to previous detections page. The cache is being set at 600 seconds as well. Not milliseconds.

naluinui commented 4 months ago

Tested it and seems to work ok