1

I am kind of new to GAE and I was trying to use @db.ComputedProperty to dynamically add field values However I am getting the error message

Property xxxx is 721 bytes long; it must be 500 or less. Consider Text instead, which can store strings of any length.

It seems that @db.ComputedProperty defaults to StringProperty Is there any way to change it to TextProperty?

4

1 回答 1

0

让您的计算属性返回一个实例db.Text而不是字符串。但是,正如 Wooble 指出的那样,这样做绝对没有意义:计算属性的存在是为了帮助建立索引,如果您不为数据编制索引,您还不如使用常规属性而不将其存储在数据存储中.

于 2012-07-16T01:03:43.103 回答