This project is read-only.
There is ability to execute multiple MQL queries in async. It will give significant perfomance improvement
Let's declare two queries:
dynamic thescorpions = new ExpandoObject();
thescorpions.name = "The Scorpions";
thescorpions.type = "/music/artist";

dynamic thepolice = new ExpandoObject();
thepolice.name = "The Police";
thepolice.type = "/music/artist";
Then make async read:
List<MqlReadServiceResponse> multiFreebaseResponse = _readService.ReadMultipleAsyncWithWait(thescorpions, thepolice);

foreach (var t in multiFreebaseResponse)
{
       var result = t.Results;
}
also sync way
MultipleMqlReadServiceResponse multiFreebaseResponse = _readService.ReadMultiple(thescorpions, thepolice);

foreach (var res in multiFreebaseResponse.Results)
{
    var result = res.Results;
}

Last edited Dec 30, 2012 at 8:52 PM by F0rc0sigan, version 2

Comments

No comments yet.