Query time 0.00172
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "20.50"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_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": 22,
"rows_produced_per_join": 0,
"filtered": "0.23",
"cost_info": {
"read_cost": "5.50",
"eval_cost": "0.00",
"prefix_cost": "7.70",
"data_read_per_join": "181"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"usergroup_ids",
"status",
"position",
"age_verification",
"age_limit",
"is_trash",
"ab__lc_catalog_image_control",
"ab__fn_category_status",
"ab__fn_label_color",
"ab__fn_label_background",
"ab__fn_use_origin_image",
"storefront_id"
],
"attached_condition": "(((`s2cart`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`s2cart`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`s2cart`.`cscart_categories`.`usergroup_ids`))) and (`s2cart`.`cscart_categories`.`status` = 'A') and (`s2cart`.`cscart_categories`.`id_path` like '1069/%') and (`s2cart`.`cscart_categories`.`category_id` <> 414) and (`s2cart`.`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": [
"s2cart.cscart_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.00",
"prefix_cost": "7.72",
"data_read_per_join": "324"
},
"used_columns": [
"category_id",
"lang_code",
"category",
"age_warning_message",
"ab__custom_category_h1",
"ab__fn_label_text",
"ab__fn_label_show"
]
}
},
{
"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": [
"s2cart.cscart_categories.category_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 696,
"rows_produced_per_join": 34,
"filtered": "100.00",
"cost_info": {
"read_cost": "9.30",
"eval_cost": "3.48",
"prefix_cost": "20.50",
"data_read_per_join": "58K"
},
"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 |
age_verification |
age_limit |
age_warning_message |
ab__custom_category_h1 |
1070 |
1069 |
1069/1070 |
Anchors |
0 |
A |
0 |
0 |
anchors |
1069 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
1081 |
1069 |
1069/1081 |
Assortments And Kits |
0 |
A |
0 |
0 |
assortments-and-kits |
1069 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
1082 |
1069 |
1069/1082 |
Bolts |
0 |
A |
0 |
0 |
bolts |
1069 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
1089 |
1069 |
1069/1089 |
Circlip |
0 |
A |
0 |
0 |
circlip |
1069 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
1090 |
1069 |
1069/1090 |
Clamps |
0 |
A |
0 |
0 |
clamps |
1069 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
1093 |
1069 |
1069/1093 |
Cylindrical Pins |
0 |
A |
0 |
0 |
cylindrical-pins |
1069 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
1094 |
1069 |
1069/1094 |
Dowel Pin |
0 |
A |
0 |
0 |
dowel-pin |
1069 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
1095 |
1069 |
1069/1095 |
E-Clips |
0 |
A |
0 |
0 |
e-clips |
1069 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
1096 |
1069 |
1069/1096 |
Hex Wrench Sets |
0 |
A |
0 |
0 |
hex-wrench-sets |
1069 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
1097 |
1069 |
1069/1097 |
Hexagon Wrenches |
0 |
A |
0 |
0 |
hexagon-wrenches |
1069 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
1098 |
1069 |
1069/1098 |
Nailer and Stapler Accessories |
0 |
A |
0 |
0 |
nailer-and-stapler-accessories |
1069 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
1101 |
1069 |
1069/1101 |
Nuts |
0 |
A |
0 |
0 |
nuts |
1069 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
1114 |
1069 |
1069/1114 |
Nylon Plug |
0 |
A |
0 |
0 |
nylon-plug |
1069 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
1115 |
1069 |
1069/1115 |
Pins |
0 |
A |
0 |
0 |
pins |
1069 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
1117 |
1069 |
1069/1117 |
Rivets |
0 |
A |
0 |
0 |
rivets |
1069 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
1118 |
1069 |
1069/1118 |
Screws |
0 |
A |
0 |
0 |
screws |
1069 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
1130 |
1069 |
1069/1130 |
Self Clinching Studs |
0 |
A |
0 |
0 |
self-clinching-studs |
1069 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
1131 |
1069 |
1069/1131 |
Set Screws |
0 |
A |
0 |
0 |
set-screws |
1069 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
1132 |
1069 |
1069/1132 |
Setting Tools |
0 |
A |
0 |
0 |
setting-tools |
1069 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
1133 |
1069 |
1069/1133 |
Sockets |
0 |
A |
0 |
0 |
sockets |
1069 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
1140 |
1069 |
1069/1140 |
Taper Pins |
0 |
A |
0 |
0 |
taper-pins |
1069 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
1141 |
1069 |
1069/1141 |
Threaded Rod |
0 |
A |
0 |
0 |
threaded-rod |
1069 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
1142 |
1069 |
1069/1142 |
Washers |
0 |
A |
0 |
0 |
washers |
1069 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|