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

Поділитися
Вставка

КОМЕНТАРІ • 10

  • @DAWEAP1
    @DAWEAP1 5 років тому +2

    Such an informative video. Thank you!

  • @tileq
    @tileq 5 років тому +5

    This is gold!

  • @brianmullins8444
    @brianmullins8444 6 років тому +2

    Wow, that was awesome!

  • @krneki6954
    @krneki6954 5 років тому +1

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

  • @ArvindDevaraj1
    @ArvindDevaraj1 4 роки тому +1

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

  • @KittenYour
    @KittenYour 3 роки тому +1

    Спасибо

  • @youtubeshort6469
    @youtubeshort6469 6 років тому +3

    👍

  • @joechang8696
    @joechang8696 Рік тому

    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

  • @professortrog7742
    @professortrog7742 9 місяців тому

    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.