Your choice should depend on the amount of data and transactions. If the amount of BLOB
data are less(say no of files are less than 10000) you can follow these steps other wise it may be a bottle neck as per this article.
Is it better to use a separate table for blobs?
Did you mean one table
with all the columns as BLOB
type.I dont think it is a good idea.
What to do then?
BLOB
is one of the many data types available in SQL. Your data base design should not be depending on datatype you use
. Say you want to store User details including the image of the user. I feel there should a column in User
table usrImage
to be store the image with type BLOB
. It does't really matter if I use BLOB
or not I would continue to have a User
table.
BLOB
are similar to any other datatype, So attach them to where ever they fit in your DB design.