by optimiz3 · 12y ago · 0 comments
{ "user": "test", "isValid": true }
will at a minimum cost 8M * (4 + 7) simply due to field name overhead. MongoDB isn't smart enough to alias common field names, and this has remained as one of its biggest problems.
The JSON support in postgres allows a hybrid approach. Put the common data in a tabular format, with a JSON column that stores all the extra, variable data.
http://www.postgresql.org/message-id/5323D45F.1080503@agliod...