Viewing 15 posts - 1,231 through 1,245 (of 5,590 total)
Ninja's_RGR'us (6/3/2011)
WayneS (6/3/2011)
Looking at the execution plan in SQL Sentry Plan Explorer, I seeHolly "/*& )(* /"*(/& "!*(/&"!) ? / "*/& " that's so cool! :w00t:
Really...
June 3, 2011 at 8:29 am
tfeuz (6/3/2011)
I dropped the redundant index
Added the new index to the rb_invoicestoprocess table (invoicekey,ruleid)
Made the change to the SP as you suggested....
It actually went from 23 seconds up to 29...
June 3, 2011 at 8:21 am
For the InvoiceTotal table:
1. You have overlapping indexes... the second one isn't necessary, and will cause extra overhead with insert/update/delete statements. Go ahead and remove it:
CREATE NONCLUSTERED INDEX [_dta_index_InvoiceTotal_43_832058050__K2_3_7] ON...
June 3, 2011 at 8:05 am
tfeuz (6/2/2011)
Wayne,Item #1
- I removed the variables you mentioned. Does having these extra variables "hanging around" cause preformance issues?
I forgot to answer this. No, there isn't a performance issue...
June 3, 2011 at 7:53 am
tfeuz (6/3/2011)
The idea is that the table will have many rows in it at any given time and I will only process it...
June 3, 2011 at 7:49 am
tfeuz (6/3/2011)
The 80K of invoices is in the rb_invoicestoprocess table --- this is the list of items that...
June 3, 2011 at 7:44 am
Looking at the execution plan in SQL Sentry Plan Explorer, I see that two of the biggest operations are a table scan on the RB_InvoicesToProcess table, and an index scan...
June 3, 2011 at 7:20 am
Lynn Pettis (6/3/2011)
June 3, 2011 at 6:54 am
tfeuz (6/2/2011)
Hi Wayne,First off -- thank you som uch for your help!
You're welcome.
I am just in the process of reloading my test data to get the same volume (100,000...
June 2, 2011 at 2:29 pm
... and, Part 2...
CREATE PROCEDURE spCalculateRuleInvoiceUnits @RuleUnitType numeric(9,2),@TermsRuleType numeric(9,2),@RuleId decimal(18,6)
AS
WITH cteMain AS
(
SELECT a.InvoiceKey,
b.InvoiceDate,
...
June 2, 2011 at 1:34 pm
First of all, change those stored procedure names. Do NOT prefix them with sp_ - this makes SQL look in the master database first.
Okay, here is step 1. We're going...
June 2, 2011 at 12:15 pm
Does anyone have any experience with SQL XDetails[/url]? I saw a link on the site here, and am wondering what others think. Also... the link implies a free version, but...
June 2, 2011 at 10:30 am
SQLRNNR (6/2/2011)
LutzM (6/2/2011)
Also, I will start to participate on the site more often. It has always been useful and seems to be very...
June 2, 2011 at 10:27 am
Excellent... this will help tremendously.
I've noticed two things in the sp_CalculateRuleInvoiceUnits procedure:
1. These variables are no longer used - probably as a result of eliminating cursors:
-- variables not currently being...
June 2, 2011 at 9:42 am
Hi GSquared,
I was going to suggest a minor change to your code to: (change the varchar(100) to datetime)
DECLARE @XML XML = '<rule> <date>1/7/2005 10:12:43 AM</date> <properties> <RuleName>TrainingEnrollmentSave</RuleName> <DebugLevel>3</DebugLevel> <DBName>BNA</DBName> <DBServerName>sa3sql03bv.sa.ito.ceridian.com</DBServerName>...
June 2, 2011 at 7:37 am
Viewing 15 posts - 1,231 through 1,245 (of 5,590 total)