The Wayback Machine - https://web.archive.org/web/20220409083827/https://github.com/nextcloud/nextcloudpi/issues/989
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

Optimize database with mysqlcheck #989

Open
feutl opened this issue Sep 4, 2019 · 1 comment
Open

Optimize database with mysqlcheck #989

feutl opened this issue Sep 4, 2019 · 1 comment

Comments

@feutl
Copy link

@feutl feutl commented Sep 4, 2019

After running NC with NCP for more then a year with over 2 million files stored on it, I asked myself if the mysql/mariadb DB needs to be maintained?
I searched the internet and the simplest solution I found was using

sudo mysqlcheck -o --all-databases

This reduced the DB size from around 950MB to a little over 800MB and NC seems to be a little more responsive (but this could homeopathic as well)

Any, would it make sens to extend NCP with an "DB Optimize" option?

5 Days after the optimization plus an upgrade to NC 16.0.4 I am still under 850MB. I am fetching the information via ocs_data_server_database_size provided by serverinfo.

@nachoparker
Copy link
Member

@nachoparker nachoparker commented Sep 6, 2019

not a bad idea!

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