Query time 0.00244
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "60.38"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "range",
"possible_keys": [
"c_status",
"id_path"
],
"key": "id_path",
"used_key_parts": [
"id_path"
],
"key_length": "767",
"rows_examined_per_scan": 41,
"rows_produced_per_join": 0,
"filtered": "2.00",
"index_condition": "(`webmarco`.`cscart_categories`.`id_path` like '6473/7080/7435/%')",
"cost_info": {
"read_cost": "58.25",
"eval_cost": "0.16",
"prefix_cost": "58.41",
"data_read_per_join": "4K"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"usergroup_ids",
"status",
"product_count",
"position",
"is_trash",
"storefront_id"
],
"attached_condition": "(((`webmarco`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`webmarco`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`webmarco`.`cscart_categories`.`usergroup_ids`)) and (`webmarco`.`cscart_categories`.`status` = 'A') and (`webmarco`.`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": [
"webmarco.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.82",
"eval_cost": "0.16",
"prefix_cost": "59.39",
"data_read_per_join": "3K"
},
"used_columns": [
"category_id",
"lang_code",
"category"
]
}
},
{
"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": [
"webmarco.cscart_categories.category_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.82",
"eval_cost": "0.16",
"prefix_cost": "60.38",
"data_read_per_join": "1K"
},
"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 |
8151 |
8127 |
6473/7080/7435/8127/8151 |
Bubble Levels |
0 |
A |
0 |
0 |
0 |
bubble-levels-en |
6473/7080/7435/8127 |
8152 |
8127 |
6473/7080/7435/8127/8152 |
Laser Levels |
0 |
A |
0 |
0 |
0 |
laser-levels-en |
6473/7080/7435/8127 |
8229 |
7435 |
6473/7080/7435/8229 |
Measuring Scales |
0 |
A |
0 |
0 |
9 |
measuring-scales-en |
6473/7080/7435 |
8230 |
7435 |
6473/7080/7435/8230 |
Measuring Wheels |
0 |
A |
0 |
0 |
0 |
measuring-wheels-en |
6473/7080/7435 |
8231 |
7435 |
6473/7080/7435/8231 |
Moisture Meters |
0 |
A |
0 |
0 |
0 |
moisture-meters-en |
6473/7080/7435 |
8249 |
7435 |
6473/7080/7435/8249 |
pH Meters |
0 |
A |
0 |
0 |
0 |
ph-meters-en |
6473/7080/7435 |
8232 |
7435 |
6473/7080/7435/8232 |
Probes & Finders |
0 |
A |
0 |
0 |
0 |
probes-and-finders-en |
6473/7080/7435 |
8233 |
7435 |
6473/7080/7435/8233 |
Protractors |
0 |
A |
0 |
0 |
0 |
protractors-en |
6473/7080/7435 |
8234 |
7435 |
6473/7080/7435/8234 |
Rebar Locators |
0 |
A |
0 |
0 |
0 |
rebar-locators-en |
6473/7080/7435 |
8235 |
7435 |
6473/7080/7435/8235 |
Rulers |
0 |
A |
0 |
0 |
0 |
rulers-en |
6473/7080/7435 |
8236 |
7435 |
6473/7080/7435/8236 |
Seismometer |
0 |
A |
0 |
0 |
0 |
seismometer-en |
6473/7080/7435 |
8153 |
8127 |
6473/7080/7435/8127/8153 |
Sight Levels |
0 |
A |
0 |
0 |
0 |
sight-levels-en |
6473/7080/7435/8127 |
8237 |
7435 |
6473/7080/7435/8237 |
Sound Meters |
0 |
A |
0 |
0 |
0 |
sound-meters-en |
6473/7080/7435 |
8238 |
7435 |
6473/7080/7435/8238 |
Squares |
0 |
A |
0 |
0 |
0 |
squares-en |
6473/7080/7435 |
8239 |
7435 |
6473/7080/7435/8239 |
Straight Edges |
0 |
A |
0 |
0 |
0 |
straight-edges-en |
6473/7080/7435 |
8240 |
7435 |
6473/7080/7435/8240 |
Stud Sensors |
0 |
A |
0 |
0 |
0 |
stud-sensors-en |
6473/7080/7435 |
8241 |
7435 |
6473/7080/7435/8241 |
Tape Measures |
0 |
A |
0 |
0 |
0 |
tape-measures-en |
6473/7080/7435 |
8242 |
7435 |
6473/7080/7435/8242 |
Theodolites |
0 |
A |
0 |
0 |
0 |
theodolites-en |
6473/7080/7435 |
8243 |
7435 |
6473/7080/7435/8243 |
Thermal Imaging Cameras |
0 |
A |
0 |
0 |
0 |
thermal-imaging-cameras-en |
6473/7080/7435 |
8244 |
7435 |
6473/7080/7435/8244 |
Thermocouples & Thermopiles |
0 |
A |
0 |
0 |
0 |
thermocouples-and-thermopiles-en |
6473/7080/7435 |
8245 |
7435 |
6473/7080/7435/8245 |
Transducers |
0 |
A |
0 |
0 |
0 |
transducers-en |
6473/7080/7435 |
8246 |
7435 |
6473/7080/7435/8246 |
UV Light Meters |
0 |
A |
0 |
0 |
0 |
uv-light-meters-en |
6473/7080/7435 |
8247 |
7435 |
6473/7080/7435/8247 |
Vibration Meters |
0 |
A |
0 |
0 |
0 |
vibration-meters-en |
6473/7080/7435 |
8248 |
7435 |
6473/7080/7435/8248 |
Weather Forecasters & Stations |
0 |
A |
0 |
0 |
0 |
weather-forecasters-and-stations-en |
6473/7080/7435 |
8066 |
7435 |
6473/7080/7435/8066 |
Air Quality Meters |
10 |
A |
0 |
0 |
0 |
air-quality-meters |
6473/7080/7435 |
8112 |
7435 |
6473/7080/7435/8112 |
Altimeters |
20 |
A |
0 |
0 |
0 |
altimeters-en |
6473/7080/7435 |
8113 |
7435 |
6473/7080/7435/8113 |
Anemometers |
30 |
A |
0 |
0 |
0 |
anemometers-en |
6473/7080/7435 |
8114 |
7435 |
6473/7080/7435/8114 |
Barometers |
40 |
A |
0 |
0 |
0 |
barometers-en |
6473/7080/7435 |
8115 |
7435 |
6473/7080/7435/8115 |
Calipers |
50 |
A |
0 |
0 |
0 |
calipers-en |
6473/7080/7435 |
8116 |
7435 |
6473/7080/7435/8116 |
Cruising Rods |
60 |
A |
0 |
0 |
0 |
cruising-rods-en |
6473/7080/7435 |
8117 |
7435 |
6473/7080/7435/8117 |
Distance Meters |
70 |
A |
0 |
0 |
0 |
distance-meters-en |
6473/7080/7435 |
8118 |
7435 |
6473/7080/7435/8118 |
Dividers |
80 |
A |
0 |
0 |
0 |
dividers-en |
6473/7080/7435 |
8119 |
7435 |
6473/7080/7435/8119 |
Electrical Testing Tools |
90 |
A |
0 |
0 |
1 |
electrical-testing-tools-en |
6473/7080/7435 |
8120 |
7435 |
6473/7080/7435/8120 |
Flow Meters & Controllers |
100 |
A |
0 |
0 |
0 |
flow-meters-and-controllers-en |
6473/7080/7435 |
8121 |
7435 |
6473/7080/7435/8121 |
Gas Detectors |
110 |
A |
0 |
0 |
0 |
gas-detectors-en |
6473/7080/7435 |
8122 |
7435 |
6473/7080/7435/8122 |
Gauges |
120 |
A |
0 |
0 |
0 |
gauges-en |
6473/7080/7435 |
8123 |
7435 |
6473/7080/7435/8123 |
Geiger Counters |
130 |
A |
0 |
0 |
0 |
geiger-counters-en |
6473/7080/7435 |
8124 |
7435 |
6473/7080/7435/8124 |
Hygrometers |
140 |
A |
0 |
0 |
0 |
hygrometers-en |
6473/7080/7435 |
8125 |
7435 |
6473/7080/7435/8125 |
Infrared Thermometers |
150 |
A |
0 |
0 |
0 |
infrared-thermometers-en |
6473/7080/7435 |
8126 |
7435 |
6473/7080/7435/8126 |
Knife Guides |
160 |
A |
0 |
0 |
12 |
knife-guides-en |
6473/7080/7435 |
8127 |
7435 |
6473/7080/7435/8127 |
Levels |
170 |
A |
0 |
0 |
0 |
levels-en |
6473/7080/7435 |