It is not just you.  An issue has be opened
http://code.google.com/p/googleappengine/issues/detail?id=786 but the
GAE team has yet to acknowledge it or response to other posts on the
subject on this discussion group.

On Oct 19, 10:18 pm, MajorProgamming <[EMAIL PROTECTED]> wrote:
> Is it just me or do "puts" take up a tremendous amount of CPU power. I
> was looking over my logs and found that many of my requests which
> updated a record in the database were marked as using a high amount of
> cpu. (such as 2139/2044/2283/etc mcycles). Is this normal or am I
> doing something wrong?
>
> Just to give you a overview of what this particular request does
> (although I noticed this on a lot of requests on another application I
> am developing), here is the basic outline of the code: (excerpts)
>
> #start off with get or insert (variable p is passed from the request
> query string)
> r = Users.get_or_insert(key_name='p:%s' % p, number=p)
> #the app then goes through about 8 if/elif statements, and depending
> will set:
> r.aproperty=True
> #(or false)
> #and then we store the change
> r.put()
>
> So how much more can it be optimized!?!
>
> Thanks for your help
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
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