【问题标题】:ComputedProperty (ndb Datastore) equivalent in Firestore native modeFirestore 本机模式下的 ComputedProperty (ndb Datastore) 等效项
【发布时间】:2019-11-12 18:57:05
【问题描述】:

我们目前在 Google App Engine(python 2.7 标准)的 ndb Datastore 上有一个数据库。我们计划迁移到 Firestore 原生模式。 ndb 中有一个功能ComputedProperty - 我们在 Firestore 本机模式下是否有类似的功能?

【问题讨论】:

  • 您迁移是因为您想摆脱 Python 2 还是使用本机模式功能?如果是前者,考虑ndb for python 3

标签: google-cloud-firestore google-cloud-datastore


【解决方案1】:

原生模式下的 Cloud Firestore 不直接支持计算属性之类的东西。您将改为使用客户端-站点事务或云函数,例如参见 aggregation queries

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-08-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-08-03
    相关资源
    最近更新 更多