sql-explain-advisor
Parse PostgreSQL EXPLAIN (ANALYZE, BUFFERS) output and get missing-index suggestions + query fixes. Zero dependencies.
from sql_explain_advisor import report
report(sql, explain_output)
# [1] MISSING INDEX on users.email (scanned 1000000->1, sel 0.0001%)
# CREATE INDEX CONCURRENTLY idx_users_email ON users (email);
Detects: low-selectivity Seq Scans (missing index), nested-loop amplification, disk sorts, SELECT * bloat. Honest: suggestions are heuristic from the plan — always verify with EXPLAIN before/after on your DB.
MIT © Aman Bhawsar
Metadata
Release files for sql-explain-advisor 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sql_explain_advisor-0.1.0.tar.gz | 6.9 kB | Without provenance | Details for sql_explain_advisor-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sql_explain_advisor-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for sql_explain_advisor-0.1.0-py3-none-any.whl |
Total release size: 14.6 kB
Release files / sql_explain_advisor-0.1.0.tar.gz
| Download URL | sql_explain_advisor-0.1.0.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2883ed36221b629b78aa29d22232b9a27490b73da81c13e509be398499a8996f
|
|
BLAKE2b-256 checksum How to use checksums |
3a3158451db55b7d05d5598450c503fb353f21ddbc5e0eb75e89f0d71308e561
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|
Release files / sql_explain_advisor-0.1.0-py3-none-any.whl
| Download URL | sql_explain_advisor-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c806c675808936e05aff6c9b433c676ede6abcce03a77258676650159550de1f
|
|
BLAKE2b-256 checksum How to use checksums |
292ce26ce2cebc152c978e485983e69306a49340a650bb0cdc6938150667f4ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|
Security for sql-explain-advisor 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.