Query time 0.00364
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "30.65"
},
"ordering_operation": {
"using_filesort": false,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"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": 32,
"rows_produced_per_join": 32,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`variation_group_products`.`group_id` in (241,268,147,274,261,813,458,456,570))",
"cost_info": {
"read_cost": "13.46",
"eval_cost": "3.20",
"prefix_cost": "16.66",
"data_read_per_join": "512"
},
"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": 5,
"filtered": "17.71",
"cost_info": {
"read_cost": "8.00",
"eval_cost": "0.57",
"prefix_cost": "27.86",
"data_read_per_join": "25K"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"amount",
"usergroup_ids",
"tracking",
"parent_product_id"
],
"attached_condition": "(((`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": "companies",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"company_id"
],
"key_length": "4",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.products.company_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "10.00",
"cost_info": {
"read_cost": "1.42",
"eval_cost": "0.06",
"prefix_cost": "29.84",
"data_read_per_join": "3K"
},
"used_columns": [
"company_id",
"status",
"company"
],
"attached_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`companies`.`status` = 'A')"
}
},
{
"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": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.28",
"eval_cost": "0.11",
"prefix_cost": "30.24",
"data_read_per_join": "18"
},
"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": "0.28",
"eval_cost": "0.01",
"prefix_cost": "30.64",
"data_read_per_join": "181"
},
"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.01",
"eval_cost": "0.01",
"prefix_cost": "30.65",
"data_read_per_join": "264"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
Result
| product_id |
amount |
product |
company_name |
variation_group_id |
product_type |
parent_product_id |
| 2102 |
100 |
Brother DK Label Rolls – Die-Cut & Continuous (DK Series) |
Delivard Store |
147 |
V |
2098 |
| 2101 |
100 |
Brother DK Label Rolls – Die-Cut & Continuous (DK Series) |
Delivard Store |
147 |
V |
2098 |
| 2100 |
100 |
Brother DK Label Rolls – Die-Cut & Continuous (DK Series) |
Delivard Store |
147 |
V |
2098 |
| 2099 |
100 |
Brother DK Label Rolls – Die-Cut & Continuous (DK Series) |
Delivard Store |
147 |
V |
2098 |
| 2098 |
100 |
Brother DK Label Rolls – Die-Cut & Continuous (DK Series) |
Delivard Store |
147 |
P |
0 |
| 2623 |
100 |
شاومي بوكو إف 6 برو |
Delivard Store |
241 |
P |
0 |
| 2624 |
100 |
شاومي بوكو إف 6 برو |
Delivard Store |
241 |
V |
2623 |
| 2625 |
100 |
شاومي بوكو إف 6 برو |
Delivard Store |
241 |
V |
2623 |
| 2626 |
100 |
شاومي بوكو إف 6 برو |
Delivard Store |
241 |
V |
2623 |
| 2702 |
100 |
كابل أنكر 544 USB-C إلى USB-C من نايلون حيوي بطول 3 أقدام |
Delivard Store |
261 |
P |
0 |
| 2703 |
100 |
كابل أنكر 544 USB-C إلى USB-C من نايلون حيوي بطول 3 أقدام |
Delivard Store |
261 |
V |
2702 |
| 2729 |
100 |
سماعات أذن داخلية من JBL موديل Wave Beam |
Delivard Store |
268 |
P |
0 |
| 2730 |
100 |
سماعات أذن داخلية من JBL موديل Wave Beam |
Delivard Store |
268 |
V |
2729 |
| 2731 |
100 |
سماعات أذن داخلية من JBL موديل Wave Beam |
Delivard Store |
268 |
V |
2729 |
| 2732 |
100 |
سماعات أذن داخلية من JBL موديل Wave Beam |
Delivard Store |
268 |
V |
2729 |
| 2761 |
100 |
سماعة JBL Live 670NC |
Delivard Store |
274 |
P |
0 |
| 2762 |
100 |
سماعة JBL Live 670NC |
Delivard Store |
274 |
V |
2761 |
| 2763 |
100 |
سماعة JBL Live 670NC |
Delivard Store |
274 |
V |
2761 |
| 2764 |
100 |
سماعة JBL Live 670NC |
Delivard Store |
274 |
V |
2761 |
| 4058 |
100 |
ماوس لوجيتيك M171 اللاسلكي |
Delivard Store |
456 |
P |
0 |
| 4085 |
100 |
اتش بي لابتوب 15-fd0000ne مقاس 15.6 بوصة بدقة FHD - معالج Core i7-1355U - ذاكرة وصول عشوائي 8 جيجابايت - وحدة تخزين SSD بسعة 512 جيجابايت - كرت شاشة مشترك - نظام تشغيل ويندوز 10 برو K |
Delivard Store |
458 |
P |
0 |
| 4086 |
100 |
اتش بي لابتوب 15-fd0000ne مقاس 15.6 بوصة بدقة FHD - معالج Core i7-1355U - ذاكرة وصول عشوائي 8 جيجابايت - وحدة تخزين SSD بسعة 512 جيجابايت - كرت شاشة مشترك - نظام تشغيل ويندوز 10 برو K |
Delivard Store |
458 |
V |
4085 |
| 4087 |
100 |
اتش بي لابتوب 15-fd0000ne مقاس 15.6 بوصة بدقة FHD - معالج Core i7-1355U - ذاكرة وصول عشوائي 8 جيجابايت - وحدة تخزين SSD بسعة 512 جيجابايت - كرت شاشة مشترك - نظام تشغيل ويندوز 10 برو K |
Delivard Store |
458 |
V |
4085 |
| 4088 |
100 |
اتش بي لابتوب 15-fd0000ne مقاس 15.6 بوصة بدقة FHD - معالج Core i7-1355U - ذاكرة وصول عشوائي 8 جيجابايت - وحدة تخزين SSD بسعة 512 جيجابايت - كرت شاشة مشترك - نظام تشغيل ويندوز 10 برو K |
Delivard Store |
458 |
V |
4085 |
| 5041 |
100 |
موتورولا موتو E22 |
Delivard Store |
570 |
V |
5037 |
| 5037 |
100 |
موتورولا موتو E22 |
Delivard Store |
570 |
P |
0 |
| 2455 |
100 |
Xiaomi TV A Pro 2025 75" |
Delivard Store |
813 |
P |
0 |
| 8488 |
100 |
Xiaomi TV A Pro 2025 65" |
Delivard Store |
813 |
P |
0 |
| 8487 |
100 |
Xiaomi TV A Pro 2025 55" |
Delivard Store |
813 |
P |
0 |
| 8486 |
100 |
Xiaomi TV A Pro 2025 43" |
Delivard Store |
813 |
P |
0 |