Query time 0.00049
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "6.31"
},
"nested_loop": [
{
"table": {
"table_name": "shared_option_variants",
"access_type": "system",
"possible_keys": [
"PRIMARY",
"company_id"
],
"rows_examined_per_scan": 0,
"rows_produced_per_join": 1,
"filtered": "0.00",
"const_row_not_found": true,
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.10",
"prefix_cost": "0.00",
"data_read_per_join": "24"
},
"used_columns": [
"variant_id",
"company_id",
"modifier",
"modifier_type"
]
}
},
{
"table": {
"table_name": "a",
"access_type": "range",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id"
],
"key_length": "3",
"rows_examined_per_scan": 9,
"rows_produced_per_join": 9,
"filtered": "100.00",
"index_condition": "(`test2_gaseus`.`a`.`variant_id` in (506,814,820,885,890,463,466,508,511))",
"cost_info": {
"read_cost": "5.41",
"eval_cost": "0.90",
"prefix_cost": "6.31",
"data_read_per_join": "7K"
},
"used_columns": [
"variant_id",
"modifier",
"modifier_type"
]
}
}
]
}
}
Result
| modifier |
modifier_type |
variant_id |
| 0.000 |
A |
463 |
| 0.000 |
A |
466 |
| 0.000 |
A |
506 |
| 0.000 |
A |
508 |
| 0.000 |
A |
511 |
| 0.000 |
A |
814 |
| 0.000 |
A |
820 |
| 0.000 |
A |
885 |
| 0.000 |
A |
890 |