在数据库中存储大量图像是愚蠢的吗? [英] Is is stupid to store large amounts of images in a database?

查看:49
本文介绍了在数据库中存储大量图像是愚蠢的吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在允许用户将图像上传到我的应用程序时遇到了难题.我的主机允许无限的存储空间,但仅允许250k单个文件.我的年龄为125k,并且计划发布一项功能,该功能将允许用户上传图像.如果我开始上传大量图像,则可以迅速填满该配额.我考虑过将它们存储在MySQL等数据库中.这是可行的解决方案,还是只是愚蠢?如果这只是愚蠢的,那有什么免费/便宜的选择呢?

I'm having a dilemma with allowing users to upload images to my application. My host allows unlimited storage space, but only allows 250k individual files. I'm at 125k, and I'm planning on releasing a feature that will allow users to upload images. If I start getting a large amounts of images uploaded, I could quickly fill that quota up. I thought about storing them in a database such as MySQL. Is this a feasible solution, or just plain stupid? If it's just stupid, what would be some free/cheap alternatives?

推荐答案

是的,将图像数据放入db有点愚蠢.
我会考虑使用类似 Amazon S3 之类的东西进行存储.

Yeah, putting the image data in a db would be kind of silly.
I'd look at using something like Amazon S3 for storage.

这是几年前在Jeff讨论的CodingHorror 帖子中.

这篇关于在数据库中存储大量图像是愚蠢的吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆