View Full Version : Embedded SQL vs Stored Procedures
Gama Franco
09-07-2004, 08:10 AM
Hi,
I'm using OCCI to develop a new aplication, but I have one doubt about
the most efficient way to make an operation.
The operation makes inserts some rows in different tables, and also
creates some new tables. I would like to know if it is faster to compute
this kind of operations if they are hard codded in OCCI, or using a
stored procedure that recieves all the parameters needed and takes care
of the insertions and creations.
Best regards,
Gama Franco
How complex the operations are and how often they will be done would be
determining factors for me. In most senarios, SP are more efficient... so
unless the operations are extremely simplistic, like one or two statements...
or too complex, requiring too many outside parameters, and/or they are very
rarely done, such that maintaining a SP seems like overkill, I'd choose using
a SP or package.
Long response made short, IMHO, use a SP.
MyLounge.com Site Map
Forum:
Cars,
Cell Phone,
Database,
Games,
Home Improvement,
IT,
Music,
School,
Sports,
Web Design,
Web Server,
Weight Loss
The MyLounge.com forum is intended for informational use only and should not
be relied upon and is not a substitute for any advice. The information contained
on MyLounge.com are opinions and suggestions of members and is not a representation
of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for
the accuracy, completeness or usefulness of any postings or the qualifications
of any person responding. Please consult a expert or seek the services of an
attorney in your area for more accuracy on your specific situation. Please note
that our forums also serve as mirrors to Usenet newsgroups. Many posts you see
on our forums are made by newsgroup users who may not be members of MyLounge.com
Term of Service
vBulletin v3.0.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.