This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
Cache waveform data #490
Closed
Description
Problem
Fetching waveform data from the API currently generates the waveform on every hit.
Description
This should be cached to only be calculated the first time the waveform for an audio is requested.
We can use any caching strategy we want, but it'll have to be cached on disk rather than memory (I would think) to avoid filling up RAM and forcing the main application processes to use swap. Could we just cache it directly in the DB?
Django supports many caching strategies that allow using the Django provided cache
object: https://docs.djangoproject.com/en/4.0/topics/cache/
Additional context
Implementation
- 🙋 I would be interested in implementing this feature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment