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

Automatically run occ db:add-missing-indices #16

Open
strugee opened this issue Oct 8, 2024 · 4 comments
Open

Automatically run occ db:add-missing-indices #16

strugee opened this issue Oct 8, 2024 · 4 comments

Comments

@strugee
Copy link

strugee commented Oct 8, 2024

Warning from the admin overview page:

The database is missing some indexes. Due to the fact that adding indexes on big tables could take some time they were not added automatically. By running "occ db:add-missing-indices" those missing indexes could be added manually while the instance keeps running. Once the indexes are added queries to those tables are usually much faster. Missing optional index "tables_columns_t_id" in table "tables_columns". Missing optional index "tables_row_sleeves_t_id" in table "tables_row_sleeves". Missing optional index "tables_tables_ownership" in table "tables_tables".

On my personal instance, these have never taken that long (on the order of minutes, if not seconds). I have several million files.

@strugee
Copy link
Author

strugee commented Oct 8, 2024

Hmm. Apparently this is supposed to already work?

php occ db:add-missing-indices

@ramereth
Copy link
Contributor

ramereth commented Oct 8, 2024

@strugee yeah, that should get run when an upgrade happens

@strugee
Copy link
Author

strugee commented Oct 9, 2024

Funky. Seems to have not worked on the last upgrade.

@ramereth
Copy link
Contributor

ramereth commented Oct 9, 2024

@strugee do you recall when the last upgrade happened? I can take a look at the log and see.

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

2 participants