back to home
ホームCONITについて業務内容CONIT LABS.採用情報お問い合わせ
  ホーム > CONIT Labs.
■CALENDAR■
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30   
<<前月 2010年09月 次月>>
■NEW ENTRIES■
■CATEGORIES■
■ARCHIVES■
■LINK■
■PROFILE■
■OTHER■
  • RSS 2.0
  • 処理時間 0.20224秒
  • なかのひと

 

弊社ブログは2010年4月26日からURLを変更いたしました。
ブックマークやRSSで登録されている方は、下記URLへ変更願います。
http://www.conit.co.jp/blog/
今後とも宜しくお願い申し上げます。
2010年4月26日 株式会社コニット
 

Google App Engine and datastore
Hi everyone, David here.

As development continues on my Mixi game, I've been liking Google App Engine more and more. Before starting, one complaint I heard was that it is hard to adjust to the Google App Engine "datastore". Unlike SQL, the datastore is a "schemaless" framework, which stores instances of classes instead of rows in a table. You can run queries, but the queries are a bit limited. For example, you can't have more than one "greater than/less than" sign in your query. You also can't sort on fields that aren't specified in the WHERE clause of your query.

It was a bit strange adjusting for me to, but I'm really starting to like it now. GAE has a very robust logging system that lets you track CPU time. Since you are mostly charged for CPU time, and pages with high CPU can actually become blocked, it is vital to tweak your queries to maximize efficiency. In typical SQL environments, performance always took a back seat to just getting the code to work. Now, I really have to be diligent about how I structure my data, how information is queried, and how it is managed. I like being in control of the cost of my app, and the adventure in finding inefficiencies in my code.

Another concern with the datastore is that the data are hard to export, backup, and restore. I couldn't disagree more. With the remote api, you can do all kinds of things with your data, including exporting it to Excel, migrating it to a development server, and updating/restoring entire datastores. Here's all the info you need.

http://code.google.com/appengine/articles/remote_api.html

As I continue to hack away, I'll keep posting to this blog on any other learnings.

Until then, happy coding.

-David

| http://www.conit.co.jp/labs/index.php?e=301 |
| Python | 12:30 AM | comments (0) | trackback (0) |
オブジェクトデータベース
こんにちは。高浦です。

今コニットの中でGoogle App Engineがアツイです。
しかし、データベースの仕組みが一般的に使われているリレーショナルデータベースではなく、オブジェクトデータベースというものが採用されているため、今までWeb開発に携わっていた人がGAEを使い始めるのには少々壁があるようです。

このオブジェクトデータベースとはその名の通りオブジェクト指向でデータベースを扱うものです。
そのため定義したモデルのプロパティを動的に増やしたり継承するといった器用な事が可能です。
また、オブジェクト指向のプログラミング言語と相性がいい点も特長の一つです。

便利なサーバーまで無料にしてしまうとは、さすがGoogleさんです!

| http://www.conit.co.jp/labs/index.php?e=279 |
| Python | 10:52 PM | comments (0) | trackback (0) |