All Collections
Help & Troubleshooting Guides
Firebase
Can't deploy firestore database indexes.
Can't deploy firestore database indexes.

If you face any issue for deploy your firestore database indexes.

David avatar
Written by David
Updated over a week ago

Whenever you add or edit a query with different filters, FlutterFlow will prompt you to deploy your indexes. By deploying indexes, FlutterFlow creates your database indexes on your behalf in the Firebase project's Firestore database indexes.

Before deploying indexes, it is important to read this documentation about indexes provided by FlutterFlow.


If you are unable to deploy indexes, please complete these troubleshooting steps:

  1. Ensure you have email sign-in enabled. Here are instructions on how to do this.

  2. Ensure you have added the following cloud permissions for firebase@flutterflow.io: Editor, Cloud Functions Admin, and Service Account User. Here are instructions on how to do this.

  3. Update your Firebase rules. Here are instructions on how to do this.

  4. Ensure you are on the latest version of FlutterFlow by selecting (ctrl/cmd + R). After you have done this, clear your browser cache and log out/in to FlutterFlow.



In the event that the troubleshooting guide does not help you solve the issue, it is possible that you have reached the limit for the number of indexes allowed.

To confirm this, go to your Firebase project, navigate to Firestore database, and select Indexes. If you see any notifications or error messages regarding the limitation of indexes, you will need to delete some indexes. In most projects, the maximum number of allowed indexes is 200, although this can vary depending on the plan and project.

Note: When you modify, add, or remove queries in the FlutterFlow project, FlutterFlow will once again prompt you to deploy the necessary indexes. This ensures that your application continues to function efficiently.

Did this answer your question?