Query time 0.00083
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "17.93"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "range",
"possible_keys": [
"id_path",
"c_status"
],
"key": "id_path",
"used_key_parts": [
"id_path"
],
"key_length": "767",
"rows_examined_per_scan": 12,
"rows_produced_per_join": 0,
"filtered": "0.43",
"index_condition": "(`ea201_diorama`.`cscart_categories`.`id_path` like '194/%')",
"cost_info": {
"read_cost": "17.80",
"eval_cost": "0.01",
"prefix_cost": "17.81",
"data_read_per_join": "137"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"usergroup_ids",
"status",
"position",
"company_id",
"is_trash",
"storefront_id"
],
"attached_condition": "((`ea201_diorama`.`cscart_categories`.`company_id` = 1) and ((`ea201_diorama`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`ea201_diorama`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`ea201_diorama`.`cscart_categories`.`usergroup_ids`)) and (`ea201_diorama`.`cscart_categories`.`status` = 'A') and (`ea201_diorama`.`cscart_categories`.`storefront_id` in (0,1)))"
}
},
{
"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": [
"ea201_diorama.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.05",
"eval_cost": "0.01",
"prefix_cost": "17.87",
"data_read_per_join": "159"
},
"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": [
"ea201_diorama.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.05",
"eval_cost": "0.01",
"prefix_cost": "17.93",
"data_read_per_join": "89"
},
"used_columns": [
"name",
"object_id",
"type",
"dispatch",
"lang_code",
"company_id",
"path"
]
}
}
]
}
}
}
Result
category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
seo_name |
seo_path |
402 |
194 |
194/402 |
Portes, fenêtres |
5 |
A |
1 |
0 |
portes-fenetres |
194 |
195 |
194 |
194/195 |
Barrières, grillages, clôtures |
10 |
A |
1 |
0 |
barrieres-grillages-clotures-fr |
194 |
623 |
402 |
194/402/623 |
Portes, fenêtres 1:87 |
10 |
A |
1 |
0 |
portes-fenetres-1-87 |
194/402 |
196 |
194 |
194/196 |
Bâtiments, maisons miniatures |
20 |
A |
1 |
0 |
batiments-maisons-miniatures |
194 |
624 |
402 |
194/402/624 |
Portes, fenêtres 1:160 |
20 |
A |
1 |
0 |
portes-fenetres-1-160 |
194/402 |
197 |
194 |
194/197 |
Châteaux, églises, cloîtres |
30 |
A |
1 |
0 |
chateaux-eglises-cloitres-fr |
194 |
199 |
194 |
194/199 |
Murs et sols en Pierres, briques |
50 |
A |
1 |
0 |
murs-et-sols-en-pierres-briques |
194 |
397 |
194 |
194/397 |
Murs et sols : tôle, bois, carrelage |
51 |
A |
1 |
0 |
murs-sols-en-tole-bois-carrelage-fr |
194 |
200 |
194 |
194/200 |
Toitures |
60 |
A |
1 |
0 |
toitures-fr |
194 |
201 |
194 |
194/201 |
Voûtes, Arcades |
70 |
A |
1 |
0 |
voutes-arcades-fr |
194 |
386 |
194 |
194/386 |
Accessoires et habillages |
80 |
A |
1 |
0 |
accessoires-et-habillages-1-fr |
194 |