MySQL Users Conference 2006 “MySQL is at the heart of revolutionary changes in computer history.“—Tim O'Reilly
 Co-presented by O'Reilly Media, Inc. and MySQL AB
 Conference Coverage

Session

Speeding-up Queries: New Features of the MySQL 5.0 Query Engine

Timour Katchaounov, Software Developer, MySQL

Track: Performance Tuning and Benchmarks
Date: Wednesday, April 26
Time: 11:00am - 12:35pm
Location: Ballroom C

One of the main benefits of database technology is the declarative SQL interface to access—one tells a DBMS what is needed and the DBMS automatically finds a way to efficiently retrieve the requested data. As with every other modern DBMS, MySQL has a component, called the "query optimizer," that performs this complex discovery task.

The first part of this talk describes the main principles behind MySQL's query optimizer and execution engine, how the optimizer transforms queries into executable query plans, what these plans look like, and how they are executed.

The second part of the talk describes the major improvements in the query engine of MySQL 5.0, and how these improvements can benefit the users of MySQL 5.0. The "greedy" optimizer reduces compilation time for big queries with orders of magnitude. The "index merge" access method provides a way to use more than one index for the same query. Through "equality propagation" the optimizer discovers automatically new conditions that allow it to discover better indexes and better join orders. For faster plan execution and to allow better join orders, the 5.0 optimizer transforms most outer joins into inner joins. The outer joins that cannot be transformed into inner ones are executed in a pipeline manner, so that no intermediate results need to be materialized. Finally, some GROUP BY and DISTINCT queries can be executed much faster thanks to "loose index scan" technique that reads only a fraction of an index.

Talk concludes with the near-future plans for new optimizer features coming in the next versions of MySQL.



Diamond Sponsor

Business Objects
Hewlett Packard

Platinum Sponsors

Four J's Development Tools, Inc
GoldenGate Software, Inc.

Gold Sponsors

Actuate Corporation
Cleversafe
Continuent
Data Direct Technologies
Dell Inc.
Dolphin Interconnect Solutions
Embarcadero Technologies
EMC Centera
IBM
JasperSoft
Lumen Software
Novell, Inc.
Pentaho
Rackspace Managed Hosting
Red Hat
Solid
SugarCRM
Sun Microsystems
The SCO Group
Unisys
Zmanda, Inc.

Media Sponsors

Conference Guru
Database Trends and Applications
DevtownStation News
IPTV Industry
Linux Journal
LinuxQuestions.org
MacMinute
Methods and Tools newsletter
Mixi.jp
Queue
SDForum
Sys Admin magazine
The ServerSide
The Women's Technology Cluster
VoIP-News
Web Host Industry Review
WiMAX Industry
WITI

In-Kind Sponsors

Griffin Technology
RoundaboutFive.com
SkinIT

Sponsor Opportunities

For information on exhibition and sponsorship opportunities at the conference, contact us at

Download the MySQL Users Conference Sponsor/Exhibitor Prospectus

Conference News

To stay abreast of conference news and to receive email notification when registration opens, please sign up here.

Press and Media

For media-related inquiries, contact Suzanne Axtell at

Copyright MySQL AB and O'Reilly Media, Inc.
MySQL O'Reilly