Datastore & Firestore Transaction

80 views
Skip to first unread message

Rajesh Gupta

unread,
Oct 11, 2018, 11:56:29 PM10/11/18
to google-a...@googlegroups.com
I am looking to make entry in both datastore and firestore.

Is there a transaction planned between the following
Firestore in Datastore mode & Firestore in Native mode.

Rajesh
Accounting/Inventory/Orders/Sales/Purchase on Google Cloud Platform and Mobile

Rajesh Gupta

unread,
Oct 12, 2018, 12:56:30 AM10/12/18
to google-a...@googlegroups.com
We are more & more thinking on how to take the benefit of firestore in existing appengine applications.

Existing appengine applications can greatly benefit with some kind of guaranteed cross database transactions 

Amit (Google Cloud Support)

unread,
Oct 12, 2018, 6:11:12 PM10/12/18
to Google App Engine

You cannot use Cloud Firestore and Cloud Datastore at the same time in Google Cloud Platform.


To use Cloud Firestore database, you need to choose one of two modes, Native mode or Datastore mode. Depending on your requirements, you need to choose one of it. As you specifically aiming to get the benefit of Cloud Firestore  in existing App Engine applications, you could try using Could Firestore in Datastore mode. This will allow you to use strongly consistent storage layer of firestore as well as Cloud Datastore API support. Additionally App Engine client library integration supported in all runtime while you are in Cloud Firestore in Datastore mode. Cloud Firestore in Native mode do not support Python 2.7 and PHP 5.5 runtimes in the App Engine standard environment. However if you need real time updates and offline data persistence, you need to use Could Firestore in Native mode only. This document might help you for more information to choose the right one.

Rajesh Gupta

unread,
Oct 12, 2018, 7:04:37 PM10/12/18
to google-a...@googlegroups.com
I have an appengine app running for 6-7years.  what is the best way going forward to take advantage of the firestore native mode.
I understand some of the limitations of the datastore are removed, when the datastore is moved into 'firestore datastore mode'.
Request the team to provide firestore native benefits in some form to existing apps.
Example.
Transaction between datastore & firestore (in another projectid).  This will help in transitioning the records to firestore native mode as they are created and give the benefit of firestore native to users(specifically offline).


--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/bd423a81-3188-4fc6-af6b-10f0bbda9c3a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

sami...@google.com

unread,
Oct 16, 2018, 11:31:59 AM10/16/18
to Google App Engine

Hi Rajesh,


I can understand that you have a concern moving forward with Firestore as you have been using App Engine with Datastore for such a long time. I am providing you a link to the documentation which addresses the process of automatic upgrade of Cloud Datastore to Cloud Firestore. If you have an application that uses Cloud Datastore, you will not need to update your application code. We will notify you about the schedule of your application;s upgrade to Datastore mode. Please note that you can not manually upgrade an existing Cloud Datastore Database to Cloud Firestore in Datastore mode.


You can definitely check out the following articles addressing the best practices of Firestore and how it integrates with the realtime database. Also, I am providing you the quickstart link which gives you an introduction on how Firestore works and how you can deploy applications on Firestore. Note that using Firestore in Native mode will require you to create a new project for it, but you can interact with it from your existing project should you wish to.


For additional requests, such as a cross-database transaction feature, you can always go to our Public Issue Tracker page where you can request any features or products that you feel will make it easy for you to develop applications to your needs and specifications.


Rajesh Gupta

unread,
Oct 16, 2018, 7:57:26 PM10/16/18
to google-a...@googlegroups.com
Users who are looking to architect existing datastore app and still want to benefit from the firestore native mode, please star this issue.
I am requesting some kind of cross database transaction or something that existing apps can write to both datastore as well as firestore native more reliable.




--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.

For more options, visit https://groups.google.com/d/optout.


--
Regards,
Reply all
Reply to author
Forward
0 new messages