Ah, that's a good point. Ok, so if I don't care about the existing
data, I can simple overwrite them without worrying. I hope its the
case if say I have like 50 million entities?

-N

On Sep 19, 4:16 pm, Tim Hoffman <[email protected]> wrote:
> Hi
>
> That all depends on if there is any data in the old entity that you
> want to copy to the overwritten
> entity.  If not it will be cheaper to do a put rather than a get
> followed by a put.
>
> T
>
> On Sep 19, 2:03 pm, nischalshetty <[email protected]> wrote:
>
>
>
> > When I started out, I made a few of my entities without the appengine
> > "Key" as primary key i.e. made them with numeric primary keys.
>
> > Then I moved on to using "Key" as a primary key for my entities. In
> > the documentation it says if we try to persist an entity with an
> > already existing key, it'll overwrite the existing record.
>
> > So, my question is, to update my entities, should I just overwrite
> > them or should I do the traditional, get entity, modify it and then
> > call the update method to persist it?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to