Query time 0.00135
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "13.83"
},
"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": 9,
"rows_produced_per_join": 0,
"filtered": "1.00",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_categories`.`id_path` like '331/%')",
"cost_info": {
"read_cost": "13.59",
"eval_cost": "0.02",
"prefix_cost": "13.61",
"data_read_per_join": "246"
},
"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.09",
"eval_cost": "0.02",
"prefix_cost": "13.72",
"data_read_per_join": "306"
},
"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.09",
"eval_cost": "0.02",
"prefix_cost": "13.83",
"data_read_per_join": "156"
},
"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 |
379 |
331 |
331/379 |
Sympathy Bouquets |
10 |
A |
1 |
sympathy-bouquets |
331 |
none |
N |
0 |
|
380 |
331 |
331/380 |
Funeral Flowers |
20 |
A |
1 |
funeral-flowers |
331 |
none |
N |
0 |
|
381 |
331 |
331/381 |
Get Well |
30 |
A |
1 |
get-well |
331 |
none |
N |
0 |
|
382 |
331 |
331/382 |
Sympathy Gifts |
40 |
A |
1 |
sympathy-gifts |
331 |
none |
N |
0 |
|
383 |
331 |
331/383 |
Sympathy Food Basket |
50 |
A |
1 |
sympathy-food-basket |
331 |
none |
N |
0 |
|
384 |
331 |
331/384 |
Remembrace |
60 |
A |
1 |
remembrace |
331 |
none |
N |
0 |
|
385 |
331 |
331/385 |
Sympathy for Home |
70 |
A |
1 |
sympathy-for-home |
331 |
none |
N |
0 |
|
386 |
331 |
331/386 |
Sympathy For Office |
80 |
A |
1 |
sympathy-for-office |
331 |
none |
N |
0 |
|