Query time 0.00083
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "5.69"
},
"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": 6,
"rows_produced_per_join": 1,
"filtered": "16.67",
"cost_info": {
"read_cost": "3.09",
"eval_cost": "0.20",
"prefix_cost": "3.29",
"data_read_per_join": "440"
},
"used_columns": [
"feature_id",
"feature_type",
"categories_path",
"parent_id",
"display_on_product",
"display_on_catalog",
"status",
"position",
"comparison",
"company_id",
"feature_code",
"display_on_header",
"purpose",
"feature_style",
"filter_style",
"timestamp",
"updated_timestamp"
],
"attached_condition": "((`ea201_diorama`.`pf`.`feature_type` = 'G') and ((`ea201_diorama`.`pf`.`feature_id` = '') or (not(<in_optimizer>(`ea201_diorama`.`pf`.`feature_id`,`ea201_diorama`.`pf`.`feature_id` in ( <materialize> (/* select#2 */ select `ea201_diorama`.`cscart_product_features`.`parent_id` from `ea201_diorama`.`cscart_product_features` where 1 ), <primary_index_lookup>(`ea201_diorama`.`pf`.`feature_id` in <temporary table> on <auto_key> where ((`ea201_diorama`.`pf`.`feature_id` = `materialized-subquery`.`parent_id`)))))))) and (`ea201_diorama`.`pf`.`display_on_product` = 'Y') and ((`ea201_diorama`.`pf`.`categories_path` = '') or isnull(`ea201_diorama`.`pf`.`categories_path`) or find_in_set(185,`ea201_diorama`.`pf`.`categories_path`) or find_in_set(209,`ea201_diorama`.`pf`.`categories_path`) or find_in_set(214,`ea201_diorama`.`pf`.`categories_path`) or find_in_set(494,`ea201_diorama`.`pf`.`categories_path`) or find_in_set(706,`ea201_diorama`.`pf`.`categories_path`)))",
"attached_subqueries": [
{
"table": {
"table_name": "<materialized_subquery>",
"access_type": "eq_ref",
"key": "<auto_key>",
"key_length": "1",
"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": "3.29"
},
"table": {
"table_name": "cscart_product_features",
"access_type": "ALL",
"rows_examined_per_scan": 6,
"rows_produced_per_join": 6,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.09",
"eval_cost": "1.20",
"prefix_cost": "3.29",
"data_read_per_join": "2K"
},
"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": [
"ea201_diorama.pf.feature_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.00",
"eval_cost": "0.20",
"prefix_cost": "4.49",
"data_read_per_join": "2K"
},
"used_columns": [
"feature_id",
"description",
"full_description",
"prefix",
"suffix",
"lang_code",
"internal_name"
]
}
},
{
"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": [
"ea201_diorama.pf.feature_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "1.00",
"eval_cost": "0.20",
"prefix_cost": "5.69",
"data_read_per_join": "160"
},
"used_columns": [
"share_company_id",
"share_object_id",
"share_object_type"
],
"attached_condition": "(`ea201_diorama`.`cscart_ult_objects_sharing`.`share_object_id` = `ea201_diorama`.`pf`.`feature_id`)"
}
}
]
}
}
}
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 |
8 |
1 |
G |
0 |
Y |
Y |
N |
New features |
New features |
fr |
|
|
|
|
A |
N |
0 |
|
|
|
|
1621859124 |
0 |