Indexing JSON column in MySQL 8
问题 So I'm experimenting with json column. Mysql 8.0.17 supposed to work with multi value JSON indexes, like this: CREATE INDEX data__nbr_idx ON a1( (CAST(data->'$.nbr' AS UNSIGNED ARRAY)) ) I have column categories with JSON like this ["books", "clothes"]. I need to get all products from "books" category. I can use "json_contains" or new "member of". SELECT * FROM products WHERE JSON_CONTAINS(categories, '\"books\"') SELECT * FROM products WHERE "books" MEMBER OF(categories) And it works. The