Viewing 15 posts - 1,576 through 1,590 (of 1,957 total)
You don't mention which provider you are using, but I had a similar problem recently trying to drag data from SQL 2008 into Excel 2010.
Setting up the connection worked fine,...
January 24, 2011 at 6:14 pm
Performance Stats as promised
First my solution WITH and WITHOUT TABLOCKX on MVTS and #accepted:
And next a comparison with SwePeso's solution which shows an interesting variance between the two solutions for...
January 24, 2011 at 5:25 pm
Look at us, all doing WHILE loops ! Someone should take a photograph to preserve the moment 😛
January 24, 2011 at 5:10 pm
WayneS (1/24/2011)
January 24, 2011 at 3:26 pm
Jeff Moden (1/24/2011)
mister.magoo (1/24/2011)
Dave,I haven't tested yours, but can see that it does not meet with Sir Jeff's strict guidelines....
BWAA-HAA!!!... I'm just the humble tester here. The OP posted...
January 24, 2011 at 3:16 pm
Dave,
I haven't tested yours, but can see that it does not meet with Sir Jeff's strict guidelines....
Seriously, a simple test is this:
INSERT MVTS(IdMvt1,idMvt2,idMvt3)
SELECT 1,2,3 UNION ALL
SELECT 3,4,5 UNION ALL
SELECT 4,5,6
Rows...
January 24, 2011 at 12:41 pm
TABLOCKX on mvts knock about 0.5 second off the time (14%) for a Pool of 10,000
I will add this tweak to the code when I run the performance tests later.
Good...
January 24, 2011 at 9:32 am
WayneS (1/24/2011)
mister.magoo (1/24/2011)
WayneS (1/24/2011)
MM - very impressive solution. Very well done!Out of curiosity... did you try the tablockx hint? (I don't think it would make a difference.)
No, I didn't. Are...
January 24, 2011 at 9:26 am
WayneS (1/24/2011)
MM - very impressive solution. Very well done!Out of curiosity... did you try the tablockx hint? (I don't think it would make a difference.)
No, I didn't. Are you suggesting...
January 24, 2011 at 9:05 am
Heh, I rather hoped you didn't - as I was timing them in profiler, pausing between each one so that I could test a few tweaks along the way and...
January 24, 2011 at 8:52 am
SwePeso (1/24/2011)
And the other Pool sizes? 100, 1000 and 10000.
They are fine..?? if that's what you mean? The smaller pool sizes were ok anyway - adding the UNIQUEness to the...
January 24, 2011 at 8:18 am
New Code :
1. modified the index on the temp table #accepted to be unique
2. added FASTFIRSTROW table hint
3. replaced UNPIVOT with CROSS APPLY/SELECT UNION ALL (might be slightly quicker -...
January 24, 2011 at 8:00 am
Jeff Moden (1/24/2011)
Agreed. "It Depends". I've found that my old box does some things quite differently especially when compared to something like a laptop.
Ok, had a brief moment...
January 24, 2011 at 7:31 am
I guess this is another "depends" moment re: unpivot vs cross apply/select union all.
in my initial tests unpivot was faster. i will re-test.
thanks Jeff
January 24, 2011 at 6:08 am
Dave Ballantyne (1/24/2011)
Ok , so that shouldn't be a problem....
Getting back to the original issue though , although there may be X millions rows , how...
January 24, 2011 at 5:54 am
Viewing 15 posts - 1,576 through 1,590 (of 1,957 total)