Enumerate keys in Amazon SimpleDB
Asked Answered
K

2

5

I'm trying to enumerate keys in Amazon SimpleDB. In SQL, it would be something like:

select unique itemName() from domain;

I've searched around but didn't find any way to do this. Any help?

Kaja answered 3/10, 2009 at 1:36 Comment(0)
T
6

By definition, items in a domain are unique, so you were almost there:

select itemName() from domain
Tollhouse answered 3/10, 2009 at 6:23 Comment(0)
O
1

AFAIK SimpleDB doesn't do unique, but apart from that:

select itemName() from mydomain order by itemName()

should work, and you can remove duplicates (if any) very easily, since you're getting the names in sorted order (e.g. itertools.groupby in Python, and whatever analogous mechanism in whatever is your favorite language).

Overliberal answered 3/10, 2009 at 4:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.