Query time 0.00077
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "33.89"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "pf",
"access_type": "ALL",
"possible_keys": [
"PRIMARY"
],
"rows_examined_per_scan": 136,
"rows_produced_per_join": 1,
"filtered": "1.00",
"cost_info": {
"read_cost": "31.99",
"eval_cost": "0.27",
"prefix_cost": "32.26",
"data_read_per_join": "1K"
},
"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",
"timestamp",
"updated_timestamp"
],
"attached_condition": "((`danishecarter_latest`.`pf`.`feature_type` = 'G') and ((`danishecarter_latest`.`pf`.`feature_id` = 14) or (not(<in_optimizer>(`danishecarter_latest`.`pf`.`feature_id`,`danishecarter_latest`.`pf`.`feature_id` in ( <materialize> (/* select#2 */ select `danishecarter_latest`.`cscart_product_features`.`parent_id` from `danishecarter_latest`.`cscart_product_features` where 1 ), <primary_index_lookup>(`danishecarter_latest`.`pf`.`feature_id` in <temporary table> on <auto_key> where ((`danishecarter_latest`.`pf`.`feature_id` = `materialized-subquery`.`parent_id`)))))))) and (`danishecarter_latest`.`pf`.`display_on_product` = 'Y') and ((`danishecarter_latest`.`pf`.`categories_path` = '') or isnull(`danishecarter_latest`.`pf`.`categories_path`) or find_in_set(166,`danishecarter_latest`.`pf`.`categories_path`) or find_in_set(234,`danishecarter_latest`.`pf`.`categories_path`) or find_in_set(240,`danishecarter_latest`.`pf`.`categories_path`)))",
"attached_subqueries": [
{
"table": {
"table_name": "<materialized_subquery>",
"access_type": "eq_ref",
"key": "<auto_key>",
"key_length": "3",
"rows_examined_per_scan": 1,
"materialized_from_subquery": {
"using_temporary_table": true,
"dependent": true,
"cacheable": false,
"query_block": {
"select_id": 2,
"cost_info": {
"query_cost": "32.26"
},
"table": {
"table_name": "cscart_product_features",
"access_type": "ALL",
"rows_examined_per_scan": 136,
"rows_produced_per_join": 136,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.06",
"eval_cost": "27.20",
"prefix_cost": "32.26",
"data_read_per_join": "160K"
},
"used_columns": [
"parent_id"
]
}
}
}
}
}
]
}
},
{
"table": {
"table_name": "cscart_product_features_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id",
"lang_code"
],
"key_length": "9",
"ref": [
"danishecarter_latest.pf.feature_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.36",
"eval_cost": "0.27",
"prefix_cost": "33.89",
"data_read_per_join": "3K"
},
"used_columns": [
"feature_id",
"description",
"internal_name",
"full_description",
"prefix",
"suffix",
"lang_code"
]
}
}
]
}
}
}
Result
feature_id |
company_id |
feature_type |
parent_id |
display_on_product |
display_on_catalog |
display_on_header |
description |
internal_name |
lang_code |
prefix |
suffix |
categories_path |
full_description |
status |
comparison |
position |
purpose |
feature_style |
filter_style |
feature_code |
timestamp |
updated_timestamp |
14 |
0 |
G |
0 |
Y |
Y |
N |
Electronics |
Electronics |
en |
|
|
165,166,167,168,169,170,174,182,190,191,193,234,235,236,237,238,240 |
|
A |
N |
0 |
|
|
|
|
0 |
0 |