Search code examples
google-cloud-platformgoogle-cloud-firestoregoogle-cloud-datastore

What is the difference between "Cloud Datastore indexes" and "Cloud Firestore indexes"?


I'm reading the documentation of GCP documentation Choosing between Native Mode and Datastore Mode.

It explains the difference of Firestore in Native Mode (Native) and Firestore Data in Datastore Mode (Datastore Mode).

My question is about the following quotation:

The project will use Cloud Datastore indexes instead of Cloud Firestore indexes.

The document above does not offer any explanation about the difference of the two index-types.

Could you explain me about the difference, or suggest any documentation useful?

Thanks!


Solution

  • The indexes are managed differently and in non-compatible ways.

    You cannot, for example, take a Datastore mode index.yaml file and use it to create Native mode indexes.