Annoyances With Filtered Indexes And Computed Columns In SQL Server

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ต.ค. 2024

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

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

    With that sort of subscription money, you can get yourself a Chipotle meal or two. Sorry that it's so low, Erik. (Chipotle ads incoming in ......)
    I appreciate the videos and look forward to seeing you in a couple of days.

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

      Ha ha, looking forward to it!

  • @hentan4912
    @hentan4912 2 หลายเดือนก่อน +1

    Interesting video, good job)

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

      Thank you kindly! Appreciate the feedback.

  • @FlaggedStar
    @FlaggedStar 2 หลายเดือนก่อน +1

    3:55 A coverage of the most fun new error messages in SQL Server 2022 would make for a very fun read. Do you have a blog post on this?

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

      I have one from ages ago for messages that were new to SQL Server 2022. I don’t think anything else though.

  • @clerincg
    @clerincg 2 หลายเดือนก่อน +2

    Erik - What Query Plan would be used if we asked WHERE (TotalVotes > 10000) versus using the sum of u.UpVotes + u.DownVotes? Would it perform the same Index Seek?

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

      As long as TotalVotes is the leading key of an index, yes.

  • @FlaggedStar
    @FlaggedStar 2 หลายเดือนก่อน

    9:50 This always confuses me. How does SQL Server manage to index a column that isn't persisted? How does it index numbers that it doesn't always know?

    • @ErikDarlingData
      @ErikDarlingData  2 หลายเดือนก่อน +1

      Well, it “persists” it when it gets indexed by writing the calculated values to index pages and then maintains changing values the way it would maintain any other data changes.