Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-38306

Optimizer support for Multi-Valued indexes over JSON data

    XMLWordPrintable

Details

    • Task
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 12.3
    • Optimizer
    • None

    Description

      After MDEV-25848 implements multi-value indexes, the optimizer could use those to perform efficient searches for JSON data.

      This will achieve either of the goals:

      Goal 1: index do searches like in MySQL:

      create index idx1 on  t1 ((cast(a->'$.arr' as unsigned array)));
      explain select * from t101 where 4 member of (a->'$.arr');
      

      Goal 2 Support index lookups for generic JSON predicates like

      JSON_VALUE(js_column, '$.attribute_name') = 'value'
      

      WHERE column->json_attr = 'foo';

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              psergei Sergei Petrunia
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.