A Little About Memory Grants In SQL Server Query Plans

แชร์
ฝัง

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

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

    Useful video!thank you!

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

      Usefulness is next to cleanliness, or something.

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

    Great video Erik. The dreaded 'put everything into large varchar fields' antipattern rarely mentions the memory issue even though it can have pretty dire consequences as you prove. QQ for you though .... how much memory would be allocated to a varchar(max) and nvarchar(max) field? Also, which is the best field in the Actual Execution Plan to ascertain how much memory was actually needed for the data (ie. to see how much the plan actually wasted)?

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

      The grant for max fields is still about half. It’s estimated size of data. The best place to see memory grant details in actual plans is in the memory grant property of the root node.

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

    "Thumbs are fingers, hot dogs are sandwiches"; lol; I watch for the quality content, and stay for the entertainment