Query time 0.00167
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "6.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": 47,
"rows_produced_per_join": 0,
"filtered": "2.13",
"cost_info": {
"read_cost": "4.85",
"eval_cost": "0.10",
"prefix_cost": "4.95",
"data_read_per_join": "439"
},
"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": "((`aerokidsshop`.`pf`.`feature_type` = 'G') and ((`aerokidsshop`.`pf`.`feature_id` = 0) or <in_optimizer>(`aerokidsshop`.`pf`.`feature_id`,`aerokidsshop`.`pf`.`feature_id` in ( <materialize> (/* select#2 */ select `aerokidsshop`.`cscart_product_features`.`parent_id` from `aerokidsshop`.`cscart_product_features` where true ), <primary_index_lookup>(`aerokidsshop`.`pf`.`feature_id` in <temporary table> on <auto_distinct_key> where ((`aerokidsshop`.`pf`.`feature_id` = `<materialized_subquery>`.`parent_id`)))) is false)) and (`aerokidsshop`.`pf`.`display_on_product` = 'Y') and ((`aerokidsshop`.`pf`.`categories_path` = '') or (`aerokidsshop`.`pf`.`categories_path` is null) or (0 <> find_in_set(269,`aerokidsshop`.`pf`.`categories_path`)) or (0 <> find_in_set(283,`aerokidsshop`.`pf`.`categories_path`)) or (0 <> find_in_set(315,`aerokidsshop`.`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": "4.95"
},
"table": {
"table_name": "cscart_product_features",
"access_type": "ALL",
"rows_examined_per_scan": 47,
"rows_produced_per_join": 47,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.25",
"eval_cost": "4.70",
"prefix_cost": "4.95",
"data_read_per_join": "20K"
},
"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": [
"aerokidsshop.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.10",
"prefix_cost": "6.05",
"data_read_per_join": "2K"
},
"used_columns": [
"feature_id",
"description",
"internal_name",
"full_description",
"prefix",
"suffix",
"lang_code"
]
}
},
{
"table": {
"table_name": "cscart_ult_objects_sharing",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"share_object_id",
"share_company_id",
"share_object_type"
],
"key_length": "159",
"ref": [
"aerokidsshop.pf.feature_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.10",
"prefix_cost": "6.40",
"data_read_per_join": "159"
},
"used_columns": [
"share_company_id",
"share_object_id",
"share_object_type"
],
"attached_condition": "(`aerokidsshop`.`cscart_ult_objects_sharing`.`share_object_id` = `aerokidsshop`.`pf`.`feature_id`)"
}
}
]
}
}
}