On Mon, Feb 13, 2012 at 4:55 AM, Timofey Koolin <[email protected]> wrote:
> It isn't update entiry - it rewrite exiting entity - you are lost previous > item with this kind and id. By 'update', I meant modification of an existing entity. So I think we're talking about the same thing? [On a related note, the datastore write costs of an existing entity depend upon the number of modified indexed property values and modified composite index values. ( http://code.google.com/appengine/docs/billing.html#Billable_Resource_Unit_Cost) .] > > > 2012/2/12 Amy Unruh <[email protected]> > >> Steven, >> >> If your application specifies an identifier string for an entity (e.g., >> see >> http://code.google.com/appengine/docs/python/datastore/entities.html#Kinds_and_Identifiers), >> then that is how it works. That is, when you do a 'put', if the entity >> with that ID does not exist, it is created. If an entity with that >> identifier does already exist, then the 'put' updates the entity. >> >> >> On Sun, Feb 12, 2012 at 8:48 AM, steven <[email protected]> wrote: >> >>> Hi, >>> >>> Thank you in advance. >>> >>> Just wondering whether Google App Engine has something equivalent to >>> "replace into" query, like mysql does. >>> So that, >>> It can add a new row, if the row does not exist. >>> or, update the row, if the row exist. >>> >>> Thank you very much, >>> Sincerely, >>> Steven >>> >>> -- >>> 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. >>> >>> >> -- >> 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. >> > > > > -- > Blog: www.rekby.ru > > -- > 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. > -- 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.
