> -- Have you found performance bottlenecks with keeping images, or
> other binary data, in a database vs as static content on the
> filesystem?
Mike Botsko
unread,
Jun 11, 2009, 2:32:12 PM6/11/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pdx...@googlegroups.com
Ditto. The only time I ever stored images in the db, I ended up wishing I hadn't. When I had to transfer the database to another server, it's was very painful.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pdx...@googlegroups.com
On a Rails project in 2007, we stored the images and videos in the database. The theory was that it simplified deployment and management of the application.
Instead of having two different data stores-- a database and image
files-- there was just a database. The first time a given image was requested, it was served up through the database and then cached on the filesystem. After that first request, Apache served it directly from the file system, using mod_rewrite to check for the cached file. Doing it is all about ease of management.
On Thu, Jun 11, 2009 at 11:23 AM, Sam Keen <sam...@gmail.com> wrote:
Chris Fortune
unread,
Jun 11, 2009, 9:24:35 PM6/11/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pdx...@googlegroups.com
my vote is for the file system storage. SQL storage has performance issues and character encoding issues. Linux file system has been in use since Jan 1 1970!!, it's very efficient. Also there are a ton of image utilities out there that use the file system by default. The command shell is your friend :)