Thanks,
Richard
Thanks,
Richard
--
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-a...@googlegroups.com.
To unsubscribe from this group, send email to
google-appengi...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.
This will certainly work put I'm not sure that it would be worth the complexity.
Fetching a value from memcache usually takes <5ms so parallelizing 3
memcache gets is going to save you ~10ms.
Cheers,
Brian
@Brian
Thanks for the tip, I didn't even realize that(I haven't been using
AppStats, shame on me). Would the savings be worth it, in your
opinion, when they're not present in the cache and have to resort to 3
gets of varying size?
On Nov 22, 12:37 pm, Brian Quinlan <bquin...@google.com> wrote:
> Hi Richard,
>
Its hard to give advice on this kind of complexity vs. performance
trade-off without really understanding the application.
Datastore gets are slower than memcache gets but are still pretty quick.
Cheers,
Brian
One last question on the topic, having to do with threadsafe: the
function that I was referring to was actually a decorator that checks
certain permissions that I insert before a large amount of handlers.
It also stores the returned objects via self.permissions for example.
Is there a possibility of a race condition on self.permissions or does
it function in such a manner that this is impossible?
Thanks,
Richard
On Nov 22, 1:56 pm, Brian Quinlan <bquin...@google.com> wrote:
If you are using webapp2 then a new handler instance is created for
every request.
Cheers,
Brian
thread creation is a fairly heavy weight operation
--
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-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.