Query time 0.00081
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "3.32"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "ALL",
"possible_keys": [
"PRIMARY",
"c_status",
"parent",
"p_category_id"
],
"rows_examined_per_scan": 20,
"rows_produced_per_join": 1,
"filtered": "5.00",
"cost_info": {
"read_cost": "2.52",
"eval_cost": "0.10",
"prefix_cost": "2.62",
"data_read_per_join": "2K"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"level",
"company_id",
"usergroup_ids",
"status",
"position",
"is_trash",
"storefront_id"
],
"attached_condition": "(((`betaatif_store`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`betaatif_store`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`betaatif_store`.`cscart_categories`.`usergroup_ids`))) and (`betaatif_store`.`cscart_categories`.`status` = 'A') and (`betaatif_store`.`cscart_categories`.`category_id` <> 1) and (`betaatif_store`.`cscart_categories`.`parent_id` <> 1) and (`betaatif_store`.`cscart_categories`.`level` <= 3) and (`betaatif_store`.`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": [
"betaatif_store.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.10",
"prefix_cost": "2.97",
"data_read_per_join": "3K"
},
"used_columns": [
"category_id",
"lang_code",
"category"
]
}
},
{
"table": {
"table_name": "cscart_seo_names",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"dispatch"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code"
],
"key_length": "206",
"ref": [
"betaatif_store.cscart_categories.category_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.10",
"prefix_cost": "3.32",
"data_read_per_join": "1K"
},
"used_columns": [
"name",
"object_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
Result
category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
seo_name |
seo_path |
2 |
0 |
2 |
الأثاث المنزلي |
10 |
A |
0 |
0 |
home-furniture-ar |
|
3 |
2 |
2/3 |
غرف نوم |
10 |
A |
0 |
0 |
bedrooms-ar |
2 |
15 |
3 |
2/3/15 |
غرف نوم مزدوجة |
10 |
A |
0 |
0 |
double-bedrooms |
2/3 |
12 |
10 |
10/12 |
السجاد |
20 |
A |
0 |
0 |
rugs-ar |
10 |
4 |
2 |
2/4 |
غرف جلوس |
20 |
A |
0 |
0 |
living-rooms-ar |
2 |
16 |
3 |
2/3/16 |
غرف نوم مفردة |
20 |
A |
0 |
0 |
single-bedrooms |
2/3 |
10 |
0 |
10 |
السجاد والموكيت |
30 |
A |
0 |
0 |
rugs-and-carpets-ar |
|
13 |
10 |
10/13 |
الموكيت |
30 |
A |
0 |
0 |
carpets-ar |
10 |
5 |
2 |
2/5 |
غرف طعام |
30 |
A |
0 |
0 |
dining-rooms-ar |
2 |
20 |
0 |
20 |
سجاد المساجد |
40 |
A |
0 |
0 |
mosque-carpets-ar |
|
18 |
4 |
2/4/18 |
طقم زاوية |
40 |
A |
0 |
0 |
corner-set |
2/4 |
14 |
2 |
2/14 |
مكتبات TV |
40 |
A |
0 |
0 |
tv-units |
2 |
19 |
2 |
2/19 |
طاولات |
50 |
A |
0 |
0 |
tables |
2 |
17 |
4 |
2/4/17 |
طقم كنب |
50 |
A |
0 |
0 |
sofa-set |
2/4 |