From: James Edward Gray II Date: 2007-07-18T00:48:41+09:00 Subject: Re: possibly bulletproof eval() On Jul 17, 2007, at 10:42 AM, Ryan Davis wrote: > > 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). That's true. I handle it just like you do. I made my assumption about how he was doing it from his comment, "I'm converting images on a filesystem into blobs in a database." James Edward Gray II