Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search query performance #167

Closed
ku3mich opened this issue Dec 8, 2018 · 2 comments
Closed

Search query performance #167

ku3mich opened this issue Dec 8, 2018 · 2 comments

Comments

@ku3mich
Copy link

ku3mich commented Dec 8, 2018

while executing search query there is an EF warning:
Microsoft.EntityFrameworkCore.Query:Warning: The LINQ expression 'GroupBy([p].Id, [p])' could not be translated and will be evaluated locally.

then I see multiple queries to DB one per groupping result

SELECT "p"."Key", "p"."Authors", "p"."Description", "p"."Downloads", "p"."HasReadme", "p"."IconUrl", "p"."Id", "p"."Language", "p"."LicenseUrl", "p"."Listed", "p"."MinClientVersion", "p"."ProjectUrl", "p"."Published", "p"."RepositoryType", "p"."RepositoryUrl", "p"."RequireLicenseAcceptance", "p"."RowVersion", "p"."Summary", "p"."Tags", "p"."Title", "p"."Version"
FROM "Packages" AS "p"
WHERE "p"."Id" IN (
SELECT DISTINCT "p2"."Id"
FROM "Packages" AS "p2"
ORDER BY "p2"."Id"
LIMIT @__take_1 OFFSET @__skip_0
)
ORDER BY "p"."Id"

ku3mich added a commit to ku3mich/BaGet that referenced this issue Dec 8, 2018
@ku3mich
Copy link
Author

ku3mich commented Dec 8, 2018

seems related to dotnet/efcore#12255 does anyone know how to resolve it?

@ku3mich
Copy link
Author

ku3mich commented Dec 8, 2018

seems it is not a bug - it is EF Core feature ( dotnet/efcore#2341

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant