Does Firestore in “Datastore mode” have any advantages “Native mode”

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Does Firestore in “Datastore mode” have any advantages “Native mode”



Google Cloud Firestore is going to replace the legacy Google Cloud Datastore soon. One then has the choice between using Cloud Firestore in "native mode" or in "datastore mode". The former allows access to Firestore through the usual Firestore SDK while the latter allows usage of the old Cloud Datastore SDK (which has no Web/Mobile APIs).



I am not yet familiar with Firestore. My question is: Apart from porting things to a new API, are there actually any things that can not be done with Firestore in "native mode" which could be done with the old Cloud Datastore (or its replacement: Firestore in "datastore mode")? Or any other advantage of using "datastore mode" (like costs, for example)?



If not, then it seems there is actually no advantage of using Firestore in "datastore mode" other than compatibility for older code using the old Cloud Datastore.



Am I right in my assumption that Firestore "datastore mode" has absolutely no advantage besides being able to use the legacy Datastore API (at the cost of not being able to use the newer and probably more feature-rich Firestore APIs, including mobile and web APIs)?




1 Answer
1



According to official documentation, although Cloud Firestore is backwards compatible with Cloud Datastore, the new data model, real-time updates, and mobile and web client library features are not.



Cloud Firestore in Datastore mode uses Cloud Datastore system behavior but accesses Cloud Firestore's storage layer, removing the following Cloud Datastore limitations:



Datastore mode disables Cloud Firestore features that are not compatible with Cloud Datastore:





Thanks for this concise summary. So, to directly address the question: I gather from this answer that there is not a single piece of functionality (apart from the different API, obviously) that is missing from Firestore in "native mode", compared with Firestore in "datastore mode" (or the old Cloud datastore), because Firestore in "datastore mode" is just a kind of compatibility wrapper that is using Firestore native functions under the hood. Am I correct?
– trollkotze
Aug 12 at 5:29





Yes, it is. They just merge into one API. In lower layer it is still Cloud Datastore
– hgiasac
Aug 12 at 5:40





Okay, thanks. (I guess what you mean is "At a lower layer it is still Cloud Firestore :P)
– trollkotze
Aug 12 at 5:48





Is Firestore going to cost the same as Datastore
– skjagini
Aug 15 at 18:04






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard