Explain the options of myisamchk to improve the performance of a table.

Answer

Myisamchk has a couple of options to optimize a table.

  • Using myisamchk –r table_name, runs myisamchk in recovery mode. This option combines the fragmented rows and gets rid of wasted space.
  • --Analyze, -a is used for analyze the distribution of key values.
  • --sort-index, -S – Sorts index tree.
  • --sort-records=index_num, -R index_num – sorts recods according to particularr index.

All sql dba Questions

Ask your interview questions on sql-dba

Write Your comment or Questions if you want the answers on sql-dba from sql-dba Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---