Hello,
I have about 50 discrete boolean values that I need to store in the database. These are logged every few seconds so I will be storing a lot of them over time.
The way this data would be used is: 1) Access a bulk of time to see flag status history 2) Find times at which flag changed status
Once stored, the records will not be updated.
Would you recommend storing each value in its own column, or bundling them in an integer values and storing in a few columns?
I am mostly curious about which approach would be better for storing/accessing data as it gets bigger? Eventually I will be getting data from multiple units 24/7, so there will be a lot of data, so I guess my question is: is there a performance/stability tradeoff between packed integers and individual columns.
I am using MySQL with VB.NET and PHP interfaces to it, but the question is more of a generic database design rather than mysql-specific.
Thank you,