Query time 0.00073
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "5.03"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"rows_examined_per_scan": 7,
"rows_produced_per_join": 0,
"filtered": "2.50",
"index_condition": "(`gaseus`.`cscart_categories`.`category_id` in (268,283,312,270,272,273,274))",
"cost_info": {
"read_cost": "4.89",
"eval_cost": "0.02",
"prefix_cost": "4.91",
"data_read_per_join": "719"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"storefront_id",
"usergroup_ids",
"status",
"product_count",
"position",
"is_trash"
],
"attached_condition": "((`gaseus`.`cscart_categories`.`company_id` = 1) and ((`gaseus`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`gaseus`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`gaseus`.`cscart_categories`.`usergroup_ids`))) and (`gaseus`.`cscart_categories`.`status` = 'A') and (`gaseus`.`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": [
"gaseus.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.04",
"eval_cost": "0.02",
"prefix_cost": "4.97",
"data_read_per_join": "543"
},
"used_columns": [
"category_id",
"lang_code",
"category"
]
}
},
{
"table": {
"table_name": "cscart_seo_names",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"dispatch"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code",
"company_id"
],
"key_length": "210",
"ref": [
"gaseus.cscart_categories.category_id",
"const",
"const",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.04",
"eval_cost": "0.02",
"prefix_cost": "5.03",
"data_read_per_join": "303"
},
"used_columns": [
"name",
"object_id",
"company_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
Result
| category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
product_count |
seo_name |
seo_path |
| 283 |
282 |
265/280/282/283 |
Automatic Gas Panels |
10 |
A |
1 |
1 |
8 |
automatic-gas-panels |
265/280/282 |
| 272 |
271 |
265/266/271/272 |
Cylinder Regulators |
10 |
A |
1 |
1 |
3145 |
cylinder-regulators |
265/266/271 |
| 273 |
271 |
265/266/271/273 |
Line Regulators |
20 |
A |
1 |
1 |
1543 |
line-regulators |
265/266/271 |
| 312 |
267 |
265/266/267/312 |
Manual Gas Panels |
20 |
A |
1 |
1 |
15 |
manual-gas-panels-en |
265/266/267 |
| 270 |
267 |
265/266/267/270 |
Gas Panel Accessories |
30 |
A |
1 |
1 |
0 |
gas-panel-accessories |
265/266/267 |
| 274 |
271 |
265/266/271/274 |
Tapping Points |
30 |
A |
1 |
1 |
195 |
tapping-points |
265/266/271 |