Warning: Constant WP_TEMP_DIR already defined in /var/www/html/blogs/joe/wp-config.php on line 93

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/blogs/joe/wp-config.php:93) in /var/www/html/blogs/joe/wp-includes/feed-rss2-comments.php on line 8
Comments on: Selectivity Guesses in absence of Statistics https://www.sqlskills.com/blogs/joe/selectivity-guesses-in-absence-of-statistics/ SQL Server Performance Tuning, High Availability and Disaster Recovery Blog Mon, 30 Dec 2013 03:18:30 +0000 hourly 1 https://wordpress.org/?v=6.9.4 By: joe https://www.sqlskills.com/blogs/joe/selectivity-guesses-in-absence-of-statistics/#comment-604 Mon, 21 May 2012 07:06:59 +0000 /blogs/joe/post/Selectivity-Guesses-in-absence-of-Statistics.aspx#comment-604 Hi Chandan,

If auto-create / auto-update statistics are enabled (which most often they should be) – the guesses don’t come in to play (for this scenario at least). Basically the guesses come into play when there are no stats involved (whether stats objects or stats associated with an index).

Cheers

]]>
By: Chandan https://www.sqlskills.com/blogs/joe/selectivity-guesses-in-absence-of-statistics/#comment-603 Sun, 20 May 2012 22:05:28 +0000 /blogs/joe/post/Selectivity-Guesses-in-absence-of-Statistics.aspx#comment-603 Thanks for writing this Joe. Does it mean that in a table which is a heap and with no -nonclustered index, the actual row-counts guessed by the optimizer while compiling a plan will always be wrong?

What about a heap with some non-clustered index on some columns?

Thanks
Chandan

]]>
By: tobi https://www.sqlskills.com/blogs/joe/selectivity-guesses-in-absence-of-statistics/#comment-602 Thu, 10 May 2012 21:22:17 +0000 /blogs/joe/post/Selectivity-Guesses-in-absence-of-Statistics.aspx#comment-602 This table could be used to construct "cardinality hints" by introducing useless predicates which alter misestimated cardinality. A nasty hack, but it seems nicer that join hints which cause side-effects like forcing join order.

]]>