Thanks for your reply. I don't won't to use db.Text. I find a way to implement it, but seems not safe in the future version:
class A(db.Expando): pass a = A() a.prop = 1 A._unindexed_properties = frozenset(['prop']) a.put() ---------- keakon 2010/2/27 peterk <[email protected]>: > I don't believe you can. > > However you could cast your dynamic property to one of the datastore > properties that are implicitly not indexed (e.g. db.Text) e.g. for a > integer 123456789 > > expando.dynamic_prop = db.Text(str(123456789)) > > Then when you want to get it back use int(expando.dynamic_prop) to > cast it back to an integer. Probably not as efficient as if there were > the ability to flag properties as indexed or not, but I recall trying > this and it worked. > > On Feb 27, 12:58 am, 风笑雪 <[email protected]> wrote: >> Most time I only want the static properties of Expando to be indexed, >> but the dynamic properties are always automatically indexed too. >> >> Is there any way to remove these indexes, just like >> db.IntegerProperty(indexed=False) dose for the static properties? >> >> Thank you. >> >> ---------- >> keakon > > -- > 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. > > -- 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.
