In my Windows Phone 8 application, I am compiling a list of items from a web api. After that, I loop all the elements and get the details for each element.
My code now looks something like this:
List<plane> planes = await planeService.getPlanes();
foreach(Plane plane in planes)
{
var details = await planeService.getDetails(plane.id);
drawDetails(details);
}
How can I improve this to make multiple queries in parallel and what is the resonant number of queries running in parallel? The list of planes can be from 0 to 100 objects, usually no more than 20.
source
share