diff --git a/README.md b/README.md index 3ac2ad7..98bf17c 100644 --- a/README.md +++ b/README.md @@ -2,16 +2,17 @@

PostgreSQL version -License +License tests

---- - A PostgreSQL extension for recommending indexes to improve query performance. -Features: +![Dashboard](./docs/img/dashboard.png) + +## Features + - Supports generic parameters e.g. `$1`, `$2` - Supports materialized views - Identifies tables/columns obfuscaed by views @@ -53,9 +54,13 @@ select from index_advisor('select book.id from book where title = $1'); +``` + +```markdown startup_cost_before | startup_cost_after | total_cost_before | total_cost_after | index_statements | errors ---------------------+--------------------+-------------------+------------------+-----------------------------------------------------+-------- 0.00 | 1.17 | 25.88 | 6.40 | {"CREATE INDEX ON public.book USING btree (title)"},| {} + (1 row) ``` @@ -111,6 +116,9 @@ from and publisher.id = $2 '); +``` + +```markdown startup_cost_before | startup_cost_after | total_cost_before | total_cost_after | index_statements | errors ---------------------+--------------------+-------------------+------------------+-----------------------------------------------------------+-------- 27.26 | 12.77 | 68.48 | 42.37 | {"CREATE INDEX ON public.book USING btree (author_id)", | {} diff --git a/docs/img/dashboard.png b/docs/img/dashboard.png new file mode 100644 index 0000000..f23f4e0 Binary files /dev/null and b/docs/img/dashboard.png differ