Find the queries that cost you the most.

QueryLens reads PostgreSQL and MySQL slow query logs, groups equivalent queries by fingerprint, ranks them by time and flags common anti-patterns. This page runs the real Python package in your browser (via Pyodide). Your log never leaves your device.

Playground

Loading the analysis engine…

Sample logs
or
Options (same as the CLI flags)

About this demo

Install the CLI

QueryLens is published on PyPI as slowlens.

pipx install slowlens
# or: pip install slowlens
slowlens --version

slowlens postgresql.log --top 5 --sort p95
slowlens mysql-slow.log --output markdown
slowlens app.log --fail-on-hint QL001,QL003 --fail-over-ms 750