Query time 0.00189
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "120.48"
},
"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": 540,
"rows_produced_per_join": 5,
"filtered": "1.00",
"cost_info": {
"read_cost": "112.92",
"eval_cost": "1.08",
"prefix_cost": "114.00",
"data_read_per_join": "2K"
},
"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": "((`webmarco`.`pf`.`feature_type` = 'G') and ((`webmarco`.`pf`.`feature_id` = 740) or (not(<in_optimizer>(`webmarco`.`pf`.`feature_id`,`webmarco`.`pf`.`feature_id` in ( <materialize> (/* select#2 */ select `webmarco`.`cscart_product_features`.`parent_id` from `webmarco`.`cscart_product_features` where 1 ), <primary_index_lookup>(`webmarco`.`pf`.`feature_id` in <temporary table> on <auto_key> where ((`webmarco`.`pf`.`feature_id` = `materialized-subquery`.`parent_id`)))))))) and (`webmarco`.`pf`.`display_on_product` = 'Y') and ((`webmarco`.`pf`.`categories_path` = '') or isnull(`webmarco`.`pf`.`categories_path`) or find_in_set(266,`webmarco`.`pf`.`categories_path`) or find_in_set(2577,`webmarco`.`pf`.`categories_path`) or find_in_set(2604,`webmarco`.`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": "114.00"
},
"table": {
"table_name": "cscart_product_features",
"access_type": "ALL",
"rows_examined_per_scan": 540,
"rows_produced_per_join": 540,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.00",
"eval_cost": "108.00",
"prefix_cost": "114.00",
"data_read_per_join": "232K"
},
"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": [
"webmarco.pf.feature_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 5,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.40",
"eval_cost": "1.08",
"prefix_cost": "120.48",
"data_read_per_join": "12K"
},
"used_columns": [
"feature_id",
"description",
"full_description",
"prefix",
"suffix",
"lang_code",
"internal_name"
]
}
}
]
}
}
}
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 |
740 |
0 |
G |
0 |
Y |
Y |
N |
Type of service and operational area: |
Services |
en |
|
|
266,327,341,344,356,394,443,715,930,990,1479,1498,328,345,346,347,348,349,352,1018,1438,1584,1695,1907,1936,2171,2178 |
|
A |
N |
0 |
|
|
|
|
1620375578 |
1639759016 |