I was out at lunch with some clients and started discussing properties of database systems and the idea of MySQL not having stored procedures popped up its ugly head again. I explained it did have stored procedures as from 5.0 version, but started a heated debate about whether they were actually of any use any more? Why was there a debate over this issue, I simply said, they are no longer important as they once were.
I put forward the question as to why stored procedures were used and after discussion everyone came to the opinion that they are used primarily for two purposes:
1. A data-level API interface.
2. For encapsulating and abstracting larger, multiple queries or
transactions, thus keeping the load on the server, rather than on
the network.
Everyone agreed that the second option was still valid, although seemed to be less required now, it was the idea of using stored procedures to maintain an API interface …
[Read more]