In my previous OpenBD on Google App Engine post I mention there is no relational database ( yet ) for OpenBD on GAE. There is however the ability to write and save objects directly to Googles Data Store. This sort of feels like working with an ORM but it's even more abstracted as there is not actual database that we can see but we can put objects in this place and run simple queries against the data sets.
Here is a code snippet:
Persisting Data:
Notice I must use variable.VariableName rather then cfproperty name="variableName this is explained here.
Here is a small application to demonstrate this in action:
Click Here for a live demo.
( Yes it looks like UniCode just works :) )
Being that it lives on Googles servers the application should be very fast and I expect Googles connections to be very fast you'll notice I do a cfhttp call in every page request you almost don't even notice it's happening.
I really have no metrics to judge/comment on the performance of the datastore but I am working on a project with Rob Parkhill which will make use of the datastore or the SQL engine that's being built so I may have something to report in a few weeks/months.
Here is the official OpenBD wiki entries on the datastore.
Here is the sample app code:



Visitor.cfc


Subscribe to:
Post Comments (Atom)
Categories-
- Actionscript (5)
- Adobe (8)
- AIR (3)
- Apple (2)
- BlackBerry (1)
- CFML (59)
- ColdFusion (84)
- ColdFusion 8 (12)
- ColdFusion 9 (28)
- Database (2)
- Flash (11)
- Flash 10 (6)
- FlashBuilder (4)
- Flex (31)
- Internet Explorer (1)
- iPhone (4)
- Java (8)
- jQuery (1)
- Linux (8)
- Microsoft (5)
- Open Blue Dragon (10)
- Open Source (11)
- Operating Systems (3)
- PHP (1)
- Railo (24)
- SQL (3)
- SVN (2)
- Twitter (2)
- VPS (1)
- Windows (5)

Blog Archive
-
►
2010
(38)
-
►
August
(9)
- ColdFusion and cfquerynew and date times - timesta...
- ColdFusion Lists, SQL IN and cfqueryparam
- iPhone and Flash - Sucess
- ColdFusion jrun and the JVM
- ColdFusion and CFReport
- jQuery or EXTjs
- iPhone 3Gs and Flash player
- Easy way to embed ColdFusion code into your blog
- Flex and the MATE framework in Melbourne
-
►
August
(9)
-
▼
2009
(89)
-
►
December
(17)
- ColdFusion 9 and the local scope continued
- Is this an issue with the local scope in ColdFusio...
- Are you using ColdFusion 9's ORM?
- Want more performance from a default Railo install...
- WizzyWig the comic and snow
- Linux Start and Stop scripts for Ventrilo - Ubuntu...
- ColdFusion Builder Beta 3 - Any one seen this?
- Streaming AMF channel with ColdFusion 9 and BlazeD...
- Forwarding or masking your domain with GoDaddy
- Cheap ColdFusion hosting
- Should I get an iPhone?
- Full Screen Flex
-
▼
September
(12)
- ColdFusion and CFML sites
- Do you close your ColdFusion tags
- Another new ColdFusion podcast
- ColdFusion 9s ORM and Flex with a simple demo
- Google App Engine Twitter OpenBD and Flex
- Google App Engine Flex OpenBD and ColdFusion
- How to add Virtual hosts in Snow Leopard OSX
- OpenBD cfcs the Datastore and an Enterprise Manage...
- OpenBD Google App Engine and cfc's
- ColdFusion on Google App Engine with OpenBD
- New(ish) ColdFusion - RIA Podcast
- Inline Java compilation in ColdFusion 9s VFS with ...
-
►
December
(17)
Reccomended:
- TweetTrail
- Load Cell
- MyTouch Cases
- View Prom Hairstyles
- Cell Phone Accessories
- business operating agreement
- learn how to recycle electronics



9 comments:
Really Great!
Thanks Paul. Another good post
Good stuff! A couple of things to keep in mind:
1) The OpenBD-GAE API you're using was developed before the CF9 public beta was released. We plan to implement syntax that's compatible with the CF9 ORM feature; for example, GoogleWrite() will become EntitySave(), and GoogleRead() will become EntityLoad(). This will allow you to write portable applications.
2) The relational database support we're building for OpenBD-GAE is primarily intended for porting of existing applications. For new applications, using the ORM-like features of the Google datastore is recommended because it will perform and scale much better.
Vince Bonfanti
@Vince that's great news. I really like the Google Datastore and knowing it will scale well has made up my mind already.
This is mind blowing stuff.
Why the images of code rather than just text?
My syntax highlighter was not being friendly and it was just easier. If you would like the code I will be happy to place it som where for download.
Could you post the code? I keep getting a CFML Runtime Error: variables.country doesn't exist.
The code is the same as attached. Perhaps in vehicle.cfc you forgot to declare a variable?
Post a Comment