6 ms·
Stored procedures often offer a better and more efficient way to implement data validation than non database native alternatives.
by ako 7y ago
Stored procedures often offer a better and more efficient way to implement data validation than non database native alternatives.
- bayesian_horse 7y agoIt may indeed be efficient. Maybe I just don't like the idea of putting all my application logic into SQL statements. What I like about Django's ORM, for example, that you can declare a field to be an IP address, and this not only does the validation (which SQL can do easily, I am sure), but this declaration also carries over to HTML forms, admin interface, REST API serialization and HTML Templates.