• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Amazon's SimpleDB & WO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Amazon's SimpleDB & WO


  • Subject: Amazon's SimpleDB & WO
  • From: Joe Moreno <email@hidden>
  • Date: Sat, 06 Dec 2008 00:14:04 -0800

Hi all,

For anyone interested in experimenting with Amazon's SimpleDB and EOF...

I've attached a very simple Java thread I've been using to copy EOs from RDBMS database tables into SimpleDB. Eventually, an ideal solution would be an EOF adaptor for SimpleDB. The attached code, which I manually edited for this e-mail to remove some dependencies (so it might not compile), relies on my own Timer class and Typica which can be found in Google Code:
http://code.google.com/p/typica/

I have been testing out Amazon's SimpleDB as an off site backup for local database rows that don't change (i.e. history events). This week, Amazon made SimpleDB tinkering even more appealing when they lowered the price to:
1. Free for the first 25 machine hours
2. Free for the first GB of transfer in and out
3. Free for the first GB of storage.
Prior to this month, my bills for SimpleDB have been less than $3/month for more than 1 million monthly database transactions.

If you're not familiar with SimpleDB then the simplest analogy between SimpleDB, which is not a RDMS, and a RDBMS is:
RDBMS SimpleDB
Table Domain
Row Item
Column Attribute

They key difference between SimpleDB and a RDBMS is that SimpleDB does not have an ER model. Details about SimpleDB can be found here:
http://aws.amazon.com/simpledb

In Practice
In my environment, it takes about a 400 ms to write an Item to SimpleDB with a dozen Attributes. Your time will vary depending on your upstream bandwidth. Since this network latency is a significant amount of time for a single database transaction, the attached Java class was designed to run in its own thread.

The following code snippet copies all of a table's columns to SimpleDB:
EOEnterpriseObject transaction;
CopyEOAttributesToSimpleDBThread copyEOToSimpleDBThread = new CopyEOAttributesToSimpleDBThread(transaction, false);
copyHitToSimpleDBThread.start();


 Your feedback is welcomed,
Joe

Attachment: CopyEOAttributesToSimpleDBThread.java
Description: Binary data

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Null value in column on insert when marked as mandatory in EO Model?
  • Next by Date: How to use WODisplayGroup
  • Previous by thread: ERXGoogleSpell issue : The entity name must immediately follow the '&' in the entity reference.
  • Next by thread: How to use WODisplayGroup
  • Index(es):
    • Date
    • Thread