Suggest B-tree indexes for your queries from a schema DDL
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).
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://code.halowerk.com/v1/index-suggest
| Category | Code and developer |
|---|---|
| Provider host | code.halowerk.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"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"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"dialect": {
"default": "postgresql",
"enum": [
"postgresql",
"mysql"
],
"type": "string"
},
"queries": {
"description": "Queries to support; placeholders ?, $1 or literals.",
"items": {
"maxLength": 50000,
"minLength": 6,
"type": "string"
},
"maxItems": 50,
"minItems": 1,
"type": "array"
},
"schema_ddl": {
"description": "CREATE TABLE and CREATE INDEX statements of the relevant tables.",
"maxLength": 1000000,
"minLength": 10,
"type": "string"
}
},
"required": [
"schema_ddl",
"queries"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}