Query time 0.00395
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "24.04"
},
"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": 20,
"rows_produced_per_join": 0,
"filtered": "1.00",
"index_condition": "(`maniamall_cscart`.`cscart_categories`.`id_path` like '290/8185/%')",
"cost_info": {
"read_cost": "23.59",
"eval_cost": "0.02",
"prefix_cost": "23.61",
"data_read_per_join": "531"
},
"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.20",
"eval_cost": "0.02",
"prefix_cost": "23.83",
"data_read_per_join": "620"
},
"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.20",
"eval_cost": "0.02",
"prefix_cost": "24.05",
"data_read_per_join": "347"
},
"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 |
| 8265 |
8185 |
290/8185/8265 |
Blocuri De Lumini |
90 |
A |
1 |
blocuri-de-lumini |
290/8185 |
| 8270 |
8185 |
290/8185/8270 |
Bobine De Inductie |
90 |
A |
1 |
bobine-de-inductie |
290/8185 |
| 8288 |
8185 |
290/8185/8288 |
Bujii Scanteie |
90 |
A |
1 |
bujii-scanteie |
290/8185 |
| 8322 |
8185 |
290/8185/8322 |
Calculator Coloana |
90 |
A |
1 |
calculator-coloana |
290/8185 |
| 8350 |
8185 |
290/8185/8350 |
Catadioptri Reflectorizanti |
90 |
A |
1 |
catadioptri-reflectorizanti |
290/8185 |
| 8267 |
8185 |
290/8185/8267 |
Comutatoare |
90 |
A |
1 |
comutatoare |
290/8185 |
| 8336 |
8185 |
290/8185/8336 |
Delcouri Si Componente |
90 |
A |
1 |
delcouri-si-componente |
290/8185 |
| 8261 |
8185 |
290/8185/8261 |
Electromotoare Demaroare |
90 |
A |
1 |
electromotoare-demaroare |
290/8185 |
| 8186 |
8185 |
290/8185/8186 |
Faruri Auto |
90 |
A |
1 |
faruri-auto |
290/8185 |
| 8480 |
8185 |
290/8185/8480 |
Lampa Spate |
90 |
A |
1 |
lampa-spate |
290/8185 |
| 8482 |
8185 |
290/8185/8482 |
Lampi Interior |
90 |
A |
1 |
lampi-interior |
290/8185 |
| 8411 |
8185 |
290/8185/8411 |
Lampi Numar |
90 |
A |
1 |
lampi-numar |
290/8185 |
| 8486 |
8185 |
290/8185/8486 |
Lampi Semnalizare Aripa |
90 |
A |
1 |
lampi-semnalizare-aripa |
290/8185 |
| 8412 |
8185 |
290/8185/8412 |
Lampi Semnalizare Fata |
90 |
A |
1 |
lampi-semnalizare-fata |
290/8185 |
| 8487 |
8185 |
290/8185/8487 |
Lampi Semnalizare In Oglinzi |
90 |
A |
1 |
lampi-semnalizare-in-oglinzi |
290/8185 |
| 8489 |
8185 |
290/8185/8489 |
Lampi Stop Frana Suplimentare |
90 |
A |
1 |
lampi-stop-frana-suplimentare |
290/8185 |
| 8519 |
8185 |
290/8185/8519 |
Panou Sigurante |
90 |
A |
1 |
panou-sigurante |
290/8185 |
| 8553 |
8185 |
290/8185/8553 |
Proiectoare Ceata Si De Drum |
90 |
A |
1 |
proiectoare-ceata-si-de-drum |
290/8185 |
| 8559 |
8185 |
290/8185/8559 |
Relee Si Regulatoare |
90 |
A |
1 |
relee-si-regulatoare |
290/8185 |
| 8568 |
8185 |
290/8185/8568 |
Senzori |
90 |
A |
1 |
senzori |
290/8185 |