[appengine-java] What CPU times should I expect in the logs?

2010-02-19 Thread Blake
I'm relatively new to GAE.  My queries so far have for single entities
with owned relationships, queried by key, which has been great - no
orange or red screaming in my logs.  More recently, I've been working
on a simple page that does this:

1. get a list of 10 of the user's Following entities - each contain
a key to an object the user is following, and some extra metadata
about the relationship

2. get each of the ObjectBeingFollowed entities by key in the
Following entity

Easy enough to get working, but the logs are screaming at me with CPU
times up around 0.5-1.0 seconds.  Is this just what to expect?  Do you
guys have pages that always return red or orange log messages?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] What CPU times should I expect in the logs?

2010-02-19 Thread John Patterson
You could try to batch the get of your ObjectBeingFollowed entities  
so you only do two gets.  Is most of your cpu time api_cpu?



On 19 Feb 2010, at 12:29, Blake wrote:


I'm relatively new to GAE.  My queries so far have for single entities
with owned relationships, queried by key, which has been great - no
orange or red screaming in my logs.  More recently, I've been working
on a simple page that does this:

1. get a list of 10 of the user's Following entities - each contain
a key to an object the user is following, and some extra metadata
about the relationship

2. get each of the ObjectBeingFollowed entities by key in the
Following entity

Easy enough to get working, but the logs are screaming at me with CPU
times up around 0.5-1.0 seconds.  Is this just what to expect?  Do you
guys have pages that always return red or orange log messages?

Thanks!

--
You received this message because you are subscribed to the Google  
Groups Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com 
.
To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com 
.
For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en 
.




--
You received this message because you are subscribed to the Google Groups Google 
App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.