# Lovable app slow? Fix the database first

> Fix slow queries before buying a bigger database: ask Lovable to rank the heaviest queries and add indexes where they help. Resize the instance only when its size really is the problem, because a larger instance uses more credits every hour your app runs.

Canonical: https://shipfast.online/rescue/lovable/performance/
Last updated: 2026-10-25

By [Prayag Dalal](https://shipfast.online/about/). Checked against Lovable's documentation on 2026-10-25.

## Symptoms

- Pages that list or search data get slower as your data grows.
- Lovable shows a high-load notice on your database.
- Requests time out at busy times.

## Why it happens

As an app grows, its database can run short of processing power, memory or disk capacity. Lovable shows high-load notices covering the last 48 hours, plus a card in the Database view with your instance size and a Resolve button.

Lovable’s own docs say a slow query is often the real cause. A larger instance costs more credits every hour your app runs, so the cheaper fix usually comes first: find the heaviest queries and fix them, for example with an index.

## What Lovable already handles

- **High-load notices:** Shown on the database when it’s under pressure, covering the last 48 hours.
- **Resolve:** Lovable checks whether the database is still under pressure, finds the likely cause and suggests query or code changes. It counts as build usage.
- **Slow query ranking:** Lovable reads the query statistics and ranks the heaviest queries by total execution time, with call counts.
- **Instance resize:** When size really is the problem, Lovable shows the credit impact and offers a resize for approval, on Pro plans and higher.

## Fix it yourself

1. **Read the notice.** Open the Database view. The card shows your instance size and the high-load notice.
2. **Find the slowest queries.** Ask Lovable: “Find the slowest database queries and optimise the worst ones.”
3. **Add the right indexes.** Lovable applies targeted fixes, such as an index that speeds up a common lookup.
4. **Check storage separately.** The Disk card shows reads and writes, not how full storage is. The Database storage row shows that.
5. **Resize only if size is the cause.** If the database is simply too small, approve the resize knowing it costs more credits every hour.

## Where it still goes wrong

- Query statistics build up with real traffic, so a new or recently restarted database may have nothing to report yet.
- Pages that load a whole table and filter it in the browser stay slow at any instance size. Filter and paginate in the query.
- Each Resolve request uses credits, like any other build request.

## FAQ

### Do I need a bigger Lovable database?

Often not. Lovable recommends finding and fixing slow queries first; a resize is for when the database itself is too small.

### Does a larger instance cost more?

Yes. A larger instance uses more credits every hour your app runs, and Lovable shows the credit impact before you approve it.

### Why does Lovable show no slow queries?

Statistics build up with real traffic. A new or recently restarted database may not have enough yet.

## Sources

- [Lovable docs: Fix a slow database and choose the right capacity](https://docs.lovable.dev/features/database-performance)
- [Lovable docs: Database](https://docs.lovable.dev/features/database)
- [Lovable docs: Credits and usage](https://docs.lovable.dev/introduction/credits-and-usage)

## Get it fixed

App rescue, From $1,000, fixed price: [send your app](https://shipfast.online/contact/?service=app-rescue).

## Related

- [All Lovable guides](https://shipfast.online/rescue/)
- [Free production readiness check](https://shipfast.online/tools/production-readiness-check/)
