Viewing 15 posts - 6,106 through 6,120 (of 10,144 total)
Hi Paul
4 minutes down to 20 seconds is reasonable. Can you post the actual plan with the new indexes in place please? Let's see if there's more room for improvement.
July 6, 2012 at 1:48 am
Sean Lange (7/5/2012)
pwalter83 (7/5/2012)
Sean Lange (7/3/2012)
Start with this from Gail. http://www.sqlservercentral.com/articles/SQLServerCentral/66909/%5B/url%5DHi Sean,
Would you be able to help me now ?
Thanks,
Paul
Sorry yesterday was a holiday here in the US. It looks...
July 5, 2012 at 7:13 am
You need a new index on MG_BOOKING_COMMODITY, on BOOKING_ID and include GENERAL_COMMODITY_CD & REEFER_FLG. This should improve performance by about 65%.
MG_BOOKING would benefit from an index on at least some...
July 5, 2012 at 6:24 am
icampbell (7/5/2012)
ie select pk,pcode
from postcode
where pcode like '%%%%%%'
Thanks,
...
July 5, 2012 at 5:24 am
The description's a bit vague so this is something of a guess:
SELECT [Column 1], [Datatime],[Column 2] , [Column 3]
FROM [test].[dbo].[upload] S
WHERE NOT EXISTS (
SELECT 1
FROM [test].[dbo].[upload] x
WHERE x.[Column 2]...
July 5, 2012 at 5:21 am
Hi Paul
Here's what I suggest you do.
First, comment out the three CROSS APPLY blocks and the references to their results in the output of the query, like so:
SELECT ...
July 5, 2012 at 4:57 am
Brandie Tarvin (7/5/2012)
http://lasrsff.blogspot.com/2012/07/legend-of-beemen-by-brandie-tarvin.html
Excuse me while I bounce...
July 5, 2012 at 4:49 am
dwain.c (7/4/2012)
+1 to Chris for trying!I guess now I'll need to check whether I'm using the right version of DelimitedSplit8K!
Cheers mate. It had to be done, and it was fun...
July 5, 2012 at 4:13 am
Gullimeel (7/5/2012)
-- ntext does not support CHARINDEX
But it could very well use the patindex 🙂
The third parameter of CHARINDEX makes it very useful for trivial string splitting. How would you...
July 5, 2012 at 3:28 am
onkarnath (7/5/2012)
Its just a simplification. In reality this view selects many columns.-Onkar
Can you please post the actual plan as an attached .sqlplan file? Thanks.
July 5, 2012 at 2:20 am
Does the view really start with SELECT 1 FROM dbo.PayorHeader or is this a simplification?
July 5, 2012 at 2:11 am
Does this help?
DROP TABLE #Temp
SELECT Value1 = CAST(Value1 AS ntext)
INTO #Temp
FROM (
SELECT Value1 = 'XXX XXXX:Test Indexing:04 Environment and Approvals:00 Remote Operations Centre:01 Application:02 MDP:figures for MDP:Carrooda ANEF.pdf '
) d
SELECT...
July 5, 2012 at 2:10 am
Jeff Moden (7/4/2012)
Chris,Which version of DS8K did you use? The one from the article or the updated one in the attachments?
It was an old version :blush: the updated one...
July 4, 2012 at 9:46 am
Hi Jeff
This one, which I'm pretty sure is the most recent:
ALTER FUNCTION [dbo].[DelimitedSplit8K]
--===== Define I/O parameters
(@pString VARCHAR(8000), @pDelimiter CHAR(1))
RETURNS TABLE WITH SCHEMABINDING...
July 4, 2012 at 9:21 am
ferrarielly (7/4/2012)
the function is the following:
ALTER FUNCTION [dbo].[LI_Vista_RigheEvadibili_FiltrataFn]()
RETURNS @Results TABLE (Progr decimal(18,0),
codclifor varchar(7),
DOCTYPE varchar(3),
NUMDOC decimal(18,0),
AS
insert into @Results (Progr,codclifor ,DOCTYPE,
NUMDOC)
(select td.Progr,td.codclfor,
td.DOCTYPE,td.NUMDOC,
where extd.maglogisticaT=1 and
td.TIPODOC in ('AAA','BBB')
return
end
The td table is...
July 4, 2012 at 6:18 am
Viewing 15 posts - 6,106 through 6,120 (of 10,144 total)