# 3.3 Database Index Setup

From the Firestore Database, Click on the **Indexes** tab and click on the **Add Index**. You have to create two indexes for the database.

> * Enter **places** as Collection ID, **state** into the first field and set **Ascending**, Enter **loves** in the second field and set **Descending** and then select **Collection** as query scope.
>
> * Enter **places** as Collection ID, **state** into the first field and set **Ascending**, Enter **timestamp** in the second field and set **Descending** and then select **Collection** as query scope.

This may take 3-5 minutes to activate. After completing this, your index page should look like this&#x20;

<figure><img src="https://lh3.googleusercontent.com/nHpnzBKX68fpYkYsu6ocJjGlbXoRh6OilhlxLeFvplRLW52g8Gc7mmZBKudRH4vy2zBM_-w6_cO51P52TJCO_8IhOFu2fX6jSDQenVhq_v2mcFFq37x0BLfpXkf_50r5PJJYbuzHRu_hHWlz0tfi3g" alt=""><figcaption></figcaption></figure>
