Amazon SimpleDB - Is there a way to list all Attributes in a Domain?

Posted by beer-drinker on Stack Overflow See other posts from Stack Overflow or by beer-drinker
Published on 2010-05-05T11:16:50Z Indexed on 2010/05/05 14:28 UTC
Read the original article Hit count: 203

Filed under:
|
|
|

Hi,

I'm using C# and the AWSSDK library form Amazon to test a few things in SimpleDB. All going well so far.

However, I am trying to come up with a neat way of retrieving all Attributes that are applicable to a Domain. This is proving to be tricky without having to retrieve an Item, and obviously I can get the list of attributes then. But what if I have 100,000 Items in a Domain. Let's say the first 70,000 Items in a "Person" Domain have:

FirstName, LastName, Address

And then I hit a Item that has

FirstName, LastName, Address, Phone

And then I hit another Item around the 80,000 mark which has:

FirstName, LastName, Email, Phone

In the above example, for the Person Domain, how would I get a list that contains:

FirstName, LastName, Address, Email, Phone

...without performing a ridiculous number of select statements?

Many thanks!

© Stack Overflow or respective owner

Related posts about simpledb

Related posts about c#