Query time 0.00212
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": "<subquery2>",
"access_type": "ALL",
"possible_keys": ["distinct_key"],
"rows": 123,
"filtered": 100,
"materialized": {
"unique": 1,
"query_block": {
"select_id": 2,
"table": {
"table_name": "cscart_categories",
"access_type": "ALL",
"possible_keys": ["parent"],
"rows": 142,
"filtered": 87.32394409,
"attached_condition": "cscart_categories.service_type_id = 2 and cscart_categories.parent_id <> 0"
}
}
}
},
"table": {
"table_name": "cscart_categories",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "c_status", "p_category_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"ref": ["dev.cscart_categories.parent_id"],
"rows": 1,
"filtered": 100,
"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.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.parent_id", "const"],
"rows": 1,
"filtered": 100,
"index_condition": "cscart_category_descriptions.lang_code = 'en'"
},
"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_categories.parent_id"],
"rows": 1,
"filtered": 100
},
"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.parent_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.parent_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(srvc.service_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 |
34 |
0 |
34 |
World of Warcraft Classic |
10 |
A |
0 |
0 |
world-of-warcraft-classic |
|
|
|
1.00 |
|
|
|
|
43 |
0 |
43 |
World of Warcraft |
20 |
A |
0 |
0 |
world-of-warcraft |
|
|
|
1.00 |
|
|
|
|
60 |
0 |
60 |
World of Warcraft Cataclysm Classic |
30 |
A |
0 |
0 |
world-of-warcraft-wotlk-classic |
|
|
|
1.00 |
|
|
|
|
61 |
0 |
61 |
New World |
40 |
A |
0 |
0 |
new-world |
|
|
|
1.00 |
|
|
|
|
69 |
0 |
69 |
Path of Exile |
50 |
A |
0 |
0 |
path-of-exile |
|
|
|
1.00 |
|
|
|
|
160 |
0 |
160 |
Path of Exile 2 |
60 |
A |
0 |
0 |
path-of-exile-2 |
|
|
|
1.00 |
0 |
|
|
|
95 |
0 |
95 |
Diablo 4 |
80 |
A |
0 |
0 |
diablo-4 |
|
|
|
1.00 |
2 |
currency |
currency |
currency |
113 |
0 |
113 |
Final Fantasy XIV |
120 |
A |
0 |
0 |
final-fantasy-xiv |
|
|
|
1.00 |
|
|
|
|