小编use*_*585的帖子

Firestore 数组中的排序顺序

我试图更多地了解 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 …

arrays types firebase google-cloud-firestore

7
推荐指数
1
解决办法
6477
查看次数

Google App Engine自动缩放功能如何运作?

这个问题与Google App Engine配额和实例有关。

我部署了GAE应用程序,但未指定任何特定的缩放算法。从他们的文档来看,默认值似乎是自动缩放。

那么他们何时将应用程序扩展到另一个实例,即何时确切地产生一个新实例?是什么请求导致第二个实例开始运行并且流量分流?

google-app-engine quota autoscaling

5
推荐指数
1
解决办法
3765
查看次数

4
推荐指数
1
解决办法
1278
查看次数