Efcore.pg: Support `INCLUDE` for indexes (PG11)

Created on 13 Nov 2018  路  6Comments  路  Source: npgsql/efcore.pg

https://paquier.xyz/postgresql-2/postgres-11-covering-indexes/

Is there any way to add covering index via fluent mapping? If there is not, is it possible to implement?

enhancement

Most helpful comment

Sure. I'll look into it tonight 馃憤馃徎

All 6 comments

I don't believe we've implemented any PG11 features yet, but we are certainly open to it.

Could you link to the official docs for the feature you're requesting, as well as provide some snippets (psuedo-code where necessary) of what you're envisioning?

It's a usual index with INCLUDEd columns (docs). The implementation could be taken from aspnet/EntityFrameworkCore#12266 which was for SQL Server.

Ah, that makes sense. In that case we could probably put something together for this after #662.

@khellang Since you were just working in this area, would you be interested in submitting a PR?

Sure. I'll look into it tonight 馃憤馃徎

Merged, thanks @khellang!

Was this page helpful?
0 / 5 - 0 ratings