Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Issues with Firestore - Datastore/Native

I created the firestore database in datastore mode not knowing that this impacts the API. You learn by trying things out, right? When I tried to test the code. an error message that suggested the firestore needs to be in native mode. I delete my entities and tried to switch to native mode.
First it didn't gave me the option. When I closed the page and came back to it, I got the option to switch to Native mode again. When I click on it and confirm in the dialog, I get the informative error message: "Unable to switch to Native Mod - An internal error has occurred",
So do I have to scrap my whole project with docker repository, cloud storage and cloud run instances, just because to switch the firebase mode?
Please don't say yes. Or is Firebase immature and I should use Big Table?

0 2 648
2 REPLIES 2

glen_yu
Google Developer Expert
Google Developer Expert

BigTable is not a "grown up" version of Firestore.  It has its own uses and a much larger price tag attached to it.  

 

Regarding your question, I'm afraid you can't change Firestore modes once you've selected it as per the warning in the documentation.  Since you're just testing out Firestore for the first time, I recommend you do your dev/testing with the Firestore Emulator .

Thanks Glen. It seems that it is that way. But that is rather poor. I can understand that Google may not be able to migrate my data, but if I delete everything not being able to change is very disappointing. But that is nothing you can change and I thank you for your feedback. I hope Google can and will change that. That is part of the message. I now, use the Datastore API instead, but I didn't want to be forced to use it.