# Indexes

Open **Indexes** in the sidebar to see every index in the database.

## The list

Each row shows:

- The table and the columns the index covers
- The index name, marked when it's a primary key or unique index
- Its size on disk
- How many times PostgreSQL has used it

An index with few or no uses may not be needed, and a large one costs disk space and slows down writes.

## Search and sort

- **Search:** type in **Search for an index** to filter by name.
- **Schema:** pick a schema, or **All schemas**.
- **Sort:** order the list by **Index name (A–Z)**, **Table (A–Z)**, **Largest size**, **Most scans**, or **Least scans**.

## Index details

Select an index to see the SQL that defines it. Copy it to reuse it, for example in a migration.

This page is read-only. To add or drop an index, write the SQL in the [SQL editor](https://fakebase.studio/docs/studio-sql-editor.md) or a [migration](https://fakebase.studio/docs/migrations.md).

---

## Next steps

- [SQL editor](https://fakebase.studio/docs/studio-sql-editor.md): Write and run SQL, see the results, and keep the queries you use in Fakebase Studio.
- [Schema](https://fakebase.studio/docs/studio-schema.md): See every table and the foreign keys between them as a diagram in Fakebase Studio.
