On Wed, Dec 7, 2011 at 7:03 AM, datanucleus <[email protected]>wrote:

> > *Does anybody know whether it's as simple&transparent as with Objectify
> to
> > use GAE's caching in JPA2&Datanucleus on GAE?*
>
> Assuming you're using v2 of the datanucleus-appengine plugin, just
> define the persistence property "datanucleus.cache.level2.type" as
> "javax.cache" and it will use Memcached, with persistable objects put
> in the L2 cache at commit, and accessed when needed ... totally
> transparent to the user. *Nothing* gets simpler than that.
>

Hmmmm.  Another one of "those threads".  Nothing?

How do you configure caching on an entity-by-entity basis?  How do you
configure cache expiry times?  Does this cache use CAS operations to
guarantee synchronization?  Does it use batch CAS operations to prevent it
from being dog slow?  Does it perform query caching?  Will it convert
appropriate queries into keys-only queries + batch get to integrate with
the cache?

I'd say putting @Cached on each entity you want cached is pretty simple and
elegant.

FWIW, I just looked at the datanucleus Level2Cache interface and no, it
doesn't support batch operations.  So this is useless for any application
that uses batch operations (which should be most).

Jeff

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to