MySQL stored routines (functions, procedures, triggers and events) can be useful. But many casually written stored routines are unnecessarily slow. The main reason is that MySQL does not apply even simple code optimizations to stored routine code. Many developers are not aware of this, and as a result, write stored routine code that can quite easily be tuned, increasing performance by 50%-100% by only applying very straightforward code optimizations.

During this session, I will present a few real-world stored routines. Most of them were at some point sent to me by users running these procedures in production environments. I will demonstrate a few step-wise improvements, and show graphs to illustrate the effect on performance. The goal of the session is to make developers aware of potential issues in their own stored procedures, and have them takeaway a few practical solutions to avoid these issues in the first place.

People planning to attend this session also want to see:

Roland Bouman

XCDSQL Solutions / Strukton Rail

I studied Molecular Biology, but I’m professionally occupied as Web Application Developer, Information and Business Process Analyst, and Business Intelligence Guy. I have worked for Inter Access, MySQL AB, Sun Microsystems, and I currently work for Strukton Rail.