SQL Query Optimization. Why is it so hard to get right?

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

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

  • @professortrog7742
    @professortrog7742 Год назад

    Good lecture, however the statement at 29:30 and again at 44:10 is blatantly incorrect, it DOES matter what your read and write speeds are of your IOs and how much buffers you have and not only in a relative sense, especially when making the hard choice between using a more IO heavy algorithm or a more memory intense algorithm.
    This is exactly why in for example PostgreSQL these numbers can be tweaked in the configuration.

  • @ArvindDevaraj1
    @ArvindDevaraj1 4 года назад +1

    Excellent lecture. 1:15:15 Prof. Jayant Haritsa is from IISc Bangalore

  • @DAWEAP1
    @DAWEAP1 5 лет назад +2

    Such an informative video. Thank you!

  • @joechang8696
    @joechang8696 2 года назад

    can someone repost the gofundme? One issue in the SQL Server query optimizer is that it tries to find the lowest cost plan for a given parameter set, but does not consider if there is variation in the distribution. Suppose two plans have only a slight difference in cost, but the lower cost plan will go bad if a row estimate is off, while the higher cost plan is more resilient to variation.
    Example, a table that is estimated to have zero or 1 row at most joined to a large table with no suitable index. The large table must be accessed with a scan.
    The lowest cost plan is accessed the 0/1 row table Nested Loops Join to the largest table, this being ever slightly lower cost than first table Hash Join the large table.
    But now if the first table actually has 2 or more rows, not the estimated 0 or 1, you are screwed

  • @krneki6954
    @krneki6954 6 лет назад +1

    excellent stuff! thx brent for uploading, keep it up! how can this only have 1,4k views???

  • @tileq
    @tileq 5 лет назад +5

    This is gold!

  • @brianmullins8444
    @brianmullins8444 6 лет назад +2

    Wow, that was awesome!

  • @KittenYour
    @KittenYour 3 года назад +1

    Спасибо

  • @youtubeshort6469
    @youtubeshort6469 6 лет назад +3

    👍