|
|
|
|
|
by lneves
6203 days ago
|
|
If your objects have a wide variety of attributes, either you need lots of columns with many of them empty, or you need some sort of attribute table with object-key-value triples. Both are bad relational design, but the structure is inherent in the data. If you're having to use a fixed DB schema, I can't see any way around bad design. PostgreSQL HStore is very handy in situations such as this:
http://www.postgresql.org/docs/8.3/static/hstore.html |
|