A query plan that took forty-four seconds
- problem
- A correlation pattern forced PostgreSQL into work that grew catastrophically on the full dataset.
- response
- I inspected the plan, changed the access path, and added the supporting normalized and trigram indexes.
Result: The worst query fell from 44 seconds to 0.2 milliseconds in the documented benchmark.
