Query time 0.00090
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "12.65"
},
"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": 11,
"rows_produced_per_join": 0,
"filtered": "1.00",
"index_condition": "(`maniamall_cscart`.`cscart_categories`.`id_path` like '285/5077/%')",
"cost_info": {
"read_cost": "12.40",
"eval_cost": "0.01",
"prefix_cost": "12.41",
"data_read_per_join": "292"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"usergroup_ids",
"status",
"position",
"is_trash"
],
"attached_condition": "((`maniamall_cscart`.`cscart_categories`.`company_id` = 1) and ((`maniamall_cscart`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`maniamall_cscart`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`maniamall_cscart`.`cscart_categories`.`usergroup_ids`))) and (`maniamall_cscart`.`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": [
"maniamall_cscart.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.11",
"eval_cost": "0.01",
"prefix_cost": "12.53",
"data_read_per_join": "341"
},
"used_columns": [
"category_id",
"lang_code",
"category"
]
}
},
{
"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": [
"maniamall_cscart.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.11",
"eval_cost": "0.01",
"prefix_cost": "12.65",
"data_read_per_join": "190"
},
"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 |
| 5158 |
5077 |
285/5077/5158 |
Lenjerii de Pat |
1 |
A |
1 |
lenjerii-pat |
285/5077 |
| 5080 |
5077 |
285/5077/5080 |
Pilote |
2 |
A |
1 |
pilote |
285/5077 |
| 5079 |
5077 |
285/5077/5079 |
Perne |
3 |
A |
1 |
perne |
285/5077 |
| 2778 |
5077 |
285/5077/2778 |
Paturi si Cuverturi |
4 |
A |
1 |
paturi-cuverturi |
285/5077 |
| 5459 |
5077 |
285/5077/5459 |
Prosoape |
5 |
A |
1 |
prosoape |
285/5077 |
| 6623 |
5077 |
285/5077/6623 |
Halate de Baie |
6 |
A |
1 |
halate-de-baie |
285/5077 |
| 6574 |
5077 |
285/5077/6574 |
Covoare |
10 |
A |
1 |
covoare |
285/5077 |
| 28658 |
5077 |
285/5077/28658 |
Covorase intrare |
11 |
A |
1 |
covorase-intrare-ro-2 |
285/5077 |
| 28657 |
5077 |
285/5077/28657 |
Covorase Baie |
12 |
A |
1 |
covorase-baie |
285/5077 |
| 28758 |
5077 |
285/5077/28758 |
Saltele pentru Sezlonguri |
110 |
A |
1 |
saltele-pentru-sezlonguri |
285/5077 |
| 28759 |
5077 |
285/5077/28759 |
Perne Decorative pentru Sezut si Spatar |
120 |
A |
1 |
perne-decorative-pentru-sezut-si-spatar |
285/5077 |