blob vs. many columns
Posted by: David Picard
Date: July 04, 2012 05:42AM

I have to store data sets of FLOAT, whose size may vary from about 20 to 300 values. I use InnoDB as the storage engine.

I am thinking of 2 options :
1/ use a BLOB
2/ create 300 columns in a table, and set unused values to NULL

Option 1 will optimize the storage size, but read/writes may be more complicated.
Option 2 will be easier to read/write, but there will be many NULL values. How about NULL values storage ?



Edited 1 time(s). Last edit at 07/04/2012 05:46AM by David Picard.

Options: ReplyQuote


Subject
Written By
Posted
blob vs. many columns
July 04, 2012 05:42AM
July 05, 2012 06:10AM
July 05, 2012 07:14AM
July 06, 2012 12:51PM
July 09, 2012 01:13AM
July 24, 2012 03:29PM
July 25, 2012 09:24PM
July 23, 2012 01:32PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.