我试图更多地了解 Firebase 中的数组。目前,我将地图存储在数组中,其中地图内的一个字段是 a position,我可以在我的移动应用程序中使用它在检索时对数组进行排序并按position.
Firebase 上的文档说:
数组按元素排序。如果元素相等,则数组按长度排序。
例如,
[1, 2, 3]<[1, 2, 3, 1]<[2]。
然后还有一个部分描述了地图是如何排序的:
键排序总是排序的。例如,如果您编写
{c: "foo", a: "bar", b: "qux"}的地图按键排序并保存为{a: "foo", b: "bar", c: "qux"}.Map fields are sorted by key and compared by key-value pairs, first comparing the keys and then the values. If the first key-value pairs are equal, the next key-value pairs are compared, and so on. If two maps …
这个问题与Google App Engine配额和实例有关。
我部署了GAE应用程序,但未指定任何特定的缩放算法。从他们的文档来看,默认值似乎是自动缩放。
那么他们何时将应用程序扩展到另一个实例,即何时确切地产生一个新实例?是什么请求导致第二个实例开始运行并且流量分流?
为什么 Firestore对单字段索引豁免有 200 个(看似很小的)限制?
如果有的话,允许更多只会有助于降低用户和谷歌的成本,不是吗?
indexing firebase google-cloud-platform google-cloud-firestore