如何在现有项目中从数据存储切换到Firestore? [英] How to switch from Datastore to Firestore in existing project?

查看:68
本文介绍了如何在现有项目中从数据存储切换到Firestore?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用数据存储区的现有Google Cloud项目.我对Firestore感到很兴奋,并想切换一下.根据 https://www.youtube.com/watch?v=SYG-BgXoJFQ 建议创建一个新项目.

I have an existing Google Cloud project which uses Datastore. I'm excited by Firestore and would like to switch. According to https://www.youtube.com/watch?v=SYG-BgXoJFQ it is recommended to create a new project.

是否可以以某种方式(我不在乎数据)核对数据存储并从Firestore重新开始?

Is it possible to just nuke Datastore somehow (I don't care about the data) and start from scratch with Firestore?

如果没有,那么创建一个新项目意味着什么?

If not, what are the implications of creating a new project?

推荐答案

目前尚无法在同一项目中从数据存储切换到Firestore,但是您可以在数据存储模式下操作Firestore.通过以数据存储模式创建Cloud Firestore数据库,您可以在保持Cloud Datastore系统行为的同时访问Cloud Firestore改进的存储层.通过阅读自动升级到Cloud Firestore"文档页面,您可以找到更多相关信息..

It is not possible to switch from Datastore to Firestore within the same project as yet, but you may operate Firestore in Datastore mode. By creating a Cloud Firestore database in Datastore mode, you can access Cloud Firestore's improved storage layer while keeping Cloud Datastore system behavior. You may find more information of relevance by reading the "Automatic Upgrade to Cloud Firestore" documentation page.

这篇关于如何在现有项目中从数据存储切换到Firestore?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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