Query time 0.00076
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "23.57"
},
"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": 16,
"rows_produced_per_join": 0,
"filtered": "0.43",
"index_condition": "(`ea201_diorama`.`cscart_categories`.`id_path` like '634/%')",
"cost_info": {
"read_cost": "23.40",
"eval_cost": "0.01",
"prefix_cost": "23.41",
"data_read_per_join": "183"
},
"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.07",
"eval_cost": "0.01",
"prefix_cost": "23.49",
"data_read_per_join": "213"
},
"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.07",
"eval_cost": "0.01",
"prefix_cost": "23.57",
"data_read_per_join": "119"
},
"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 |
635 |
634 |
634/635 |
echelle non définie |
10 |
A |
1 |
0 |
miniatures-decors-architecture-architectes-echelle-non-definie |
634 |
646 |
634 |
634/646 |
echelle 1:1000 |
20 |
A |
1 |
0 |
echelle-1-1000 |
634 |
660 |
634 |
634/660 |
echelle 1:500 |
30 |
A |
1 |
0 |
echelle-1-500 |
634 |
661 |
634 |
634/661 |
echelle 1:333 |
40 |
A |
1 |
0 |
echelle-1-333 |
634 |
639 |
634 |
634/639 |
echelle 1:250 |
42 |
A |
1 |
0 |
miniatures-decors-architecture-architectes-echelle-1-250 |
634 |
662 |
634 |
634/662 |
echelle 1:200 |
43 |
A |
1 |
0 |
echelle-1-200 |
634 |
641 |
634 |
634/641 |
echelle 1:160 |
44 |
A |
1 |
0 |
echelle-1-160 |
634 |
647 |
634 |
634/647 |
echelle 1:150 |
50 |
A |
1 |
0 |
echelle-1-150 |
634 |
640 |
634 |
634/640 |
echelle 1:100 |
70 |
A |
1 |
0 |
echelle-1-100 |
634 |
656 |
634 |
634/656 |
echelle 1:87 |
80 |
A |
1 |
0 |
echelle-1-87 |
634 |
642 |
634 |
634/642 |
echelle 1:72 |
90 |
A |
1 |
0 |
echelle-1-72 |
634 |
643 |
634 |
634/643 |
echelle 1:50 |
100 |
A |
1 |
0 |
echelle-1-50 |
634 |
644 |
634 |
634/644 |
echelle 1:33 |
110 |
A |
1 |
0 |
echelle-1-33 |
634 |
645 |
634 |
634/645 |
echelle 1:25 |
120 |
A |
1 |
0 |
echelle-1-25 |
634 |
657 |
634 |
634/657 |
echelle 1:20 |
130 |
A |
1 |
0 |
echelle-1-20 |
634 |
658 |
634 |
634/658 |
echelle 1:10 |
160 |
A |
1 |
0 |
echelle-1-10 |
634 |