Re:Reddit goes open source - the actual announcement from re...
by asnyder on Wednesday June 18, 2008 @01:09PM
(#220899)
How is that cool? That should be standard with PostgreSQL. User defined functions lend themselves to be used, and are far easier to do in PostgreSQL than other databases. It's shocking that using functions/stored procedures is an anomoly, it should be standard. It is in all our projects.
[ Parent
| on HN ]
Re:Reddit goes open source - the actual announcement from re...
by y0ghur7_xxx on Wednesday June 18, 2008 @01:30PM
(#220918)
Usually I avoid using SPs so I can be database independent. If you need to switch database and don't have SPs you don't have to rewrite all that logic. Another reason not to use them is that the DB is difficult to scale. You can avoid using valuable CPU time for SPs on the DB server if those functions can be executed on the application or middle tier layer (that one scales well) as well.
But when I don't have scaling problems, or don't plan to change DB I use them as well.