That time PostgreSQL said "no thanks, I don't need your index"
Introduction
Today I have an interesting tale of victory after PostgreSQL rejected our attempts to optimize a query. We had a query we were observing that was growing in latency. We analyzed it and determined the best course of action was to add an i...
jaywhy13.hashnode.dev9 min read
Great writeup! My team ran into a similar situation at work.
For the key point of:
I'd suggest linking the documentation reference; I believe it may be the Postgres doc on "routine vacuuming" (sorry for not including a link - the platform won't allow me to as a new user).
If there's a single takeaway, it might be "if you add an index to an existing database, run ANALYZE after."