Query time 0.00255
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "6.59"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "ushop_categories",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"c_status",
"parent",
"id_path",
"p_category_id"
],
"key": "id_path",
"used_key_parts": [
"id_path"
],
"key_length": "767",
"rows_examined_per_scan": 14,
"rows_produced_per_join": 0,
"filtered": "0.36",
"index_condition": "(`marketplace`.`ushop_categories`.`id_path` like '326/%')",
"cost_info": {
"read_cost": "6.55",
"eval_cost": "0.01",
"prefix_cost": "6.56",
"data_read_per_join": "166"
},
"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`.`parent_id` = 326) and ((`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`.`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": "6.58",
"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": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.01",
"eval_cost": "0.01",
"prefix_cost": "6.60",
"data_read_per_join": "86"
},
"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 |
| 649 |
326 |
326/649 |
|
0 |
A |
0 |
0 |
lectores-y-scanners |
326 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 658 |
326 |
326/658 |
|
0 |
A |
0 |
0 |
otros |
326 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 657 |
326 |
326/657 |
|
0 |
A |
0 |
0 |
tablets-y-accesorios |
326 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 656 |
326 |
326/656 |
|
0 |
A |
0 |
0 |
software |
326 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 655 |
326 |
326/655 |
|
0 |
A |
0 |
0 |
proyectores-y-pantallas |
326 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 654 |
326 |
326/654 |
|
0 |
A |
0 |
0 |
perifericos-de-pc |
326 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 653 |
326 |
326/653 |
|
0 |
A |
0 |
0 |
palmtops-y-handhelds |
326 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 652 |
326 |
326/652 |
|
0 |
A |
0 |
0 |
pc-de-escritorio |
326 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 651 |
326 |
326/651 |
|
0 |
A |
0 |
0 |
monitores-y-accesorios |
326 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 650 |
326 |
326/650 |
|
0 |
A |
0 |
0 |
limpieza-y-cuidado-de-pcs |
326 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 648 |
326 |
326/648 |
|
0 |
A |
0 |
0 |
laptops-y-accesorios |
326 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 647 |
326 |
326/647 |
|
0 |
A |
0 |
0 |
impresion |
326 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 646 |
326 |
326/646 |
|
0 |
A |
0 |
0 |
gift-cards |
326 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 645 |
326 |
326/645 |
|
0 |
A |
0 |
0 |
estabilizadores-y-ups |
326 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 644 |
326 |
326/644 |
|
0 |
A |
0 |
0 |
componentes-de-pc |
326 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 643 |
326 |
326/643 |
|
0 |
A |
0 |
0 |
cables-y-hubs-usb |
326 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 642 |
326 |
326/642 |
|
0 |
A |
0 |
0 |
almacenamiento |
326 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 641 |
326 |
326/641 |
|
0 |
A |
0 |
0 |
accesorios-para-pc-gaming |
326 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 640 |
326 |
326/640 |
|
0 |
A |
0 |
0 |
accesorios-de-antiestatica |
326 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 372 |
326 |
326/372 |
Conectividad y Redes |
0 |
A |
0 |
0 |
conectividad-y-redes |
326 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |