Viewing 15 posts - 1,126 through 1,140 (of 1,957 total)
Really baffling why the inserts are so slow during the run...
Can you try switching the index on #results to a clustered one?
CREATE CLUSTERED INDEX #IXS ON #RESULTS(LEVEL);
October 11, 2012 at 1:41 pm
Have you got a select that produces more rows? I hadn't spotted that one was only 25 rows, which is far too small a sample.
We need one that produces about...
October 11, 2012 at 12:43 pm
And the same details for that query inserting into tempdb
select id,ParentID,ChildID
INTO #test
FROM yourTable
where parentID=blah....
October 11, 2012 at 11:51 am
so can you try a simple select from your table for a parent that is at level 2 or 3?
use variables to exclude any network latency e.g.
select @id=id,@parent=ParentID,@child=ChildID
FROM yourTable
where parentID=blah....
This...
October 11, 2012 at 11:27 am
Hmmm, that still looks terrible, doesn't it...
Let's hope your laptop is just very slow to write to disk!
October 11, 2012 at 10:39 am
Ok, that looks interesting.
You can see that each insert is taking a very long time.
Can you try creating a permanent table somewhere other than tempdb for the results - instead...
October 11, 2012 at 10:26 am
That actual execution plan was for a run that only pulled top level items, no children at all, so we can't tell much from that.
Can you run it again for...
October 11, 2012 at 10:12 am
Thanks for the plan, but that seems to be an estimated plan, not an actual plan?
Can you produce a plan from an actual execution please?
And also include SET STATISTICS_TIME ON;...
October 11, 2012 at 10:02 am
haiao2000 (10/10/2012)
I really appreciate that you spend time write up this great post. I am still trying to understand how your code works myself :-).
The part I don't understand is...
October 11, 2012 at 12:44 am
Hi there, I would like to offer you my own twist on this using the "identity hack".
The outline of the logic is to replace the recusive cte with a recursive...
October 10, 2012 at 4:32 pm
opc.three (10/9/2012)
mister.magoo (10/9/2012)
Obviously, you must ensure the web site has only ASP.NET Impersonation and Windows Authentication enabled in the "Authentication" settings for this to work...
You do make it seem simple,...
October 9, 2012 at 4:36 pm
I have a question - how are you supposed to deploy from DEV->QA->PROD with embedded credentials/data sources?
They will surely need to be different for each?
Also, wonder about the security...
October 9, 2012 at 4:34 pm
JimS-Indy (10/9/2012)
October 9, 2012 at 3:54 pm
Viewing 15 posts - 1,126 through 1,140 (of 1,957 total)