Internet Methodologies Journal And News

Let's explore internet with imran

MySQL Optimization

myisamchk is used to get information about your database tables or to check, repair, or optimize them. This command can check or repair MyISAM tables. It can also optimize and analyze these tables. Database design, tuning of databases can be used to improve and optimize performance of MySql.

Indexes should be used to increase the performance of MySQl select query. Index on a column can be specified using col_name(n) syntax. Here, n specifies the first ā€œnā€ characters that can be used to create an index. Columns that will be used more often in a select query should be indexed. When a new index is created; MYSQl builds a separate block of information that needs to be updated every time there are changes made to the table.

MySQL optimizes the following way:

  • Removes unnecessary parenthesis
  • Constant expressions used by indexes are evaluated only once
  • Early detection of invalid constant expressions
  • HAVING is merged with WHERE if GROUPBY is not used.
  • The best Join combination is found.
  • Before each row is output, those that do not match the HAVING clause are skipped.
  • Each table index is queried and the best index is used.
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Live
  • StumbleUpon
  • Twitter
  • Yahoo! Bookmarks
  • Add to favorites
  • email
  • LinkedIn
  • Mixx
  • MSN Reporter
  • MyShare
  • MySpace
  • Netvibes
  • PDF
  • Print
  • Reddit
  • RSS
  • Share/Bookmark


Leave a Reply