You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Misuse of IEnumerable is causing multiple server hits in 'Find'.
LINQ is generics and can cause multiple compiled methods calling search APIs.
Find code always returned IEnumerable interface, causing LINQ calls to call
search APIs multiple times to manipulate IEnumerable as collections.
Dependency search returns IEnumerable which is then used as collection and calls server X times.
retrievedPkgs = pkgMetadataResource.GetMetadataAsync(...)
if (retrievedPkgs == null || retrievedPkgs.Count() == 0) ...
foundPackagesMetadata.AddRange(retrievedPkgs.ToList());
Summary of the new feature / enhancement
Misuse of IEnumerable is causing multiple server hits in 'Find'.
search APIs multiple times to manipulate IEnumerable as collections.
retrievedPkgs = pkgMetadataResource.GetMetadataAsync(...)
if (retrievedPkgs == null || retrievedPkgs.Count() == 0) ...
foundPackagesMetadata.AddRange(retrievedPkgs.ToList());
Proposed technical implementation details (optional)
No response
The text was updated successfully, but these errors were encountered: