DeleteMulti

26 views
Skip to first unread message

bsr

unread,
May 14, 2013, 5:01:22 PM5/14/13
to google-ap...@googlegroups.com
Hello,

I have an issue that, I use "DeleteMulti" to clear a set of entities, which gets deleted when looks through datastore viewer. But, the very next request (in the same function which deletes the keys) to datastore was to get all the entities in that kind (not cached, but req hits datastore) . Which retrieves the 'deleted' entries too. Is there anything like, in development setup, it takes a bit to reflect the results of a DeleteMulti operation.

I will make an isolated test case if the above is unusual.

Thanks.

David Symonds

unread,
May 14, 2013, 9:41:54 PM5/14/13
to bsr, google-ap...@googlegroups.com
On Tue, May 14, 2013 at 2:01 PM, bsr <bsr...@gmail.com> wrote:

> I have an issue that, I use "DeleteMulti" to clear a set of entities, which
> gets deleted when looks through datastore viewer. But, the very next request
> (in the same function which deletes the keys) to datastore was to get all
> the entities in that kind (not cached, but req hits datastore) . Which
> retrieves the 'deleted' entries too. Is there anything like, in development
> setup, it takes a bit to reflect the results of a DeleteMulti operation.

Datastore has an "eventual consistency" model. If you make changes to
the datastore it won't be immediately reflected if you query it
quickly enough. Read the docs starting here:
https://developers.google.com/appengine/docs/go/datastore/overview
Reply all
Reply to author
Forward
0 new messages