SQL Server Indexing: How database engine chooses an index for a query?

Поделиться
HTML-код
  • Опубликовано: 19 окт 2024

Комментарии • 10

  • @TellaTrix
    @TellaTrix 6 месяцев назад +1

    Indexing is very sensitive subject in sql server. Time to time we need to modify the index based on data increased. Thank you for valuable content.

    • @sa-es-ir
      @sa-es-ir  6 месяцев назад

      Glad it was helpful! Thank you 🙏

  • @moab5102
    @moab5102 5 месяцев назад +1

    Thank you Saeed, is is a great tutorial, I have been looking for such a video for long time and I have learned few things from you today thank you very much.
    can you please make more video in this topics for example why we should use include columns and what is the best practice for indexing a query with multiple joins etc...

    • @sa-es-ir
      @sa-es-ir  5 месяцев назад +1

      You are most welcome and thank you for the feedback, sure I will cover this topic in future videos

  • @arasharooni6315
    @arasharooni6315 9 месяцев назад

    It was very helpful dear saeed ❤
    Thanks a lot

    • @sa-es-ir
      @sa-es-ir  9 месяцев назад

      Glad to hear that Arash jan❤️

  • @sanjivranjan5782
    @sanjivranjan5782 2 месяца назад +1

    Please make a separate video on execution plan in detail. Thanks in advance

    • @sa-es-ir
      @sa-es-ir  2 месяца назад

      Noted with thanks, stay tunned.

  • @aayushrajopadhyaya
    @aayushrajopadhyaya 2 месяца назад +1

    As per the video, you are retrieving data from ColB and ColC. SQL Server is then suggesting to create index for the same columns. Since, index for all three columns have been created, how to use the same index for the retrieving data for B and C not A and B?

    • @sa-es-ir
      @sa-es-ir  2 месяца назад

      It's not possible to use the same index (A,B,C) when we have a where clause B and C. the way that indexing works is like from left to write so only index used if these conditions:
      1- .... where A
      2- .... where A and B
      3- .... where A and B and C