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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:25:20+00:00 2026-06-07T02:25:20+00:00

In google’s datastore I am trying to save myself some writes by making index=False

  • 0

In google’s datastore I am trying to save myself some writes by making index=False and make reads a little more efficient by only using get_by_id(). I have an entity that I only ever look up with get_by_id(). I know that if I have :

class Comments(db.Model)
     content = db.StringProperty(required=True, indexed=False)
     userID = db.StringProperty(required = True)
     time_created = db.DateTime(autoCreate = True)

that it will take less writes and less space but can I still do the get_by_id() query or is the ID the index?

P.S. I know this is another question but for a simple model like this would having it be ndb.Model be better?

  • 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-06-07T02:25:22+00:00Added an answer on June 7, 2026 at 2:25 am

    db.get_by_id and get.by_key_name are just convenience wrappers around db.get(key),
    They just create the key for you. This type of access does not look at the properties
    or their indexes.

    You will always be able to the retrieve the entity (if it exists 😉 by the key.

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

Sidebar

Related Questions

Google's Webmaster blog wrote some solution on how to prevent Open Redirect Protection abuse,
Google Translate, has some bookmark let for translate with 1 click, for example: javascript:var
Google FileSystem Paper - High sustained bandwidth is more important than low latency. Most
Google App Engine allows to administrate the Datastore http://code.google.com/appengine/docs/adminconsole/datastoreadmin.html but there is no mention
Google Analytics reads like a seismic chart lately
Google maps in some region can serve traffic information showing the blocked roads and
Google is failing me on this one. Let's say I have some ECMA script
Google search results is showing an old outdated version of my site, some of
I'm making a simple page using Google Maps API 3. My first. One marker
Google calendar throws at me rfc3339, but all my dates are in those milliseconds

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.