Skip to content
MariaDB and MySQL — what statistics optimizer needs (froscon2019) episode artwork

Aug 10, 2019 26 min

MariaDB and MySQL — what statistics optimizer needs (froscon2019)

from Chaos Computer Club - archive feed Hosted by Sergei Golubchik

In this talk you'll learn what data statistics MariaDB and MySQL can collect, what statements do that, how to tell the optimizer to use it (it won't necessarily do it automatically!) and how it can make your queries many times faster. When your SQL query reaches the DBMS, it's the optimizer's job to decide how to execute it for you to get the result as fast as possible. To make this decision optimizer can examine the actual table data, but with multi gigabyte and terabyte tables, the only practical solution is to use various data statistics that were collected in advance. The better the statistics and the more precisely it describes the actual data, the faster the plan will be, because the optimizer image of reality will be closer to the actual reality. In this talk you'll learn what data statistics MariaDB and MySQL can collect, what statements do that, how to tell the optimizer to use it (it won't necessarily do it automatically!) and how it can make your queries many times faster. And, of course, when not to use indexes, when up-to-date statistics is enough. about this event: https://programm.froscon.de/2019/events/2343.html

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

MariaDB and MySQL — what statistics optimizer needs (froscon2019)

0:00 26:11

No transcript yet.

Requests help us decide what to transcribe next.

Frequently asked questions

How long is this episode of Chaos Computer Club - archive feed?

This episode is 26 minutes long.

When was this Chaos Computer Club - archive feed episode published?

This episode was published on August 10, 2019.

Can I download this Chaos Computer Club - archive feed episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.