10 Query Tuning Techniques Every SQL Programmer Should Know

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ต.ค. 2024
  • Presenters:
    Kevin Kline
    Aaron Bertrand

ความคิดเห็น • 31

  • @adityaroy452
    @adityaroy452 4 ปีที่แล้ว +2

    Great, great watch. I won't say one would materialize on everything told here, but if you are confused on whether you should invest your time in this ~95 mins video, I would definitely recommend it!

  • @anand94087
    @anand94087 9 ปีที่แล้ว +5

    great presentation, very helpful. Thanks

  • @hameed9104
    @hameed9104 7 ปีที่แล้ว +1

    Excellent presentation ,Very Helpful

  • @kenpat5
    @kenpat5 8 ปีที่แล้ว +4

    Great Content! Learned quite a bit...

  • @rambokhan7287
    @rambokhan7287 9 ปีที่แล้ว +3

    @31.40 you did not do a dbccdropcleanbuffers, the second time you ran the query it got read from the cache that is why it went from 11sec to 4 sec.

    • @serhiizhadovets819
      @serhiizhadovets819 9 ปีที่แล้ว +1

      First time they also were in buffer pool. Because when you insert rows these pages are put into puffer pool. They might be not on hard drive but definitely they will be in RAM

  • @dineshmanoharan2423
    @dineshmanoharan2423 4 ปีที่แล้ว

    One thing I disagree is that Checkpoint doesn't clear bufferpool. It just writes the dirty pages to disk and mark them as clean pages in the buffer.

  • @jupiterwar
    @jupiterwar 7 ปีที่แล้ว +1

    Great video indeed, I'm even thinking about put some subtitles so I could translate to the language of my Country....

    • @kevinkline2392
      @kevinkline2392 5 ปีที่แล้ว

      If you do, please let me know and I'll spread the word on social media.

  • @TheAguydude
    @TheAguydude 8 ปีที่แล้ว +2

    @1:16:22 - SQL 2016 adds STRING_SPLIT. Probably table-valued parameters are still better, though.

  • @mendalin123999
    @mendalin123999 5 ปีที่แล้ว

    very nicely explained. do you have something for oracle.. please share

  • @yyyyyc
    @yyyyyc 8 ปีที่แล้ว +2

    Great Lecture !!

  • @SinskariBoi3366three
    @SinskariBoi3366three ปีที่แล้ว

    Advancing career in SE(PLSQL and Oracle, RDBMS) (Bucket list) at 30

  • @PrakashPraaku
    @PrakashPraaku 7 ปีที่แล้ว +1

    Thanks for this great video. Really helpful.

  • @adaylateacoinshort
    @adaylateacoinshort 9 ปีที่แล้ว +2

    Thanks for this. Very useful.

  • @mksktube
    @mksktube 9 ปีที่แล้ว +16

    It's kind of funny seeing the MS SQL guys using the Apple MacBook....

    • @amnindersokhi4817
      @amnindersokhi4817 8 ปีที่แล้ว +5

      You should gain knowledge from them instead of making funn

    • @mksktube
      @mksktube 8 ปีที่แล้ว +2

      When you gain a fraction of my kNNowledge may learn to have some fuNN... Though doubt you'll get ever on my level, so begin learning to have funn... But sure your H1B visa is a prove of the top notch knowledge...

    • @necbranduc
      @necbranduc 8 ปีที่แล้ว

      I think you might need a new keyboard, your N seems to be doubling occasionally in your text. Also, I'd be very curious about your knowledge, I'd like to learn as well. Do you have a blog or somewhere you post your ideas, a fraction of your knowledge?

    • @mksktube
      @mksktube 8 ปีที่แล้ว

      Don't be too curious, I was ordering you in dozens and know exactly what you know...

  • @okeyokafor648
    @okeyokafor648 9 ปีที่แล้ว +1

    So when the estimated # of rows and actual # of rows have a huge difference due to outdated stats, would running UPDATE STATISTICS command take care of this?

    • @kevinkline2392
      @kevinkline2392 5 ปีที่แล้ว

      Yes, exactly the way to fix it!

  • @temesgenneberu2054
    @temesgenneberu2054 6 ปีที่แล้ว +1

    it is realy nice

  • @jasonxu7191
    @jasonxu7191 8 ปีที่แล้ว +1

    Good?

  • @soarindragon603
    @soarindragon603 4 ปีที่แล้ว

    I wonder if a case statement would fix the kitchen sink issue (1:07) if it's even still an issue. Something like this...
    1=case when @CustomerID is null then 1
    when Customer ID = @CustomerID then 1
    Else 0
    end

  • @yiyuan6844
    @yiyuan6844 7 ปีที่แล้ว +1

    MARK

  • @americanexe
    @americanexe 7 ปีที่แล้ว +1

    SQL "programmer" LOL!

    • @erwinekkel9676
      @erwinekkel9676 3 ปีที่แล้ว

      Sql is harder to get right then Javascript, c# or. Net.