Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


How to optimize the openxml queries showing remote scan


How to optimize the openxml queries showing remote scan

Author
Message
hi_abhay78
hi_abhay78
SSC Veteran
SSC Veteran (269 reputation)SSC Veteran (269 reputation)SSC Veteran (269 reputation)SSC Veteran (269 reputation)SSC Veteran (269 reputation)SSC Veteran (269 reputation)SSC Veteran (269 reputation)SSC Veteran (269 reputation)

Group: General Forum Members
Points: 269 Visits: 386
We have a 5000+ lines SP (i know what you will say:-D).
We have found that one of the batch takes 58% of the resources .
The reason is that the output is 1 row but the estimated rows that the optimizer assumes is 10000 and hence it is doing a remote scan .

this part of the SP captures only the XML file and does not use any table inside the database so that we can check for indexes isssue .So its nto using any table .

We tried hints like top 1 or fast 1 etc .This makes optimizer to estimate only one row by force but the subtree cost is still same .

I have also applied CU8 (Its SQL Server 2005 SP2) but still its behaving the same .

Any help is much appreciated .

Regards

Abhay Chaudhary
Sr.DBA (MCITP/MCTS :SQL Server 2005/2008 ,OCP 9i)
Aspet Golestanian Namagerdi
Aspet Golestanian Namagerdi
SSC-Enthusiastic
SSC-Enthusiastic (197 reputation)SSC-Enthusiastic (197 reputation)SSC-Enthusiastic (197 reputation)SSC-Enthusiastic (197 reputation)SSC-Enthusiastic (197 reputation)SSC-Enthusiastic (197 reputation)SSC-Enthusiastic (197 reputation)SSC-Enthusiastic (197 reputation)

Group: General Forum Members
Points: 197 Visits: 828
Hi ,I have similer problem,Could you solve it?
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search