Google 应用引擎 - 从后端更新数据
通过后端更新 Google 应用引擎大表中的记录的最佳方式是什么?
我有 Google 应用引擎应用程序,用户可以在其中注册并执行一系列活动。现在,我添加了一项新功能,可以根据活动向用户奖励积分。为了使积分系统准确,我需要手动计算过去完成的活动的积分(我有统计数据可以做到这一点)&使用查询更新大表。那么推荐的方法是什么?
我正在寻找某种类似于 IDE 的界面/命令行工具来完成此操作。
一些说明:
- 我不是在寻找批量上传数据。数据已经存在。我刚要更新它。
- 我知道我可以通过编写 java/python 来做到这一点 程序,但我试图单独使用查询进行更新。
- 我无法删除并重新创建数据
可能吗?
What is the best way to UPDATE records in google app engine's Big Table through backend?
I have google app engine application where users sign up and perform a bunch of activities. Now, I have added a new feature to award POINTS to the user based on the activity. For the point system to be accurate, I need to manually calculate the points for activities completed in the past(I have stats to do that) & UPDATE the big table by using queries. So what is the recommended way to do this?
I am looking for some kind of IDE-like interface/command-line tool to get this done.
Some clarifications:
- I am NOT looking for bulk upload of data. Data is already there. I just got to UPDATE it.
- I know I can do this by writing a java/python
program, but I am trying to update using queries alone. - I cannot delete and re-create data
Possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
App Engine 中没有“更新”查询,而且我不知道有任何工具可以在管理员界面中实现它们。您必须使用代码获取、更新和写入每条记录。
There are no 'update' queries in App Engine, and I'm not aware of any tools that implement them in an administrator interface. You will have to fetch, update, and write each record using code.