At Wed, 6 Mar 2013 21:30:41 -0800 (PST),
Josh Israel wrote:
>
> for (id : list of entity ids) {
> do_some_work(get_entity(id))
> }
>
> Usually that get_entity call is fast, but the latency adds up pretty quickly.
> Since it's SQL, we typically correct the problem by converting to an IN clause
> or some other bulk query and iterating over that result set. Could/does dynamo
> support a bulk getters?
>
> In a similar vein, one of the useful things you can do with a BigTable is
> issue queries for keys in a given range. Is that possible?
I suspect Dynamo does not offer bulk queries or range queries
(particularly since the keys are hashed with MD5). However, I'm sure
many applications do multiple queries in parallel to overlap latency.
Moreover, it is common to structure data in such a way as to minimize
the number of dependent queries, so that you don't have to wait for
nearly as many back-to-back queries as the total queries issued.
David