Perfect, thanks Sylvain. :)

Nick


On 5 February 2010 03:11, Sylvain <sylvain.viv...@gmail.com> wrote:

> I think the answer (and more) is here :
> http://blog.notdot.net/2009/9/Efficient-model-memcaching
>
> On Feb 4, 10:43 am, Nickolas Daskalou <n...@daskalou.com> wrote:
> > Is it better/safer to store a Model instance into Memcache directly
> (Method
> > 1 below), or should we convert it to a protocol buffer first, then store
> it
> > (Method 2 below)?
> >
> > Method 1:
> >
> > memcache.set(cache_key, entity)
> > ...
> > entity = memcache.get(cache_key)
> >
> > Method 2:
> >
> > memcache.set(cache_key, db.model_to_protobuf(entity))
> > ...
> > entity = db.protobuf_to_model(memcache.get(cache_key))
> >
> > I'm assuming Method 2 results in a smaller Memcache footprint, yes?
> >
> > Nick
>
> --
> 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-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com<google-appengine%2bunsubscr...@googlegroups.com>
> .
> 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 google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to