July 25, 2012 at 10:39 am
Sean Lange (7/25/2012)
Phil Parkin (7/25/2012)
Nice article - thanks for the link. When I read absolutes (like 'meaningless') my brain subconsciously challenges them. I still think it was the wrong word πMaybe it could be reworded, albeit a bit more lengthy to something like: "Using top without an order by is like saying, Get me the first N rows that the engine feels is the easiest to retrieve". π
So that would make it not meaningless and more accurate. The worst part is that it is most likely going to be consistent for a certain amount of data but will change at some point when sql decides it is easier to get some other rows.
Sean - I think you've nailed it.
If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.
July 26, 2012 at 12:25 am
Hi
ChrisM@Work,
Thanks for your reply/some valuable points about indexing.
so the order by column(s) should have indexed to improve performance.
Thanks
Krishna
July 26, 2012 at 12:28 am
Hi
anthony.green
Thanks for your response.
Can you bit give some more information about access methods and blocking that you mentioned .
With Regards
Krishna
July 26, 2012 at 1:44 am
Sean Lange (7/25/2012)
Phil Parkin (7/25/2012)
Nice article - thanks for the link. When I read absolutes (like 'meaningless') my brain subconsciously challenges them. I still think it was the wrong word πMaybe it could be reworded, albeit a bit more lengthy to something like: "Using top without an order by is like saying, Get me the first N rows that the engine feels is the easiest to retrieve". π
So that would make it not meaningless and more accurate. The worst part is that it is most likely going to be consistent for a certain amount of data but will change at some point when sql decides it is easier to get some other rows.
Nice one, Sean. I like this a lot.
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
July 26, 2012 at 7:25 am
ChrisM@Work (7/26/2012)
Sean Lange (7/25/2012)
Phil Parkin (7/25/2012)
Nice article - thanks for the link. When I read absolutes (like 'meaningless') my brain subconsciously challenges them. I still think it was the wrong word πMaybe it could be reworded, albeit a bit more lengthy to something like: "Using top without an order by is like saying, Get me the first N rows that the engine feels is the easiest to retrieve". π
So that would make it not meaningless and more accurate. The worst part is that it is most likely going to be consistent for a certain amount of data but will change at some point when sql decides it is easier to get some other rows.
Nice one, Sean. I like this a lot.
hehe.
While it is more descriptive your version is a lot easier to roll off the keyboard. π
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 β Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
Viewing 5 posts - 16 through 19 (of 19 total)
You must be logged in to reply to this topic. Login to reply