Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do some caching to speed up subsequent runs #4

Open
artyuum opened this issue May 1, 2024 · 0 comments
Open

Do some caching to speed up subsequent runs #4

artyuum opened this issue May 1, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@artyuum
Copy link
Owner

artyuum commented May 1, 2024

The following steps can take very long depending on the library's size:

  1. fetching every saved track (long)
  2. fetching every saved album along with their tracks (longer)

We can imagine caching these data into a small & simple SQLite database. Regarding the second step, we will still need to query the Spotify API to get a list of the saved albums, but only their tracks will be cached (this should drastically speed up this step).

The end-user will be able to pass the --no-cache option to disable caching.

@artyuum artyuum added the enhancement New feature or request label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant