Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Which is faster, Insert(.... or Procedure(... that does Inserts?

Which is faster, Insert(.... or Procedure(... that does Inserts?

From: Ken Sproule <kenmn_at_tds.net>
Date: 2000/03/16
Message-ID: <vbg2dss3q1lrpf1ehvmk0s825cb2rp5bgp@4ax.com>#1/1

Thanks to all in advance.

The question involves calls from a C++ program using Microsoft's ADO.

If you execute a command using ado that is a string like:

 "insert into TableA ( filed_1 , field_2 ) values( 1 , 2 );"

Then execute a stored procedure like "call Procedure_A( 1 , 2 ) and let the
stored procedure do the inserting like:
psudo-code - Procedure_A( 1 , 2 ) {

	insert into TableA ( filed_1 , field_2 ) values( 1 , 2 );"
	}

Which one is actually faster. Is the procedure faster because the access path is precompiled in?

Best,

Ken Sproule
kenmn_at_tds.net

Ken Sproule
kenmn_at_tds.net Received on Thu Mar 16 2000 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US