This commit is contained in:
@@ -328,7 +328,7 @@ namespace AyaNova.Biz
|
|||||||
//As the results are not ranked so...
|
//As the results are not ranked so...
|
||||||
var watch = new System.Diagnostics.Stopwatch();//###################### PROFILING
|
var watch = new System.Diagnostics.Stopwatch();//###################### PROFILING
|
||||||
watch.Start();//###################### PROFILING
|
watch.Start();//###################### PROFILING
|
||||||
//BUGBUG: THIS is what is taking all the time in the queries FFS
|
|
||||||
if (searchParameters.MaxResults > 0)//0 = all results
|
if (searchParameters.MaxResults > 0)//0 = all results
|
||||||
MatchingObjects = MatchingObjects.Take(searchParameters.MaxResults).ToList();
|
MatchingObjects = MatchingObjects.Take(searchParameters.MaxResults).ToList();
|
||||||
watch.Stop();//###################### PROFILING
|
watch.Stop();//###################### PROFILING
|
||||||
@@ -346,11 +346,12 @@ namespace AyaNova.Biz
|
|||||||
|
|
||||||
|
|
||||||
watch.Start();//###################### PROFILING
|
watch.Start();//###################### PROFILING
|
||||||
//Build the return list from the remaining matching objects list
|
//Build the return list from the remaining matching objects list
|
||||||
|
//BUGBUG: THIS is what is taking all the time in the search FFS!
|
||||||
foreach (AyaTypeId i in OrderedMatchingObjects)
|
foreach (AyaTypeId i in OrderedMatchingObjects)
|
||||||
{
|
{
|
||||||
SearchResult SR = new SearchResult();
|
SearchResult SR = new SearchResult();
|
||||||
SR.Name = BizObjectNameFetcher.Name(i, ct);
|
SR.Name = BizObjectNameFetcher.Name(i, ct);//THIS IS PROBABLY CAUSING ALL THE SLOWNESS
|
||||||
SR.Id = i.ObjectId;
|
SR.Id = i.ObjectId;
|
||||||
SR.Type = i.ObjectType;
|
SR.Type = i.ObjectType;
|
||||||
ResultList.Add(SR);
|
ResultList.Add(SR);
|
||||||
|
|||||||
Reference in New Issue
Block a user