gae アプリ 開発メモ

Google App Engine アプリの開発メモ / 言語: python, javascript / ビギナー

gae

gaeをただのwebサーバとして使うには

gae

gaeをscriptなしで使うためのapp.yaml。 UIのデザイン確認には便利。 application: sample-application version: 1 runtime: python api_version: 1 handlers: - url: / static_files: index.html upload: index.html - url: /css static_dir: css - url: /s…

google.appengine.runtime.apiproxy_errorsの例外一覧

gae

google.appengine.runtime.apiproxy_errors は gae の API 全体で発生する例外クラス。 クラス名 説明 RPCFailedError アプリケーションサーバーへのRPCが失敗した CallNotFoundError 要求されたメソッドが見つからない ArgumentError 引数の構文解析でエラ…

DataStoreの操作で発生する例外一覧

『DataStoreを操作すると、エラーが発生することはよくあること』というのは、いろんなところに書いてある。 発生する例外は、Google App Engine : 例外だけじゃないみたい。 と言っても、まだ1つしか見つかってないけど。 パッケージ クラス名 説明 google…

DataStoreのorder()のあり/なしで速度を比べてみた

gae

sortedとDataStoreのorder()の速度を比べてみたでは、order()しない読み取り速度を計測していなかった。 そんな調査結果で開発方針を判断しちゃマズいかな、と思い再度計測。ソース #!/usr/bin/env python # -*- coding: utf-8 -*- from google.appengine.ex…

memcacheでCriticalSectionを書いてみた

gaeアプリケーションでいくつものリクエストを受けた時、相互に排他制御できる仕組みが欲しい。 memcache.incr(), decr()はアトミック操作できる。 ということで、こいつを使って CriticalSection を書いてみた。 from google.appengine.api import memcache…

sortedとDataStoreのorder()の速度を比べてみた

sorted()とDataStoreのorder()にどれくらい速度の違いがあるのか、ふと気になった。 で、計測。ソース #!/usr/bin/env python # -*- coding: utf-8 -*- from google.appengine.ext import webapp from google.appengine.ext import db from google.appengine…