This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
Cache waveform data #490
Labels
💻 aspect: code
Concerns the software code in the repository
✨ goal: improvement
Improvement to an existing user-facing feature
good first issue
New-contributor friendly
help wanted
Open to participation from the community
🚦 status: awaiting triage
Has not been triaged & therefore, not ready for work
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
The text was updated successfully, but these errors were encountered: