【问题标题】:What does `client` mean in the firestore documentationfirestore 文档中的“client”是什么意思
【发布时间】:2021-02-18 08:57:19
【问题描述】:

https://firebase.google.com/docs/firestore/best-practices页面,我看到了这句话:

将每个客户端的快照侦听器数量保持在 100 以下。

我在 2021/02/18 阅读了该页面,并没有在该页面上找到 client 的明确含义。

client 是什么意思?它是(服务)帐户吗?还是firestore.Client 对象?如果是firestore.Client 对象,我可以使用多个firestore.Client 对象作为100 snapshot listeners per client 限制的解决方法吗?

【问题讨论】:

    标签: google-cloud-firestore


    【解决方案1】:

    官方documentation指的是firestore.Client对象,

    FirestoreClient 提供对 Google Cloud Firestore 的访问。使用 获取 Firestore 实例的 API,该实例提供方法 在 Firestore 中更新和查询数据

    Here 是一个与您类似的问题,它可以让您更清楚地了解侦听器和客户端之间的区别以及客户端如何拥有多个侦听器。

    【讨论】:

      猜你喜欢
      • 2014-02-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多