Skip to content
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
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

Metadata

Labels

good first issueNew-contributor friendlyhelp wantedOpen to participation from the community✨ goal: improvementImprovement to an existing user-facing feature💻 aspect: codeConcerns the software code in the repository🚦 status: awaiting triageHas not been triaged & therefore, not ready for work

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions