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

Sdílet
Vložit
  • čas přidán 3. 06. 2020
  • 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.com/sql/
    Test your SQL Skills on the Oracle Dev Gym: devgym.oracle.com/
    ============================
    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.
  • Věda a technologie

Komentáře • 17

  • @aidancoxx3901
    @aidancoxx3901 Před rokem +2

    pure gold great explanation and genius method to demostrate the concepts -- watched a few youtube items in this area and usually more confused afterwards --- not here --- thank you!

    • @TheMagicofSQL
      @TheMagicofSQL  Před rokem

      You're welcome, glad this cleared things up for you

  • @amitkaushik3569
    @amitkaushik3569 Před 4 lety +2

    Nice explanation.

  • @albertogonzalez5114
    @albertogonzalez5114 Před 4 lety +2

    very useful, thanks!

  • @atulgupta9301
    @atulgupta9301 Před rokem +1

    Very well explanation

  • @chocOneOOne
    @chocOneOOne Před 3 lety +1

    as usual Chris' lego game is on point

  • @a.useronly2266
    @a.useronly2266 Před 4 lety +2

    Amazing

  • @VEERSINGH-er9so
    @VEERSINGH-er9so Před 3 lety +2

    Great explanation !

  • @user-jt8if9xx9v
    @user-jt8if9xx9v Před 5 měsíci

    goddang this is gold

  • @ikacherful
    @ikacherful Před 3 lety +1

    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  Před 3 lety +4

      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 Před 3 lety

      @@TheMagicofSQL I see, I will definitely try this option. Thank you!!! I really appreciate it.

  • @hindimotivation5231
    @hindimotivation5231 Před měsícem

    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 Před měsícem

      One more doubt , in 3rd sort operation why it dont have any elpsed time as you said in video.

    • @TheMagicofSQL
      @TheMagicofSQL  Před měsícem

      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  Před měsícem

      Again, I'm not sure exactly what you're referring to.