Query time 0.00190
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "cscart_categories.is_trash, cscart_categories.position, cscart_category_descriptions.category",
"temporary_table": {
"table": {
"table_name": "cscart_categories",
"access_type": "ref",
"possible_keys": ["c_status", "parent", "id_path"],
"key": "parent",
"key_length": "3",
"used_key_parts": ["parent_id"],
"ref": ["const"],
"rowid_filter": {
"range": {
"key": "id_path",
"used_key_parts": ["id_path"]
},
"rows": 8,
"selectivity_pct": 5.633802817
},
"rows": 7,
"filtered": 5.633802891,
"attached_condition": "(cscart_categories.usergroup_ids = '' or find_in_set(0,cscart_categories.usergroup_ids) or find_in_set(1,cscart_categories.usergroup_ids)) and cscart_categories.`status` = 'A' and cscart_categories.id_path like '104/%' and cscart_categories.storefront_id in (0,1)"
},
"table": {
"table_name": "cscart_category_descriptions",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["category_id", "lang_code"],
"ref": ["dev.cscart_categories.category_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_category_descriptions.lang_code = 'en')"
},
"table": {
"table_name": "cscart_seo_names",
"access_type": "ref",
"possible_keys": ["PRIMARY", "dispatch"],
"key": "PRIMARY",
"key_length": "206",
"used_key_parts": ["object_id", "type", "dispatch", "lang_code"],
"ref": ["dev.cscart_categories.category_id", "const", "const", "const"],
"rows": 8,
"filtered": 100,
"attached_condition": "trigcond(cscart_seo_names.`type` = 'c' and cscart_seo_names.dispatch = '' and cscart_seo_names.lang_code = 'en')"
},
"table": {
"table_name": "srvc",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["category_id"],
"ref": ["dev.cscart_categories.category_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(srvc.category_id = cscart_categories.category_id)"
},
"table": {
"table_name": "srvd",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "10",
"used_key_parts": ["service_id", "lang_code"],
"ref": [
"dev.srvc.service_id",
"dev.cscart_category_descriptions.lang_code"
],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(trigcond(cscart_category_descriptions.lang_code is not null) and trigcond(srvc.service_id is not null))"
},
"table": {
"table_name": "cat",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "p_category_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"ref": ["dev.cscart_category_descriptions.category_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(trigcond(cscart_category_descriptions.category_id is not null))"
}
}
}
}
}
Result
category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
seo_name |
seo_path |
service_id |
service_title |
unit_size |
service_type_id |
product_template |
office_offer_template |
office_table_template |
105 |
104 |
104/105 |
Gold |
10 |
A |
0 |
0 |
gold |
104 |
|
|
1.00 |
|
|
|
|
106 |
104 |
104/106 |
Crowns |
20 |
A |
0 |
0 |
crowns |
104 |
|
|
1.00 |
|
|
|
|
107 |
104 |
104/107 |
Keys |
30 |
A |
0 |
0 |
keys |
104 |
|
|
1.00 |
|
|
|
|
108 |
104 |
104/108 |
Items |
40 |
A |
0 |
0 |
items |
104 |
|
|
1.00 |
|
|
|
|
109 |
104 |
104/109 |
Boosting |
50 |
A |
0 |
0 |
boosting |
104 |
|
|
1.00 |
|
|
|
|
110 |
104 |
104/110 |
Skins |
60 |
A |
0 |
0 |
skins |
104 |
|
|
1.00 |
|
|
|
|
111 |
104 |
104/111 |
Builds |
70 |
A |
0 |
0 |
builds |
104 |
|
|
1.00 |
|
|
|
|
112 |
104 |
104/112 |
Other |
80 |
A |
0 |
0 |
other |
104 |
|
|
1.00 |
|
|
|
|