【发布时间】:2021-11-16 17:41:56
【问题描述】:
找不到关于此的任何帖子,所以我想我在这里问。是否可以根据错误中提供的提示执行复合索引:FAILED_PRECONDITION 而 Firestore 集合仍在生产中被写入/读取?这个特定的集合有几十万个文档。并且可能需要几天时间才能完成索引。
另外,如何使以下结构中的字段 thumb_url 不被自动索引?
{
...
references: [
0: {
...
thumb_url: 'https://signed-url-to-the-image-resource'
},
1: {
...
thumb_url: 'https://signed-url-to-the-image-resource'
}
]
}
提前致谢。
【问题讨论】:
标签: firebase google-cloud-firestore indexing