I have noticed in phpMyAdmin you can click ‘optimise’ on tables, and it runs:
OPTIMIZE TABLE table_name
What does this actually do?
Should I have some cron job running daily that runs OPTIMIZE TABLE on my tables?
Thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From InformIT
Think of it like defragging your tables. A cron job might be a good idea, but do it during low/no load as it locks the tables.