Skip to content

Top 10 MySQL Tips and Tricks

1) Optimize your WHERE clause.

  • Remove unnecessary parentheses, this will speed up evaluation
  • COUNT(*) on a single table without a WHERE is retrieved directly from the table information for MyISAM and MEMORY tables, but NOT Innodb tables. Beware.
  • If you use the SQL_SMALL_RESULT option, MySQL uses an in-memory temporary table

One Comment

  1. Erick wrote:

    I think it missing something here

    Saturday, January 22, 2011 at 7:10 pm | Permalink

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*

CommentLuv badge