Feature
Insights: what Tablux tells you the moment you connect
The first time you open a connection, Tablux starts on Insights: table sizes, approximate row counts and a short list of findings, such as a foreign key with no index or a table with no primary key. Those come from catalog queries run on your device, with no AI. If you want more, one AI question builds a dashboard for your schema, and its read-only queries run on your device too.

At a glance
The first card counts your tables and adds up approximate rows and total size, then lists the five biggest tables with their rows and size. The numbers come from each engine's own catalog and statistics (pg_total_relation_size and reltuples on PostgreSQL, information_schema.TABLES on MySQL, _cat/indices on Elasticsearch, collStats on MongoDB, DescribeTable on DynamoDB), so row counts are estimates wherever the engine only keeps estimates.
Insights runs on a second connection of its own, separate from your editor. That connection is read-only: on PostgreSQL, MySQL and SQLite the database server enforces it, and on the other engines Tablux's session refuses anything that isn't a read. Nothing Insights runs can change data, and it doesn't hold up your editor.
Findings, worked out on your device
Below the sizes, a “Worth a look” list shows structural problems Tablux found with catalog queries. No AI is involved and nothing about them leaves your device.
- Foreign keys without a leading index (PostgreSQL, SQLite). Neither engine indexes the referencing column for you, so joins on it and deletes on the parent scan the whole child table. MySQL's InnoDB creates an index for each foreign key itself, so there is nothing to check there. More in Postgres foreign key indexes.
- Unused indexes (PostgreSQL). Indexes over 1 MB that are neither unique nor a primary key and show
idx_scan = 0inpg_stat_user_indexes, biggest first. They cost disk space and slow every write to the table. - Tables without a primary key. Duplicates creep in, and editing or replicating single rows gets hard.
- Empty tables, listed by name.
- Elasticsearch and OpenSearch: indices whose health is red (primary shards not allocated, so part of the data can't be searched) or yellow (replicas not allocated, common on a single node), and indices that map more than 1,000 fields.
- MongoDB: collections over 10,000 documents with only the
_idindex, and fields that hold mixed types in a sample ("42" and 42), which make queries silently miss documents. - DynamoDB: tables on provisioned capacity (with their read and write units, since spikes above them are throttled) and tables with point-in-time recovery off.
Where a finding has a fix, Put the fix in the editor writes it there. For a missing foreign key index that is a statement like this:
CREATE INDEX idx_order_items_book_id ON order_items (book_id);It never runs by itself. Read it, adjust it (on a big, busy PostgreSQL table you may want CREATE INDEX CONCURRENTLY, which doesn't block writes but can't run inside a transaction), then run it. The usual production guards apply.
The dashboard: one AI question, built for your schema
Tablux sends Claude, by Anthropic, your schema: table and column names, types, keys and approximate row counts. It never sends rows. Claude replies with up to 8 tiles, each a title, one line on what to look for, a chart type (number, bar, line or table) and a single query. Tablux drops any tile whose query isn't one read-only statement.
Expect a headline number, a trend by month, the top categories or customers, and at least one data-quality check, such as rows pointing at a missing parent.
The queries run on your device, over the read-only Insights connection, with a statement timeout on the server where the engine has one (statement_timeout on PostgreSQL, max_execution_time on MySQL, max_statement_time on MariaDB). Each tile is stopped after 20 seconds. The takeaway line under each chart is worked out on your device. Claude never sees the results. Each tile has Open in editor.
Building it uses one question of your AI assistant allowance, or one request on your own Anthropic API key.
Saved, and rebuilt only when the schema changes
The dashboard is saved on your device for that connection, with a fingerprint of its tables and columns. Reopening the connection runs the saved queries again and asks the AI nothing. Only a new table or column, not new rows, leads to a new dashboard. You can also rebuild it yourself, for one question.
A dashboard builds by itself only once you have set up the assistant and agreed to what it sends. Until then the card says Build my dashboard, and the first tap asks for your consent.
On production, it waits for you
On a connection tagged Production, the dashboard is written but its queries don't start until you tap Run N queries. Tablux does the same for SQLite files with more than 5 million rows, since SQLite queries run on the device itself.
What Insights doesn't do
- No dashboard on DynamoDB. PartiQL has no GROUP BY or COUNT, so there is nothing to chart. Insights still shows each table's size, keys and secondary indexes, the findings above and the entity types found in a single-table design.
- No query tuning. Findings come from the schema and catalog statistics, not from your slow query log or query plans.
Questions
Does Insights need the AI assistant?
No. At a glance and the findings use catalog queries on your device. Only the dashboard asks the AI, and only after you agree to what it sends.
Is it safe to open Insights on a production database?
Insights uses its own read-only connection with statement timeouts, and on production the dashboard waits for you to tap Run before any of its queries start.
Why does Tablux call an index unused when we rely on it?
The check reads idx_scan from pg_stat_user_indexes, which counts since statistics were last reset and only on the server you are connected to. A replica that serves reports keeps its own counts, so check there before dropping anything.