Re:Bye Bye Mongo, Hello Postgres (2018)
by jabberwcky on Sunday December 27, 2020 @11:20AM
(#25552012)
Mongo stores objects pretty much the same as PG here, a single key update requires a rewrite of the object. Maybe Mongo has some fancy algorithms to avoid full decode/reencode in some cases, but in principle the physical data formats are almost identical
[ Parent
| on HN ]
Re:Bye Bye Mongo, Hello Postgres (2018)
by isbvhodnvemrwvn on Sunday December 27, 2020 @12:47PM
(#25552733)
In a tiny bit more detail - mongo uses BSON, which is effectively TLV encoded json. I'm not sure how storage of entire collections is done though.
> (...) BSON, which is effectively TLV encoded json.
For those who, like me, never heard of TLV prior to this post, it's type-length-value encoding.