What to Look for in Execution Plans: Databases for Developers: Performance #3

  Рет қаралды 16,068

The Magic of SQL

The Magic of SQL

Күн бұрын

You've got the plan for your SQL statement. But what do you need to change to make it faster?
This video shows you how to add I/O information to the plan. This enables you to see which steps consume the most resources, and thus where you need to focus your tuning efforts.
Need help with SQL?
Ask us over on AskTOM: asktom.oracle.com
Twitter: / chrisrsaxon
Daily SQL Twitter tips: / sqldaily
All Things SQL blog: blogs.oracle.c...
Test your SQL Skills on the Oracle Dev Gym: devgym.oracle....
============================
The Magic of SQL with Chris Saxon
Copyright © 2020 Oracle and/or its affiliates. Oracle is a registered trademark of Oracle and/or its affiliates. All rights reserved. Other names may be registered trademarks of their respective owners. Oracle disclaims any warranties or representations as to the accuracy or completeness of this recording, demonstration, and/or written materials (the “Materials”). The Materials are provided “as is” without any warranty of any kind, either express or implied, including without limitation warranties or merchantability, fitness for a particular purpose, and non-infringement.

Пікірлер: 15
@chocOneOOne
@chocOneOOne 3 жыл бұрын
as usual Chris' lego game is on point
@atulgupta9301
@atulgupta9301 Жыл бұрын
Very well explanation
@amitkaushik3569
@amitkaushik3569 4 жыл бұрын
Nice explanation.
@albertogonzalez5114
@albertogonzalez5114 4 жыл бұрын
very useful, thanks!
@VEERSINGH-er9so
@VEERSINGH-er9so 4 жыл бұрын
Great explanation !
@a.useronly2266
@a.useronly2266 4 жыл бұрын
Amazing
@hindimotivation5231
@hindimotivation5231 4 ай бұрын
I am not able to understand the autotrace part where view part individual elapsed time is 728 micro seconds. How this was calculated , Please elaborate. Thankyou.
@hindimotivation5231
@hindimotivation5231 4 ай бұрын
One more doubt , in 3rd sort operation why it dont have any elpsed time as you said in video.
@TheMagicofSQL
@TheMagicofSQL 4 ай бұрын
I'm not sure exactly what you're referring to - please clarify. In any case, this value comes from the database measuring how long the operation took.
@TheMagicofSQL
@TheMagicofSQL 4 ай бұрын
Again, I'm not sure exactly what you're referring to.
@ikacherful
@ikacherful 3 жыл бұрын
Somewhat newbie DBA here. This information is beyond helpful - thank you so so much Chris!! I have a question about Oracle SQL Developer - is it possible to run autotrace without actually executing the SQL statement as well (I'm working with big tables in production)? I know it is possible through SQLPlus via traceonly option, just cannot tell if it's possible in Oracle SQL Developer as well. -Thank you
@TheMagicofSQL
@TheMagicofSQL 3 жыл бұрын
To get the plan's execution stats you have to run the SQL statement! set autotrace traceonly in SQL*Plus does execute the query, it just suppresses the output. The autotrace option in SQL Developer also executes the query, but there's no option to see the results. If you have a long-running query and you want to see the plan before it finishes, check out the SQL monitor. You can access this in SQL Dev via Tools -> Monitor SQL. Note you need appropriate licenses to use this!
@ikacherful
@ikacherful 3 жыл бұрын
@@TheMagicofSQL I see, I will definitely try this option. Thank you!!! I really appreciate it.
@ThuNguyen-g6b9b
@ThuNguyen-g6b9b 8 ай бұрын
goddang this is gold
@TheMagicofSQL
@TheMagicofSQL 8 ай бұрын
Thanks! Glad you found this useful
How to Create Database Indexes: Databases for Developers: Performance #4
12:47
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 31 МЛН
didn't manage to catch the ball #tiktok
00:19
Анастасия Тарасова
Рет қаралды 31 МЛН
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 84 МЛН
когда не обедаешь в школе // EVA mash
00:51
EVA mash
Рет қаралды 4,4 МЛН
Using DBMS_XPLAN.DISPLAY_CURSOR to examine execution plans
12:33
Maria Colgan (SQLMaria)
Рет қаралды 35 М.
What are Optimizer Statistics? Databases for Developers: Performance #2
11:19
SQL Server Execution Plan Basics
17:26
Kevin Hill
Рет қаралды 53 М.
The five-step guide to SQL tuning | CloudWorld 2022
25:59
Oracle
Рет қаралды 20 М.
Interpreting execution plans in Oracle Part 1
26:04
Prashant Dixit
Рет қаралды 4,3 М.
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 31 МЛН