在Google App Engine上更新数据存储中的大量实体 [英] Updating a large number of entities in a datastore on Google App Engine

查看:90
本文介绍了在Google App Engine上更新数据存储中的大量实体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想对特定类型的所有实体执行一个小操作,并将它们重写到数据存储区。我目前有两万个这样的实体,但是想要一个可以扩展到任意数量的解决方案。



我有什么选择?

解决方案

使用 mapper - 这是MapReduce框架的一部分,但您只需要第一个组件map,因为如果您只是简单地修改数据存储区,则不需要shuffle / reduce步骤实体。

I would like to perform a small operation on all entities of a specific kind and rewrite them to the datastore. I currently have 20,000 entities of this kind but would like a solution that would scale to any amount.

What are my options?

解决方案

Use a mapper - this is part of the MapReduce framework, but you only want the first component, map, as you don't need the shuffle/reduce step if you're simply mutating datastore entities.

这篇关于在Google App Engine上更新数据存储中的大量实体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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