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

  • Home
  • SEARCH
  • 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 4124388
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T23:44:04+00:00 2026-05-20T23:44:04+00:00

I was reading this StackOverflow question about eager loading which led me to this

  • 0

I was reading this StackOverflow question about eager loading which led me to this blog post about efficient dereferencing on GAE.

Is it correct, that if I dereference two ReferenceProperties that point to the same object in the datastore, the framework doesn’t maintain any kind of identity map and performs two separate get requests? The objects returned are also different instances and changes on one are obviously not reflected on the other.

Isn’t this less than ideal? I’m coming from a SQLAlchemy background, where I find the session pattern really intuitive.

  • 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-20T23:44:05+00:00Added an answer on May 20, 2026 at 11:44 pm

    That’s correct. Guido’s new NDB project does perform this mapping, but the current db framework doesn’t. The reason for this is what you’d expect: if two different parts of the code fetch and modify the same entity, it could create unwanted side-effects. The intuitive expectation is that if you fetched the object, it’s yours and nothing else is going to change it underneath you unless you want it to.

    If you’re trying to dereference a batch of entities at the same time, you can convert the list of keys into a set first to eliminate duplicate fetches.

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

Sidebar

Related Questions

I was reading this thread/post: https://stackoverflow.com/questions/262298/windows-c-ui-technology and am also wondering about a non .NET
After reading this post on Stackoverflow Google plus popup box when hovering over thumbnail?
I've been reading about this on StackOverflow and facebook doc, yet I dont seem
I think this question is very usual. Many results on Stackoverflow has said about
I know from reading this Stackoverflow question that the complier will look at your
Guys, I opened this question (I hope could help some others) but reading stackoverflow
Recently, I've got a dangerous idea into my head after reading this blog post.
After reading a StackoOverflow question https://stackoverflow.com/questions/182112/funny-loading-statements-to-keep-users-amused , I was really intrigued to ponder upon
First of all here are a lot of discussion on stackoverflow about this question,
I thought this other SO thread would have answered my question (http://stackoverflow.com/questions/4883751/trouble-reading-json-object-in-python), as it

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.