Hi, In my application, running on master/slave, I have model called Total where key names that are set to a combination of a string encoded key and a descriptor.
For example, a key name could be set to "UserClicks-%s"%user.key(). So to get the total user clicks for a user, I run Total.get_by_key_name( "UserClicks-%s"%user.key()). The problem is that when moving from MS to HRD, the user.key() has changed but the key name for the Total key is still the old value. So totals are all wrong. As a fix for this, should I run through Total table in Master/slave, create new Totals with keyname = "UserClicks- %s"%user.key().id_or_name(), and refactor the code where totals are retrieved and set to use id_or_name instead of key? Would id_or_name() always return a unique value for the model (I used auto-generated ids but later changed to setting key_names for User model but the key_name is never the same value as Id.) Thanks Rob -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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?hl=en.
