logoalt Hacker News

arcrwlocktoday at 3:36 AM1 replyview on HN

Why not use a struct of arrays?

https://en.wikipedia.org/wiki/Data-oriented_design


Replies

mustache_kimonotoday at 3:40 AM

> Why not use a struct of arrays?

I would assume because then the shape of the data would be too different? SOAs is super effective when it suits the shape of the data. Here, the difference would be the difference between an OLTP and OLAP DB. And you wouldn't use an OLAP for an OLTP workload?