Entities participating in the transaction

59 views
Skip to first unread message

Rajesh Gupta

unread,
Dec 14, 2016, 9:55:40 PM12/14/16
to google-a...@googlegroups.com
I had posted this issue in another thread, but that thread had spamming, and so, I am starting a new email.  Sorry about this.

I am getting the error.
"operating on too many entity groups in a single transaction"

Is there a way to find the entities that are participating in the transaction?  Any logs or any flag that can be enabled that tells about the entities in the transaction?

I have put logs in gets/puts/delete in that business logic code.  I can see that there are only 13 entity groups, per my logs.

How do I find out, which entities are participating in the given transaction.

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

Alex (Cloud Platform Support)

unread,
Dec 19, 2016, 1:02:40 PM12/19/16
to Google App Engine

Hi Rajesh,


Currently, there is no programmatic to get the entities or the number of entities involved in a Datastore transaction, but you should be able to determine them and their number in your own code through explicit design:


   - No more than 25 entities in a transaction if using top-level entities

   - No more than 25 distinct parents if using child entities


Note that there was a feature request for “System limits should be available via constants” previously made on the Google Cloud API third-party site and can be followed here. However, if you would like to submit your own FR for retrieving datastore entities via a flag in an App Engine application, you can do so on this Public Issue Tracker.


Also, if by any chance you are using the Java Standard Environment, make sure to enable the cross-group transactions option allowing to operate across multiple entity groups. See here for more information about transaction options available to this environment.


Regards,

Alex
Reply all
Reply to author
Forward
0 new messages