A Little About Sort Spills And IO_COMPLETION waits In SQL Server

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024
  • Become a member! / @erikdarlingdata If you like what you see here, you'll love my advanced performance tuning training:
    training.erikd...
    Paul White AKA Pablo Blanco's post about Batch Mode sort spills: www.sql.kiwi/2...
    SQL Server feedback issue about fixing them: feedback.azure... Click here for 50% off a health check: training.erikd...

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

  • @artbart9080
    @artbart9080 3 หลายเดือนก่อน +1

    Very informative video.Thank you!

  • @WahooNo2
    @WahooNo2 3 หลายเดือนก่อน +1

    Great video!

  • @madzebra5491
    @madzebra5491 3 หลายเดือนก่อน +1

    +1

  • @brainsniffer
    @brainsniffer 3 หลายเดือนก่อน +1

    Sometime, it’d be interesting to see an experts take on doing something like making the engine work out what columns it needs for joins and stuff - virtualise the tables, pull and sort the crucial columns and map them back to the unsorted data and then do final lookups on final output. Surely it’d be faster with more memory available these days than sorting each and every step, especially with parallel collection sorts etc. Thanks for the background and stuff. Also, Built to Spill is great.

    • @ErikDarlingData
      @ErikDarlingData  3 หลายเดือนก่อน

      I think the main issue with schemes like that is ensuring consistent data. For example, Key Lookups require object-level Shared locks (which are incompatible with many other types of locks) to prevent data from changing while N number of lookups are occurring between the nonclustered and clustered indexes.
      Outside of a snapshot isolation level, that is quite difficult to achieve without a blocking nightmare.

  • @Lee-vl2wx
    @Lee-vl2wx 3 หลายเดือนก่อน +1

    Neat, don't stop making these.

    • @ErikDarlingData
      @ErikDarlingData  3 หลายเดือนก่อน

      I'm about to record one!

  • @douglascoats7081
    @douglascoats7081 3 หลายเดือนก่อน +1

    What kind of mood do you have to be in to listen to Bela Lugosi Is Dead? good stuff as always

  • @Rad343
    @Rad343 3 หลายเดือนก่อน +1

    You go Coco!