Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Storing files in a database

by gmax (Abbot)
on Aug 11, 2003 at 09:34 UTC ( [id://282799]=note: print w/replies, xml ) Need Help??


in reply to Storing files in a database

Personally, I had good results storing binary files in a database. See some technical advice at
Handling huge BLOB fields with DBI and MySQL.

Notice that you don't have to store the file as one whole field, but you can split it into easy-to-manage chunks. That node explains how to store and retrieve files that way.

About using the file system instead of a database, in the same thread there is an exchange of opinions, where both sides are evaluated. In addition to what is stated there, I would say that storing in a database is advisable if you plan to replicate the database to some other machine. Since MySQL has a built-in replication engine, you should consider this fact as well.

 _  _ _  _  
(_|| | |(_|><
 _|   

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://282799]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (7)
As of 2024-04-23 10:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found