From: Ryan Davis Date: 2007-07-18T00:42:57+09:00 Subject: Re: possibly bulletproof eval() On Jul 17, 2007, at 06:42 , James Edward Gray II wrote: > My database teacher use to harp on and on about how file data > belonged in the file system (not a database). His primary > reasoning was that you can't meaningfully query it so you don't > gain anything from the database structure. I've also found that > things get complicated as soon as I have a large enough file stored > in a database. Agreed, but you can't tell from his code sample that he's not doing that already. We've got a similar model class (tree of classes actually) whose @content doesn't go the db but gets saved in a after_save handler instead. He might just be storing the useful stuff in the db (dimensions, size, mimetype, and just having a row so tagging and other referential things can happen).