Query time 0.00091
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "15.14"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "q_categories",
"access_type": "ref",
"possible_keys": [
"c_status",
"parent",
"id_path"
],
"key": "parent",
"used_key_parts": [
"parent_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 12,
"rows_produced_per_join": 0,
"filtered": "2.56",
"cost_info": {
"read_cost": "12.00",
"eval_cost": "0.06",
"prefix_cost": "14.40",
"data_read_per_join": "830"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"usergroup_ids",
"status",
"position",
"is_trash",
"ab__lc_catalog_image_control"
],
"attached_condition": "(((`portal`.`q_categories`.`usergroup_ids` = '') or find_in_set(0,`portal`.`q_categories`.`usergroup_ids`) or find_in_set(1,`portal`.`q_categories`.`usergroup_ids`)) and (`portal`.`q_categories`.`status` = 'A') and (`portal`.`q_categories`.`id_path` like '6/%'))"
}
},
{
"table": {
"table_name": "q_category_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id",
"lang_code"
],
"key_length": "9",
"ref": [
"portal.q_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.31",
"eval_cost": "0.06",
"prefix_cost": "14.77",
"data_read_per_join": "953"
},
"used_columns": [
"category_id",
"lang_code",
"category"
]
}
},
{
"table": {
"table_name": "q_seo_names",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"dispatch"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code"
],
"key_length": "206",
"ref": [
"portal.q_categories.category_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.31",
"eval_cost": "0.06",
"prefix_cost": "15.14",
"data_read_per_join": "532"
},
"used_columns": [
"name",
"object_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
Result
category_id |
parent_id |
id_path |
category |
position |
status |
seo_name |
seo_path |
ab__lc_catalog_image_control |
7 |
6 |
6/7 |
Bed & Bath |
10 |
A |
bed-and-bath |
6 |
none |
159 |
6 |
6/159 |
Decor |
20 |
A |
decor |
6 |
none |
168 |
6 |
6/168 |
Small Appliances |
30 |
A |
small-appliances |
6 |
none |
184 |
6 |
6/184 |
Tools & Home Improvement |
40 |
A |
tools-and-home |
6 |
none |
292 |
6 |
6/292 |
Sofa Covers |
50 |
A |
sofa-covers |
6 |
none |
360 |
6 |
6/360 |
Table Covers |
60 |
A |
table-covers |
6 |
none |
406 |
6 |
6/406 |
Furniture |
70 |
A |
furniture |
6 |
none |
425 |
6 |
6/425 |
Outdoor |
80 |
A |
outdoor |
6 |
none |
438 |
6 |
6/438 |
Kitchen & Dining |
90 |
A |
kitchen-dining |
6 |
none |
445 |
6 |
6/445 |
Household Supplies |
100 |
A |
house-supplies |
6 |
none |
519 |
6 |
6/519 |
Large Appliances |
110 |
A |
large-appliances |
6 |
none |
596 |
6 |
6/596 |
Event & Party Supplies |
120 |
A |
event-and-party-supplies |
6 |
none |
367 |
6 |
6/367 |
Pet Supplies |
130 |
A |
pet-supplies |
6 |
none |
619 |
6 |
6/619 |
Office Supplies |
140 |
A |
office-supplies |
6 |
none |