benclmnt / papers

Summary of my readings
1 stars 0 forks source link

Database Articles #3

Open benclmnt opened 2 years ago

benclmnt commented 2 years ago

Uber's switch from PostgreSQL to MySQL (2016)

tl;dr: Uber has a lot of secondary indexes. Some of Postgres MVCC design suffer from write amplification as all indexes needs to be updated on any tuple update + replication amplification as all update needs to be written to WAL, and WAL will need to be shipped to replicas.

Postgres InnoDB
postgres index records pointing to on-disk location innodb index records add a layer of indirection
benclmnt commented 1 year ago

Figma's Vertical Partitioning

image

Figma has the largest single managed Postgres deployment. They decided against self-hosting and trying horizontal partitioning solutions. This article focused more on how they do their 2-step migrations: (1) PgBouncer and (2) data.