The Vertica Forum recently got a makeover! Let us know what you think by filling out this short, anonymous survey.
Please take this survey to help us learn more about how you use third party tools. Your input is greatly appreciated!

Storing Key Value Data

Which data model is preferred for Vertica to store key value pairs? Say, we read data from 1000 sensors (all at the same time) every 30 seconds. So after a year, we have one million data points of vectors of size 1000. So we have full dataset, i.e. dataset is not a sparse matrix.


Option 1: Store as key-value pairs (key=sensor_id, value=sensor_value)

Option 2: Have a table with 1000 columns, i.e. one column per sensor.


In general, what's the cost of having a table with too many columns?



Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file