Query time 0.00534
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "61.20"
},
"ordering_operation": {
"using_filesort": false,
"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": 10,
"rows_produced_per_join": 1,
"filtered": "10.00",
"cost_info": {
"read_cost": "1.46",
"eval_cost": "0.10",
"prefix_cost": "1.56",
"data_read_per_join": "6K"
},
"used_columns": [
"company_id",
"status",
"company"
],
"attached_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`companies`.`status` = 'A')"
}
},
{
"table": {
"table_name": "variation_group_products",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "3",
"rows_examined_per_scan": 65,
"rows_produced_per_join": 65,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`variation_group_products`.`group_id` in (394,213,63,623,204,452,260,87,627,55,340,608))",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "25.76",
"eval_cost": "6.50",
"prefix_cost": "33.82",
"data_read_per_join": "1K"
},
"used_columns": [
"product_id",
"group_id"
]
}
},
{
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"status"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.variation_group_products.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 3,
"filtered": "5.00",
"cost_info": {
"read_cost": "16.25",
"eval_cost": "0.33",
"prefix_cost": "56.57",
"data_read_per_join": "14K"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"amount",
"usergroup_ids",
"tracking",
"parent_product_id"
],
"attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`products`.`company_id` = `softwarepirmam_hewadelivard_cscart_4`.`companies`.`company_id`) and ((`softwarepirmam_hewadelivard_cscart_4`.`products`.`amount` > 0) or (`softwarepirmam_hewadelivard_cscart_4`.`products`.`tracking` = 'D')) and ((`softwarepirmam_hewadelivard_cscart_4`.`products`.`usergroup_ids` = '') or (0 <> find_in_set(0,`softwarepirmam_hewadelivard_cscart_4`.`products`.`usergroup_ids`)) or (0 <> find_in_set(1,`softwarepirmam_hewadelivard_cscart_4`.`products`.`usergroup_ids`))) and (`softwarepirmam_hewadelivard_cscart_4`.`products`.`status` = 'A') and (`softwarepirmam_hewadelivard_cscart_4`.`products`.`product_type` <> 'D'))"
}
},
{
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "pt",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.variation_group_products.product_id"
],
"rows_examined_per_scan": 2,
"rows_produced_per_join": 6,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.63",
"eval_cost": "0.65",
"prefix_cost": "58.85",
"data_read_per_join": "104"
},
"used_columns": [
"product_id",
"category_id"
]
}
},
{
"table": {
"table_name": "cscart_categories",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.products_categories.category_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "5.00",
"cost_info": {
"read_cost": "1.63",
"eval_cost": "0.03",
"prefix_cost": "61.12",
"data_read_per_join": "1K"
},
"used_columns": [
"category_id",
"storefront_id",
"usergroup_ids",
"status"
],
"attached_condition": "(((`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`usergroup_ids`))) and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`status` in ('A','H')) and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`storefront_id` in (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": [
"softwarepirmam_hewadelivard_cscart_4.variation_group_products.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.04",
"eval_cost": "0.03",
"prefix_cost": "61.20",
"data_read_per_join": "1K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
Result
| product_id |
amount |
product |
company_name |
variation_group_id |
product_type |
parent_product_id |
| 1003 |
100 |
Apple iPhone 16e |
Delivard Store |
55 |
V |
508 |
| 1001 |
100 |
Apple iPhone 16e |
Delivard Store |
55 |
V |
508 |
| 1000 |
100 |
Apple iPhone 16e |
Delivard Store |
55 |
V |
508 |
| 508 |
100 |
Apple iPhone 16e |
Delivard Store |
55 |
P |
0 |
| 1139 |
500 |
Apple Watch Series 10 |
Delivard Store |
63 |
V |
1134 |
| 1138 |
500 |
Apple Watch Series 10 |
Delivard Store |
63 |
V |
1134 |
| 1137 |
500 |
Apple Watch Series 10 |
Delivard Store |
63 |
V |
1134 |
| 1136 |
500 |
Apple Watch Series 10 |
Delivard Store |
63 |
V |
1134 |
| 1135 |
500 |
Apple Watch Series 10 |
Delivard Store |
63 |
V |
1134 |
| 1134 |
500 |
Apple Watch Series 10 |
Delivard Store |
63 |
P |
0 |
| 1133 |
500 |
Apple Watch Series 10 |
Delivard Store |
63 |
V |
1134 |
| 1132 |
500 |
Apple Watch Series 10 |
Delivard Store |
63 |
V |
1134 |
| 1131 |
500 |
Apple Watch Series 10 |
Delivard Store |
63 |
V |
1134 |
| 1130 |
500 |
Apple Watch Series 10 |
Delivard Store |
63 |
V |
1134 |
| 1129 |
500 |
Apple Watch Series 10 |
Delivard Store |
63 |
V |
1134 |
| 827 |
500 |
Apple Watch Series 10 |
Delivard Store |
63 |
V |
1134 |
| 1406 |
100 |
Samsung Galaxy S24 FE |
Delivard Store |
87 |
P |
0 |
| 1407 |
100 |
Samsung Galaxy S24 FE |
Delivard Store |
87 |
V |
1406 |
| 1408 |
100 |
Samsung Galaxy S24 FE |
Delivard Store |
87 |
V |
1406 |
| 1409 |
100 |
Samsung Galaxy S24 FE |
Delivard Store |
87 |
V |
1406 |
| 1410 |
100 |
Samsung Galaxy S24 FE |
Delivard Store |
87 |
V |
1406 |
| 1411 |
100 |
Samsung Galaxy S24 FE |
Delivard Store |
87 |
V |
1406 |
| 1412 |
100 |
Samsung Galaxy S24 FE |
Delivard Store |
87 |
V |
1406 |
| 2490 |
100 |
Xiaomi 14T |
Delivard Store |
204 |
P |
0 |
| 2491 |
100 |
Xiaomi 14T |
Delivard Store |
204 |
V |
2490 |
| 2492 |
100 |
Xiaomi 14T |
Delivard Store |
204 |
V |
2490 |
| 2493 |
100 |
Xiaomi 14T |
Delivard Store |
204 |
V |
2490 |
| 2494 |
100 |
Xiaomi 14T |
Delivard Store |
204 |
V |
2490 |
| 2495 |
100 |
Xiaomi 14T |
Delivard Store |
204 |
V |
2490 |
| 2496 |
100 |
Xiaomi 14T |
Delivard Store |
204 |
V |
2490 |
| 2497 |
100 |
Xiaomi 14T |
Delivard Store |
204 |
V |
2490 |
| 2524 |
100 |
Xiaomi Redmi A5 |
Delivard Store |
213 |
V |
2527 |
| 2525 |
100 |
Xiaomi Redmi A5 |
Delivard Store |
213 |
V |
2527 |
| 2526 |
100 |
Xiaomi Redmi A5 |
Delivard Store |
213 |
V |
2527 |
| 2527 |
100 |
Xiaomi Redmi A5 |
Delivard Store |
213 |
P |
0 |
| 2528 |
100 |
Xiaomi Redmi A5 |
Delivard Store |
213 |
V |
2527 |
| 2529 |
100 |
Xiaomi Redmi A5 |
Delivard Store |
213 |
V |
2527 |
| 2530 |
100 |
Xiaomi Redmi A5 |
Delivard Store |
213 |
V |
2527 |
| 2531 |
100 |
Xiaomi Redmi A5 |
Delivard Store |
213 |
V |
2527 |
| 2698 |
100 |
Anker 544 USB-C to USB-C Cable Bio-Based 3ft |
Delivard Store |
260 |
P |
0 |
| 3090 |
100 |
Anker Soundcore R50i NC TWS |
Delivard Store |
340 |
P |
0 |
| 3091 |
100 |
Anker Soundcore R50i NC TWS |
Delivard Store |
340 |
V |
3090 |
| 3092 |
100 |
Anker Soundcore R50i NC TWS |
Delivard Store |
340 |
V |
3090 |
| 3093 |
100 |
Anker Soundcore R50i NC TWS |
Delivard Store |
340 |
V |
3090 |
| 3094 |
100 |
Anker Soundcore R50i NC TWS |
Delivard Store |
340 |
V |
3090 |
| 3452 |
99 |
Pensan TRIBALL Ballpoint Pen |
Delivard Store |
394 |
P |
0 |
| 3454 |
100 |
Pensan TRIBALL Ballpoint Pen |
Delivard Store |
394 |
V |
3452 |
| 3455 |
100 |
Pensan TRIBALL Ballpoint Pen |
Delivard Store |
394 |
V |
3452 |
| 3456 |
100 |
Pensan TRIBALL Ballpoint Pen |
Delivard Store |
394 |
V |
3452 |
| 4022 |
100 |
Apple Mac mini (M4 or M4 Pro) |
Delivard Store |
452 |
P |
0 |
| 4021 |
100 |
Apple Mac mini (M4 or M4 Pro) |
Delivard Store |
452 |
V |
4022 |
| 4020 |
100 |
Apple Mac mini (M4 or M4 Pro) |
Delivard Store |
452 |
V |
4022 |
| 5618 |
100 |
Apple Smart Folio for iPad (A16) |
Delivard Store |
608 |
V |
5621 |
| 5619 |
100 |
Apple Smart Folio for iPad (A16) |
Delivard Store |
608 |
V |
5621 |
| 5620 |
100 |
Apple Smart Folio for iPad (A16) |
Delivard Store |
608 |
V |
5621 |
| 5621 |
100 |
Apple Smart Folio for iPad (A16) |
Delivard Store |
608 |
P |
0 |
| 5696 |
100 |
Apple Smart Folio for iPad mini (A17 Pro) |
Delivard Store |
623 |
P |
0 |
| 5697 |
100 |
Apple Smart Folio for iPad mini (A17 Pro) |
Delivard Store |
623 |
V |
5696 |
| 5698 |
100 |
Apple Smart Folio for iPad mini (A17 Pro) |
Delivard Store |
623 |
V |
5696 |
| 5699 |
100 |
Apple Smart Folio for iPad mini (A17 Pro) |
Delivard Store |
623 |
V |
5696 |
| 5721 |
100 |
Apple 46mm Milanese Loop |
Delivard Store |
627 |
P |
0 |
| 5722 |
100 |
Apple 46mm Milanese Loop |
Delivard Store |
627 |
V |
5721 |
| 5723 |
100 |
Apple 46mm Milanese Loop |
Delivard Store |
627 |
V |
5721 |