# 3.3 Database Index Setup

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

> * Enter **contents** as Collection ID, **category** into the first field and set **Ascending**, Enter **timestamp** in the second field and set **Descending,** create another field and enter **\_name\_** in the third field and set **Descending** then select **Collection** as query scope.&#x20;

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

<div align="left"><figure><img src="https://560603734-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWaqimCalytTOZvWQfkn0%2Fuploads%2Fp0XMhvJCPEzHySNXx9oU%2FScreenshot%202023-02-26%20at%2010.53.58%20AM.png?alt=media&#x26;token=6889c0d4-e530-4ee7-afe9-d071da4278df" alt=""><figcaption></figcaption></figure></div>
