Query time 0.00172
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "46.83"
},
"nested_loop": [
{
"table": {
"table_name": "pfvd",
"access_type": "range",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"rows_examined_per_scan": 18,
"rows_produced_per_join": 18,
"filtered": "100.00",
"cost_info": {
"read_cost": "21.63",
"eval_cost": "3.60",
"prefix_cost": "25.23",
"data_read_per_join": "81K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
],
"attached_condition": "((`webmarco`.`pfvd`.`variant_id` in (64831,64828,64829,64830,64834,64496,64492,64493,64494,64495,64483,64827,64491,64497,64813,67656,67657,67658)) and (`webmarco`.`pfvd`.`lang_code` = 'en'))"
}
},
{
"table": {
"table_name": "pfv",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id"
],
"key_length": "3",
"ref": [
"webmarco.pfvd.variant_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 18,
"filtered": "100.00",
"cost_info": {
"read_cost": "18.00",
"eval_cost": "3.60",
"prefix_cost": "46.83",
"data_read_per_join": "20K"
},
"used_columns": [
"variant_id",
"position"
]
}
}
]
}
}
Result
variant_id |
position |
variant |
64483 |
90 |
20 - 27 July |
64491 |
0 |
17 - 23 August |
64492 |
230 |
20 - 27 August |
64493 |
240 |
24 - 30 August |
64494 |
260 |
27 - 03 August / September |
64495 |
270 |
31 - 07 August / September |
64496 |
290 |
03 - 10 September |
64497 |
300 |
07 - 14 September |
64813 |
0 |
Included |
64827 |
0 |
27 - 2 August / September |
64828 |
0 |
31 - 6 August / September |
64829 |
0 |
3 - 9 September |
64830 |
0 |
7 - 13 September |
64831 |
0 |
10 - 16 September |
64834 |
0 |
17 - 23 September |
67656 |
0 |
2 Adults |
67657 |
0 |
2 Adults + 1 Child |
67658 |
0 |
2 Adults + 2 Children |