Indexing SQL Server Queries For Performance: Windowing Functions

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ก.พ. 2025

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

  • @mattcargile
    @mattcargile 12 วันที่ผ่านมา +1

    What a trick on that column store helper! 😮

  • @FlaggedStar
    @FlaggedStar 12 วันที่ผ่านมา +1

    4:28 It's funny, I had exactly the same idea. I was wondering how Erik was planning to spend 16 minutes to say "just use batch mode".

    • @ErikDarlingData
      @ErikDarlingData  12 วันที่ผ่านมา

      I probably should have spoken in batch mode.

  • @ahmedaryf6297
    @ahmedaryf6297 11 วันที่ผ่านมา

    is columnstore_helper table used in the last query is materialized view or a columnstore index?

    • @ErikDarlingData
      @ErikDarlingData  11 วันที่ผ่านมา

      It's an empty table with a clustered column store index on it.

  • @zahreddinesoualem3213
    @zahreddinesoualem3213 11 วันที่ผ่านมา

    I have a question that is outside the scope of this tutorial. When I perform a rebuild of the indexes on the database, its size increases, which is really surprising because I was expecting the database size to decrease. On the other hand, the unallocated space decreased. Any explanation, sir? I have been searching for the right answer, but none has given me a reasonable explanation.

    • @ErikDarlingData
      @ErikDarlingData  11 วันที่ผ่านมา

      Stop rebuilding indexes. It's a waste of time, unless you're on old spinning disk storage.

    • @zahreddinesoualem3213
      @zahreddinesoualem3213 8 วันที่ผ่านมา

      @@ErikDarlingData I got you , but you didn't anser my main question it really crucial , could you give me any clue on what's going on ?

    • @ErikDarlingData
      @ErikDarlingData  8 วันที่ผ่านมา +1

      @@zahreddinesoualem3213 Because you’ve gotten answers: dba.stackexchange.com/q/344883/32281

    • @zahreddinesoualem3213
      @zahreddinesoualem3213 8 วันที่ผ่านมา

      @@ErikDarlingData mm so that's is it, thank you so much.