Is there much difference (in time performance) in using BatchGetItem
vs issuing several GetItem
in parallel?
My code will be cleaner if I can use GetItem
and just handle the parallelisation myself.
However, if there's a definite time performance advantage to BatchGetItem
then I'd certainly use that.
BatchGetItem already does its work in parallel:
Although I don't have benchmarks for you, a single
BatchGetItem
can get up to 100 items in parallel. AlsoBatchGetItem
is single API call. Thus, performing one API call to get 100 items should be much faster then doing 100 individual API calls usingGetItem
due to just network latency.