Viewing 15 posts - 6,001 through 6,015 (of 59,089 total)
You did good. Peter's takes over 4 seconds on a million rows. Yours takes about 380ms. Like I said, an order of magnitude
Curious - I am...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 1, 2020 at 6:24 pm
@Jeffrey Williams,
I tested your performance improvements for Peter's code and they're an order of magnitude faster. Nicely done. I've also not been able to find a fault in...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 1, 2020 at 4:29 pm
Hi,
I am just checking to see if anyone has ever did a costing per database (based on it size). I am trying to figure out what the cost is...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 1, 2020 at 3:15 pm
Look at the last script from my post.
It allows to the function against all the dates you can possibly get.
in between the brackets at CROSS APPLY (...) T2 you...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 1, 2020 at 1:44 pm
How much memory is actually in this particular system? I ask because, while I agree that Express is pretty limited, it seems to me that it should be able to...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 1, 2020 at 1:43 pm
Totally agreed on that, Sergiy. It turned out that I had problems with my fnTally function going nuts but it wasn't the fault of the function. 2017 RTM sucked eggs...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 1, 2020 at 5:22 am
You folks should hum a rock at the webmaster for this site to do two things...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 1, 2020 at 5:16 am
@Jeffrey Williams,
I tested your performance improvements for Peter's code and they're an order of magnitude faster. Nicely done. I've also not been able to find a fault in the output...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 1, 2020 at 5:13 am
Lynn Pettis wrote one back in 2009, as well.
https://www.sqlservercentral.com/articles/the-dynamic-tally-or-numbers-table
If I get the chance, I'll add his to the mix, as well.
Anyway, thanks again for the article and the code,...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 1, 2020 at 4:54 am
Thanks for the very kind feedback, Jason.
Interesting code, Jason. While I've seen such a thing before, I've not seen many folks that provide a starting value and number...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 1, 2020 at 4:46 am
Wow... it's amazing how fast machines have gotten. I just tested Sergiy's, Chris', and my fnTally function for simply generating 10 million rows to a bitbucket variable. (No JOIN, though,...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 1, 2020 at 3:43 am
Just a little warning - you should not use a string literal in the function as that will be implicitly converted and could cause cardinality issues. Instead...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 1, 2020 at 2:55 am
Post withdrawn... I need to stop testing at night.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 1, 2020 at 2:44 am
Just a little warning - you should not use a string literal in the function as that will be implicitly converted and could cause cardinality issues. Instead - you...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 30, 2020 at 10:44 pm
I'll also add that a lot of the "patches" by MS actually take years to fix, if they even bother to fix them at all.
For example, there's been a whole...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 30, 2020 at 5:58 pm
Viewing 15 posts - 6,001 through 6,015 (of 59,089 total)