Query time 0.00095
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "3.22"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "ushop_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"c_status",
"parent",
"id_path",
"p_category_id"
],
"key": "parent",
"used_key_parts": [
"parent_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 9,
"rows_produced_per_join": 0,
"filtered": "0.56",
"cost_info": {
"read_cost": "2.25",
"eval_cost": "0.01",
"prefix_cost": "3.15",
"data_read_per_join": "165"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"storefront_id",
"usergroup_ids",
"status",
"position",
"is_trash",
"category_type",
"ab__lc_catalog_image_control",
"ab__fn_category_status",
"ab__fn_label_color",
"ab__fn_label_background",
"ab__fn_use_origin_image"
],
"attached_condition": "(((`marketplace`.`ushop_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`marketplace`.`ushop_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`marketplace`.`ushop_categories`.`usergroup_ids`))) and (`marketplace`.`ushop_categories`.`status` = 'A') and (`marketplace`.`ushop_categories`.`id_path` like '321/%') and (`marketplace`.`ushop_categories`.`category_id` <> 264) and (`marketplace`.`ushop_categories`.`storefront_id` in (0,1)) and (`marketplace`.`ushop_categories`.`category_type` <> 'W'))"
}
},
{
"table": {
"table_name": "ushop_category_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id",
"lang_code"
],
"key_length": "9",
"ref": [
"marketplace.ushop_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.01",
"eval_cost": "0.01",
"prefix_cost": "3.17",
"data_read_per_join": "170"
},
"used_columns": [
"category_id",
"lang_code",
"category",
"ab__fn_label_text",
"ab__fn_label_show"
]
}
},
{
"table": {
"table_name": "ushop_seo_names",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"dispatch"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code"
],
"key_length": "206",
"ref": [
"marketplace.ushop_categories.category_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 3,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.04",
"eval_cost": "0.02",
"prefix_cost": "3.22",
"data_read_per_join": "260"
},
"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 |
ab__lc_catalog_image_control |
ab__fn_category_status |
ab__fn_label_color |
ab__fn_label_background |
ab__fn_use_origin_image |
ab__fn_label_text |
ab__fn_label_show |
| 673 |
321 |
321/673 |
Exhibidores y Joyeros |
0 |
A |
0 |
0 |
exhibidores-y-joyeros |
321 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 674 |
321 |
321/674 |
Insumos para JoyerÃa |
0 |
A |
0 |
0 |
insumos-para-joyeria |
321 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 675 |
321 |
321/675 |
Joyas |
0 |
A |
0 |
0 |
joyas |
321 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 680 |
321 |
321/680 |
Otros |
0 |
A |
0 |
0 |
otros |
321 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 676 |
321 |
321/676 |
Piedra Preciosa y Semipreciosa |
0 |
A |
0 |
0 |
piedra-preciosa-y-semipreciosa |
321 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 677 |
321 |
321/677 |
Piercings |
0 |
A |
0 |
0 |
piercings |
321 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 741 |
321 |
321/741 |
Plumas y Lapiceras de Lujo |
0 |
A |
0 |
0 |
plumas-y-lapiceras-de-lujo |
321 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 360 |
321 |
321/360 |
Relojes |
0 |
A |
0 |
0 |
relojes |
321 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 679 |
321 |
321/679 |
Repuestos para Relojes |
0 |
A |
0 |
0 |
repuestos-para-relojes |
321 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |