Jump to content

Recommended Posts

I won't lie, MySql and DBMS's aren't exactly my strong point. I was reading some stuff about stored procedures but I'm trying to determine their place in my applications.

 

A lot of the queries I perform require custom params and such. Can anybody clarify where I might use them or an example of php applications which use them?

Link to comment
https://forums.phpfreaks.com/topic/221812-stored-procedures-vs-otherwise/
Share on other sites

Complex systems where there's an extensive amount of queries and DB-related logic for a single process benefit largely from stored procedures. Not having to communicate back and forth between the server is a huge time/resource saver, but also creates a better separation between DB and application logic (in complex systems).

 

For example large companies where a single transaction requires a large amount of DB logic and can touch many tables, and even multiple databases, are the kind of thing they're best suited for. They can be useful in smaller applications of course, but it's probably not worth splitting the code/logic between the web server and the database server for something so small.

 

Not to mention, some systems/applications are based purely on the database server.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.