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

Paginate library getter #8

Open
arrudagates opened this issue Feb 25, 2022 · 0 comments
Open

Paginate library getter #8

arrudagates opened this issue Feb 25, 2022 · 0 comments

Comments

@arrudagates
Copy link
Owner

Right now, the get_library function waits until it has the whole library to display it to the user, freezing the rendering in the process. This is fine for small libraries, but testing with my almost 700 tracks library makes it freeze for 10 to 15 seconds before anything happens after the library command runs.
The solution to this is paginating the command, so we fetch a fixed number of tracks from the library and fetch more when the user starts approaching the end of the current page's list/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant