Strong strong GAE lens alignment using ancestors

As I understand it, the objects requested with the lens, which must have an ancestor, must be requested with strong consistency, that is, should I always get the most modern object correctly?

This does not seem to be the case.

Here is an example of retrieving data from a data warehouse:

  Key<Rule> k = Key.create(Key.create(NinjaAccount.class, accountId), Rule.class, ruleId);
  return ofy().consistency(Consistency.STRONG).load().key(k).now();

Or a request for multiple objects:

return ofy().consistency(Consistency.STRONG).load().type(Rule.class).ancestor(Key.create(NinjaAccount.class, accountId))
    .list();

However, when I update one of the fields of an object Rule, I can run this code several times in a row and flip it between the new value and the old value. What am I doing wrong?? I am almost ready to simply switch to mysql, but I hope there is something small that I misunderstand.

+4
1

, , . , (Consistency.STRONG) ; get-by-key .

.

Objectify ObjectifyFilter? ( FAQ). , Objectify , , , , - .

+2

All Articles