Overview of the new JSON processing functionality in MySQL: the new JSON type, the in-line JSON path expressions, the JSON functions and how to go about indexing JSON
Create an index on type field, first create a virtual column by extracting the type field, and then create an index on this virtual column.
Run the same query as before. Execution time goes 1.25 sec down to 0.06 sec.
Still has to examine full index, but now it is just an index of the values all extracted. It is much smaller.