Query time 0.01487
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "738.63"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "inventory",
"access_type": "system",
"possible_keys": [
"pc"
],
"rows_examined_per_scan": 0,
"rows_produced_per_join": 1,
"filtered": "0.00",
"const_row_not_found": true,
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.20",
"prefix_cost": "0.00",
"data_read_per_join": "976"
},
"used_columns": [
"product_id",
"amount"
]
}
},
{
"table": {
"table_name": "products_categories",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"rows_examined_per_scan": 1017,
"rows_produced_per_join": 1017,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "229.81",
"eval_cost": "203.40",
"prefix_cost": "433.21",
"data_read_per_join": "15K"
},
"used_columns": [
"product_id",
"category_id"
],
"attached_condition": "(`portal`.`products_categories`.`category_id` in (13,14,29,40,45,293,608,15,30,41,46,294,609,16,31,38,42,47,295,17,32,43,44,48,296,18,33,49,83,297,19,34,298,600,20,35,21,37,22,23,24,25,26,27,28,36))"
}
},
{
"table": {
"table_name": "q_categories",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"portal.products_categories.category_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 203,
"filtered": "20.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "40.68",
"prefix_cost": "636.61",
"data_read_per_join": "537K"
},
"used_columns": [
"category_id",
"usergroup_ids",
"status"
],
"attached_condition": "(((`portal`.`q_categories`.`usergroup_ids` = '') or find_in_set(0,`portal`.`q_categories`.`usergroup_ids`) or find_in_set(1,`portal`.`q_categories`.`usergroup_ids`)) and (`portal`.`q_categories`.`status` in ('A','H')))"
}
},
{
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"status",
"idx_parent_product_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"portal.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 180,
"filtered": "88.70",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "36.08",
"prefix_cost": "677.29",
"data_read_per_join": "1M"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"amount",
"timestamp",
"usergroup_ids",
"tracking",
"parent_product_id"
],
"attached_condition": "((`portal`.`products`.`parent_product_id` = 0) and (case `portal`.`products`.`tracking` when 'O' then <cache>((NULL > 0)) when 'B' then (`portal`.`products`.`amount` > 0) else 1 end) and ((`portal`.`products`.`usergroup_ids` = '') or find_in_set(0,`portal`.`products`.`usergroup_ids`) or find_in_set(1,`portal`.`products`.`usergroup_ids`)) and (`portal`.`products`.`status` = 'A'))"
}
},
{
"table": {
"table_name": "companies",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"company_id"
],
"key_length": "4",
"ref": [
"portal.products.company_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 18,
"filtered": "10.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "3.61",
"prefix_cost": "713.37",
"data_read_per_join": "99K"
},
"used_columns": [
"company_id",
"status",
"company"
],
"attached_condition": "(`portal`.`companies`.`status` = 'A')"
}
},
{
"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": [
"portal.products_categories.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 18,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "3.61",
"prefix_cost": "716.98",
"data_read_per_join": "68K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
},
{
"table": {
"table_name": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "usergroup",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"portal.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 18,
"filtered": "99.95",
"using_index": true,
"cost_info": {
"read_cost": "18.04",
"eval_cost": "3.61",
"prefix_cost": "738.63",
"data_read_per_join": "432"
},
"used_columns": [
"product_id",
"lower_limit",
"usergroup_id"
],
"attached_condition": "((`portal`.`prices`.`lower_limit` = 1) and (`portal`.`prices`.`usergroup_id` in (0,0,1)))"
}
}
]
}
}
}
}
Result
product_id |
product |
company_name |
product_type |
parent_product_id |
1145 |
New Designer Women’s Fashion Handbag Clutch, Pink JX-0156 A24K |
Everwin Union General Trading LLC |
P |
0 |
1144 |
New Designer Women’s Fashion High-End Hand-Women -Blue |
Everwin Union General Trading LLC |
P |
0 |
1136 |
Embroidered White Letter Queen Baseball Cap For Unisex JX-0086 A60C |
Everwin Union General Trading LLC |
P |
0 |
1135 |
Embroidered Gold Letter King Flat Base Baseball Cap For Unisex JX-0085 A60C |
Everwin Union General Trading LLC |
P |
0 |
1134 |
Embroidered White Letter King Design Baseball Cap For Unisex JX-0084 A60C |
Everwin Union General Trading LLC |
P |
0 |
1090 |
Embroidered Gold Letter QUEEN Baseball Cap Flat Base JX-0083 A60C |
Everwin Union General Trading LLC |
P |
0 |
1089 |
Women Sleeveless Maxi Dress, Blue, Size Medium JX-0054M A02K |
Everwin Union General Trading LLC |
P |
0 |
1088 |
Women Sleeve Less Maxi Dress Blue Size, Extra Large |
Everwin Union General Trading LLC |
P |
0 |
1087 |
Women Sleeveless Maxi Dress, Red, Size Extra LargeJX-0052XL A02K |
Everwin Union General Trading LLC |
P |
0 |
1086 |
Women Sleeve Less Maxi Dress A02K Black |
Everwin Union General Trading LLC |
P |
0 |
1084 |
Women Sleeve Less Blue Maxi Dress Size Large |
Everwin Union General Trading LLC |
P |
0 |
1083 |
Women Sleeve Less Black Maxi Dress, Size Extra Large Black |
Everwin Union General Trading LLC |
P |
0 |
1081 |
Women Sleeve Less Red Maxi Large Size (L) |
Everwin Union General Trading LLC |
P |
0 |
1013 |
Women's Alloy With Diamond And Carved 12 Pieces Ring Set, J30KK |
Everwin Union General Trading LLC |
P |
0 |
1012 |
Fashionable Multi Design Bracelet 5 Pcs Set, J40KK, Assorted Color |
Everwin Union General Trading LLC |
P |
0 |
921 |
Charhoden For Mom Necklace Open Heart Necklace Pendant |
Everwin Union General Trading LLC |
P |
0 |
761 |
Prettyzyz Collection Ladies Hand Bag Light Biscuit Color 126P |
Brands AE |
P |
0 |
760 |
Forever Young Collection Ladies Pouch Pink 125Pink |
Brands AE |
P |
0 |
759 |
Forever Young Collection Ladies Wallet 124B |
Brands AE |
P |
0 |
758 |
Forever Young Ladies Collection Pink Pouch |
Brands AE |
P |
0 |
757 |
Forever Young Ladies Collection Card Holder Black |
Brands AE |
P |
0 |
756 |
Forever Young Ladies Wallet Brown 121FY |
Brands AE |
P |
0 |
739 |
Hey Duck Ladies Coin Holder Pink 105 |
Brands AE |
P |
0 |
738 |
Hey Duck Ladies Best Fashion Coin Holder Love Duck 104A |
Brands AE |
P |
0 |
737 |
Sony Resident Evil 2 - Multicolored |
Brands AE |
P |
0 |
736 |
Ladies Pouch Ice Cream Love Summer |
Brands AE |
P |
0 |
735 |
Hey Duck Ladies Coin Holder Pouch Happy Duck Best For You 101 |
Brands AE |
P |
0 |
734 |
Ice Ladies Pouch Ice Cream Love Summer Pink |
Brands AE |
P |
0 |