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

Window functions in EF Core #1094

Closed
shoooe opened this issue Oct 26, 2019 · 2 comments
Closed

Window functions in EF Core #1094

shoooe opened this issue Oct 26, 2019 · 2 comments

Comments

@shoooe
Copy link

shoooe commented Oct 26, 2019

Is there any way I can use window functions (like rank and similar) within EF Core with Npgsql?
If now, could we provide a translation for the common problem known as "greatest-n-per-group".

That's solved efficiently with window functions.

Thanks

@shoooe
Copy link
Author

shoooe commented Oct 27, 2019

Apparently there's some kind of support in EF Core for at least row number.

@roji
Copy link
Member

roji commented Oct 27, 2019

@shoooe EF Core already generates window functions for some LINQ queries, e.g. see dotnet/efcore#17936, and for others it generates CROSS APPLY (or lateral joins for PostgreSQL). dotnet/efcore#12747 already tracks this on the EF Core side, so am going to close this as a duplicate of that.

@roji roji closed this as completed Oct 27, 2019
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

2 participants