Cloud Firestore在数据存储模式下的转换问题 [英] Cloud Firestore in datastore mode conversion questions

查看:68
本文介绍了Cloud Firestore在数据存储模式下的转换问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

文档说,在不久的将来,现有的数据存储区将以数据存储区模式转换为Cloud Firestore.额外的好处显示为:

The documentation says that in the near future exiting Datastore's will be converted to Cloud Firestore in Datastore mode. The added benefits are shown as:

数据存储模式下的Cloud Firestore数据存储模式下的Cloud Firestore 使用Cloud Datastore系统行为,但访问Cloud Firestore的 存储层,消除了以下Cloud Datastore限制:

Cloud Firestore in Datastore mode Cloud Firestore in Datastore mode uses Cloud Datastore system behavior but accesses Cloud Firestore's storage layer, removing the following Cloud Datastore limitations:

    • 最终的一致性,所有Cloud Datastore查询都变得更加强大 持续的.

      Eventual consistency, all Cloud Datastore queries become strongly consistent.

    • 交易不再局限于25个实体组.

      Transactions are no longer limited to 25 entity groups.

    • 对实体组的写入不再限于每秒1个.

      Writes to an entity group are no longer limited to 1 per second.

    • 发生此更改时,是否可以继续对数据存储使用相同的代码,然后魔术"事务将不再具有限制并且写入将不限于1秒钟?还是需要SDK升级才能利用这些新升级?

      When this change happens, will one be able to continue to use the same code for datastore and then "magically" transactions will no longer have a limit and writes won't be limited to 1 second? Or will there be a SDK upgrade required to leverage those new upgrades?

      另一个问题:写入实体组的新限制是什么?还是它会是无限的,从而消除诸如共享计数器之类的东西?

      Another question: What will the new limit be to writes to entity groups? Or will it just be unlimited thus eliminating things like shared counters?

      推荐答案

      根据文档:是的.

      一旦Cloud Firestore达到一般可用性,GCP将开始通知Datastore用户有关计划以Datastore模式从Datastore到Cloud Firestore的更新.从理论上讲,此更新不需要停机.

      Once Cloud Firestore reaches General Availability, GCP will begin notifying Datastore users about scheduling an update from Datastore to Cloud Firestore in Datastore mode. In theory, this update doesn't require down time.

      更新完成后,您完全不需要更改代码.

      Once the update is done, you won't require changing your code at all.

      这篇关于Cloud Firestore在数据存储模式下的转换问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆