Query time 0.00186
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "19.45"
},
"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": 19,
"rows_produced_per_join": 0,
"filtered": "0.26",
"cost_info": {
"read_cost": "4.75",
"eval_cost": "0.01",
"prefix_cost": "6.65",
"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 '2984/%') 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.01",
"prefix_cost": "6.67",
"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": "19.45",
"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 |
2985 |
2984 |
2984/2985 |
Flame Arrestors |
0 |
A |
0 |
0 |
flame-arrestors |
2984 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
2992 |
2984 |
2984/2992 |
Gas Adapters |
0 |
A |
0 |
0 |
gas-adapters |
2984 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
2993 |
2984 |
2984/2993 |
Gas Cutting Accessories |
0 |
A |
0 |
0 |
gas-cutting-accessories |
2984 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
3005 |
2984 |
2984/3005 |
Gas Filter |
0 |
A |
0 |
0 |
gas-filter |
2984 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
3006 |
2984 |
2984/3006 |
Gas Pressure Regulator |
0 |
A |
0 |
0 |
gas-pressure-regulator |
2984 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
3007 |
2984 |
2984/3007 |
Gas Valve |
0 |
A |
0 |
0 |
gas-valve |
2984 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
3134 |
2984 |
2984/3134 |
Non Return Valve |
0 |
A |
0 |
0 |
non-return-valve |
2984 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
3151 |
2984 |
2984/3151 |
Portable Welding Generator |
0 |
A |
0 |
0 |
portable-welding-generator |
2984 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
3275 |
2984 |
2984/3275 |
Solder Paste (Flux) |
0 |
A |
0 |
0 |
solder-paste-flux |
2984 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
3276 |
2984 |
2984/3276 |
Solder Wire |
0 |
A |
0 |
0 |
solder-wire |
2984 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
3277 |
2984 |
2984/3277 |
Soldering Guns |
0 |
A |
0 |
0 |
soldering-guns |
2984 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
3278 |
2984 |
2984/3278 |
Soldering Iron |
0 |
A |
0 |
0 |
soldering-iron |
2984 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
3279 |
2984 |
2984/3279 |
Soldering Kits |
0 |
A |
0 |
0 |
soldering-kits |
2984 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
3280 |
2984 |
2984/3280 |
Soldering Pots |
0 |
A |
0 |
0 |
soldering-pots |
2984 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
3281 |
2984 |
2984/3281 |
Soldering Spares and Accessories |
0 |
A |
0 |
0 |
soldering-spares-and-accessories |
2984 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
3288 |
2984 |
2984/3288 |
Soldering Station |
0 |
A |
0 |
0 |
soldering-station |
2984 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
3343 |
2984 |
2984/3343 |
TIG Rod |
0 |
A |
0 |
0 |
tig-rod |
2984 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
3374 |
2984 |
2984/3374 |
Welding Accessories |
0 |
A |
0 |
0 |
welding-accessories |
2984 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
3388 |
2984 |
2984/3388 |
Welding Electrodes |
0 |
A |
0 |
0 |
welding-electrodes |
2984 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
3397 |
2984 |
2984/3397 |
Welding Machine |
0 |
A |
0 |
0 |
welding-machine |
2984 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|
3407 |
2984 |
2984/3407 |
Welding Wire |
0 |
A |
0 |
0 |
welding-wire |
2984 |
none |
Y |
#ffffff |
#333333 |
N |
|
N |
N |
0 |
|
|