Query time 0.00136
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "4.78"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "0.15"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "const",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.20",
"prefix_cost": "0.00",
"data_read_per_join": "4K"
},
"used_columns": [
"category_id",
"company_id",
"usergroup_ids",
"status"
]
}
},
{
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"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": "1.20",
"data_read_per_join": "16"
},
"used_columns": [
"product_id",
"category_id"
],
"attached_condition": "(`db_emaika1`.`products_categories`.`product_id` is not null)"
}
},
{
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"status"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"db_emaika1.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "83.33",
"cost_info": {
"read_cost": "1.00",
"eval_cost": "0.17",
"prefix_cost": "2.40",
"data_read_per_join": "6K"
},
"used_columns": [
"product_id",
"status",
"usergroup_ids"
],
"attached_condition": "(((`db_emaika1`.`products`.`usergroup_ids` = '') or find_in_set(0,`db_emaika1`.`products`.`usergroup_ids`) or find_in_set(1,`db_emaika1`.`products`.`usergroup_ids`)) and (`db_emaika1`.`products`.`status` = 'A'))"
}
},
{
"table": {
"table_name": "cscart_product_features_values",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"fl",
"lang_code",
"product_id",
"fpl"
],
"key": "product_id",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"db_emaika1.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "61.22",
"cost_info": {
"read_cost": "0.83",
"eval_cost": "0.10",
"prefix_cost": "3.40",
"data_read_per_join": "404"
},
"used_columns": [
"feature_id",
"product_id",
"value_int",
"lang_code"
],
"attached_condition": "((`db_emaika1`.`cscart_product_features_values`.`feature_id` in (13,15)) and (`db_emaika1`.`cscart_product_features_values`.`lang_code` = 'ru'))"
}
},
{
"table": {
"table_name": "cscart_product_filters",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"feature_id"
],
"key": "feature_id",
"used_key_parts": [
"feature_id"
],
"key_length": "3",
"ref": [
"db_emaika1.cscart_product_features_values.feature_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.51",
"eval_cost": "0.10",
"prefix_cost": "4.01",
"data_read_per_join": "32"
},
"used_columns": [
"filter_id",
"feature_id"
],
"attached_condition": "(`db_emaika1`.`cscart_product_filters`.`filter_id` in (3,2))"
}
},
{
"table": {
"table_name": "cscart_product_features",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id"
],
"key_length": "3",
"ref": [
"db_emaika1.cscart_product_features_values.feature_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "30.00",
"cost_info": {
"read_cost": "0.51",
"eval_cost": "0.03",
"prefix_cost": "4.62",
"data_read_per_join": "183"
},
"used_columns": [
"feature_id",
"feature_type"
],
"attached_condition": "(`db_emaika1`.`cscart_product_features`.`feature_type` in ('N','O','D'))"
}
}
]
}
}
}