Topic awaiting preservation: Blob vs filepath |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: [s]underwater[/s] under-snow in Juneau |
posted 05-14-2004 01:26
Could anyone tell me the relative advantages/disadvantages of storing binary data directly in MySQL instead of puting the files in a directory and storing a file path in the database? |
Maniac (V) Inmate From: under the bed |
posted 05-14-2004 01:53
I can't really say in regard to db/file, but everything I have read has also put excessive blob use in a bad light. |
Paranoid (IV) Inmate From: Sthlm, Sweden |
posted 05-14-2004 10:19
I can't back this up from a performance/tech way, but common sense tells me that if I don't have a very specific reason for it, large chunks of binary data belongs in a filesystem while the pointers (paths) and metadata for them belongs in the database. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 05-14-2004 12:07
Well - I have experienced first hand that storing images in a database is a sure way to make your site dog slow - We're talking a maximum of 6kbyte/second output here from a webhost that usually deliveres 85kbyte/second easily from files. |