在Google App Engine中删除所有类型的数据 [英] Delete all data for a kind in Google App Engine

查看:102
本文介绍了在Google App Engine中删除所有类型的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要清除Google App Engine中特定类型的所有数据。什么是
最好的方式来做到这一点?
我写了一个删除脚本(hack),但由于数据太多,
超过了几百条记录。 / ec0800a3ca92fe69#rel =noreferrer>来自Google的官方答案是您必须以多个请求中的区块进行删除。您可以使用AJAX,元刷新,或从脚本请求您的网址,直到没有实体。


I would like to wipe out all data for a specific kind in Google App Engine. What is the best way to do this? I wrote a delete script (hack), but since there is so much data is timeout's out after a few hundred records.

解决方案

The official answer from Google is that you have to delete in chunks spread over multiple requests. You can use AJAX, meta refresh, or request your URL from a script until there are no entities left.

这篇关于在Google App Engine中删除所有类型的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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