mysql blob 好处_什么时候使用MySQL BLOB推荐?

bd96500e110b49cbb3cd949968f18be7.png

I'm coding an application that will be uploading and deleting many files, i usually just move the files to a folder in the server naming them with the row unique id. But as i understand MySQL also lets me store binary data (files) when would this be a better choice?.

Please use solid arguments, like When

does using BLOB will mean performance

improvement?.

P.S: I'm using MyISAM if that matters.

Thanks.

UPDATE:

UPDATE 2

Storing the files in the database is

not a need i'm trying to know when

is this a better idea than storing

them in folders.

解决方案

Read:

which concludes

If you on occasion need to retrieve an

image and it has to be available on

several different web servers. But I

think that's pretty much it.

If it doesn't have to be available on

several servers, it's always better to

put them in the file system.

If it has

to be available on several servers and

there's actually some kind of load in

the system, you'll need some kind of

distributed storage.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值