Query time 0.00349
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "32.29"
},
"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": 33,
"rows_produced_per_join": 33,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`variation_group_products`.`group_id` in (467,506,501,496,529,492,511,520,493,472,508,497))",
"cost_info": {
"read_cost": "14.56",
"eval_cost": "3.30",
"prefix_cost": "17.86",
"data_read_per_join": "528"
},
"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.25",
"eval_cost": "0.58",
"prefix_cost": "29.41",
"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.46",
"eval_cost": "0.06",
"prefix_cost": "31.46",
"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.29",
"eval_cost": "0.12",
"prefix_cost": "31.86",
"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.29",
"eval_cost": "0.01",
"prefix_cost": "32.27",
"data_read_per_join": "187"
},
"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": "32.29",
"data_read_per_join": "273"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
Result
| product_id |
amount |
product |
company_name |
variation_group_id |
product_type |
parent_product_id |
| 4117 |
100 |
قرص صلب خارجي ADATA HD330 - سعة 4 تيرابايت |
Delivard Store |
467 |
V |
4115 |
| 4116 |
100 |
قرص صلب خارجي ADATA HD330 - سعة 4 تيرابايت |
Delivard Store |
467 |
V |
4115 |
| 4115 |
100 |
قرص صلب خارجي ADATA HD330 - سعة 4 تيرابايت |
Delivard Store |
467 |
P |
0 |
| 4130 |
100 |
اي داتا HD650 قرص صلب خارجي مقاوم للصدمات - ٢ تيرابايت |
Delivard Store |
472 |
P |
0 |
| 4131 |
100 |
اي داتا HD650 قرص صلب خارجي مقاوم للصدمات - ٢ تيرابايت |
Delivard Store |
472 |
V |
4130 |
| 4132 |
100 |
اي داتا HD650 قرص صلب خارجي مقاوم للصدمات - ٢ تيرابايت |
Delivard Store |
472 |
V |
4130 |
| 4249 |
100 |
قرص صلب خارجي ADATA HD680 - سعة 1 تيرابايت |
Delivard Store |
492 |
V |
4212 |
| 4212 |
100 |
قرص صلب خارجي ADATA HD680 - سعة 1 تيرابايت |
Delivard Store |
492 |
P |
0 |
| 4250 |
100 |
قرص صلب خارجي ADATA HD770G RGB - سعة 2 تيرابايت |
Delivard Store |
493 |
V |
4207 |
| 4207 |
100 |
قرص صلب خارجي ADATA HD770G RGB - سعة 2 تيرابايت |
Delivard Store |
493 |
P |
0 |
| 4253 |
100 |
اي داتا HD720 قرص صلب خارجي – 2 تيرابايت |
Delivard Store |
496 |
V |
4185 |
| 4185 |
100 |
اي داتا HD720 قرص صلب خارجي – 2 تيرابايت |
Delivard Store |
496 |
P |
0 |
| 4181 |
100 |
ADATA HD770G RGB External Hard Drive - 1TB |
Delivard Store |
497 |
V |
4254 |
| 4254 |
100 |
ADATA HD770G RGB External Hard Drive - 1TB |
Delivard Store |
497 |
P |
0 |
| 4269 |
100 |
إيه داتا HD720 قرص صلب خارجي – 1TB |
Delivard Store |
501 |
P |
0 |
| 4270 |
100 |
إيه داتا HD720 قرص صلب خارجي – 1TB |
Delivard Store |
501 |
V |
4269 |
| 4297 |
100 |
اسم المنتج بالعربية: قرص صلب خارجي ADATA HD330 - سعة 2 تيرابايت |
Delivard Store |
506 |
P |
0 |
| 4298 |
100 |
اسم المنتج بالعربية: قرص صلب خارجي ADATA HD330 - سعة 2 تيرابايت |
Delivard Store |
506 |
V |
4297 |
| 4299 |
100 |
اسم المنتج بالعربية: قرص صلب خارجي ADATA HD330 - سعة 2 تيرابايت |
Delivard Store |
506 |
V |
4297 |
| 4312 |
100 |
قرص صلب خارجي مقاوم للصدمات ADATA HD650 - 1 تيرابايت |
Delivard Store |
508 |
P |
0 |
| 4313 |
100 |
قرص صلب خارجي مقاوم للصدمات ADATA HD650 - 1 تيرابايت |
Delivard Store |
508 |
V |
4312 |
| 4314 |
100 |
قرص صلب خارجي مقاوم للصدمات ADATA HD650 - 1 تيرابايت |
Delivard Store |
508 |
V |
4312 |
| 4347 |
100 |
قرص صلب خارجي متين مقاوم للصدمات والماء ADATA HD710 Pro USB 3.2 Gen 1 IP68 – سعة 2 تيرابايت |
Delivard Store |
511 |
P |
0 |
| 4348 |
100 |
قرص صلب خارجي متين مقاوم للصدمات والماء ADATA HD710 Pro USB 3.2 Gen 1 IP68 – سعة 2 تيرابايت |
Delivard Store |
511 |
V |
4347 |
| 4349 |
100 |
قرص صلب خارجي متين مقاوم للصدمات والماء ADATA HD710 Pro USB 3.2 Gen 1 IP68 – سعة 2 تيرابايت |
Delivard Store |
511 |
V |
4347 |
| 4350 |
100 |
قرص صلب خارجي متين مقاوم للصدمات والماء ADATA HD710 Pro USB 3.2 Gen 1 IP68 – سعة 2 تيرابايت |
Delivard Store |
511 |
V |
4347 |
| 4454 |
100 |
ADATA HD710 Pro هارد خارجي متين 1 تيرابايت USB 3.2 Gen 1 IP68 |
Delivard Store |
520 |
P |
0 |
| 4456 |
100 |
ADATA HD710 Pro هارد خارجي متين 1 تيرابايت USB 3.2 Gen 1 IP68 |
Delivard Store |
520 |
V |
4454 |
| 4457 |
100 |
ADATA HD710 Pro هارد خارجي متين 1 تيرابايت USB 3.2 Gen 1 IP68 |
Delivard Store |
520 |
V |
4454 |
| 4458 |
100 |
ADATA HD710 Pro هارد خارجي متين 1 تيرابايت USB 3.2 Gen 1 IP68 |
Delivard Store |
520 |
V |
4454 |
| 4589 |
100 |
القرص الصلب الخارجي ADATA HD330 - سعة 1 تيرابايت |
Delivard Store |
529 |
V |
4587 |
| 4588 |
100 |
القرص الصلب الخارجي ADATA HD330 - سعة 1 تيرابايت |
Delivard Store |
529 |
V |
4587 |
| 4587 |
100 |
القرص الصلب الخارجي ADATA HD330 - سعة 1 تيرابايت |
Delivard Store |
529 |
P |
0 |