Skip to content

DB: some missing indices #873

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

Closed
rfc2822 opened this issue Jul 1, 2024 · 0 comments · Fixed by #890
Closed

DB: some missing indices #873

rfc2822 opened this issue Jul 1, 2024 · 0 comments · Fixed by #890
Assignees
Labels
refactoring Internal improvement of existing functions

Comments

@rfc2822
Copy link
Member

rfc2822 commented Jul 1, 2024

 w: [ksp] /home/runner/work/davx5/davx5/app/src/main/kotlin/at/bitfire/davdroid/db/Collection.kt:42: ownerId column references a foreign key but it is not part of an index. This may trigger full table scans whenever parent table is modified so you are highly advised to create an index that covers this column.
w: [ksp] /home/runner/work/davx5/davx5/app/src/main/kotlin/at/bitfire/davdroid/db/WebDavDocument.kt:33: parentId column references a foreign key but it is not part of an index. This may trigger full table scans whenever parent table is modified so you are highly advised to create an index that covers this column.

The collection field for the push topic should also have an index (maybe it already has).

@rfc2822 rfc2822 added the refactoring Internal improvement of existing functions label Jul 1, 2024
@ArnyminerZ ArnyminerZ linked a pull request Jul 5, 2024 that will close this issue
4 tasks
@ArnyminerZ ArnyminerZ moved this from Todo to In Progress in DAVx⁵ Releases Jul 20, 2024
@ArnyminerZ ArnyminerZ moved this from In Progress to In Review in DAVx⁵ Releases Jul 20, 2024
@github-project-automation github-project-automation bot moved this from In Review to Done in DAVx⁵ Releases Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Internal improvement of existing functions
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants