Re: [google-appengine] Re: Write Ops incurred during Model.put()

2012-06-08 Thread Alfred Fuller
The datastore will only update indexes that changed, so if s didn't change you would only be charged 1 write op for the entity write (vs 0 write ops if you didn't call put at all). I believe the dev_appserver only shows the cost for inserting a new entity (which is substantially different from the

Re: [google-appengine] Re: Write Ops incurred during Model.put()

2012-06-06 Thread mac
Hi Alfred, Sorry for bringing this old topic back, I am also confused by the number showed in the dev_appserver. I think you meant 1 op for the entity 2x2 = 4 ops for each changed index value (1 remove, 1 add and two directions) My question is, do we need to do checks before calling put() to m

Re: [google-appengine] Re: Write Ops incurred during Model.put()

2011-09-24 Thread Alex Epshteyn
Thanks for the definitive clarification, Alfred. It would be awesome if you guys could show the actual Read/Write Ops incurred by each URI under the Current Load section of the live dashboard. On Sat, Sep 24, 2011 at 4:00 PM, Alfred Fuller wrote: > Yes, the write ops for changing an entity depen

Re: [google-appengine] Re: Write Ops incurred during Model.put()

2011-09-24 Thread Alfred Fuller
Yes, the write ops for changing an entity depends on how many indexed properties you change. It is: 1 op for the entity 2 ops for each changed index value (1 to remove the old value and 1 to add the new) Since it is not a fixed value and depends on what you actually modify, we do not (can not) sho

Re: [google-appengine] Re: Write Ops incurred during Model.put()

2011-09-20 Thread Alex Epshteyn
So the Write Ops value in the new dev_appserver's Datastore Viewer applies only to creating new entities of a kind, updating the entity i is presumably much cheaper if only a few properties are changed? On Tue, Sep 20, 2011 at 12:27 PM, Simon Knott wrote: > Hi, > > According to Alfred, who's a Go

[google-appengine] Re: Write Ops incurred during Model.put()

2011-09-20 Thread Jose Montes de Oca
Thanks for bringing up that. Indexes updated are property changed related. I think that clears alex question. ;) FYI, if you have properties you will never filter or sort on in a query, consider *indexed=False* to avoid this write ops Best, Jose -- You received this message because you are s

[google-appengine] Re: Write Ops incurred during Model.put()

2011-09-20 Thread Simon Knott
Hi, According to Alfred, who's a Googler who appears to know lots about the datastore, only the updated values cause index write operations - see https://groups.google.com/d/msg/google-appengine/mjnSqQWOfqU/cgPVeHbrR8oJ for more info. -- You received this message because you are subscribed to

[google-appengine] Re: Write Ops incurred during Model.put()

2011-09-20 Thread Jose Montes de Oca
Hi, AFAIK, when you do a put() it will update the hole entity. that been said it will also update all the indexes related to it. Hope this helps! Jose Montes de Oca -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To view this discussion