SqlServerKudos - Stories tagged with statistics
1
kudos
spam Kudos Remove

Sampling Problem with Filtered Statistics

published 198 days, 22 hours, 35 minutes ago posted by sasa 208 days, 16 hours, 55 minutes ago
Tuesday, February 23, 2010 4:45:21 AM GMT Saturday, February 13, 2010 10:24:53 AM GMT
I was writing a blog post to show how to solve the problem of bad estimations due to uneven data distribution with filtered statistics. After an hour or so of banging my head against the wall, I discovered that I ran into a bug feature. It appears that if the predicate on the filtered stats [...] (more)
category: News | clicked: 0 | comment | | source: jasonmassie.com
tags: bugfix, filtered indexes, Query Optimizer, SQL Server, statistics
1
kudos
spam Kudos Remove

Filtered Stats to Counter Data Skew Issues

published 202 days, 22 hours, 51 minutes ago posted by sasa 209 days, 1 hour, 25 minutes ago
Friday, February 19, 2010 4:29:33 AM GMT Saturday, February 13, 2010 1:55:10 AM GMT
There are a handful of things that can make SQL Server choose a “bad plan”. They usually revolve around variable sized result sets. Some problematic scenarios are parameter sniffing, data skew, local variables, table variables, UDF’s or complex calculations in the where clause. All of these and more are detailed in my favorite and recently [...] (more)
category: News | clicked: 1 | comment | | source: jasonmassie.com
tags: Query Optimizer, Query Tuning, SQL Server, statistics, TSQL
1
kudos
spam Kudos Remove

Filtered Stats to Counter Data Skew Issues

published 321 days, 11 hours, 38 minutes ago posted by sasa 331 days, 13 minutes ago
Friday, October 23, 2009 3:42:26 PM GMT Wednesday, October 14, 2009 3:06:49 AM GMT
There are a handful of things that can make SQL Server choose a “bad plan”. They usually revolve around variable sized result sets. Some problematic scenarios are parameter sniffing, data skew, local variables, table variables, UDF’s or complex calculations in the where clause. All of these and more are detailed in my favorite and recently [...] (more)
category: News | clicked: 4 | comment | | source: jasonmassie.com
tags: Query Optimizer, Query Tuning, SQL Server, statistics, TSQL
1
kudos
spam Kudos Remove

Sampling Problem with Filtered Statistics

published 322 days, 11 hours, 43 minutes ago posted by sasa 332 days, 52 minutes ago
Thursday, October 22, 2009 3:37:29 PM GMT Tuesday, October 13, 2009 2:28:15 AM GMT
I was writing a blog post to show how to solve the problem of bad estimations due to uneven data distribution with filtered statistics. After an hour or so of banging my head against the wall, I discovered that I ran into a bug feature. It appears that if the predicate on the filtered stats [...] (more)
category: News | clicked: 1 | comment | | source: jasonmassie.com
tags: bugfix, filtered indexes, Query Optimizer, SQL Server, statistics
1
kudos
spam Kudos Remove

Rebuilding Indexes vs. Updating Statistics

published 325 days, 11 hours, 58 minutes ago posted by sasa 335 days, 7 hours, 17 minutes ago
Monday, October 19, 2009 3:22:40 PM GMT Friday, October 09, 2009 8:03:20 PM GMT
One of the questions I was asked recently while speaking at user groups, was regarding the order that jobs like rebuilding indexes or updating statistics should be performed as part of the database maintenance activities. Then I started writing this post about this topic on the weekend but was interrupted several times, including one of them to watch the premiere on VH1 of the movie Anvil: The Story of Anvil.   In general, the order should not matter, at least if you carefully consider these importan... (more)
category: Management | clicked: 2 | comment | | source: sqlblog.com
tags: Indexes, statistics
1
kudos
spam Kudos Remove

SQL Server database design goals: Memory, Disk and I/O - maximize the scalability with monitoring

published 346 days, 13 hours, 23 minutes ago posted by sasa 349 days, 5 hours, 12 minutes ago
Monday, September 28, 2009 1:57:32 PM GMT Friday, September 25, 2009 10:07:43 PM GMT
Do you consider the I/O whenever a database design project is assigned? It is one of the primary design goals of all database software is to minimize disk I/O because disk reads and writes are among the most resource-intensive operations. Over the time it may be one of the criteria that extensive usage of data and defautl behaviour on SQL Server builds a buffer pool in memory to hold pages read from the database. While queries are getting designed the code must be optimized and dedicated to minimizing...... (more)
category: News | clicked: 0 | comment | | source: sqlserver-qa.net
tags: capacity, disk, i/o, input, Memory, Monitoring, Performance, SQL Server, statistics, Tools
1
kudos
spam Kudos Remove

How the Query Optimizer Uses Statistics – Part II

published 349 days, 13 hours, 33 minutes ago posted by sasa 359 days, 12 hours, 6 minutes ago
Friday, September 25, 2009 1:46:41 PM GMT Tuesday, September 15, 2009 3:13:45 PM GMT
I got a question from a reader of my post How the Query Optimizer Uses Statistics (http://sqlblog.com/blogs/ben_nevarez/archive/2009/09/03/how-the-query-optimizer-uses-statistics.aspx) and I thought that it would be a good idea to post my answer here. Basically the request was to expand the previous example for a predicate with two columns.   First, a reminder that the histogram only shows the values of the first column of the statistics object. So, how the Query Optimizer does this?   One way to... (more)
category: Query | clicked: 1 | comment | | source: sqlblog.com
tags: Query Optimizer, statistics
1
kudos
spam Kudos Remove

Statistics Used by the Query Optimizer in SQL Server White Paper

published 359 days, 14 hours, 19 minutes ago posted by sasa 366 days, 11 hours, 45 minutes ago
Tuesday, September 15, 2009 1:01:15 PM GMT Tuesday, September 08, 2009 3:34:50 PM GMT
In case you are not aware, the excellent white paper “Statistics Used by the Query Optimizer in SQL Server” has been updated for SQL Server 2008... (more)
category: News | clicked: 2 | comment | | source: sqlblog.com
tags: Query Optimizer, statistics
1
kudos
spam Kudos Remove

How are auto-created column statistics names generated?

published 385 days, 10 hours, 7 minutes ago posted by sasa 391 days, 7 hours, 12 minutes ago
Thursday, August 20, 2009 5:13:29 PM GMT Friday, August 14, 2009 8:08:17 PM GMT
This is a question that came up at the Cleveland SQL Server User Group last night. An attendee had a wager with his colleagues about how the names of auto-created column-level stats are generated... (more)
category: Query | clicked: 0 | comment | | source: www.sqlskills.com
tags: statistics
1
kudos
spam Kudos Remove

Lies damned lies and statistics - Part II

published 388 days, 13 hours, 55 minutes ago posted by sasa 395 days, 11 hours, 26 minutes ago
Monday, August 17, 2009 1:25:13 PM GMT Monday, August 10, 2009 3:53:59 PM GMT
In previous post I listed situations where your statistics might need some special attention (http://sqlblog.com/blogs/elisabeth_redei/archive/2009/03/01/lies-damned-lies-and-statistics-part-i.aspx). As I mentioned in that post, the symptoms are typically related to more or less random variations in duration that cannot be explained by resource contention or blocking. A quick recap of the various problems you can encounter: 1. Statistics is out-of-date 2. T... (more)
category: Management | clicked: 1 | comment | | source: sqlblog.com
tags: Actual Rows, Estimated Rows, histogram, Skewed Data, statistics