CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Performance of code vs stored procedure

Print topic Send  topic

Author Message
ReneS

Posts: 225
Posted: 02/22/2008, 4:19 AM

Hi,

As the title says, is there a difference in performance when I use stored procedures to handle the update/insert/delete versus the code in the pages? Any difference in reliability etc.

Can someone give me some pointers?

Thanks,

Rene
View profile  Send private message
E43509

Posts: 283
Posted: 02/22/2008, 6:04 AM

I think yes. (and I've seen better performance). Especially on complex sql.
Once you create a stored procedure, the logic is already optimized and parsed and is close to the database.
When you send the sql statement over the wire, you not only have transmission time,but that sql needs to go thru an optimizer.
View profile  Send private message
wkempees
Posted: 02/22/2008, 6:25 AM

AND futher to the response, when stored procedure code is correct, then
reliability will be much higher also.
SP's are written to the DB, code remains unchanged, so once ok always ok.
Normaly a DBAdministrators task in larger environments.
Tou call the SP supply the parms and fire and forget.

Walter
"E43509" <E43509@forum.codecharge> schreef in bericht
news:247bed6765c003@news.codecharge.com...
>I think yes. (and I've seen better performance). Especially on complex
>sql.
> Once you create a stored procedure, the logic is already optimized and
> parsed
> and is close to the database.
> When you send the sql statement over the wire, you not only have
> transmission
> time,but that sql needs to go thru an optimizer.
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.