Query time 0.00601
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "875.98"
},
"nested_loop": [
{
"table": {
"table_name": "pfv",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"fl",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "idx_product_feature_variant_id",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"rows_examined_per_scan": 1208,
"rows_produced_per_join": 657,
"filtered": "54.46",
"index_condition": "((`test2_gaseus`.`pfv`.`product_id` in (12463,12462,12461,12460,12459,12458,12457,12456,12455,12454,12453,12452,12451,12450,12449,12448,12447,12446,12445,12444,12443,12442,12441,12440,12439,12438,12437,12436,12435,12434,12433,12432,12431,12430,12429,12428,12427,12426,12425,12424)) and (`test2_gaseus`.`pfv`.`lang_code` = 'en'))",
"cost_info": {
"read_cost": "487.82",
"eval_cost": "65.79",
"prefix_cost": "553.61",
"data_read_per_join": "508K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"value",
"value_int",
"lang_code"
]
}
},
{
"table": {
"table_name": "pf",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id"
],
"key_length": "3",
"ref": [
"test2_gaseus.pfv.feature_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 263,
"filtered": "40.00",
"cost_info": {
"read_cost": "164.47",
"eval_cost": "26.32",
"prefix_cost": "783.87",
"data_read_per_join": "310K"
},
"used_columns": [
"feature_id",
"feature_code",
"company_id",
"purpose",
"feature_style",
"filter_style",
"feature_type",
"categories_path",
"parent_id",
"display_on_product",
"display_on_catalog",
"display_on_header",
"status",
"position",
"comparison"
],
"attached_condition": "(`test2_gaseus`.`pf`.`feature_code` in ('Brand','ISBN','GTIN','MPN'))"
}
},
{
"table": {
"table_name": "pfd",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id",
"lang_code"
],
"key_length": "9",
"ref": [
"test2_gaseus.pfv.feature_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 263,
"filtered": "100.00",
"cost_info": {
"read_cost": "65.79",
"eval_cost": "26.32",
"prefix_cost": "875.98",
"data_read_per_join": "625K"
},
"used_columns": [
"feature_id",
"description",
"full_description",
"prefix",
"suffix",
"lang_code"
]
}
}
]
}
}