Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

GAE Datastore Eventual consistency section contains wrong information #132

Open
anssih opened this Issue · 1 comment

2 participants

@anssih

In deployment recipes, under GAE Datastore the "Eventual consistency" section seems to be mostly wrong.

The first paragraph seems OK, but the second paragraph claims that web2py doesn't rely on "primary Datastore keys" and that the "id" field is just a regular field assigned by web2py. Reading the code that simply isn't the case, and hasn't been at least as far back as the git repository goes (2 years). The id is the actual DB-assigned id from the entity key.

Therefore the rest of the section (which explains the consequences with an example) is just wrong. The issue only exists if one tries to retrieve the newly added row by a non-id field.

I guess the example should be altered to retrieve the newly added row by a non-id field, or minimally completely removed.

@mdipierro
Owner

That used to be the case but code has changed. You are right the book did not keep up and needs to be updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.