Andy Ousterhout wrote:
> Lets say that I need to look up an invoice by 2 different mechanisms:
>     Internal reference/Key
>     2 strings
> 
> Will the execution plan for a stored proc for the Key be different enough from
> one for the strings to justify creating 2 stored procs?  Right now I've got a
> single stored proc that does both.

The execution plans will be different enough to justify creating 
2 execution plans. This requires 2 queries, but depending on your 
database you might be able to put multiple queries in one stored 
procedure.

Jochem

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191294
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to