[英]Firestore unused Index limitation?
I have an application that uses Firebase Firestore as a database.我有一个使用 Firebase Firestore 作为数据库的应用程序。 Currently, I am out of indexes(composite) in the database.目前,我在数据库中没有索引(复合)。 It reaches the limit to 200 and cant add more.它达到了 200 的限制并且无法添加更多。
I'd manually deleted the index to some extent.我在某种程度上手动删除了索引。 Since my application is pretty large It is very difficult to manually find the unused index.由于我的应用程序非常大,很难手动找到未使用的索引。 Also, it takes time to recheck the same in multiple parts of the application.此外,在应用程序的多个部分重新检查相同内容也需要时间。
I am looking for a solution.我正在寻找解决方案。 Either to identify the unused indexes in a better way than manually searching or an option to extend the limit of the index.要么以比手动搜索更好的方式识别未使用的索引,要么选择扩展索引的限制。
You may file a support ticket with Google Cloud Support , or Firebase Support to get the unused indexes, there is no automated way to do this.您可以向Google Cloud Support或Firebase Support提交支持票以获取未使用的索引,没有自动方法可以做到这一点。
Additionally, there is no way to increase the limit.此外,没有办法增加限制。
Changing the way your data is modeled so that you will need less composite indexes to support your query might also be an alternative as mentioned here .更改数据的建模方式,这样您将需要更少的复合索引来支持您的查询,这也可能是此处提到的替代方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.