Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>From <a href="https://developers.google.com/appengine/docs/java/datastore/jpa/overview-dn2" rel="nofollow noreferrer">Google App Engine: Using JPA with App Engine</a> </p> <blockquote> <p>Level2 Caching is enabled by default. To get the previous default behavior, set the persistence property datanucleus.cache.level2.type to none. (Alternatively include the datanucleus-cache plugin in the classpath, and set the persistence property datanucleus.cache.level2.type to javax.cache to use Memcache for L2 caching.</p> </blockquote> <p>As for your doubts, this depends on your query as well as DataNucleus and GAE Datastore adapter implementation specifics. As <a href="https://blogs.oracle.com/carolmcdonald/entry/jpa_caching" rel="nofollow noreferrer">Carol McDonald suggested</a> I believe that the best path to find the answers for your questions is with JPA2 <a href="http://docs.oracle.com/javaee/6/api/javax/persistence/Cache.html" rel="nofollow noreferrer">Cache</a> interface... More specifically the <a href="http://docs.oracle.com/javaee/6/api/javax/persistence/Cache.html#containscontains(java.lang.Class%2C%20java.lang.Object)" rel="nofollow noreferrer">contains</a> method.</p> <p>Run your query, get access to the <code>Cache</code> interface through the <code>EntityManagerFactory</code> and see if the Level 2 cache <code>contains</code> the desired entity.</p> <p>Enabling <a href="https://stackoverflow.com/questions/10193919/how-to-set-loglevel-of-the-appengine-datastore-in-java">DataNucleus</a> logs will also give you good hints about what is happening behind the scenes.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload