[appengine-java] JDO Batch PUT

2011-10-01 Thread mscwd01
Hey

In an effort to reduce the number of datastore PUTs I am consuming I
wish to use the memcache much more frequently. The idea being to store
entities in the memcache for n minutes before writing all entities to
the datastore and clearing the cache.

I have two questions:

Is there a way to batch PUT every entity in the cache? I believe
makePersistentAll() is not really batch saving but rather saving each
individually is it not?

Secondly is there a "callback" function you can place on entities as
you place them in the memcache? I.e. If I add an entity to the cache
(with a 2 minute expiration delta) can I tell AppEngine to save the
entity to the datastore when it is evicted?

Thanks!

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



[appengine-java] Re: Which credentials should I put in for Google App Engine BulkLoader at JAVA development server?

2011-10-01 Thread Mark Nuttall-Smith
Hi, in theory you should be able to enter any credentials, as long as the 
username is a valid email address. In practice I've never found that this 
works - I would always get an "Authentication Failed" error.

The solution in my case was to run an http proxy such as Charles in the 
background.

Not sure this is entirely the same situation as you however, as your problem 
seems to be something to do with the SSL configuration - can you switch this 
off as well perhaps?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/u8zD8qS-l44J.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: .A research: how long will your java app instance start up fully?

2011-10-01 Thread Mike Lawrence

2-3 secs with stripes + slim3

On Sep 29, 9:29 pm, Tapir  wrote:
> ?

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



[appengine-java] Re: .A research: how long will your java app instance start up fully?

2011-10-01 Thread Francois Masurel
Between 5s and 10s, about 10s most of the time.

Using quite a few libraries, but no spring, struts or other heavy MVC 
framework.

Francois

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/2QG3YyOmbP8J.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Datastore Reads

2011-10-01 Thread Doug
Good Morning,

I am working to tune my application to make the most efficient use 
resources.  Over the last several days I have been trying to reduce the 
number of 'datastore reads' that are needed, but I have been having trouble 
determining what a datastore read is.  My initial assumption was that it was 
like a write in that each item you read from the datastore was a read, but I 
have reduced the number of 'rows' of data that I am reading by over half and 
there wasn't any change in the datastore reads.  

I am now wondering if a datastore read is more like a fetch from a database 
where in a single fetch you could be getting 1 or more rows of data. So, do 
anyone know what a datastore read is or can you point me in the right 
direction for documentation on this?

Thanks,
Doug

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/RnvUDZnGnyMJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Fwd: HELP PLEASE! Bug!

2011-10-01 Thread Bruno Sandivilli
-- Forwarded message --
From: Bruno Sandivilli 
Date: 2011/10/1
Subject: HELP PLEASE! Bug!
To: google-appeng...@googlegroups.com


Hi, i've compiled my project for the first time with the exact spec that i'm
compiling now, it's just the second deployment that i'm doing. I'm getting
this error:

Expecting a stackmap frame at branch target 6 in method

in the development server, and:

java.lang.UnsupportedClassVersionError:
com/myapp/server/GreetingServiceImpl : Unsupported major.minor version
51.0


i'm using the twitter4j lib.

Thanks!

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



Re: [appengine-java] .A research: how long will your java app instance start up fully?

2011-10-01 Thread Wilson MacGyver
4-5 secs, I'm using gaelyk

On Thu, Sep 29, 2011 at 9:29 PM, Tapir  wrote:
> ?
>
> --
> 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-java@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>



-- 
Omnem crede diem tibi diluxisse supremum.

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



Re: [appengine-java] .A research: how long will your java app instance start up fully?

2011-10-01 Thread Bruno Fuster
6~7 seconds (vraptor and objcetify)

On Sat, Oct 1, 2011 at 11:58 AM, Wilson MacGyver wrote:

> 4-5 secs, I'm using gaelyk
>
> On Thu, Sep 29, 2011 at 9:29 PM, Tapir  wrote:
> > ?
> >
> > --
> > 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-java@googlegroups.com.
> > To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
> >
> >
>
>
>
> --
> Omnem crede diem tibi diluxisse supremum.
>
> --
> 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-java@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
Bruno Fuster

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



[appengine-java] Re: JDO Batch PUT

2011-10-01 Thread mscwd01
To answer one of my questions, apparently makePersistentAll() does
indeed batch save entities.

One remaining question I have is, calling entrySet() on my cache to
get every entity saved in the cache and passing that to
makePersistentAll() is fine; however, the api docs state: "If the map
is modified while an iteration over the set is in progress the results
of the iteration are undefined". My cache is updated very frequently
so the map will be modified. So how do you prevent this from happening
and persist each entity in the cache to the datastore?

Thanks


On Oct 1, 11:45 am, mscwd01  wrote:
> Hey
>
> In an effort to reduce the number of datastore PUTs I am consuming I
> wish to use the memcache much more frequently. The idea being to store
> entities in the memcache for n minutes before writing all entities to
> the datastore and clearing the cache.
>
> I have two questions:
>
> Is there a way to batch PUT every entity in the cache? I believe
> makePersistentAll() is not really batch saving but rather saving each
> individually is it not?
>
> Secondly is there a "callback" function you can place on entities as
> you place them in the memcache? I.e. If I add an entity to the cache
> (with a 2 minute expiration delta) can I tell AppEngine to save the
> entity to the datastore when it is evicted?
>
> Thanks!

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



Re: [appengine-java] .A research: how long will your java app instance start up fully?

2011-10-01 Thread Gerald Tan
Switching from JDO to Objectify reduced my startup time from 8s to about 4s

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/R8mL09ddqTQJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: HELP PLEASE! Bug!

2011-10-01 Thread Francois Masurel
Hi Bruno,

I don't think it's related to AppEngine.

I've found this after a quick search on Google :

"It means that you compiled your classes under a specific JDK, but then try 
to run them under older version of JDK. So, you can't run classes compiled 
with JDK 6.0 under JDK 5.0. The same with classes compiled under JDK 7.0 
when you try to run them under JDK 6.0."

Hoping it will help.

Francois

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/R9yXLwV0Dr8J.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.