Query time 0.00086
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "19.40"
},
"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": 71,
"rows_produced_per_join": 0,
"filtered": "1.41",
"cost_info": {
"read_cost": "18.00",
"eval_cost": "0.20",
"prefix_cost": "18.20",
"data_read_per_join": "431"
},
"used_columns": [
"feature_id",
"company_id",
"feature_type",
"categories_path",
"parent_id",
"display_on_product",
"display_on_catalog",
"display_on_header",
"status",
"position",
"comparison",
"purpose",
"feature_style",
"filter_style"
],
"attached_condition": "((`portal`.`pf`.`feature_type` = 'G') and ((`portal`.`pf`.`feature_id` = 1) or (not(<in_optimizer>(`portal`.`pf`.`feature_id`,`portal`.`pf`.`feature_id` in ( <materialize> (/* select#2 */ select `portal`.`q_product_features`.`parent_id` from `portal`.`q_product_features` where 1 ), <primary_index_lookup>(`portal`.`pf`.`feature_id` in <temporary table> on <auto_key> where ((`portal`.`pf`.`feature_id` = `materialized-subquery`.`parent_id`)))))))) and (`portal`.`pf`.`display_on_product` = 'Y') and ((`portal`.`pf`.`categories_path` = '') or isnull(`portal`.`pf`.`categories_path`) or find_in_set(12,`portal`.`pf`.`categories_path`) or find_in_set(13,`portal`.`pf`.`categories_path`) or find_in_set(14,`portal`.`pf`.`categories_path`) or find_in_set(16,`portal`.`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": "18.20"
},
"table": {
"table_name": "q_product_features",
"access_type": "ALL",
"rows_examined_per_scan": 71,
"rows_produced_per_join": 71,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.00",
"eval_cost": "14.20",
"prefix_cost": "18.20",
"data_read_per_join": "29K"
},
"used_columns": [
"parent_id"
]
}
}
}
}
}
]
}
},
{
"table": {
"table_name": "q_product_features_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id",
"lang_code"
],
"key_length": "9",
"ref": [
"portal.pf.feature_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.00",
"eval_cost": "0.20",
"prefix_cost": "19.40",
"data_read_per_join": "1K"
},
"used_columns": [
"feature_id",
"description",
"full_description",
"prefix",
"suffix",
"lang_code"
]
}
}
]
}
}
}