Starburst Galaxy and Starburst Enterprise platform (SEP) are fast, but there are still many opportunities to make them even faster, depending on how you write your queries.
Learn how to use EXPLAIN
and ANALYZE
to improve your query performance in
this training video presented by one of our founders, Martin Traverso. For your
convenience, we’ve divided the video training course up into topic sections, and
provided links to the relevant parts of our documentation below.
Knowing what’s happening under the hood in SQL can help you to write queries that capitalize on possible optimizations and avoid approaches that will cost you performance. This section provides an overview of what happens as a query is executed.
If you want to understand what the Trino query engine is basing its
decisions on as it executes a query, use the EXPLAIN
statement.
This section walks you through this very informative tool in detail.
EXPLAIN
(Starburst Galaxy
or SEP )EXPLAIN
vs EXPLAIN ANALYZE
(Starburst Galaxy
or SEP )EXPLAIN ANALYZE
(SEP )The content in this section is more technique-oriented, and is a complex subject. We strongly suggest watching it all the way through thoroughly first to gain a broad awareness of how you write a query can affect its performance before trying these on your own. For further reading, we recommend our SEP pushdown documentation.
The SQL engine relies on table statistics to make decisions on optimizations. Enabling dynamic filtering can take optimizations even further. We recommend reading about these powerful features to ensure you are getting the best performance possible out of your SEP cluster. With Starburst Galaxy, this is handled for you:
SEP offers several properties to control how the optimizer handles certain operations. With Starburst Galaxy, this is handled for you.
This section presents on overview of how cost-based optimizations work in Starburst clusters, and provides context for the following recommended reading:
Is the information on this page helpful?
Yes
No