Query time 0.00073
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "6.86"
},
"ordering_operation": {
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "a",
"access_type": "ref",
"possible_keys": [
"status",
"option_id",
"option_id_2"
],
"key": "status",
"used_key_parts": [
"status"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 20,
"rows_produced_per_join": 12,
"filtered": "61.90",
"cost_info": {
"read_cost": "0.53",
"eval_cost": "1.24",
"prefix_cost": "2.52",
"data_read_per_join": "594"
},
"used_columns": [
"variant_id",
"option_id",
"position",
"modifier",
"modifier_type",
"weight_modifier",
"weight_modifier_type",
"point_modifier",
"point_modifier_type",
"status"
],
"attached_condition": "(`wearethehelpful_scalesta_net`.`a`.`option_id` in (34,33,35,36,29,28))"
}
},
{
"table": {
"table_name": "b",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"wearethehelpful_scalesta_net.a.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 12,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.10",
"eval_cost": "1.24",
"prefix_cost": "6.86",
"data_read_per_join": "9K"
},
"used_columns": [
"variant_id",
"lang_code",
"variant_name"
]
}
}
]
}
}
}
Result
| variant_name |
variant_id |
option_id |
position |
modifier |
modifier_type |
weight_modifier |
weight_modifier_type |
point_modifier |
point_modifier_type |
status |
| M |
188 |
29 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
| L |
189 |
29 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
| XXL |
191 |
29 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
| One Person |
204 |
35 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
| Two People |
205 |
35 |
0 |
185.000 |
A |
0.000 |
A |
0.000 |
A |
A |
| One Person |
206 |
36 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
| Two People |
207 |
36 |
0 |
115.000 |
A |
0.000 |
A |
0.000 |
A |
A |
| M/L |
196 |
28 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
| One Person |
202 |
34 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
| S/M |
186 |
28 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
| Wednesday 25th February |
199 |
33 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
| Two People |
203 |
34 |
2 |
255.000 |
A |
0.000 |
A |
0.000 |
A |
A |
| Thursday 12th March |
201 |
33 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |