Viewing 15 posts - 46 through 60 (of 157 total)
Get out of bed people, I'm excited!
I've uploaded the actual query plan (1.Original.sqlplan) and it indeed has got the estimated record counts wrong all along the staging table branch and...
February 6, 2013 at 7:42 pm
Thanks! That hit the nail on the head - if I understand correctly it's forcing the optimiser to realise it's a 1:n join. The plan is quite different but most...
February 6, 2013 at 3:49 pm
I'm interested in getting to the bottom of it. In fact it's far more interesting than what I'm meant to be doing which is why I'm having difficulty spending the...
February 6, 2013 at 5:57 am
Honestly speaking database design is under physical design phase so cant tell whether my approach is good or not ? thats the reason i posted the question here.
I really think...
February 6, 2013 at 5:55 am
Thanks. The estimated plan for just the SELECT is missing everything after the loop join (including stream aggregate), but everything before (indexes used etc.) is exactly the same.
Tomorrow I...
February 6, 2013 at 5:42 am
Those are very general benefits but it sounds like you've convinced yourself anyway.
If you are talking about having a seperate detail and summary table then it's not vertical partitioning...
February 6, 2013 at 3:59 am
I did try running just the SELECT query early on in the piece and also when I was trying to get the Actual plan. In both cases I stopped it...
February 6, 2013 at 3:53 am
I was afraid you were going to say that - so the only way to get the actual plan is to run this interactively in SSMS with that option ticked?...
February 6, 2013 at 3:00 am
p.s. The plan that comes from sys.dm_exec_query_plan is the estimated plan, because it has no actual row counts.
Are you saying that actual plans are not in that table? or are...
February 6, 2013 at 2:40 am
Why do want to divide the load? Do you have a performance or design issue requiring this? For population of summary table you could also use views, triggers and/or a...
February 6, 2013 at 2:09 am
OK I extracted what I think is the actual plan from sys.dm_exec_query_plan and it was identical to the estimated one that I uploaded, so we can assume the uploaded query...
February 6, 2013 at 2:07 am
The stored procedure (or application layer object) that creates the record takes care of that. For example you create the record in the first table, use SCOPE_IDENTITY() to get the...
February 5, 2013 at 11:03 pm
Thanks for your interest and suggestions everyone.
I have uploaded usage stats.
The query has not completed for a couple of days, and we have rebooted the server since then so I...
February 5, 2013 at 6:37 pm
OK, I have reposted an unsanitised query, the sqlplan file, the DDL, and a picture of part of the query plan.
I can try clustering SE on RowNum_Start and RowNum_End but...
February 5, 2013 at 4:39 pm
Sure, I'll do it first thing tomorrow at work, thats in about 11 hours, thanks for your interest!
February 5, 2013 at 5:20 am
Viewing 15 posts - 46 through 60 (of 157 total)