简体   繁体   English

Firestore 未使用的索引限制?

[英]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 SupportFirebase 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.

相关问题 Firestore 读取文档按距离排序的限制 - Firestore read documents limitation for sorting by distance 如何识别 Firebase Firestore 中未使用的索引? - How to identify unused indexes in a Firebase Firestore? 限制 firebase firestore 中一个 Collection 下的文档数量 - Limitation to number of documents under one Collection in firebase firestore Firestore 中的索引结构和索引搜索 - Index Structure and Index Search in Firestore Firestore 唯一索引或唯一约束? - Firestore unique index or unique constraint? 由于每个文档每秒写入 1 次限制而导致写入失败时,Firestore 是否会出错或重试? - Does Firestore through error or retries when write failed due to the 1 write per sec per document limitation? Flutter:更新列表中的特定索引 (Firestore) - Flutter: Update specific index in list (Firestore) 如何从 Firestore 导出安全和索引规则? - How to export security and index rules from Firestore? Flutter 带有变量项的 Firestore 复合索引不现实? - Flutter Firestore Composite Index with variable item not realistic? .where() 不适用于 StreamBuilder steam | firestore 查询需要一个索引 - Flutter - .where() not working with StreamBuilder steam | firestore query require an index - Flutter
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM