Interesting... now I need to go and make sure all my logic still works if singletons stick around between requests. GAE is full of surprises! Thanks for the tip =)
On Mar 7, 7:22 pm, John Patterson <[email protected]> wrote: > Hi Mike, static variables are a useful way to cache short term data. > They will last as long as the instance lasts which is hard to > predict. I read some time ago that there is an undocumented limit of > about 100MB of memory per instance. > > On 8 Mar 2010, at 01:02, tempy wrote: > > > > > On the dev server, I have a singleton DAO that encapsulates all logic > > relating to the datastore and memcache. I was surprised to find that > > the singleton persists between requests, and will generally go on > > existing until I restart the dev environment. Does this reflect > > production app engine behavior? If so, is there any documentation for > > when/how objects in app engine persist and/or are destroyed between > > requests? > > > Thanks, > > Mike > > > -- > > 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 > > athttp://groups.google.com/group/google-appengine-java?hl=en > > . -- 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.
