3 ms·
We use stored procedures. We actually use them for a different reason: we treat the database server as an application server that happens to use an proprietary
by lowbloodsugar 9y ago
We use stored procedures. We actually use them for a different reason: we treat the database server as an application server that happens to use an proprietary binary protocol instead of HTTP. Its API is exposed using stored procedures. This allows us to maintain and update the database data model independently of the "traditional" web tier. DB experts can work on the most effective data model without hunting through client source code.
It also means that we can use access controls on the API (the stored procedures).
In my experience, allowing anyone to hit a database with SQL leads to poor code quality, bugs and performance problems. And security issues.