Query time 0.00115
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "15.25"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "range",
"possible_keys": [
"c_status",
"id_path"
],
"key": "id_path",
"used_key_parts": [
"id_path"
],
"key_length": "767",
"rows_examined_per_scan": 10,
"rows_produced_per_join": 0,
"filtered": "1.00",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_categories`.`id_path` like '330/%')",
"cost_info": {
"read_cost": "14.99",
"eval_cost": "0.02",
"prefix_cost": "15.01",
"data_read_per_join": "274"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"usergroup_ids",
"status",
"position",
"age_verification",
"age_limit",
"is_trash",
"ab__lc_catalog_image_control"
],
"attached_condition": "((`eshopuga_upgr_4122`.`cscart_categories`.`company_id` = 1) and ((`eshopuga_upgr_4122`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`eshopuga_upgr_4122`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`eshopuga_upgr_4122`.`cscart_categories`.`usergroup_ids`)) and (`eshopuga_upgr_4122`.`cscart_categories`.`status` = 'A'))"
}
},
{
"table": {
"table_name": "cscart_category_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id",
"lang_code"
],
"key_length": "9",
"ref": [
"eshopuga_upgr_4122.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.10",
"eval_cost": "0.02",
"prefix_cost": "15.13",
"data_read_per_join": "340"
},
"used_columns": [
"category_id",
"lang_code",
"category",
"age_warning_message"
]
}
},
{
"table": {
"table_name": "cscart_seo_names",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"dispatch"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code",
"company_id"
],
"key_length": "210",
"ref": [
"eshopuga_upgr_4122.cscart_categories.category_id",
"const",
"const",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.10",
"eval_cost": "0.02",
"prefix_cost": "15.25",
"data_read_per_join": "173"
},
"used_columns": [
"name",
"object_id",
"company_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
Result
category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
seo_name |
seo_path |
ab__lc_catalog_image_control |
age_verification |
age_limit |
age_warning_message |
369 |
330 |
330/369 |
Engagement |
10 |
A |
1 |
engagement |
330 |
none |
N |
0 |
|
370 |
330 |
330/370 |
Graduation |
20 |
A |
1 |
graduation |
330 |
none |
N |
0 |
|
371 |
330 |
330/371 |
Promotion |
30 |
A |
1 |
promotion |
330 |
none |
N |
0 |
|
372 |
330 |
330/372 |
Driving Test & Exams |
40 |
A |
1 |
driving-test-and-exams |
330 |
none |
N |
0 |
|
373 |
330 |
330/373 |
New Job/Contract |
50 |
A |
1 |
new-job-contract |
330 |
none |
N |
0 |
|
374 |
330 |
330/374 |
New Home |
60 |
A |
1 |
new-home |
330 |
none |
N |
0 |
|
375 |
330 |
330/375 |
Retirement |
70 |
A |
1 |
retirement |
330 |
none |
N |
0 |
|
376 |
330 |
330/376 |
House Completion |
80 |
A |
1 |
house-completion |
330 |
none |
N |
0 |
|
377 |
330 |
330/377 |
Anniversary |
90 |
A |
1 |
anniversary |
330 |
none |
N |
0 |
|
378 |
330 |
330/378 |
New Baby |
100 |
A |
1 |
new-baby |
330 |
none |
N |
0 |
|