删除的数据存储条目重新出现 [英] Deleted Datastore entries reappear

查看:114
本文介绍了删除的数据存储条目重新出现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想以注册用户的身份重新删除数据存储条目重新出现。旧的问题可以删除吗?

I'd like to re-open Deleted Datastore entries reappear as a registered user. Can the old question be deleted?

这次我会试着更具体一些。我遇到了以下问题:

I'll try to be more specific this time. I'm experiencing the following problem:

最初,我把如此类型的N个实体放入数据存储区:

Initially I put N entities of the same kind into the Datastore like that:

datastore_entity = MyModel(model_property=property_value)
datastore_entity.put()

之后我删除它们。我已经使用Datastore Admin界面以及mapreduce库的自定义处理程序来执行此操作。删除的实体既不会出现在数据存储区查看器中,也不会出现在数据存储区管理员视图中。

Afterwards I delete them. I have used the Datastore Admin interface as well as a self-defined handler for the mapreduce library in order to do so. The deleted entities do not appear neither in the Datastore viewer nor in the Datastore Admin view.

当我将这种新的单一实体放入数据存储区时,旧数据存储实体重新出现在数据存储管理视图中,而新实体不存在(通过实体数量来判断)。相反,数据存储区查看器正确地反映数据存储区状态。查询也只返回新创建的实体。

When I put even just one new single entity of this kind into the Datastore, the old Datastore entities reappear in the Datastore Admin view while the new entity does not (judging by the number of entities). On the contrary, the Datastore viewer correctly reflects the Datastore state. A query also returns only the newly created entity.

新实体放入数据存储区时没有任何任务。

There are no tasks at the time the new entity is being put into the Datastore.

我在我的本地机器上也没有遇到这个问题,我在启动服务器时使用了--clean_datastore选项。

I'm also not encountering this problem on my local machine where I'm using the --clean_datastore option when starting the server.

推荐答案

数据存储管理和数据存储统计不是实时的。数据存储查看器提供实时视图。

The Datastore Admin and Datastore Statistics are not "live". The Datastore viewer offers a live view.

选中实体统计信息上次更新...,您会注意到其中的差异。

Check "Entity statistics last updated..." and you will notice the difference.

如果旧实体在数据存储区查看器中不可见 - 无需担心。最终统计数据将被更新。

If the old entities are not visible in the Datastore viewer - no need to worry. Eventually the statistics will be updated.

这篇关于删除的数据存储条目重新出现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆