Firestore index error

后端 未结 5 2118
挽巷
挽巷 2020-12-17 22:53

I am facing some problem when use angular 2 to query data from Firestore.

Could anyone please help me by checking it and tell me where I have done wrong ?

My

5条回答
  •  情歌与酒
    2020-12-17 23:40

    Click on the link provided. If it doesn't take you to the correct page, if you get this error:

    The project xxx either does not exist, or user doesn't have permission
    

    sign out the current user, and login as your Firebase user.

    You will get the index suggested for your query.

    Composite indexes are required for queries that include specific values and a range or order.

    When you run these queries, they would have bad performance and wouldn't scale well.

    Every time you change your query with different fields, combining range, equal to or order by operators, you will have to create a new index. If you only use whereEqualTo operators you don't need to.

    It might take a while to create the index depending on your data size.

提交回复
热议问题