[appengine-java] Re: JDO Level2 Cache setup for dummies

2010-03-09 Thread datanucleus
DataNucleus knows nothing about your environment ... local or GAE/J. It simply knows to call javax.cache API to store and retrieve objects. The rest is down to Googles infrastructure. Look in the log ... it tells you when objects are L2 cached and when retrieved from the L2 cache, and compare the l

[appengine-java] Re: JDO Level2 Cache setup for dummies

2010-03-09 Thread Toby
Hi, With the cache enabled I get a huge performance gain. In total it looks close to my handmade cache. And it is so easy to put in place... The First request takes some time but subsequent are really quick. The problem is that it only works only on localhost. When I deploy my application I get a

[appengine-java] Re: JDO Level2 Cache setup for dummies

2010-03-08 Thread datanucleus
> Do I understand right, that this L2 cache is doing exactly the same? Indeed, part of the JDO1/JDO2 and JPA2 specs. > Why is it not disabled by default (are there draw backs)? It *is* disabled by default in DataNucleus 1.x. It is enabled by default in DataNucleus 2.x (which GAE/J doesn't suppor

[appengine-java] Re: JDO Level2 Cache setup for dummies

2010-03-08 Thread Frederik Pfisterer
Toby, I am not sure since I'm new to the topic but that's how I understood it. The L2 Cache is disabled by default, you need to include another jar from datanucleus in your buildpath and add two lines to your jdoconfig (see above). If you try it out please let me know how performance changes compa

[appengine-java] Re: JDO Level2 Cache setup for dummies

2010-03-07 Thread Toby
Hello, Currently I made a memcache layer over my DAO to prevent calling the datastore if it is not neccessary. Do I understand right, that this L2 cache is doing exactly the same? If I e.g. fire a request and then fire the same query again (and in the mean time no update or delete was done) it wou

[appengine-java] Re: JDO Level2 Cache setup for dummies

2010-03-06 Thread datanucleus
> Is it possible that DN L2 caching in GAE drives down CPU milliseconds > used but overall response times get slower? Benefits of an L2 cache are subject to what you're doing (it's benefit is for multiple PM's for a PMF accessing the same objects, and hence providing a "quick" way of accessing the

[appengine-java] Re: JDO Level2 Cache setup for dummies

2010-03-05 Thread Frederik Pfisterer
Is it possible that DN L2 caching in GAE drives down CPU milliseconds used but overall response times get slower? On 5 Mrz., 09:52, Frederik Pfisterer wrote: > Thanks DN. > For anyone interested, I'm using datanucleus-cache-1.1.1.jar now and > it seems to work just fine. > > On 4 Mrz., 23:41, dat

[appengine-java] Re: JDO Level2 Cache setup for dummies

2010-03-05 Thread Frederik Pfisterer
Thanks DN. For anyone interested, I'm using datanucleus-cache-1.1.1.jar now and it seems to work just fine. On 4 Mrz., 23:41, datanucleus wrote: > GAE/J does not (yet) support DN 2.x -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group

[appengine-java] Re: JDO Level2 Cache setup for dummies

2010-03-04 Thread datanucleus
GAE/J does not (yet) support DN 2.x -- 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+u

[appengine-java] Re: JDO Level2 Cache setup for dummies

2010-03-04 Thread Frederik Pfisterer
Here is a useful resources for anyone interested in this thread: http://www.datanucleus.org/products/accessplatform_1_1/jdo/cache.html On 4 Mrz., 21:20, Frederik Pfisterer wrote: > Hi Folks, > > I am new to using a cache and have a hard time setting up the cache > for JDO. Also searched the web a