Query time 0.00323
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "121.12"
},
"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": 345,
"rows_produced_per_join": 114,
"filtered": "33.33",
"cost_info": {
"read_cost": "1.28",
"eval_cost": "11.50",
"prefix_cost": "35.78",
"data_read_per_join": "1K"
},
"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": 6,
"filtered": "5.43",
"cost_info": {
"read_cost": "47.61",
"eval_cost": "0.62",
"prefix_cost": "94.89",
"data_read_per_join": "32K"
},
"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": 6,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.27",
"eval_cost": "0.62",
"prefix_cost": "99.79",
"data_read_per_join": "28K"
},
"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_discount_lookup",
"used_key_parts": [
"product_id",
"lower_limit"
],
"key_length": "6",
"ref": [
"cscart_db.ab.related_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 6,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "1.64",
"eval_cost": "0.62",
"prefix_cost": "102.05",
"data_read_per_join": "149"
},
"used_columns": [
"product_id",
"price",
"lower_limit",
"usergroup_id"
]
}
},
{
"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": 6,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.56",
"eval_cost": "0.62",
"prefix_cost": "104.23",
"data_read_per_join": "43K"
},
"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": 12,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.25",
"eval_cost": "1.25",
"prefix_cost": "107.73",
"data_read_per_join": "199"
},
"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": 15,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "7.51",
"eval_cost": "1.50",
"prefix_cost": "116.74",
"data_read_per_join": "600"
},
"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": 15,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.88",
"eval_cost": "1.50",
"prefix_cost": "121.12",
"data_read_per_join": "112K"
},
"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 |
| 23671 |
1800.00 |
1350.00 |
80 |
Beta Glucan Power Moisture Serum |
Roadskye Tradecom Pvt. Ltd. |
P |
0 |
13 |
5.00 |
8 |
iUNIK |
33 |
| 68137 |
220.00 |
154.00 |
50 |
Hydration Repair Mini Skincare Set Pack of 4 |
Roadskye Tradecom Pvt. Ltd. |
P |
0 |
13 |
4.80 |
15 |
Coxir |
28 |
| 32931 |
1450.00 |
1087.50 |
236 |
Centella Calming Daily Sunscreen Spf 50+ Pa++++ |
Roadskye Tradecom Pvt. Ltd. |
P |
0 |
13 |
4.20 |
15 |
iUNIK |
24 |
| 58631 |
1450.00 |
1088.00 |
95 |
Centella Calming Gel Cream |
Roadskye Tradecom Pvt. Ltd. |
P |
0 |
13 |
4.78 |
9 |
iUNIK |
24 |
| 37518 |
2050.00 |
1333.00 |
3426 |
The 6 Peptide Skin Booster Face Serum | 150ml |
Roadskye Tradecom Pvt. Ltd. |
P |
0 |
13 |
4.77 |
152 |
COSRX |
20 |
| 23659 |
1800.00 |
1350.00 |
98 |
Centella Bubble Cleansing Foam |
Roadskye Tradecom Pvt. Ltd. |
P |
0 |
13 |
4.67 |
6 |
iUNIK |
16 |
| 23657 |
1800.00 |
1350.00 |
100 |
Tea Tree Relief Serum |
Roadskye Tradecom Pvt. Ltd. |
P |
0 |
13 |
4.80 |
5 |
iUNIK |
15 |
| 37916 |
1350.00 |
878.00 |
3432 |
Ultra Light invisible Sunscreen SPF 50 PA++++ |
Roadskye Tradecom Pvt. Ltd. |
P |
0 |
13 |
4.82 |
17 |
COSRX |
14 |