I am trying to decide between two possible implementations and wish to choose the best one :)
I need to add an optional BLOB field to a table that currently has only 3 simple fields. It is assumed that the new field will be used less than 10%, and maybe even less than 5% of the time, so for most lines it will be zero - in fact, most of our customers will probably never have any BLOB data.
First of all, a colleague had to add a new table to store only BLOBs, with a (zero) foreign key in the first table. He predicts that when querying the first table, this will have performance advantages.
My thoughts were that it was more logical and easier to store BLOBs directly in the source table. None of our queries makes SELECT * from this table, so my intuition is that storing it directly will not have significant overhead.
I am going to compare both options, but I was hoping that some SQL gurus have any advice from experience.
Using MSSQL and Oracle.
performance oracle sql-server blob
Mark pim
source share