Tiffany B. Brown

A web log about web development and internet culture with frequent detours into other stuff.
NYPHP Conference: Day 1, 8:28 a.m.
NYPHP Con: “Maximum Velocity MySQL” - Optimization and coding tips

NYPHP Con: “Maximum Velocity MySQL” - Indexes and storage engines

With Jay Pipes of MySQL. Diversity stats, in case you’re wondering: Men: about 30. Women: 4. People of color: 4.

Jay Pipes is the Community Relations Manager, North America for MySQL, Inc. This was a three-hour tutorial about ways to fine-tune your MySQL queries.

This is part one of my notes. This post may contain inaccuracies, typos, boo-boos, etc. Jay says his slides will be available on his web site, so be sure to check there as well. If you have questions, direct them to Jay or consult the MySQL documentation.

Indexes

The kind of indexes available and their efficiency depends on the type of storage engine you choose. Keep your indexes slim on write-intensive applications.

Types of storage engines

Choose your table’s storage engine type based on the type of information it holds, and the function for which you will use the table. Can mix table types in the same database.

MyISAM

Good for warehousing data, logging data and auditing data.

InnoDB

Good for when you need a lot of concurrent updates and will be looking data up by ID. Good for online transaction processing.

Archive

Good for archiving, audit logging, and distributable media (for example, applications that you don’t want the user to be able to modify).

Memory / HEAP

Great for temporary tables, session data, calculation tables, or information that will be requested frequently.

Can combine engine types within the database to take advantage of each storage engine’s strengths.

Share this entry:
  • Digg
  • Technorati
  • del.icio.us
  • Ma.gnolia
  • Mixx
  • NewsVine
  • Reddit
  • StumbleUpon
  • TailRank
  • Furl
  • Slashdot
  • Global Grind
  • YahooMyWeb
  • Facebook
  • Google
  • Live
Comments are closed.
previous post: NYPHP Conference: Day 1, 8:28 a.m.
next post: NYPHP Con: “Maximum Velocity MySQL” - Optimization and coding tips