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

fix(mobile): use sets in album refresh, concurrent futures #14193

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

mertalev
Copy link
Contributor

@mertalev mertalev commented Nov 17, 2024

Description

Some of the logic in the album refresh has exponential complexity. I changed the selected and excluded IDs to sets to make it scale better with album count. I'm not sure how much of an impact it will have, but it may help with the issues with many albums.

Also changed some futures to happen concurrently to speed things up further. I only did this for read operations since I'm not familiar enough with the code to know if concurrent write operations are safe.

@mertalev mertalev changed the title fix(mobile): use sets in album sync, concurrent futures fix(mobile): use sets in album refresh, concurrent futures Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant