Viewing 15 posts - 106 through 120 (of 161 total)
Luis,
I attached Execution Plan.
The rest I covered already.
S_CLIENT_SHARED
S_CLIENT_ACCOUNT_ASSOCIATION_SHARED
have 80 million records.
Other tables are very small.
Without JOIN with S_CLIENT_ACCOUNT_ASSOCIATION_SHARED
sql runs 1 second.
With this JOIN it takes 20 seconds
November 12, 2015 at 5:16 pm
Gerald. Thanks for your reply.
FATCA_STG.S_CLIENT_ACCOUNT_ASSOCIATION_SHARED indexes:
------------------------------------------------------------------
SOURCE_CODE, BUS_PROC_DT, ACCOUNT_IDENTIFIER
SOURCE_CODE, BUS_PROC_DT, CUSTOMER_NUMBER
BUS_PROC_DT
FATCA_STG.S_CLIENT_SHARED indexes:
------------------------------------------------------------------
SOURCE_CODE, BUS_PROC_DT, CUSTOMER_NUMBER
ID
At the beginning that (1=1) drew my attention as well
but query slows down only when you
JOIN
FATCA_STG.S_CLIENT_ACCOUNT_ASSOCIATION_SHARED
Without this...
November 12, 2015 at 5:06 pm
RESOLVED by re-setting Visual Studio settings.
Steps below..
Start / Run
devenv /ResetSettings
devenv /ResetSkipPKGS
Close Visual Studio
Open again
May 14, 2015 at 1:58 pm
Sorry. I was not detailed enough.
It's SSIS Variable Expression Builder I am talking about.
May 14, 2015 at 9:44 am
Hello Koen,
I just noticed this returns the same results.
Do I really need this last line ?
SELECT *
FROM prj_demo_data
WHERE prj_code IN
(
SELECT prj_code
FROM prj_demo_data
WHERE demo_code = 'DE1' and demo_data_vchar = 'U'
INTERSECT
SELECT...
May 9, 2014 at 4:28 am
God Bless you , Koen Verbeeck !
First I thought what an easy task...and then I felt embarrassed when after 3 hours I was still not able
to select those pairs.
I need...
May 7, 2014 at 6:34 am
Alan B.
Unfortunately it is Third Party Vendor Application database.
We are not allowed to change schema.
We store all our code in external database where we pull data from views that
are...
November 15, 2013 at 9:34 am
Thanks guys for your response !
ahperez is referring to a good article about parameter sniffing
but it mostly makes recommendations for the case of stored procedure.
In my case it is a...
November 15, 2013 at 9:25 am
Thanks Steve.
There are good arguments.
I wrote them down.
November 7, 2013 at 10:02 am
ScottPletcher,
We don't have authority to alter table definitions.
This is Financial Application database by third party.
We don't own the database.
We even create all our custom code in a separate (Diff_Data) database
that...
November 4, 2013 at 6:56 pm
Another interesting thing with [ prj_detail ] table.
A very simple query runs 4 seconds with hard_coded value co_code = '7001'
and it runs
1 minute using parameter.
use proddb6
declare @P_CO_CODE varchar(4)
set @P_CO_CODE =...
November 4, 2013 at 3:51 pm
I am attaching DDL script with indexes for [prj_detail] table.
STATS last updated on October 6th.
In Production it is October 27th.
I don't know if it's good or bad.
November 4, 2013 at 3:34 pm
I compared execution plans
with parameter 'VEH' and 'COM'
and in both cases it is this step that is taking up all the resources:
Index Scan (NonClustered)
[prj_detail].[IXN_prj_detail__per_end_date__detail_type_ind__evc_code__evc_type_code]
Cost: 91%
Another pattern I noticed is that...
November 4, 2013 at 10:14 am
I am attaching "UnitPricingTrans.sqlplan" file
November 4, 2013 at 10:03 am
Looks like it was cached with @P_UNIT_TYPE = 'VEH' (runs 7 seconds).
With all other parameter values it runs 2.5 minutes now.
I tried "WITH RECOMPILE" to clear cache but nothing changed.
7...
November 4, 2013 at 9:39 am
Viewing 15 posts - 106 through 120 (of 161 total)