Google Groups Home
Help | Sign in
ActiveRecord adapter for Amazon's SimpleDB possible?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Eaden McKee  
View profile  
 More options Dec 14 2007, 9:28 pm
From: "Eaden McKee" <eaden.mc...@gmail.com>
Date: Sat, 15 Dec 2007 15:28:56 +1300
Local: Fri, Dec 14 2007 9:28 pm
Subject: ActiveRecord adapter for Amazon's SimpleDB possible?
Hi there,
I've been notified by amazon today of the announcement of a limited
beta for their new SimpleDB service.
http://www.amazon.com/gp/browse.html?node=342335011

It seems to be inspired by REST, and for some applications could be
used instead of a RDMS.

Considering ActiveRecord has viewed databases such as MySQL a 'hash in
the sky' by not supporting many features such as foreign key
restraints etc etc, maybe it would be possible to create an active
record adapter for SimpleDB?

I'm not an AR hacker, but hoping someone on this list is, and can
provide some insight about the possibility...

Best Regards
Eaden McKee
--
Webforce Ltd. | www.webforce.co.nz


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tobyhede  
View profile  
 More options Dec 15 2007, 7:36 am
From: tobyhede <tobyh...@gmail.com>
Date: Sat, 15 Dec 2007 04:36:39 -0800 (PST)
Local: Sat, Dec 15 2007 7:36 am
Subject: Re: ActiveRecord adapter for Amazon's SimpleDB possible?
It is certainly doable, but complicated by a couple of things.

SimpleDB has no schema ... you can PUT any Attributes in a Domain.
This means that you would have to have your schema described outside
of SimpleDB. There's no way of grabbing the attributes from a Domain -
attributes are always tied to an Item, but an Item doesn't have to
have attributes, so there is no guarantee that all possible attributes
will be returned with an Item.

Apart from the schema issue, I don't really see any particular
problems. AR is already abstracted from the underlying datastore, so
moving to SimpleDB should be relatively straight forward.

On Dec 15, 1:28 pm, "Eaden McKee" <eaden.mc...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan de Vries  
View profile  
 More options Dec 16 2007, 7:22 pm
From: Nathan de Vries <nat...@atnan.com>
Date: Mon, 17 Dec 2007 11:22:17 +1100
Local: Sun, Dec 16 2007 7:22 pm
Subject: Re: [rails-oceania] Re: ActiveRecord adapter for Amazon's SimpleDB possible?

On Sat, 2007-12-15 at 04:36 -0800, tobyhede wrote:
> ...an Item doesn't have to have attributes, so there is no guarantee
> that all possible attributes will be returned with an Item.

It does if you store a schema version at the "Item" level, and perform
schema updates (attribute additions, modifications, deletions) on Items
which are below the minimum acceptable schema version.

--
Nathan de Vries

  smime.p7s
2K Download

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Rehfeld  
View profile  
 More options Jan 20 2008, 5:48 pm
From: Martin Rehfeld <martin.rehf...@glnetworks.de>
Date: Sun, 20 Jan 2008 14:48:08 -0800 (PST)
Local: Sun, Jan 20 2008 5:48 pm
Subject: Re: ActiveRecord adapter for Amazon's SimpleDB possible?
Well, a full-featured ActiveRecord adapter seems hard to achieve. I
recently completed work on a proxy server allowing ActiveResource
models to use SimpleDB as a datastore. Find the results here:

http://inside.glnetworks.de/2008/01/20/bridging-rails-to-amazon-simpl...

Cheers,
Martin

On 15 Dez. 2007, 03:28, "Eaden McKee" <eaden.mc...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google