Query time 0.00162
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "60.45"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "ab",
"access_type": "ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 179,
"rows_produced_per_join": 59,
"filtered": "33.33",
"cost_info": {
"read_cost": "1.14",
"eval_cost": "5.97",
"prefix_cost": "19.04",
"data_read_per_join": "954"
},
"used_columns": [
"product_id",
"related_id",
"amount"
],
"attached_condition": "(`cscart_db`.`ab`.`amount` >= 2)"
}
},
{
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"age_verification",
"status",
"idx_parent_product_id",
"idx_master_product_id",
"youtube_link",
"idx_products_parent_lookup",
"idx_products_status_company",
"idx_products_master_status",
"idx_products_inventory",
"idx_products_status_company_master",
"idx_products_main_query",
"idx_products_query_opt",
"idx_products_composite_query",
"idx_kl_qc_enabled"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"cscart_db.ab.related_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 3,
"filtered": "5.43",
"cost_info": {
"read_cost": "21.97",
"eval_cost": "0.32",
"prefix_cost": "46.98",
"data_read_per_join": "16K"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"list_price",
"amount",
"tracking",
"parent_product_id"
],
"attached_condition": "((`cscart_db`.`products`.`parent_product_id` = 0) and ((`cscart_db`.`products`.`amount` > 0) or (`cscart_db`.`products`.`tracking` = 'D')) and (`cscart_db`.`products`.`status` = 'A'))"
}
},
{
"table": {
"table_name": "descr1",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"product_id",
"idx_product_desc_lang",
"idx_product_name_search",
"idx_product_desc_sort"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id",
"lang_code"
],
"key_length": "9",
"ref": [
"cscart_db.ab.related_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 3,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.17",
"eval_cost": "0.32",
"prefix_cost": "49.47",
"data_read_per_join": "14K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
},
{
"table": {
"table_name": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"idx_prices_discount_lookup",
"idx_prices_min_calc",
"idx_prices_usergroup_lookup"
],
"key": "idx_prices_min_calc",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"cscart_db.ab.related_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 3,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.85",
"eval_cost": "0.32",
"prefix_cost": "50.64",
"data_read_per_join": "77"
},
"used_columns": [
"product_id",
"price",
"lower_limit",
"usergroup_id"
],
"attached_condition": "<if>(is_not_null_compl(prices), (`cscart_db`.`prices`.`lower_limit` = 1), true)"
}
},
{
"table": {
"table_name": "companies",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"company_id"
],
"key_length": "4",
"ref": [
"cscart_db.products.company_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 3,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.81",
"eval_cost": "0.32",
"prefix_cost": "51.78",
"data_read_per_join": "22K"
},
"used_columns": [
"company_id",
"company"
]
}
},
{
"table": {
"table_name": "prpd",
"access_type": "ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"cscart_db.ab.related_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 6,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.02",
"eval_cost": "0.65",
"prefix_cost": "53.45",
"data_read_per_join": "103"
},
"used_columns": [
"product_id",
"storefront_id",
"average_rating",
"reviews_count"
]
}
},
{
"table": {
"table_name": "pfv",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"product_id",
"fpl",
"idx_product_feature_variant_id",
"fl"
],
"key": "idx_product_feature_variant_id",
"used_key_parts": [
"product_id",
"feature_id"
],
"key_length": "6",
"ref": [
"cscart_db.ab.related_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 7,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "3.79",
"eval_cost": "0.78",
"prefix_cost": "58.02",
"data_read_per_join": "311"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
},
{
"table": {
"table_name": "pvd",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"cscart_db.pfv.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 7,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.65",
"eval_cost": "0.78",
"prefix_cost": "60.45",
"data_read_per_join": "58K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
}
}
Result
| product_id |
list_price |
price |
amount |
product |
company_name |
product_type |
parent_product_id |
company_id |
average_rating |
reviews_count |
brand_name |
co_purchase_count |
| 65545 |
2390.00 |
1553.50 |
138 |
neafneaf Yulmu scrub wash off mask |
Roadskye Tradecom Pvt. Ltd. |
P |
0 |
13 |
5.00 |
3 |
neaf neaf |
7 |
| 63942 |
549.00 |
384.30 |
22 |
Blueberry Hydrating Honey Lip Balm |
Roadskye Tradecom Pvt. Ltd. |
P |
0 |
13 |
4.75 |
4 |
Frudia |
4 |
| 32147 |
1550.00 |
1007.50 |
153 |
Heartleaf My Type Calming Cream - 60ml |
Roadskye Tradecom Pvt. Ltd. |
P |
0 |
13 |
5.00 |
5 |
AXIS-Y |
4 |
| 67036 |
1990.00 |
1691.50 |
31 |
Water Parsley Silence Essence - 300ml |
Roadskye Tradecom Pvt. Ltd. |
P |
0 |
13 |
|
|
Skinfood |
4 |
| 66875 |
1800.00 |
1440.00 |
25 |
Cica Care Spot Balm -40 ml |
Roadskye Tradecom Pvt. Ltd. |
P |
0 |
13 |
5.00 |
1 |
Rovectin |
4 |
| 66982 |
1070.00 |
802.50 |
183 |
UV Aqua Rich Watery Essence Sunscreen SPF 50+ PA++++ | 50gm |
Roadskye Tradecom Pvt. Ltd. |
P |
0 |
13 |
4.86 |
7 |
Biore |
3 |
| 66857 |
2050.00 |
1537.50 |
29 |
CICA Houttuynia Tea Tree Calming Mask 30 EA |
Roadskye Tradecom Pvt. Ltd. |
P |
0 |
13 |
|
|
Mary&May |
3 |
| 69352 |
750.00 |
555.00 |
140 |
Tranexamic Acid+Glutathione Eye Cream 12g |
Roadskye Tradecom Pvt. Ltd. |
P |
0 |
13 |
5.00 |
1 |
Mary&May |
3 |