Query time 0.00163
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "62.44"
},
"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": 24,
"rows_produced_per_join": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "28.84",
"eval_cost": "4.80",
"prefix_cost": "33.64",
"data_read_per_join": "108K"
},
"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,64583,64584,64585,64586,64587,64588,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": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "24.00",
"eval_cost": "4.80",
"prefix_cost": "62.44",
"data_read_per_join": "27K"
},
"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 |
64583 |
0 |
04 - 11 July |
64584 |
0 |
07 - 14 July |
64585 |
0 |
04 - 11 August |
64586 |
0 |
08 - 15 August |
64587 |
0 |
11 - 18 August |
64588 |
0 |
15 - 22 August |
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 |