Skip to content

Database cleanup#16

Draft
luigi311 wants to merge 2 commits into
FuriLabs:trixiefrom
luigi311:database_cleanup
Draft

Database cleanup#16
luigi311 wants to merge 2 commits into
FuriLabs:trixiefrom
luigi311:database_cleanup

Conversation

@luigi311

@luigi311 luigi311 commented Jan 28, 2025

Copy link
Copy Markdown
Contributor

Improves startup performance by grabbing the last media item in a album via sql instead of pulling all of them and reverse sorting.

Separates out the database cleanup steps that way it can be called more consistently.

Seperate out the database cleanup steps for a more consistant
usage in different places

Signed-off-by: Luis Garcia <git@luigi311.com>
Instead of returning all media paths from the database and sorting
in python do it via sql with an index for a faster and more consistent
experience.

Signed-off-by: Luis Garcia <git@luigi311.com>
@luigi311
luigi311 marked this pull request as draft January 28, 2025 06:10
@luigi311

Copy link
Copy Markdown
Contributor Author

this has a problem according to joaquin

not sure why, when you clear cache and delete database, when you open the app, it doesnt show the "last" item in the directory, but it seems to get the "current last" .

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

Successfully merging this pull request may close these issues.

1 participant