paint-brush
Finessing Postgres into an Insane 200x Faster Query Planby@cube2222
271 reads

Finessing Postgres into an Insane 200x Faster Query Plan

by Jacob Martin10mFebruary 17th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Spacelift is a CI/CD platform specializing in [Infrastructure as Code]. Users create Runs (executions of, i.e., Terraform) which will be executed on Worker Pools. The query is supposed to notify us when the public Worker Pool cannot handle demand – user Runs are waiting too long to be handled by a Worker Pool. We couldn’t move these queries to Redshift because of the staleness of the data there. We had to optimize, add indices, optimize, and again optimize until we cut the database usage of these metric-creating queries by 1-2 orders of magnitude.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - Finessing Postgres into an Insane 200x Faster Query Plan
Jacob Martin HackerNoon profile picture
Jacob Martin

Jacob Martin

@cube2222

I have the practical mindset of shipping, and building projects in as simple a way - but not simpler - as possible.

About @cube2222
LEARN MORE ABOUT @CUBE2222'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Jacob Martin HackerNoon profile picture
Jacob Martin@cube2222
I have the practical mindset of shipping, and building projects in as simple a way - but not simpler - as possible.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Newsbreak
Tefter
Learnrepo
Coffee-web