|
Comments
|
|
This is really a worthful clip
|
|
Charlie Bruno on
9/13/2010
Nice.
|
|
|
I notice you do not clear the cache between your runs with a
DBCC DROPCLEANBUFFERS
DBCC FREEPROCCACHE
is this not required?
|
|
|
Good Tip
|
|
|
Really it's nice and very useful in query performance tuning
|
|
|
just awesome to know!
|
|
|
good info. safeguards/disclaimers were well stated
|
|
|
Good information! I always wondered how this option worked.
|
|
|
Clearing buffer/proc cache not needed, and I prefer to rarely use those. In practice data caching is good and doesn't affect the plan selection, and adding the hint should - in theory - force a new plan on first run.
|
|
|
Learned somthing new!
|
|
|
I can't get this one to work. No error is raised, but all rows are returned, not just the top 10. Does something need to be enabled somewhere to allow ‘OPTION’ to work?
SELECT * FROM BaseData.FactQuestionnaireAnswers
OPTION (FAST 10)
|
|
|
Robbie, it's not equivalent to TOP 10. Even with FAST 10 stated, you still get all matching rows, you're just changing the internal process used to retrieve those rows.
|
|
|
Thanks Andy
|
|
|
Never heard of Option (fast n). Great to know!
|
|
Benjamin Shaw on
10/13/2010
greate... i love small tips like these.
|
|
|
Useful to the beginners
|
|
|
Better if we were shown why the number of reads increased with the Fast (50) hint, while duration decreased.
|
|
|
Thanks.
|