Version 0.1, free and open source

Find the queries PostgreSQL plans badly

LQO runs each of your queries under PostgreSQL's default plan and under a set of planner settings, on a replica, and tells you which settings make which queries clearly faster. One binary, no extension, nothing changed on your server.

−36%

Time for the demo's trap query with the setting LQO found, 1,061 ms down to 684 ms

0 writes

Got through in tests that send writes past LQO's own checks. Every trial is read-only and rolled back

1 binary

No dependencies and no extension. PostgreSQL 14 to 18

Apache 2.0

License for all of the code

Measured on a two-core cloud machine with PostgreSQL 16. The test logs are on GitHub.

Guides and notes

Questions or ideas?

If LQO nearly fits your database, or you'd like it to do something it doesn't yet, write in.

Contact