I have a MySQL database that is continually growing.
Every once in a while I OPTIMIZE all the tables. Would this be the sort of thing I should put a on a cron job daily or weekly?
Are there any specific tasks I could set to run automatically that keeps the database in top performance?
Thanks
Ben
You can optimize your tables inside database by executing this query:
This will suggest
Optimal_fieldtypeto use, You have to ALTER your database so thatoptimal
field_typehas been used.Also, You can profile your queries inorder to make sure that proper indexing has been done on a table.
I suggest you try SQLyog which can let you know both “Calculate Optimal Datatype” and “SQL Profiler” which will definately help you in optimizing server performance.