← Back to directory

Suggest B-tree indexes for your queries from a schema DDL: equality, range, join...

https://code.halowerk.com/v1/index-suggest

Overview

Suggest B-tree indexes for your queries from a schema DDL: equality, range, join and ORDER BY columns per table, checked against existing keys and indexes, with ready CREATE INDEX statements. Parses the schema (CREATE TABLE with inline and table-level keys, CREATE INDEX, pg_dump-style ALTER TABLE ... ADD CONSTRAINT; PostgreSQL or MySQL) with an own DDL parser and every query with node-sql-parser (SELECT, UPDATE, DELETE incl. joins, subqueries, CTEs, UNION).

Protocol x402 (POST)
Price $0.0030
Payment Asset USD Coin
Payment Network Base
Category uncategorized
Provider code
Source bazaar
Indexed 2026-11-20 13:10:04

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "queries": [ "SELECT id FROM orders WHERE status = 'open' AND created_at >= $1 ORDER BY created_at" ], "schema_ddl": "CREATE TABLE orders (id bigint PRIMARY KEY, customer_id bigint NOT NULL, status text NOT NULL, created_at timestamptz NOT NULL);" }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "limitations": [ "Heuristic: selectivity, table sizes and write overhead are unknown; verify every index with EXPLAIN (ANALYZE) on real data.", "Partial, hash, GIN and GiST indexes are not considered as covering." ], "result": { "covered": [], "failed_queries": 0, "notes": [], "parsed_queries": 1, "suggestions": [ { "columns": [ "status", "created_at" ], "create_sql": "CREATE INDEX CONCURRENTLY orders_status_created_at_idx ON orders (status, created_at);", "expression": false, "extends_index": null, "queries": [ 1 ], "reason": "equality on status; range on created_at", "table": "orders" } ] }, "service": "index-suggest", "status": "success" }, "type": "json" }