Say I have this array in PHP.
$ids = [
246,
8362,
5241,
2586,
6548,
9372,
28504,
14,
5729
];
These array elements correspond to the elements in the "articles" in the bucket, and sometimes this array can be approximately 1000 elements.
I am currently viewing all of them and pulling data from 1 on 1.
$articles = [];
foreach($ids as $id)
{
$articles[] = Riak::get("articles.$id");
}
This is more time than I would like to spend when the identifier lists become quite long.
Is there a faster way to get a list of items from a Riak bucket? I looked around a bit, and reducing the map is useful, but apparently causes more overhead than I would save with consecutive GET requests.
source
share