From: Austin Ziegler Date: 2006-09-12T07:09:04+09:00 Subject: Re: Joel Spolsky on languages for web programming On 9/9/06, M. Edward (Ed) Borasky wrote: > 1. I don't consider a 4X speed improvement on a matrix multiply and > inverse, which is what I got with YARV over Ruby 1.8.5, "premature > optimization". > > 2. If the bottleneck is the database, why does Rails frown on stored > procedures, preferring instead to do everything in the ActiveRecord ORM? It's an Opinion. A potentially valid one, but just an Opinion. Frankly, DHH has made a number of mistakes in his Opinions on what a database should do. Some of these are worse than others -- encoding MySQL semantics into AR behaviour (when MySQL is *not* doing the right thing by any measure) is a good one. But there's nothing *inherently* wrong with stored procedures or triggers. There's good reasons for having them and using them; there's good reasons for not using them even if they are available (they weren't available for MySQL for a long time, IIRC). Certain things -- like audit logging -- I *only* want done with database triggers. -austin -- Austin Ziegler * halostatue@gmail.com * http://www.halostatue.ca/ * austin@halostatue.ca * http://www.halostatue.ca/feed/ * austin@zieglers.ca