Viewing 15 posts - 1 through 15 (of 84 total)
Hi Federico
By "If I run the query for one ID, the data returns instantaneously" I meant that if I execute the query for just one ID value it returns the...
April 21, 2020 at 1:06 pm
Added files as text and xml
April 21, 2020 at 8:59 am
Hi Scott
Table DDL attached along with execution plan (where using a EXISTS condition).
I did notice there is a big difference between the estimate and actual number of rows between the...
April 21, 2020 at 8:56 am
Tried the logging option in the job step but got the following error:
The log provider type "{2E5B5C92-2968-4520-95A8-3A33D55E4507}, {2E5B5C92-2968-4520-95A8-3A33D55E4507}" specified for log provider "{D5145C67-8C71-4CD3-9652-0792EC434AD8}" is not recognized as a valid log...
September 6, 2019 at 2:00 pm
I haven't tried that, I'll take a look.
The setting I'm trying to use is within the package itself. But the connection won't work as its values are set from a...
September 6, 2019 at 10:24 am
Its more a case that I can't turn logging on where my connections are set using config files.
I can worry about tailoring the logging options later, I just want to...
September 6, 2019 at 10:12 am
Scratch this guys, its only after posting that I see that it wouldn't update anyway as there's no difference in the values.
I'm just going to go sit in the corner...
September 4, 2019 at 10:34 am
I got a big improvement by introducing a new index based on batchdate and batchstatus (disregard the cover index name)
CREATE NONCLUSTERED INDEX [IDX_NI_CA_Batch_CoverIndex2] ON [dbo].[Batch]
(
[BatchGLDate] ASC
,[BatchStatus]
November 7, 2018 at 8:22 am
Triangular Join - I knew there was a name for that (wrote my result set on a piece of paper that looked like this)
Thanks Drew, I've been out...
November 6, 2018 at 10:25 am
As I have 2 log tables to pull data from, how would this work?
do you mean by just having a clustered index by the modified date on both log tables...
November 1, 2016 at 11:22 am
Thanks Phil
I've tweaked the code slightly so that there are no NULL values as I was thinking the exact same thing.
I'm currently working on getting rid of the temp tables...
November 1, 2016 at 11:03 am
Thanks guys for the replies
John - I got it working using the method you outlined, I used LEAD instead of LAG
Massive improvement on the performance too
Now I just need...
November 1, 2016 at 10:24 am
First I've heard of them john, any good articles you'd recommend or would a google suffice?
November 1, 2016 at 6:26 am
Sorry Chris, forgot to attach the indexes
Happy enough to go with the TOP 1 in a CROSS APPLY
Thanks anyway
October 18, 2016 at 9:25 am
That makes sense Jacob
I had the idea that the index on the logdate field would improve performance but since it's running a select against the whole table it makes little...
October 18, 2016 at 9:19 am
Viewing 15 posts - 1 through 15 (of 84 total)