![Google App Engineで開発するスケールするアプリケーション(前編)](https://cdn-ak-scissors.b.st-hatena.com/image/square/4096c9f9d1998288ac132bdbbcb376cd4668bb5d/height=288;version=1;width=512/https%3A%2F%2Fcodezine.jp%2Fstatic%2Fimages%2Farticle%2F4591%2F4591_arena.png)
Google App EngineではRDBMSのようなUnique Indexをサポートしていません。ユニーク制限を実現する場合は、トランザクション中でKeyを使ったgetとputを組み合わせる必要があります。 ここでは、email addressがユニークだったらそれを確定してtrueを返し、そうでない場合にはfalseを返すコードを考えます。 最初にトランザクションを使わないコードを見てみましょう。KeyFactory.createKeyの最初に引数は、kindといってテーブル名みたいなものです。 public boolean putUniqueEmailAddress(String value) { DatastoreService ds = DatastoreServiceFactory.getDatastoreService(); Key key = KeyFactory.cr
« 「XSLとjQuery/HTMLだけで作る、amazon最速検索」が動かなくなってたので直した | Main | Publish::MixiDiary書いた » まずは素晴らしい出だしだと思う。 google-app-engine-oil - Google Code Yet another web framework on Google App Engine. Google App Engine Oil (GAEO) is an open-source web framework running on Google App Engine. It enables the web development on App Engine quick and less configurations. http://code.google.com/p/google-app-engine-oil/ r
application: appid version: 1 runtime: python api_version: 1 handlers: - url: .* script: main.py secure: optional - url: /_ah/mail/.+ script: main.py login: admin inbound_services: - mail #!/usr/bin/env python # -*- coding: latin-1 -*- import logging from google.appengine.ext import webapp from google.appengine.ext.webapp.mail_handlers import InboundMailHandler from google.appengine.ext.webapp.ut
The 1000 file limit has created a problem for folks working outside of the golden path provided by GAE, or even for folks with lots of modules outside of the Web application plumbing. To alleviate this problem, you can create a zip archive of files you need and import module from these like so: import sys sys.path.insert(0, 'cherrypy.zip') sys.path.insert(0, 'mako.zip') import cherrypy fro
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く