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 6691945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:48:38+00:00 2026-05-26T05:48:38+00:00

Where — on what level — the locking and collisions occur in transactional operations

  • 0

Where — on what level — the locking and collisions occur in transactional operations on the same entity group? At root? At some common, wide enough parent?

It’s not clear to me what is an “Entity Group” for a transaction. Is it always a group originating at a root entity (without parent) or is there a mechanism that selects a group wide enough for transaction.

For example when I have a model structure like this:

- School
  - Teacher
  - Class
    - Course
      - Lesson
      - Evaluation
    - Student
      - Guardian 
      - Grade
      - PresenceMarker
    - TextBook

Do my transactional operations always refer to “Entity Group” as a group originating at a school level (regardless of the level where actual operation occur), or when I update students entities in the same class, I can only collide with with other transactional operation occurring below the same class entity.

In other words is there only one entity group staring from School or are there sub entity groups originating at every other level in the hierarchy? If there are sub entity groups, are they used in the for transaction isolation?

UPDATE:

Taking Sharding counters as an another example. Will the sharding work if all the shards have common parent? Will updating a single counter shard result in transaction collisions updates on other shards?

  • 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-26T05:48:38+00:00Added an answer on May 26, 2026 at 5:48 am

    Transactions in App Engine happen at the Entity Group level. (see docs here and here)

    are there sub entity groups originating at every other level in the hierarchy?

    There are no “sub entity groups”. Every entity is in exactly one Entity Group, because it has one ultimate ancestor. In your example, all your models ultimately belong in the School’s group.

    Will the sharding work if all the shards have common parent?

    For sharding to work as intended, each shard must be in its own Entity Group. If you look at the sample code, you can see that each shard is in its own group. You can also see that while the increment() method uses a transaction, the get_count() does not. The increment is only affecting one group, while the get_count is grabbing data from multiple groups.

    Note: The latest release of App Engine allows for cross group transactions, but those are a special case, and the definition of a group has not changed.

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

Sidebar

Related Questions

In manual it said that InnoDB has row-level locking, so why if I select
I want to implement a file level locking in my app.
I can see how to turn off row level and page level locking in
I'm monitoring a subcontracted supply of a software component managing some low level network
MyISAM uses table level locking which means that SELECT:s are blocked while INSERT/UPDATE:s are
It's a very common scenario: some process wants to drop a file on a
I would like one of my table to have row level locking. I am
In SQL Server I used the following hints inside queries: rowlock (row level locking)
I'm looking for a PHP-like high level C utility library. I've found the following
I'm looking for an exhaustive, university-level book or guide to study in order to

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.