【问题标题】:Best way to add bulk firestore writes to React Native App将批量 Firestore 写入添加到 React Native App 的最佳方法
【发布时间】:2019-12-08 14:51:04
【问题描述】:

我正在开发一个带有 firestore 数据库的 React Native 应用程序。该应用程序将使用由用户在应用程序内触发的批量写入。我预计写入将超过 500。在这种情况下,fire store 文档建议使用服务器客户端库。有没有办法在不设置自己的服务器的情况下使用 google firestore 平台做到这一点?例如,这可以通过云功能实现吗?

【问题讨论】:

    标签: google-cloud-firestore


    【解决方案1】:

    这是否可以通过云功能实现?

    是的。

    Cloud Functions 允许您在 Google Cloud 的环境中运行代码,这正是 Firebase Admin SDK/服务器库所针对的场景类型。

    有关如何执行批量写入以及从中获得的性能提升的示例,请在此处查看我的答案:What is the fastest way to write a lot of documents to Firestore?

    【讨论】:

    猜你喜欢
    • 2021-01-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-31
    • 1970-01-01
    • 1970-01-01
    • 2018-11-09
    • 1970-01-01
    相关资源
    最近更新 更多