加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

angular – 查询按结果集的大小缩放,而不是数据集的大小

发布时间:2020-12-17 07:49:48 所属栏目:安全 来源:网络整理
导读:这是一个关于最新 Firebase Cloud Firestore 的问题.在这个文档中,它说是这样的: It also allows for expressive queries. Queries scale with the size of your result set,not the size of your data set,so you’ll get the same performance fetching 1
这是一个关于最新 Firebase Cloud Firestore的问题.在这个文档中,它说是这样的:

It also allows for expressive queries. Queries scale with the size of
your result set,not the size of your data set,so you’ll get the same
performance fetching 1 result from a set of 100,or 100,000,000.

这个陈述对我来说并不清楚.你能解释一下这个用例吗?

这可能写得有些混乱.它不是传统意义上的用例,只是关于Firestore性能的声明.

它基本上说如果你要求100.000.000中的100或1项中的1项无关紧要,它将同样快.这里1是你的结果集,100 / 100.000.000是你的数据集.因此,从100.000.000中请求1项将比请求100项中的50项更快.

我希望这会让它更清晰一些!

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读