Currently, even if you're only getting a single kv pair, if that lookup is in an array, it will iterate the whole database.
We should look into just returning a $q.all with the lookup of the exactly keys instead of skipping, or if the keys lookup is cheap, find some heuristic to know when it's cheaper to use iterate vs. multiple getItem calls.
Currently, even if you're only getting a single kv pair, if that lookup is in an array, it will iterate the whole database.
We should look into just returning a
$q.allwith the lookup of the exactly keys instead of skipping, or if thekeyslookup is cheap, find some heuristic to know when it's cheaper to useiteratevs. multiplegetItemcalls.