Query time 0.00184
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "54.63"
},
"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": 21,
"rows_produced_per_join": 21,
"filtered": "100.00",
"cost_info": {
"read_cost": "25.23",
"eval_cost": "4.20",
"prefix_cost": "29.43",
"data_read_per_join": "94K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
],
"attached_condition": "((`webmarco`.`pfvd`.`variant_id` in (64828,64829,64830,64834,64831,64492,64493,64494,64495,64496,64483,64827,64491,64497,64583,64584,64585,64586,64587,64588,64813)) 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": 21,
"filtered": "100.00",
"cost_info": {
"read_cost": "21.00",
"eval_cost": "4.20",
"prefix_cost": "54.63",
"data_read_per_join": "23K"
},
"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 |