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

Allow defining indexes over JSON complex type columns #28605

Open
1 task
Tracked by #31238
roji opened this issue Aug 5, 2022 · 4 comments
Open
1 task
Tracked by #31238

Allow defining indexes over JSON complex type columns #28605

roji opened this issue Aug 5, 2022 · 4 comments

Comments

@roji
Copy link
Member

roji commented Aug 5, 2022

This refers to defining an index on the table column (e.g. the nvarchar column in SQL Server, or the new JSON type column), not an index over JSON properties inside the document.

Depends on:

@ErikEJ
Copy link
Contributor

ErikEJ commented Aug 5, 2022

You cannot define indexes against wide string columns in SQL Server.

@roji
Copy link
Member Author

roji commented Aug 5, 2022

@ErikEJ that is why this issue depends on #28591 - though note that other databases do not necessarily have this limitation.

@ajcvickers ajcvickers added this to the Backlog milestone Aug 10, 2022
@roji
Copy link
Member Author

roji commented Jun 5, 2024

Note that for SQL Server, a new JSON type is being introduced, with dedicated indexing capabilities probably coming too. We should definitely wait to see where things land there before doing anything here.

@roji roji added the blocked label Jun 5, 2024
@roji roji modified the milestone: Backlog Nov 17, 2024
@roji roji changed the title Allow defining indexes over JSON columns Allow defining indexes over JSON complex type columns Nov 17, 2024
@roji
Copy link
Member Author

roji commented Nov 17, 2024

Note npgsql/efcore.pg#3371 where this is blocking GIN index definition over JSON columns (fully supported in PostgreSQL).

With the focus switch to complex types, this issue should track that now.

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

No branches or pull requests

3 participants