Skip to content

SQL Server: Support JSON indexes #29623

Closed

Description

@roji

While it has been possible to create a computed column for accessing a property inside JSON and an index over that, SQL Server 2025 introduced a more first-class CREATE JSON INDEX that works with the new JSON data type (Documentation
):

CREATE JSON INDEX name ON table_name (json_column_name)
  [ FOR ( sql_json_path [ , ...n ] ) ]
  [ WITH ( <json_index_option> [ , ...n ] ) ]
  [ ON { filegroup_name | "default" } ]
[ ; ]

Note that the specifics of indexing JSON properties vary across databases, so this is for SQL Server specifically. If we add SQLite JSON support, we can also do this for SQLite at the same time, assuming it's supported.

This depends on #11336 for the metadata side.

PG issue: npgsql/efcore.pg#2568

Activity

  1. added this to the Backlog milestone on Nov 23, 2022
  2. added theissue type on Jun 15, 2025
  3. changed the title [-]SQL Server: Make HasIndex work on JSON properties[/-] [+]SQL Server: Make HasIndex work on JSON properties (via CREATE JSON INDEX)[/+] on Aug 26, 2025
  4. modified the milestones: Backlog, 11.0.0 on Sep 22, 2025
  5. changed the title [-]SQL Server: Make HasIndex work on JSON properties (via CREATE JSON INDEX)[/-] [+]SQL Server: Support JSON indexes[/+] on Sep 22, 2025
  6. self-assigned this
    on Jan 26, 2026
  7. 6 remaining items

  8. added 13 commits that reference this issue on May 21, 2026
    2500997
    2d6a110
    d25c84a
    52eb359
    2eb879f
    7f7fc35
    b402241
    843c37b
    d6f7327
    e16c9fd
    f5a79e7
    0ac9c48
    48e21dd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions