by wheels · 4y ago · 0 comments
(Note: I've actually written a graph database from scratch, for exactly these reasons.)
Fixed that for you. ;-)
Actually a few RDMBSes (Oracle, Postgres, MS SQL) have graph extensions. I've never used any of them, but I assume they work around some of the basic unsuitability of traditional tables for storing graphs.
Also, in this case, "probably less" is "multiple orders of magnitude slower".
const unsigned *edge_indexes = (const unsigned *) mmaped_structure_on_disk[disk_offsets[index]];
That's not the same as just being able to access those via an API; locality in this case means that you shouldn't need extra seeks for every single value, nor have to make a bunch of round trips through SQL.That is the primary difference between traditional relational databases and column-oriented databases. Normal relational databases have row-based locality; column-oriented databases have column-based locality.