Remove Bookmark Lookup - SQL in Sixty Seconds 089

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

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

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

    Great video Pinal, I really appreciate your work. Congrats.

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

    Excellent video Pinal!

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

    Awesome idea, this kind of short, quick and effective video. Thank you!

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

    Thanks for sharing it. If i have key look up on Image field, will it improve if I include the column on the index that query is using?

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

    Very helpful ,Pls make video on reading an entire execution plan and entire field in plan

  • @kalaivanan.s5042
    @kalaivanan.s5042 3 ปีที่แล้ว +1

    How to perform few insert and update in large transaction live table what are the method we need follow when we working with live table

    • @PinalDaveSQLAuthority
      @PinalDaveSQLAuthority  3 ปีที่แล้ว

      Would you please explain your example with more detail?

    • @kalaivanan.s5042
      @kalaivanan.s5042 3 ปีที่แล้ว +1

      @@PinalDaveSQLAuthority Hi i have around 10 gb data in live transaction table but i need to update 1 lak record in that table without affecting live transaction. In that table already indexed one so dml operation taking too much time in this case dead lock also chance to happen. How to overcome this problem

    • @PinalDaveSQLAuthority
      @PinalDaveSQLAuthority  3 ปีที่แล้ว

      @@kalaivanan.s5042 In that case you should consider the Table Partition Switch option. Search for it, partitioning Switching is a good option.

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

    Nice , Thank you the only I did not figure out
    SELECT TOP 1 lead(price, 7) OVER (ORDER BY [oDateTimeLocal] DESC)
    FROM Price
    WHERE [month]

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

      In that case you can still put that in the include part.

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

      @@PinalDaveSQLAuthority Thank you

  • @kalaivanan.s5042
    @kalaivanan.s5042 3 ปีที่แล้ว +1

    What situation we need to use covering index

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

    Very simple and efficient, great video

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

    Credulous and yet effective

  • @achilleskocaeli
    @achilleskocaeli 4 ปีที่แล้ว +2

    Thanks for sharing..

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

    Thanks for sharing.

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

    Thank you

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

    The problem with this method is that is not recommended to have a specific index bases on each queries you actually use or an index that will include all the columns not part of the index. It should be used with precaution.

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

      Everything in SQL Server need to be used with precaution. Proper testing on dev first with staging and production. A unit testing is indeed a must.

    • @zberteoc
      @zberteoc 4 ปีที่แล้ว

      @@PinalDaveSQLAuthority I mentioned this only for whom may come across this video and feel excited about what they learn here and then go ahead and apply it every time they have the chance for every query. SQL Server optimizer actually quite often does suggest indexes to be applied with included columns when running the execution plan, be it estimated or actual. As a general idea the index columns should be the ones used in the JOIN clause firstly and in the WHERE clause secondly and in the INCLUDE clause should have the columns needed in the SELECT list. However, you have to make the best in choosing the right index columns and the right included columns for most of the cases and not creating an index for every single query.

    • @PinalDaveSQLAuthority
      @PinalDaveSQLAuthority  4 ปีที่แล้ว

      @@zberteoc Absolutely, this is indeed a huge subject.

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

    Best

  • @keep_digging
    @keep_digging 4 ปีที่แล้ว

    Awesome