Viewing 15 posts - 886 through 900 (of 1,424 total)
Would you PLEASE post the actual test that you did on the first one we were talking about before moving on to another.
Yes, sorry. This is the preferred answer. ...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 23, 2020 at 10:53 pm
Here's another one. It took 19 minutes vs 12 minutes for the rCTE. There's no sample data and no time for making any up. Hopefully the query is...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 23, 2020 at 10:13 pm
Here's another one. It took 19 minutes vs 12 minutes for the rCTE. There's no sample data and no time for making any up. Hopefully the query is sound. It...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 23, 2020 at 7:44 pm
Any time I've needed to populate a table of sequential numbers, I just done it by brute force. No recursion or fancy stuff. Remember the definition of place valued...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 22, 2020 at 10:20 pm
Here's a set of comparisons between fnNumbers and fnTally
Performance comparison of fnNumbers vs fnTally inserting 10x row counts (n=1,000)
Performance comparison of fnNumbers vs fnTally inserting 10x row counts...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 22, 2020 at 6:33 pm
Here are new Fiddles. The old Fiddles were not in this more popular Fiddle. There's more than one Fiddle FYI.
Performance comparison of fnNumbers vs fnNumbersRC inserting 10x row counts...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 22, 2020 at 4:13 pm
If you look at my answer count v.s. the number of points I have and the position I have on Stack Overflow, you'll see that quantity doesn't matter much...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 21, 2020 at 2:30 pm
Steve, You've got a wrong analogy here.
The better one would be this:;
You live in late Soviet Union and have to choose which car to buy: Porsche 911 and ZAZ...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 21, 2020 at 1:10 pm
Heh... lordy. One guy even wrote a WHILE Loop as a solution on one of those.
The WHILE loopers always think everyone else is/are crazy. That person's query also...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 20, 2020 at 4:31 pm
Ah... almost forgot... What to do about the folks that claim that performance doesn't matter if you know that here will always only be a small number of rows...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 20, 2020 at 3:25 pm
Ok here are two recent winning recursive cte's. Be gentle when evaluating the opposing answers 🙂
https://stackoverflow.com/questions/63922869/get-an-interval-of-dates-from-a-range-of-dates/63923536
https://stackoverflow.com/questions/63919706/fill-missing-months-on-a-date-query/63920844
As a bonus, here losing while using an ordinal splitter
https://stackoverflow.com/questions/63886788/extracting-date-from-text-in-sql-using-cursor/63887736
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 19, 2020 at 4:32 pm
Here's a DB Fiddle that shows fnNumbers is about 4-10x faster to generate 100,000 rows.
Here's a DB Fiddle that shows fnNumbers is about 2x faster to generate 10,000 rows.
Here's...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 18, 2020 at 10:41 pm
It should be said I'm not looking for an advantage not available to anyone else. As soon as a different method works the others will just switch and then it's...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 18, 2020 at 7:45 pm
Jeffrey Williams, the more I look at your code the more I like it. I definitely missed a few things and using TOP in the select is so obvious now. ...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 18, 2020 at 6:49 pm
If the number of queries is increased to 100 then ms_diff of the tally table is only 16 whereas for the recursive CTE it's 2531!
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 18, 2020 at 6:09 pm
Viewing 15 posts - 886 through 900 (of 1,424 total)