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

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

问题描述

我想清除 Google App Engine 中特定类型的所有数据.是什么最好的方法来做到这一点?我写了一个删除脚本(hack),但是由于数据太多几百条记录后超时.

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.

推荐答案

官方回答 是您必须删除分布在多个请求中的块.您可以使用 AJAX、元刷新,或者从脚本中请求您的 URL,直到没有实体剩余.

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天全站免登陆