Learning resourcesReviewed · Lovable

Lovable: Fix a slow database and choose the right capacity

This Lovable documentation page shows people building apps in Lovable, a chat-based app-building platform, how to find out why their project's database is slow and whether to fix queries, choose a larger database instance or add storage; Lovable's diagnosis and any extra capacity consume credits. It explains resource alerts, health checks, query optimization and capacity settings, including paid-plan restrictions, restart interruptions and storage increases that cannot be reversed.

Researched 14 Nov 2026

In short.

This Lovable documentation page helps people building apps in Lovable diagnose a slow project database and choose capacity, but Lovable's assistance and capacity changes can add credit costs that the page does not quantify. Its central advice is to investigate slow queries before buying a larger instance, and to distinguish processing capacity from storage space. The guide provides concrete navigation, example requests, plan restrictions and operational limits. It documents intended behavior; no features were executed, and performance improvements, diagnostic accuracy and actual costs are not assessed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete page at [https://docs.lovable.dev/features/database-performance.md]: high-load notices, resource-health cards, health checks, query optimization, instance sizing, estimates, chat resizing, storage constraints and troubleshooting. It includes the size-renaming notice and the restriction on returning to 2X-Large. The documentation index and linked pages about credits, database access, pausing and billing are excluded. No features were executed; diagnostic accuracy, performance improvements, applied-change correctness and actual costs remain unassessed.

The overview

Identity

The resource is Lovable’s documentation page “Fix a slow database and choose the right capacity” [https://docs.lovable.dev/features/database-performance.md]. It teaches database troubleshooting and capacity management through Lovable’s project chat and Database settings.

Assessment

The guide is useful for deciding whether slowness calls for query changes, a larger database instance or more storage. Its most valuable distinction is that the Disk health card measures read/write activity, while the Database storage row measures how much storage is occupied.

The instructions are specific enough to follow within an existing Lovable project. They do not establish how accurately Lovable diagnoses problems, how much faster an optimized query becomes or how much traffic each instance size supports.

Users

The intended readers are Lovable app builders and owners responding to slow data loading, resource alerts or growing storage use. Beginners get navigation and plain explanations; experienced developers get details about query statistics, execution-time rankings and targeted fixes such as indexes.

Workspace editors, admins and owners can view monthly cost estimates. The page does not specify every permission required to apply database fixes or make capacity changes.

Capabilities

Lovable documents high-load notices in project chat, the Publish dialog and the Database view, plus an in-app notification for the project owner. The Publish notice does not prevent publishing. CPU, Memory and Disk cards show resource pressure, while chat health checks summarize connections, memory, disk usage, recent restarts and recent pressure alerts.

Lovable can inspect query statistics, investigate expensive queries and apply targeted changes. The guide also covers changing instance size, increasing storage and comparing estimated monthly costs. On Pro plans and higher, chat can offer an instance resize with a credit-impact approval card.

Using it

Requirements

The instructions assume an existing Lovable project with a database and access to its chat and Database settings. Resource-health cards are available on all plans. Free-plan databases use Tiny; paid plans can select Tiny, Mini, Small, Medium, Large or X-Large. Chat-driven instance resizing requires Pro or higher.

Query analysis depends on statistics accumulated from actual app traffic. A new or recently restarted database may have no useful statistics yet. The page does not provide hardware specifications for the instance sizes or numerical resource-pressure thresholds.

Mechanism

High-load notices cover the preceding 48 hours. The health cards cover 24 hours in hourly segments, highlighting hours when a resource was near its limit. Hovering reveals the hour and pressure status; current-hour pressure also exposes current resource usage.

For query optimization, Lovable ranks queries by total execution time and provides call counts and timing data. It then investigates how the database executes the heaviest queries. Because the ranking uses total time, frequently repeated queries can matter even when individual calls are relatively short.

Finding slow queries does not itself change the database. Applying a fix does, and Lovable is documented to explain what it changed. Chat-driven instance resizing takes effect only after approval.

Setup

Open More → Database, select Manage, then Settings. Inspect the CPU, Memory and Disk cards, and read Database storage separately to check fullness. A single hour of pressure may be temporary, so the guide recommends checking whether it continues before resizing.

Use Resolve on a high-load notice or Ask Lovable on a pressure notice to request diagnosis. For a direct snapshot, enter “Run a health check on my database.” in project chat.

For a manual instance change, select Manage beside Database size, choose a size and confirm. For storage, select Manage beside Database storage, enter a larger amount and complete the confirmation.

Example

For an app that slows under traffic, the guide supplies this request: “My app feels slow. Find the slowest database queries and optimize the worst ones.” Lovable is documented to inspect query statistics, investigate the heaviest queries and apply changes where useful.

If investigation finds no slow queries to fix and the instance remains under pressure, consider a larger instance. If occupied storage is nearly full, increase storage instead. This is an illustrative use of the documented instructions; no query, fix or resize was executed.

Assessment & evidence

Limitations

An instance resize takes a few minutes and causes a brief interruption while the instance restarts. Further changes are unavailable until it finishes. Resizing can also be unavailable during another infrastructure operation, such as a restore or storage increase, or because the plan does not support it.

Database storage has an 8 GB minimum and can only increase. A single change can raise capacity to at most five times its current size, with at most four changes within 24 hours. An increase to at least 1.5 times the current size requires an additional cost acknowledgment. Storage resizing takes a few minutes.

Some existing projects use 2X-Large. That size cannot be selected, and a project that leaves it cannot return. A notice about updated size names indicates renaming rather than resizing, with no hourly price change.

The page supplies no benchmarks, availability guarantees or measured optimization results. The accuracy of diagnoses and correctness of applied changes are not assessed.

Reasoning

The guide’s decision sequence ties spending to the observed bottleneck. Investigate inefficient queries first, because removing unnecessary work may reduce pressure without a larger instance. Consider more instance capacity when sustained load remains and no slow queries are available to fix. Increase storage when space is nearly exhausted.

A failure to load data is not sufficient evidence that the instance is too small. The page also identifies query errors, row-level security restrictions and a paused database as possible causes. A pause can follow exhausted credits or a credit limit, so additional compute would not address every failure.

Alternatives

The alternatives documented within Lovable are query or code optimization, a larger instance, additional storage and waiting to see whether temporary pressure clears. Instance sizes can later be reduced, subject to the special restriction on leaving 2X-Large; storage cannot be reduced.

Eligible users can resize through Database settings or request a chat-driven resize on Pro or higher. The page does not compare external database platforms, monitoring tools or query-analysis products, so their relative suitability is not assessed.

Evidence

The evidence is the complete Lovable documentation page at [https://docs.lovable.dev/features/database-performance.md]. It supports statements about documented controls, plan restrictions, credit behavior and operational constraints.

This is first-party documentation rather than independent performance evidence. No software was executed, and no live database behavior, generated fix, interruption duration or billing result was verified. Linked pages do not supply evidence for this report.

Access & freshness

Costs

Resolve and Ask Lovable diagnostic requests count as standard build usage and consume credits. Larger instances cost more credits per hour while the app runs, and increased storage also raises credit costs. Exact rates, subscription prices and currency equivalents are not stated.

The Manage instance dialog estimates monthly costs using the app’s backend usage over the preceding 30 days. New apps and apps with fewer than 10 days of usage history receive a default usage estimate.

These estimates include the database server and other backend usage, including storage. They exclude building with Lovable and AI usage inside the app. Actual costs can change with usage, so the displayed estimate does not establish a fixed monthly bill.

Rights

The page does not state a documentation license or grant redistribution rights. It also does not establish service terms or rights governing AI-generated database changes. Those matters are unknown from this resource.

Freshness

The source capture is dated 2026-11-14T22:52:31.239Z. The page does not state a publication date, last-updated date or product version, so the age of its instructions and any subsequent changes are unknown.

The captured source revision is sha256:4047cdf7cc9b1c14d5f34e12e709978e8a10198195a1272a9731e6e440d9eefa.

Actions

Begin with a health check and inspect both resource pressure and occupied storage. If traffic has produced query statistics, investigate the queries with the largest total execution time and examine any proposed changes.

Before increasing instance size, check whether pressure persists and compare the displayed monthly estimates. Account for the restart interruption and confirm that the intended size is available on your plan.

Before increasing storage, choose the amount with its irreversible growth and change limits in mind. If data fails to load, inspect the error and database status as well as capacity; retry the failing action after the relevant issue or resize is resolved.

Evidence for this report

selected-page.txtselected · checked 2026-11-14