This commit is contained in:
2018-10-01 21:03:07 +00:00
parent a8d2b8501b
commit 020e1b21ba

View File

@@ -328,7 +328,7 @@ namespace AyaNova.Biz
//As the results are not ranked so...
var watch = new System.Diagnostics.Stopwatch();//###################### PROFILING
watch.Start();//###################### PROFILING
//BUGBUG: THIS is what is taking all the time in the queries FFS
if (searchParameters.MaxResults > 0)//0 = all results
MatchingObjects = MatchingObjects.Take(searchParameters.MaxResults).ToList();
watch.Stop();//###################### PROFILING
@@ -346,11 +346,12 @@ namespace AyaNova.Biz
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)
{
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.Type = i.ObjectType;
ResultList.Add(SR);