1 response

  1. Joe Chang
    September 7, 2022

    back in 2000 days, I looked at actual query costs for the three join types versus rows per join at 1, 3, 10, 30, 100, 300, 1000, 3000, 5000, 10,000 rows. I notice a serious drop at 3000 and 5000 rows(exact statistics, tables had specific distributions) without lock hints. So, if you expect queries in this range, consider a lock hint, as the escalation itself can be more disruptive than the lock itself.
    the 1,250-6250 row escalation points made sense back in 2000. I don't it makes sense today as people routinely run queries in the intermediate row count range.
    Its too bad there is not a handler for a group of rows. Say I have an index in which the lead key is group key. So my SARG were: GroupID = @P1. On index rebuild, it will put distinct GroupID values into different pages,

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Back to top