/*
Votes is upper input, hash agg that spills, nested loops
runs about 50 seconds
*/
SELECT COUNT(*)
FROM dbo.Posts AS p
JOIN dbo.Votes AS v
ON p.Id = v.PostId;
/*
Posts it upper input, hash join no spill
*/
SELECT COUNT(*)
FROM dbo.Posts AS p
JOIN dbo.Votes AS v
ON p.Id = v.PostId
OPTION(FORCE ORDER);
I am busy making a backup of all Agent Jobs by scripting them all to file.`How would i rewrite the below to use BCP instead
BEGIN
SET @EchoCommand = 'ECHO ' + @EchoField + ' >> ' + @Path
+ @JobName
+ REPLACE(REPLACE(CONVERT(VARCHAR(200), GETDATE()), ' ',
...
@SeanGallardy Gotcha - so it's really all about connectivity / communication with the secondary. Would Kin's suggestion (go async) resolve the issue you think?
@jadarnel27 @Forrest in the spirit of being welcoming and inclusive® to everyone in chat, if you'd like a free copy of my stupid book, send me your address. i have a few extra copies kicking around.
We've been doing quite a bit of research into ways that we could help new users have better experiences that ultimately lead them to becoming increasingly valuable, long-term contributors to our sites. While this is still ongoing, it's starting to blossom in the form of small but hopefully very e...