Details
-
New Feature
-
Status: Open (View Workflow)
-
Critical
-
Resolution: Unresolved
-
Q3/2026 Server Development
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'); |
(TODO: does this have MDEV-13594 (support for '->' syntax) as a pre-requisite or not?)
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
- is blocked by
-
MDEV-25848 Support for Multi-Valued Indexes
-
- Open
-
- relates to
-
MDEV-13594 Support for JSON operators column->path and column->>path
-
- Open
-
-
MDEV-37288 JSON Comparator: does MariaDB need one?
-
- Closed
-