不索引Expando的动态属性
2010 2 27 06:14 PM 1 条评论 1535 次查看
分类:Google App Engine 标签:Google App Engine, Python
对我的应用而言,大多数的静态属性是需要索引的,而动态属性则不需要,这便造成了浪费。
在GAE论坛提了半天也没等到好的解决办法,于是自己翻了下源码,发现Model类有个_unindexed_properties私有属性,这里面便是不需要索引的属性名了。
于是这样便可让动态属性不索引:
をつあおにまで GFW!
2010 2 27 06:14 PM 1 条评论 1535 次查看
分类:Google App Engine 标签:Google App Engine, Python
2010 2 23 09:44 AM 3 条评论 8919 次查看
分类:Google Chrome 标签:Google Chrome
2010 2 22 09:57 PM 0 条评论 1987 次查看
分类:Google App Engine 标签:Google App Engine
2010 2 11 08:25 AM 1 条评论 1203 次查看
分类:Google App Engine 标签:Google App Engine
2010 2 10 11:23 PM 2 条评论 1643 次查看
2010 2 8 08:57 PM 0 条评论 1229 次查看
分类:Google App Engine 标签:Google App Engine
ReservedWordError: Cannot define property using reserved word 'key'. If you would like to use this name in the datastore consider using a different name like key_ and adding name='key' to the parameter list of the property definition.可我看文档和读源码都发现有key这个参数,所以实在不明白哪错了。
2010 2 7 12:04 AM 0 条评论 3671 次查看
分类:Google Apps 标签:Google, JavaScript, RSS
2010 2 6 04:18 PM 0 条评论 6156 次查看
分类:Google Reader 标签:Google Reader
2010 2 4 02:12 PM 0 条评论 1363 次查看
分类:Google App Engine 标签:Google App Engine
2010 1 30 11:12 PM 1 条评论 2137 次查看