2010年2月12日 星期五

Google App Engine 推出1.3.1 - 解決了分頁問題了嗎?

Google App Engine又有了新的版本。
變動還真是大,又興奮又難過。
主要是datastore上有三大變動:
1. 新增指標功能
2. fetch取消上限,原本只能一千筆。不過其它的限制依然還在,比如說上限只能1MB
3. 大幅修正big table的內部錯誤,並且會自動重做。
在cursor功能上,不能加上filter或in 的查詢(也就像是sql的where),其實這樣限制又大了許多。
這是範例程式
cursor依然沒有解決分頁的問題,因為datastore很難設計成這麼單純,通常一定會有附加條件的。
不過,此法對於備份來說幫助卻非常大哦!
Google App Engine Blog: App Engine SDK 1.3.1, Including Major Improvements to Datastore!: "n with paging URLs,"