MutterCorp
MutterCorpNotice · Notícias
Programação·

Postgres in CI doesn't need to survive a crash

Every CI test job starts a new, empty Postgres database. When the job ends, CI throws the database away. But Postgres doesn't know that. It protects this database like real customer data: when data is saved for good, Postgres waits until it is safely on the disk. This waiting is slow. We told Postgres to stop waiting. Our tests in CI went from 6.0 to 4.7 minutes. Why Postgres waits When you save data, Postgres doesn't just keep it in memory. It writes it to the disk and waits until the disk say…

Publicado no Notice. Categoria: Programação.

Notícias sobre o mesmo assunto em outras fontes