Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6103351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:43:08+00:00 2026-05-23T13:43:08+00:00

In Google App Engine, all datastore operations in a transaction must operate on entities

  • 0

In Google App Engine, all datastore operations in a transaction must operate on entities within the same group.

I don’t understand why this is a useful constraint for transactions. It seems unnecessary since the datastore could know which entities to lock based on what happens in the transaction.

How does grouping entities together improve datastore’s operations during transactions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:43:09+00:00Added an answer on May 23, 2026 at 1:43 pm

    It’s useful to think of App Engine’s datastore as a giant hashmap. All you can do is put, get & delete key-value pairs. Often the key is auto-created, and usually the value is a serialized object, but it’s still all a humungous key-value pair store. A hashmap.

    Now this big hashmap has one (and only one) option for transactions: you can atomically manipulate one key-value pair at a time. No choices, ifs or buts – a transaction is something that applies to a single pair.

    Of course, your value can be anything. It doesn’t have to be a single object. It could be a hierarchical tree of objects. That’s an entity group. It’s a trick that says, “I have to manipulate these objects in a transaction, so I’ll have to make them look like a single value. I’ll just stick them into a parent object and store that.”

    So entity groups aren’t created as a useful way of doing transactions. Entities are grouped because it’s the only way to put them in a transaction.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Since the Google App Engine Datastore is based on Bigtable and we know that's
I have a Google App Engine app - http://mylovelyapp.appspot.com/ It has a page -
I'm using Google App Engine and Django templates. I have a table that I
I have a simple Google App Engine app, that I wrote using ordinary strings.
I am playing with Google App Engine and Python and I cannot list the
I started an application in Google App Engine right when it came out, to
So I have this code in a google app engine template: <select name='voter'> {%
I am trying to implement AJAX in my Google App Engine application, and so
I've been using Pydev/Eclipse to develop Google App Engine (GAE) applications but I've been
I'm in a situation where I need to span Google App Engine entity relationships

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.