【问题标题】:Migrating data to Google Cloud Firestore from Datastore将数据从 Datastore 迁移到 Google Cloud Firestore
【发布时间】:2019-06-25 17:20:10
【问题描述】:
我决定将 Google Cloud Datastore 的数据迁移到 Cloud Firestore。我已阅读所有相关文档和博客,但没有找到与 Datastore 到 Firestore 的定价比较(尽管我已阅读所有 Firestore 定价和每日配额详细信息)。
我想知道 Cloud Firestore 的缺点和缺点,因为我们的数据是大规模的。我浏览了有关选择模式的文档 (https://cloud.google.com/datastore/docs/firestore-or-datastore)。直接将所有数据迁移到原生模式的 Cloud Firestore 或使用 Datastore 模式的 Firestore 是否安全?
提前致谢。
【问题讨论】:
标签:
google-app-engine
google-cloud-platform
google-cloud-firestore
google-cloud-datastore
【解决方案1】:
Firestore 和 Datastore 价格
新 Cloud Firestore DB 的价格几乎相同,只是 Firestore 中没有 Small Operations。
您可以查看数据存储区here 的定价详情。以下是截至 2019 年 2 月 1 日美国多区域使用的价格:
可以在here 找到 Firestore 价格详情。截至 2019-02-01 的美国多区域使用价格为:
此外,如 Google Cloud Platform 博客中的 latest update 所述,2019 年 3 月 3 日,Firestore 的单区域使用价格将低至多区域价格的 50%。
Datastore 到 Firestore 的迁移
至于迁移,在 Datastore 模式下将您的 Datastore 应用迁移到 Firestore 是 100% 安全的,但如果您想在原生模式下使用 Firestore,则需要升级您的应用并执行手动数据迁移。
就在几周前,我已将我们的一个应用程序从 Datastore 迁移到 Datastore 模式下的 Firestore,并使用 export and import APIs 复制所有数据。