From the course: Advanced SQL for Data Scientists

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Optimize a query using an explain plan

Challenge: Optimize a query using an explain plan

From the course: Advanced SQL for Data Scientists

Start my 1-month free trial

Challenge: Optimize a query using an explain plan

(bright music) - [Instructor] Let's consider a challenge around query performance optimization. So imagine that a colleague has asked you to help them analyze a long-running query that they're working with. Now you take a quick look and you realize, okay, the query has three tables and two left joins. Two of the tables have over 500,000 rows and one table has 200 rows. So given that, how would you proceed to improve the query performance?

Contents