Viewing 15 posts - 34,741 through 34,755 (of 49,552 total)
Scan = read of all of the pages of the index. If that's the cluster, it's every single page in the table. Seek = navigating directly to the rows needed...
January 14, 2010 at 3:38 am
Interesting. Going to have to play with this a bit...
January 14, 2010 at 3:38 am
Because order is not guaranteed unless you specify an order by. It may be the same this time, but that doesn't mean it always will.
If there's no order by,...
January 14, 2010 at 3:32 am
How often do you filter just by account? How often do you filter by just postdate?
Oh, and do you really need every single column in the table? If not, lose...
January 14, 2010 at 3:20 am
homebrew01 (1/12/2010)
Maybe a long running select could use NOLOCK,
Aaahhhhh!!
Why does everyone recommend nolock any time there's a long running select? How about tuning the query, tuning the index and...
January 14, 2010 at 3:16 am
So does the code I gave you work or not? And if not, what's wrong with it?
January 13, 2010 at 2:13 pm
Is that the only 'parse and compile' line? I just did my own test (with a stored proc and a clear plan cache), and got the following.
SQL Server parse and...
January 13, 2010 at 2:09 pm
Welsh Corgi (1/13/2010)
January 13, 2010 at 1:59 pm
ifila (1/13/2010)
Please find attached the execution plan.Thanks
Will check tomorrow. Is late here.
January 13, 2010 at 1:57 pm
Oh, agreed. Which is why, when these questions come up (and they're quite frequent), I'm always very pointed in asking what the definition of 'first record' is.
January 13, 2010 at 1:57 pm
Jason Pociask (1/13/2010)
January 13, 2010 at 1:12 pm
shannonjk (1/13/2010)
January 13, 2010 at 1:09 pm
Jason Pociask (1/13/2010)
Therefore the clustered index should be intended to support the most intensively used sets of common key values whether its certain queries or update/insert transactions.
That's one of...
January 13, 2010 at 12:56 pm
Hard (near impossible) to say.
I suggest you set up a test database somewhere and try out both options. See how fast the archive and delete are with the cluster on...
January 13, 2010 at 12:47 pm
ifila (1/13/2010)
BTW based on some initial performance testing with Gail's solution:
If i set TOP 60000 using her query it takes 8 seconds to get the...
January 13, 2010 at 12:44 pm
Viewing 15 posts - 34,741 through 34,755 (of 49,552 total)