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.
Create an AI Database Analysis report
Section titled “Create an AI Database Analysis report”Set up a provider in Settings › Intelligence first. If the provider list is empty, click Open Settings to add an API key.
- Open Admin › AI Analysis.
- Choose an Analysis Type.
- Select the categories under Data to Include.
- Continue to Configuration and choose how you manage the schema.
- Select a Provider and Model.
- Continue to Review & Analyze.
- Check Data Selected, AI Model, Schema Management and Estimated Tokens.
- 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. |

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



Choose evidence
Section titled “Choose evidence”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 differences
Section titled “Database differences”| 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.
Inspect the report
Section titled “Inspect the report”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.

Continue or reopen an analysis
Section titled “Continue or reopen an analysis”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.
Related
Section titled “Related”- Slow queries and indexes to inspect the underlying workload and index statistics.
- Storage and maintenance to review table sizes and run maintenance.
- Explain a query plan for one statement.
- AI key or model problems for provider failures.