November 23, 2011 at 2:07 pm
I had someone tell me earlier on that on a partitioned table, for certain queries a non partitioned index will be more performant than a partitioned index.
I keep all my indexes partitioned so that i can easily swap in/out partitions.
I have tried to repro what this person said but i cannot. Is there any truth in this and if so, how could i replicate it?
November 23, 2011 at 8:06 pm
winston Smith (11/23/2011)
...for certain queries ...
Ask the person that told you to produce the proof. All claims of performance or lack thereof should be accompanied by a code example. Otherwise, it's nothing more than an unsubstantiated opion on their part. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
November 24, 2011 at 2:30 am
Ask the person who told you that for a query that shows the problem.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 1, 2011 at 4:20 am
Managed to repro this issue, based on some research. not sure if it is the same issue as my collegue experienced but i get the symptoms discussed.
Your query needs to be doing a min, max or top N. that way the partitioned index has to scan all partitions, whereas a nonpartitioned index does not, it just goes through its btree as per usual.
There's a connect item for this here. just adding to close thread off:
ttp://connect.microsoft.com/SQLServer/feedback/details/240968/partition-table-using-min-max-functions-and-top-n-index-selection-and-performance
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply