Query time 0.00285
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "33.75"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "companies",
"access_type": "ALL",
"possible_keys": [
"PRIMARY"
],
"rows_examined_per_scan": 9,
"rows_produced_per_join": 1,
"filtered": "11.11",
"cost_info": {
"read_cost": "1.05",
"eval_cost": "0.10",
"prefix_cost": "1.15",
"data_read_per_join": "6K"
},
"used_columns": [
"company_id",
"status",
"company"
],
"attached_condition": "(`aomnia_com`.`companies`.`status` = 'A')"
}
},
{
"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": 38,
"rows_produced_per_join": 1,
"filtered": "4.00",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "16.98",
"eval_cost": "0.15",
"prefix_cost": "18.28",
"data_read_per_join": "3K"
},
"used_columns": [
"category_id",
"storefront_id",
"usergroup_ids",
"status"
],
"attached_condition": "((`aomnia_com`.`cscart_categories`.`category_id` in (165,166,167,168,169,170,174,190,191,193,196,197,198,199,203,204,209,215,216,219,223,224,228,234,235,241,245,250,266,267,268,269,270,271,274,275,276,277)) and ((`aomnia_com`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`aomnia_com`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`aomnia_com`.`cscart_categories`.`usergroup_ids`))) and (`aomnia_com`.`cscart_categories`.`status` in ('A','H')) and (`aomnia_com`.`cscart_categories`.`storefront_id` in (0,1)))"
}
},
{
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"aomnia_com.cscart_categories.category_id"
],
"rows_examined_per_scan": 20,
"rows_produced_per_join": 31,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.39",
"eval_cost": "3.11",
"prefix_cost": "21.78",
"data_read_per_join": "497"
},
"used_columns": [
"product_id",
"category_id"
]
}
},
{
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"age_verification",
"status",
"idx_parent_product_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"aomnia_com.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "5.00",
"cost_info": {
"read_cost": "7.77",
"eval_cost": "0.16",
"prefix_cost": "32.66",
"data_read_per_join": "6K"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"amount",
"timestamp",
"usergroup_ids",
"tracking",
"parent_product_id"
],
"attached_condition": "((`aomnia_com`.`products`.`company_id` = `aomnia_com`.`companies`.`company_id`) and (`aomnia_com`.`products`.`parent_product_id` = 0) and ((`aomnia_com`.`products`.`amount` > 0) or (`aomnia_com`.`products`.`tracking` = 'D')) and ((`aomnia_com`.`products`.`usergroup_ids` = '') or (0 <> find_in_set(0,`aomnia_com`.`products`.`usergroup_ids`)) or (0 <> find_in_set(1,`aomnia_com`.`products`.`usergroup_ids`))) and (`aomnia_com`.`products`.`status` = 'A') and (`aomnia_com`.`products`.`product_type` <> 'T') and (`aomnia_com`.`products`.`product_type` <> 'D'))"
}
},
{
"table": {
"table_name": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "lower_limit",
"used_key_parts": [
"lower_limit",
"product_id"
],
"key_length": "6",
"ref": [
"const",
"aomnia_com.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.39",
"eval_cost": "0.16",
"prefix_cost": "33.20",
"data_read_per_join": "37"
},
"used_columns": [
"product_id",
"lower_limit",
"usergroup_id"
],
"attached_condition": "(`aomnia_com`.`prices`.`usergroup_id` in (0,0,1))"
}
},
{
"table": {
"table_name": "descr1",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"product_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id",
"lang_code"
],
"key_length": "9",
"ref": [
"aomnia_com.products_categories.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.39",
"eval_cost": "0.16",
"prefix_cost": "33.75",
"data_read_per_join": "7K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
Result
| product_id |
product |
company_name |
product_type |
parent_product_id |
| 3173 |
Men shirt |
SmallMill Kids |
P |
0 |
| 3172 |
Men Shirt |
SmallMill Kids |
P |
0 |
| 3170 |
TEST |
i.T Consultants Inc |
P |
0 |
| 3162 |
100-Pack RJ45 Cat6 Pass Through Connector RJ45 Modular Plugs for Solid or Stranded UTP Cable |
i.T Consultants Inc |
P |
0 |
| 2508 |
Hiseeu Indoor Security Camera |
i.T Consultants Inc |
P |
0 |
| 2507 |
Hiseeu Solar Security Camera, Wireless WiFi Outdoor |
i.T Consultants Inc |
P |
0 |
| 2506 |
Hiseeu 2Pcs Wireless Security Camera 5G/2.4G WiFi Camera Dual Lens PTZ Camera Outdoor Motion Tracking Color Night Version, Plug-in Cable, No-Monthly Fees Works with Wireless Camera System |
i.T Consultants Inc |
P |
0 |
| 2505 |
Passive Video Balun Passive Video Power Balun Audio Connector |
i.T Consultants Inc |
P |
0 |
| 2504 |
CLAONER Solar Lights Outdoor, [128 LED/8 Packs] Solar Motion Lights 3 Working Modes Solar Wall Lights with 270°Wide Angle Wireless IP65 Waterproof Motion Sensor Outdoor Deck Lights, Cold White |
i.T Consultants Inc |
P |
0 |
| 2503 |
Hiseeu Light Bulb Security Camera Wireless WiFi 5G&2.4GHz,10X Zoom PTZ Light Socket Security Camera for Home, 2-Way-Audio, Auto Tracking & Alarm, 3MP Color Night Vision, SD & Cloud Storage (Dual Lens) |
i.T Consultants Inc |
P |
0 |
| 2287 |
Baby & Toddler Girl Tie Headbands |
SmallMill Kids |
P |
0 |
| 2277 |
Babyfond Luxury 3-In-1 Stroller Set with Bassinet and Carseat |
SmallMill Kids |
P |
0 |