Viewing 15 posts - 886 through 900 (of 1,413 total)
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
Ok, here's a different comparison. Suppose the query contains 34 UNION ALL SELECTS from a tvf generating 1000 row values in sequence.
declare
@start_dt ...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 18, 2020 at 5:55 pm
That's over 100,000 rows. When it drops to 10,000 the difference is much less. Then when it drops to 1,000 the difference is so small it's hard to measure.
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 18, 2020 at 5:19 pm
The first part of the problem is how you are generating the tally - you are generating too many rows. The second part of the problem is the return...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 18, 2020 at 4:56 pm
All right that's nice progress. Thanks for following up. Well, an adID is the same thing as a RecordID. If you recall the earlier query had RecordID in the select...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 15, 2020 at 10:13 pm
;with grp_cte as (
select distinct r.PartIDC, r.PartIDX, r.step
from #Replacement r
join...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 13, 2020 at 12:13 pm
Submitted the SSC article last night
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 12, 2020 at 12:38 pm
Progress. We have 2 videos which are presentation ready. The Demo video we recorded 5 times and the Quick Start video 3+ times. It's taken multiple iterations. Nobody listens to...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 11, 2020 at 3:11 pm
Keep in mind that'll update all the batch id's every time which might not be intended or a good idea on a large table. Adding a WHERE batch_ID IS...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 10, 2020 at 6:05 pm
As general issues go does this require ##temp to have global scope? Also, why make the variables varchar(max)? I got it to work like this
drop table if...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 10, 2020 at 3:02 pm
There was a slight addition needed to David Burrow's code above. Which is nicely done and way better than the (now Closed) Stack Overflow answer to the same question. ...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 8, 2020 at 2:43 pm
Yay!! Just passed my goal of 1,500 points on Stack Overflow which means I can now create a tag for the JsonAutoService C# data access library. I began on August...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 6, 2020 at 8:51 pm
Viewing 15 posts - 886 through 900 (of 1,413 total)