Query time 0.00142
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "85.41"
},
"nested_loop": [
{
"table": {
"table_name": "gpf",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "4",
"rows_examined_per_scan": 6,
"rows_produced_per_join": 6,
"filtered": "100.00",
"index_condition": "(`portal`.`gpf`.`group_id` in (41,43,44,45,35))",
"cost_info": {
"read_cost": "12.21",
"eval_cost": "1.20",
"prefix_cost": "13.41",
"data_read_per_join": "672"
},
"used_columns": [
"feature_id",
"group_id"
]
}
},
{
"table": {
"table_name": "gp",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "4",
"ref": [
"portal.gpf.group_id"
],
"rows_examined_per_scan": 5,
"rows_produced_per_join": 30,
"filtered": "100.00",
"cost_info": {
"read_cost": "30.00",
"eval_cost": "6.00",
"prefix_cost": "49.41",
"data_read_per_join": "480"
},
"used_columns": [
"product_id",
"group_id"
]
}
},
{
"table": {
"table_name": "pfv",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"fl",
"lang_code",
"product_id",
"fpl"
],
"key": "fpl",
"used_key_parts": [
"feature_id",
"product_id",
"lang_code"
],
"key_length": "12",
"ref": [
"portal.gpf.feature_id",
"portal.gp.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 30,
"filtered": "100.00",
"index_condition": "((`portal`.`gpf`.`feature_id` = `portal`.`pfv`.`feature_id`) and (`portal`.`pfv`.`product_id` = `portal`.`gp`.`product_id`))",
"cost_info": {
"read_cost": "30.00",
"eval_cost": "6.00",
"prefix_cost": "85.41",
"data_read_per_join": "23K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
feature_id |
product_id |
variant_id |
group_id |
73 |
3024 |
9801 |
35 |
73 |
3144 |
9802 |
35 |
73 |
3145 |
9803 |
35 |
73 |
3146 |
9805 |
35 |
73 |
3195 |
9801 |
41 |
73 |
3368 |
9802 |
41 |
73 |
3369 |
9803 |
41 |
73 |
3370 |
9804 |
41 |
73 |
3199 |
9801 |
43 |
73 |
3377 |
9802 |
43 |
73 |
3378 |
9803 |
43 |
73 |
3379 |
9804 |
43 |
74 |
3203 |
9865 |
44 |
74 |
3381 |
9865 |
44 |
74 |
3382 |
9865 |
44 |
74 |
3383 |
9865 |
44 |
74 |
3384 |
9865 |
44 |
74 |
3385 |
9866 |
44 |
74 |
3386 |
9866 |
44 |
74 |
3387 |
9866 |
44 |
74 |
3388 |
9866 |
44 |
74 |
3389 |
9866 |
44 |
74 |
3390 |
9864 |
44 |
74 |
3391 |
9864 |
44 |
74 |
3392 |
9864 |
44 |
74 |
3393 |
9864 |
44 |
74 |
3394 |
9864 |
44 |
74 |
3395 |
9863 |
44 |
74 |
3396 |
9863 |
44 |
74 |
3397 |
9863 |
44 |
74 |
3398 |
9863 |
44 |
74 |
3399 |
9863 |
44 |
74 |
3400 |
9900 |
44 |
74 |
3401 |
9900 |
44 |
74 |
3402 |
9900 |
44 |
74 |
3403 |
9900 |
44 |
74 |
3404 |
9900 |
44 |
74 |
3405 |
9902 |
44 |
74 |
3406 |
9902 |
44 |
74 |
3407 |
9902 |
44 |
74 |
3408 |
9902 |
44 |
74 |
3409 |
9902 |
44 |
74 |
3410 |
9903 |
44 |
74 |
3411 |
9903 |
44 |
74 |
3412 |
9903 |
44 |
74 |
3413 |
9903 |
44 |
74 |
3414 |
9903 |
44 |
74 |
3415 |
9918 |
44 |
74 |
3416 |
9918 |
44 |
74 |
3417 |
9918 |
44 |
74 |
3418 |
9918 |
44 |
74 |
3419 |
9918 |
44 |
74 |
3420 |
9919 |
44 |
74 |
3421 |
9919 |
44 |
74 |
3422 |
9919 |
44 |
74 |
3423 |
9919 |
44 |
74 |
3424 |
9919 |
44 |
73 |
3203 |
9801 |
44 |
73 |
3381 |
9802 |
44 |
73 |
3382 |
9803 |
44 |
73 |
3383 |
9804 |
44 |
73 |
3384 |
9805 |
44 |
73 |
3385 |
9801 |
44 |
73 |
3386 |
9802 |
44 |
73 |
3387 |
9803 |
44 |
73 |
3388 |
9804 |
44 |
73 |
3389 |
9805 |
44 |
73 |
3390 |
9801 |
44 |
73 |
3391 |
9802 |
44 |
73 |
3392 |
9803 |
44 |
73 |
3393 |
9804 |
44 |
73 |
3394 |
9805 |
44 |
73 |
3395 |
9801 |
44 |
73 |
3396 |
9802 |
44 |
73 |
3397 |
9803 |
44 |
73 |
3398 |
9804 |
44 |
73 |
3399 |
9805 |
44 |
73 |
3400 |
9801 |
44 |
73 |
3401 |
9802 |
44 |
73 |
3402 |
9803 |
44 |
73 |
3403 |
9804 |
44 |
73 |
3404 |
9805 |
44 |
73 |
3405 |
9801 |
44 |
73 |
3406 |
9802 |
44 |
73 |
3407 |
9803 |
44 |
73 |
3408 |
9804 |
44 |
73 |
3409 |
9805 |
44 |
73 |
3410 |
9801 |
44 |
73 |
3411 |
9802 |
44 |
73 |
3412 |
9803 |
44 |
73 |
3413 |
9804 |
44 |
73 |
3414 |
9805 |
44 |
73 |
3415 |
9801 |
44 |
73 |
3416 |
9802 |
44 |
73 |
3417 |
9803 |
44 |
73 |
3418 |
9804 |
44 |
73 |
3419 |
9805 |
44 |
73 |
3420 |
9801 |
44 |
73 |
3421 |
9802 |
44 |
73 |
3422 |
9803 |
44 |
73 |
3423 |
9804 |
44 |
73 |
3424 |
9805 |
44 |
74 |
3248 |
9866 |
45 |
74 |
3426 |
9866 |
45 |
74 |
3427 |
9866 |
45 |
74 |
3428 |
9866 |
45 |
74 |
3429 |
9866 |
45 |
74 |
3430 |
9864 |
45 |
74 |
3431 |
9864 |
45 |
74 |
3432 |
9864 |
45 |
74 |
3433 |
9864 |
45 |
74 |
3434 |
9864 |
45 |
74 |
3435 |
9899 |
45 |
74 |
3436 |
9899 |
45 |
74 |
3437 |
9899 |
45 |
74 |
3438 |
9899 |
45 |
74 |
3439 |
9899 |
45 |
73 |
3248 |
9801 |
45 |
73 |
3426 |
9802 |
45 |
73 |
3427 |
9803 |
45 |
73 |
3428 |
9804 |
45 |
73 |
3429 |
9805 |
45 |
73 |
3430 |
9801 |
45 |
73 |
3431 |
9802 |
45 |
73 |
3432 |
9803 |
45 |
73 |
3433 |
9804 |
45 |
73 |
3434 |
9805 |
45 |
73 |
3435 |
9801 |
45 |
73 |
3436 |
9802 |
45 |
73 |
3437 |
9803 |
45 |
73 |
3438 |
9804 |
45 |
73 |
3439 |
9805 |
45 |