Support

Admin Tools

#30320 optimize table

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by toonetcreation on Wednesday, 03 October 2018 04:16 CDT

toonetcreation
Hello,

I have some question regarding OPTIMIZE TABLE feature provided by AdminTools.

1) what this feature is doing exactly?

2) is there any possibility to schedule it through crontab for example, instead of connecting to admin back-end and clicking manually ?

3) if no regarding question 2, is there an equivalent with MySQL command or what can you advice ?

Thanks for your help
L.

tampe125
Akeeba Staff
Hello,

at the end of the day, database tables are just files on disk containing organized data. Every single operation on the table creates a little of "mess" with those organized files, so from time to time it's a good habit to let MySQL tidy up everything and restore a clean status.
This won't affect your data (ie you won't lose users or information), it's merely an internal operation to boost performance.

That said, you can schedule Admin Tools to do that automatically using a CRON, the logic is the same of the PHP File Scanner, you only have to change the target file with admintools-dbrepair.php.

The equivalent command in MySQL is (surprise surprise) OPTIMIZE table_name. You can run this query by yourself using phpMyAdmin, but you'll have to do that manually for each table, there isn't a "optimize all" button.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

toonetcreation
hello,

many thanks for your answer, I understand perfectly.

I will so schedule a cronjob with admintools-dbrepair.php file

thanks again
L.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!