Query time 0.00225
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "3154892.14"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "f",
"access_type": "ALL",
"rows_examined_per_scan": 35,
"rows_produced_per_join": 1,
"filtered": "2.86",
"cost_info": {
"read_cost": "4.05",
"eval_cost": "0.10",
"prefix_cost": "4.15",
"data_read_per_join": "440"
},
"used_columns": [
"feature_id",
"feature_code",
"purpose",
"feature_type",
"categories_path",
"parent_id",
"display_on_product",
"display_on_catalog",
"display_on_header",
"status",
"position"
],
"attached_condition": "((`mobikul_delivery_boy_livedemo`.`f`.`status` = 'A') and (`mobikul_delivery_boy_livedemo`.`f`.`display_on_catalog` = 'Y') and ((`mobikul_delivery_boy_livedemo`.`f`.`categories_path` = '') or (0 <> find_in_set(166,`mobikul_delivery_boy_livedemo`.`f`.`categories_path`)) or (0 <> find_in_set(234,`mobikul_delivery_boy_livedemo`.`f`.`categories_path`)) or (0 <> find_in_set(240,`mobikul_delivery_boy_livedemo`.`f`.`categories_path`))) and (if(`mobikul_delivery_boy_livedemo`.`f`.`parent_id`,(/* select#2 */ select `mobikul_delivery_boy_livedemo`.`df`.`status` from `mobikul_delivery_boy_livedemo`.`cscart_product_features` `df` where (`mobikul_delivery_boy_livedemo`.`df`.`feature_id` = `mobikul_delivery_boy_livedemo`.`f`.`parent_id`)),'A') = 'A'))",
"attached_subqueries": [
{
"dependent": true,
"cacheable": false,
"query_block": {
"select_id": 2,
"cost_info": {
"query_cost": "4.15"
},
"table": {
"table_name": "df",
"access_type": "ALL",
"rows_examined_per_scan": 35,
"rows_produced_per_join": 3,
"filtered": "10.00",
"cost_info": {
"read_cost": "0.65",
"eval_cost": "0.35",
"prefix_cost": "4.15",
"data_read_per_join": "1K"
},
"used_columns": [
"feature_id",
"status"
],
"attached_condition": "(`mobikul_delivery_boy_livedemo`.`df`.`feature_id` = `mobikul_delivery_boy_livedemo`.`f`.`parent_id`)"
}
}
}
]
}
},
{
"table": {
"table_name": "v",
"access_type": "ALL",
"rows_examined_per_scan": 343,
"rows_produced_per_join": 1,
"filtered": "0.29",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "34.89",
"eval_cost": "0.10",
"prefix_cost": "39.38",
"data_read_per_join": "792"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"value",
"value_int",
"lang_code"
],
"attached_condition": "((`mobikul_delivery_boy_livedemo`.`v`.`feature_id` = `mobikul_delivery_boy_livedemo`.`f`.`feature_id`) and (`mobikul_delivery_boy_livedemo`.`v`.`product_id` = 75) and ((`mobikul_delivery_boy_livedemo`.`v`.`variant_id` <> 0) or ((`mobikul_delivery_boy_livedemo`.`f`.`feature_type` <> 'C') and (`mobikul_delivery_boy_livedemo`.`v`.`value` <> '')) or (`mobikul_delivery_boy_livedemo`.`f`.`feature_type` = 'C') or (`mobikul_delivery_boy_livedemo`.`v`.`value_int` <> 0)) and (`mobikul_delivery_boy_livedemo`.`v`.`lang_code` = 'en'))"
}
},
{
"table": {
"table_name": "fd",
"access_type": "ALL",
"rows_examined_per_scan": 35,
"rows_produced_per_join": 35,
"filtered": "100.00",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "0.59",
"eval_cost": "3.50",
"prefix_cost": "43.48",
"data_read_per_join": "79K"
},
"used_columns": [
"feature_id",
"description",
"internal_name",
"prefix",
"suffix",
"lang_code"
],
"attached_condition": "<if>(is_not_null_compl(fd), ((`mobikul_delivery_boy_livedemo`.`fd`.`feature_id` = `mobikul_delivery_boy_livedemo`.`f`.`feature_id`) and (`mobikul_delivery_boy_livedemo`.`fd`.`lang_code` = 'en')), true)"
}
},
{
"table": {
"table_name": "fv",
"access_type": "ALL",
"rows_examined_per_scan": 158,
"rows_produced_per_join": 5530,
"filtered": "100.00",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "0.99",
"eval_cost": "553.00",
"prefix_cost": "597.46",
"data_read_per_join": "6M"
},
"used_columns": [
"variant_id",
"position"
],
"attached_condition": "<if>(is_not_null_compl(fv), (`mobikul_delivery_boy_livedemo`.`fv`.`variant_id` = `mobikul_delivery_boy_livedemo`.`v`.`variant_id`), true)"
}
},
{
"table": {
"table_name": "vd",
"access_type": "ALL",
"rows_examined_per_scan": 158,
"rows_produced_per_join": 873740,
"filtered": "100.00",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "243.09",
"eval_cost": "87374.00",
"prefix_cost": "88214.56",
"data_read_per_join": "2G"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
],
"attached_condition": "<if>(is_not_null_compl(vd), ((`mobikul_delivery_boy_livedemo`.`vd`.`variant_id` = `mobikul_delivery_boy_livedemo`.`fv`.`variant_id`) and (`mobikul_delivery_boy_livedemo`.`vd`.`lang_code` = 'en')), true)"
}
},
{
"table": {
"table_name": "gf",
"access_type": "ALL",
"rows_examined_per_scan": 35,
"rows_produced_per_join": 30580901,
"filtered": "100.00",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "8587.42",
"eval_cost": "3058090.16",
"prefix_cost": "3154892.14",
"data_read_per_join": "12G"
},
"used_columns": [
"feature_id",
"feature_type",
"position"
],
"attached_condition": "<if>(is_not_null_compl(gf), ((`mobikul_delivery_boy_livedemo`.`gf`.`feature_id` = `mobikul_delivery_boy_livedemo`.`f`.`parent_id`) and (`mobikul_delivery_boy_livedemo`.`gf`.`feature_type` = 'G')), true)"
}
}
]
}
}
}
Result
| feature_id |
value |
value_int |
variant_id |
feature_type |
internal_name |
description |
prefix |
suffix |
variant |
parent_id |
position |
gposition |
display_on_header |
display_on_catalog |
display_on_product |
feature_code |
purpose |
| 16 |
|
|
83 |
S |
Display |
Display |
|
|
3.1" |
14 |
20 |
0 |
N |
Y |
Y |
|
find_products |
| 15 |
|
|
55 |
S |
Operating System |
Operating System |
|
|
Android 2.2, Froyo |
14 |
10 |
0 |
N |
Y |
Y |
|
find_products |
| 17 |
|
|
75 |
S |
Storage Capacity |
Storage Capacity |
|
|
4GB |
14 |
30 |
0 |
N |
Y |
Y |
|
find_products |