Hacker News new | ask | show | jobs
by tremon 15 days ago
The Array-of-Struct vs Struct-vs-Array organization is actually more similar to row-major ordering vs column-major ordering, i.e. the data structure that analysis databases use to optimize for aggregate calculations. Document databases are not really comparable because they don't impose structure on the data; with document databases you just have a tree of JSON elements, which is neither AoS nor SoA.
1 comments

Or, another name for the same thing columnar: storage vs. row storage.