Viewing 15 posts - 76 through 90 (of 309 total)
Is it possible that any of your tables or indexes are heavily fragmented ?
How large are the tables you are inserting to ?
August 9, 2010 at 12:53 am
lbdw (8/6/2010)
average IO write ops 4~47 / sec, avg 188434 bytes/ sec (running raid thus using averages) , half way through it starts to...
August 7, 2010 at 2:55 pm
lbdw (8/6/2010)
Also Isolation level are set to...
August 6, 2010 at 5:38 am
Leo.Miller (8/5/2010)
August 6, 2010 at 1:12 am
Chad Crawford (3/6/2009)
August 5, 2010 at 6:00 am
lbdw (8/4/2010)
The first 10min duration 0, at 10min it drops to 35, at 20min to 110 and after 30min it goes to...
August 4, 2010 at 3:55 pm
Glad I could help! ๐
Just of curiosity, could you please post the actual query plans of Query1 and Query2 after the statistics update ?
August 4, 2010 at 7:27 am
This sounds a lot like another thread some time ago. In that case the problem was caused by having ALLOW_ROW_LOCKS=OFF in one of the indexes in the affected table.
See http://www.sqlservercentral.com/Forums/FindPost944539.aspx
August 4, 2010 at 5:55 am
I made some tests and they confirm my suspicions:
* It is very important to formulate the CHECK condition on the individual tables appropriately.
* If you have correct statistics it...
August 4, 2010 at 4:03 am
DB_Newbie2007 (8/3/2010)
August 4, 2010 at 2:46 am
lb_henning (8/3/2010)
Technologies used:
Server is a Quad Xeon 2.45Ghz (or something like that) 16Gb Ram, 1.5Tb total storage divided into 4 drives 1 for Windows, 1 for...
August 4, 2010 at 1:09 am
DB_Newbie2007 (8/3/2010)
1) We do have constraints on the tables... here is an example:
ALTER TABLE [dbo].[Jan10] WITH NOCHECK ADD CONSTRAINT [CK_Jan10] CHECK ((datepart(month,[InvoiceDate])=(1) AND datepart(year,[InvoiceDate])=(2010)))
GO
ALTER TABLE...
August 3, 2010 at 11:21 am
What is the actual execution times of the two query plans you posted ?
The estimated cost for Query1 is 109.4 while the estimated cost for Query2 is 46.3
With these numbers...
August 3, 2010 at 9:59 am
DB_Newbie2007 (8/3/2010)
Unfortunately, "ChargeType" is actually my name for a bunch of columns added together in this particular table to list a charge. The tables (dbo.Jan10, dbo.Feb10, etc) are wide...
August 3, 2010 at 9:11 am
----- Query 1: This query takes 24 minutes
SELECT ID.InvoiceNumber, ID.InvoiceDate, ID.CustomerNumber, SUM(ID.ItemCharge) as SumCharges
FROM dbo.VIEW_InvoiceData ID
INNER JOIN dbo.InvSummary IS
ON ID.InvoiceNumber = RIGHT(RTRIM(InvoiceNumber),12)
AND ID.InvoiceDate = IS.InvoiceDate
WHERE IS.CustomerNumber = '12345678'
AND ID.InvoiceChargeItem =...
August 3, 2010 at 7:18 am
Viewing 15 posts - 76 through 90 (of 309 total)