Switching to native mode - no writes yet

28 views
Skip to first unread message

Pieter Engelbrecht

unread,
Aug 20, 2021, 12:47:16 PM8/20/21
to Google Cloud Datastore

Earlier today I was reading the docs for both datastore and firestore to find the best one for a new project. I ended up choosing firestore but somehow choose the wrong mode in confusion.

Now, no writes have taken place yet. From my reading, I should somehow be able to change the mode since nothing has been written? However, I do not see how I'll go about it?

Any advice?

Jim Morrison

unread,
Aug 20, 2021, 6:23:45 PM8/20/21
to Pieter Engelbrecht, Google Cloud Datastore
If you haven't written anything yet you should be able to use glcoud, e.g. `gcloud firestore databases create` https://cloud.google.com/sdk/gcloud/reference/firestore/databases/create

--
You received this message because you are subscribed to the Google Groups "Google Cloud Datastore" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gcd-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gcd-discuss/c9d6a408-f99c-4a36-9ad4-3e5683494dbbn%40googlegroups.com.


--
Jim

Pieter Engelbrecht

unread,
Aug 21, 2021, 3:52:54 AM8/21/21
to Google Cloud Datastore
Awesome!!! That worked perfectly.

Thank you Jim!

Xi Shen

unread,
Mar 5, 2022, 9:20:55 PM3/5/22
to Google Cloud Datastore
Hi,

I have a datastore instance with no data in it. I was able to see a "switch to native" button on the UI. But when I click on the button, I got an *Internal error* message. Then I tried the instructions on https://stackoverflow.com/a/64455238/309830. I got another error on the command line, and the "switch to native" button is gone.

Is there any other way I can do to switch to Firestore API?

Thanks!

Jim Morrison

unread,
Apr 25, 2022, 11:41:15 AM4/25/22
to Google Cloud Datastore
I don't know if you have tried again through the UI to switch the mode, but the mode can also be switched through the API as documented at https://cloud.google.com/datastore/docs/firestore-or-datastore#changing_between_native_mode_and_datastore_mode .



--
Jim
Reply all
Reply to author
Forward
0 new messages