[google-appengine] Re: New bill did not draw from my Discounted Instance Hours pool

2011-11-10 Thread Murph
If you're on Python, the cheapest option is currently 0 discounted hours, as the normal frontend hours are already discounted, until December. Current rates are: Python Frontend: $0.04/hour (normal rate $0.08/hour) Discounted hours: $0.05/hour Unless I've missed something? -- You received th

Re: [google-appengine] Re: The Dining Philosophers

2011-10-27 Thread Murph
I think it's basically possible to do locking, mutexes, semaphores, etc in memcache, by taking advantage of some of the semantics, plus the new-ish compare & store stuff. There's the obvious caveat that it could be flushed without warning, or disabled for a while, so it's not a high reliability

[google-appengine] Re: Datastore update without read

2011-10-11 Thread Murph
You can't update just a single property/attribute of an entity unless you already know the values for all of the others. If it's frequently updated, careful use of memcache may allow you to avoid the db.get, but otherwise you have to read it first. An alternative, if you just have say 1 proper

[google-appengine] Re: Keeping sensitive information in memory

2011-10-05 Thread Murph
To be honest, if any part of the GAE servers are compromised, they have your entire application (everything you've uploaded) and data right there, if they have full control over the server host. Securing the system's memory & swap is not going to offer terribly much at that point. This is just

Re: [google-appengine] Change Class of Polymodel Instance

2011-10-04 Thread Murph
Nick, any comment on my approach of changing the PolyModel's class via db.to_dict and creating a new model with the same key? That seems to me like a relatively clean & safe way to do it. The desire to be able to do this for my case, is to be able to move records from Person to User, then Use

[google-appengine] Re: Need Python example of Template System

2011-10-04 Thread Murph
You should probably use some other template system (e.g. django.template), as webapp.template is going to be deprecated soon. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To view this discussion on the web visit https://groups.google.c

[google-appengine] Re: Change Class of Polymodel Instance

2011-10-04 Thread Murph
Here's a method I've discovered for changing the class on PolyModel, which I think is relatively clean: ent1 = Model1.get(…) # Or get_by_id, etc dict = db.to_dict(ent1) del dict['class'] # Other changes to dict, as required, adding/removing properties ent2 = Model2(key=ent1.key(), **dict) ent2.p

[google-appengine] Re: Managing Dev and Live versions

2011-09-29 Thread Murph
You should also take a look at multitenancy / namespaces (same feature, 2 different names for it). http://code.google.com/appengine/docs/python/multitenancy/ I'd guess it can also be done in Java, my GAE experience is all Python. In Python, you setup the default namespace for a request in your

[google-appengine] Re: Assigning datastore IDs based on UUIDs from an external DB

2011-08-09 Thread Murph
After a little testing, I discovered a flaw in my previously posted technique, namely that it was generating uint64 IDs, when the datastore will only accept non-zero uint63s. I'd also forgotten to include my UUIDProperty class. Here's the updated version. The question remains whether there's

[google-appengine] Assigning datastore IDs based on UUIDs from an external DB

2011-08-05 Thread Murph
Hi folks, I've been pondering the best approach to modelling objects where the objects in my GAE datastore correspond to a subset of objects in an external DB where primary keys are UUIDs. As I expect most of my records in GAE to really be quite small, I feel it's worth avoiding the storage si