Skip to content

AI Database Analysis

AI Analysis produces a report from the database metadata you select. Your chosen AI model reviews statistics, identifies issues and proposes changes with supporting evidence.

Set up a provider in Settings › Intelligence first. If the provider list is empty, click Open Settings to add an API key.

  1. Open Admin › AI Analysis.
  2. Choose an Analysis Type.
  3. Select the categories under Data to Include.
  4. Continue to Configuration and choose how you manage the schema.
  5. Select a Provider and Model.
  6. Continue to Review & Analyze.
  7. Check Data Selected, AI Model, Schema Management and Estimated Tokens.
  8. Click Analyze.
Analysis type Use it for
Database Health Check A general review and priorities for further work.
Performance Audit Query costs, indexes and connection activity.
Storage Analysis Table sizes and storage use.
Index Optimization Missing, unused or redundant index candidates.
Custom Analysis A question you write about the database.
AI Analysis Select Data step with the five analysis types and the Data to Include checklist with token estimates

Choose Application Managed (ORM/Migrations) when your application controls schema changes through migrations. The report includes guidance for that way of applying changes.

Configuration step with Schema Management options and the Application Managed (ORM/Migrations) choice selected
Choose Model step with the Provider and Model pickers, context size and price per million tokens
Review & Analyze showing the selected evidence, AI model, schema management and estimated tokens

Select the information needed for your question. Categories appear according to the database and available access.

Category Evidence it contributes
Automatic Checks Results of fixed, read-only database checks.
Schema Table, column and key definitions.
Table Statistics Table sizes and maintenance statistics.
Index Statistics Index definitions, sizes and usage measurements.
Server Configuration Database settings and version information.
Slow Queries Recorded workload timings and sanitized query text.
Connection Analysis Session activity and available blocking information.

Report evidence excludes table rows and removes literal values from workload SQL. Your custom request and follow-up messages also go to the provider. Read what AI sees for the full sharing rules.

Database Examples of report evidence
PostgreSQL Catalogs, cumulative activity, maintenance statistics and recorded workload.
MySQL and MariaDB Table and index metadata, server statistics and Performance Schema workload.
SQLite Schema, optimizer statistics and optional dbstat sizes.
SQL Server Catalog metadata and available table or index statistics.
Amazon Redshift System workload statistics and distribution or sort design.

For PostgreSQL, MySQL, MariaDB and SQLite, the model can request additional details within your selected evidence categories. These checks can include eligible plain EXPLAIN plans. They cannot retrieve application rows, execute arbitrary model-written SQL or run recommendations automatically.

Click a citation such as HC-004 to inspect its measurements. Open Evidence to browse or search the collected evidence.

Check each recommendation’s confidence and scope. Compare its evidence with your application’s workload before deciding to apply it. See admin data unavailable when an extension, configuration or permission prevents collection.

Completed analysis with evidence citations and the searchable Evidence inspector

Ask follow-up questions in the report conversation. History reopens a saved analysis with its original database context. Choose New Analysis to collect a fresh starting set of evidence.

Review any recommended SQL before selecting Run in Background. Execution follows the connection’s query guardrails, and saved report SQL requires a matching active database context.