Mark A Kruger wrote:
> 
> But if the cached plan is "select col1, col2 where col1 =
> @boundCharacterVar1, then you will indeed get a cached hit by binding 'abc'
> or '123' or whatever. That's the beauty of databinding.

Getting a cached plan is a mixed blessing. If I have a table with 
a dominant value and the cached plan is optimized for that value, 
it will perform very poor if one of the other values is in the 
bind var.

Jochem

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183917
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to