Skip to content

fix(db-usage): fix DB index usage query - #64630

Open
Altahrim wants to merge 1 commit into
masterfrom
fix/db-index-usage
Open

Altahrim wants to merge 1 commit into
masterfrom
fix/db-index-usage

Conversation

@Altahrim

Copy link
Copy Markdown
Collaborator

Summary

occ command db:index-usage is failing with:

Failed to query index usage statistics. The required performance tables may not be available on this database version.
Details: An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'reads,
                           s.count_write AS writes
                FRO...' at line 3

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
@Altahrim Altahrim added this to the Nextcloud 36 milestone Sep 21, 2026
@Altahrim Altahrim self-assigned this Sep 21, 2026
@Altahrim
Altahrim requested a review from a team as a code owner September 21, 2026 14:16
@Altahrim Altahrim added bug 3. to review Waiting for reviews labels Sep 21, 2026
@Altahrim
Altahrim requested review from CarlSchwan, icewind1991, leftybournes and salmart-dev and removed request for a team September 21, 2026 14:16
@Altahrim

Copy link
Copy Markdown
Collaborator Author

/backport to stable35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants