Query time 0.00103
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "15.54"
},
"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": 44,
"rows_produced_per_join": 0,
"filtered": "0.45",
"cost_info": {
"read_cost": "11.00",
"eval_cost": "0.02",
"prefix_cost": "15.40",
"data_read_per_join": "657"
},
"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 '775/%') 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.05",
"eval_cost": "0.02",
"prefix_cost": "15.47",
"data_read_per_join": "673"
},
"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": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.05",
"eval_cost": "0.02",
"prefix_cost": "15.54",
"data_read_per_join": "343"
},
"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 |
| 776 |
775 |
775/776 |
|
0 |
A |
0 |
0 |
turnos-y-atencion |
775 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 777 |
775 |
775/777 |
|
0 |
A |
0 |
0 |
alquileres |
775 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 778 |
775 |
775/778 |
|
0 |
A |
0 |
0 |
espacios-y-salones |
775 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 779 |
775 |
775/779 |
|
0 |
A |
0 |
0 |
eventos-y-experiencias |
775 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 780 |
775 |
775/780 |
|
0 |
A |
0 |
0 |
gastronomia |
775 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 781 |
775 |
775/781 |
|
0 |
A |
0 |
0 |
turismo-y-estadias |
775 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 782 |
775 |
775/782 |
|
0 |
A |
0 |
0 |
clases-y-capacitacion |
775 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 783 |
775 |
775/783 |
|
0 |
A |
0 |
0 |
salud-y-bienestar |
775 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 784 |
775 |
775/784 |
|
0 |
A |
0 |
0 |
belleza-y-estetica |
775 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 785 |
775 |
775/785 |
|
0 |
A |
0 |
0 |
soporte-tecnico-e-instalaciones |
775 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 786 |
775 |
775/786 |
|
0 |
A |
0 |
0 |
transporte-y-traslados |
775 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 787 |
775 |
775/787 |
|
0 |
A |
0 |
0 |
mascotas |
775 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 788 |
775 |
775/788 |
|
0 |
A |
0 |
0 |
automotor |
775 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 789 |
775 |
775/789 |
|
0 |
A |
0 |
0 |
hogar-y-mantenimiento |
775 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 790 |
775 |
775/790 |
|
0 |
A |
0 |
0 |
otros |
775 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |