On 20 Mar 2010, at 03:57, Ali Ok wrote:

 I will convert all static variables into
datastore entries.

There is no way to automatically track all static variables so this would soon get get out of hand. What are is your goal? To save calculating expensive data for every load? If so then you are best off using a cache. Using something like Stick Cache your items are stored as static values in memory, in memcache and in the datastore (if you choose)

 I want to save the state for a lifetime,
until a new "deployment" is made. I

What happens when two server instances load at the same time and both try to calculate the same data?

Stick Cache also takes care of this scenario by making the second request block until the first has finished putting the expensive data in the cache.


So, my question is how to determine a new "deployment"(uploading the
new application with the same version name) in my app
programatically.


Well you control the code each time you deploy so you could just give each one a unique number.





--
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