Query time 0.00467
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "85.85"
},
"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": 91,
"rows_produced_per_join": 91,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`variation_group_products`.`group_id` in (203,213,204,201,227,239,415,202,221,228,217,234,207,235,215,257,241,803,205,230))",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "36.86",
"eval_cost": "9.10",
"prefix_cost": "47.52",
"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": 4,
"filtered": "5.00",
"cost_info": {
"read_cost": "22.75",
"eval_cost": "0.46",
"prefix_cost": "79.37",
"data_read_per_join": "20K"
},
"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": 9,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.28",
"eval_cost": "0.91",
"prefix_cost": "82.56",
"data_read_per_join": "145"
},
"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": "2.28",
"eval_cost": "0.05",
"prefix_cost": "85.74",
"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.06",
"eval_cost": "0.05",
"prefix_cost": "85.85",
"data_read_per_join": "2K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
Result
| product_id |
amount |
product |
company_name |
variation_group_id |
product_type |
parent_product_id |
| 2467 |
100 |
شاومي 15 ألترا |
Delivard Store |
201 |
V |
2471 |
| 2468 |
100 |
شاومي 15 ألترا |
Delivard Store |
201 |
V |
2471 |
| 2469 |
100 |
شاومي 15 ألترا |
Delivard Store |
201 |
V |
2471 |
| 2470 |
100 |
شاومي 15 ألترا |
Delivard Store |
201 |
V |
2471 |
| 2471 |
100 |
شاومي 15 ألترا |
Delivard Store |
201 |
P |
0 |
| 2472 |
100 |
شاومي 15 ألترا |
Delivard Store |
201 |
V |
2471 |
| 2473 |
100 |
شاومي 15 |
Delivard Store |
202 |
P |
0 |
| 2475 |
100 |
شاومي 15 |
Delivard Store |
202 |
V |
2473 |
| 2476 |
100 |
شاومي 15 |
Delivard Store |
202 |
V |
2473 |
| 2477 |
100 |
شاومي 15 |
Delivard Store |
202 |
V |
2473 |
| 2478 |
100 |
شاومي 14 تي برو |
Delivard Store |
203 |
P |
0 |
| 2483 |
100 |
شاومي 14 تي برو |
Delivard Store |
203 |
V |
2478 |
| 2482 |
100 |
شاومي 14 تي برو |
Delivard Store |
203 |
V |
2478 |
| 2484 |
100 |
شاومي 14 تي برو |
Delivard Store |
203 |
V |
2478 |
| 2485 |
100 |
شاومي 14 تي برو |
Delivard Store |
203 |
V |
2478 |
| 2486 |
100 |
شاومي 14 تي برو |
Delivard Store |
203 |
V |
2478 |
| 2487 |
100 |
شاومي 14 تي برو |
Delivard Store |
203 |
V |
2478 |
| 2488 |
100 |
شاومي 14 تي برو |
Delivard Store |
203 |
V |
2478 |
| 2489 |
100 |
شاومي 14 تي برو |
Delivard Store |
203 |
V |
2478 |
| 2490 |
100 |
شاومي 14 تي |
Delivard Store |
204 |
P |
0 |
| 2491 |
100 |
شاومي 14 تي |
Delivard Store |
204 |
V |
2490 |
| 2492 |
100 |
شاومي 14 تي |
Delivard Store |
204 |
V |
2490 |
| 2493 |
100 |
شاومي 14 تي |
Delivard Store |
204 |
V |
2490 |
| 2494 |
100 |
شاومي 14 تي |
Delivard Store |
204 |
V |
2490 |
| 2495 |
100 |
شاومي 14 تي |
Delivard Store |
204 |
V |
2490 |
| 2496 |
100 |
شاومي 14 تي |
Delivard Store |
204 |
V |
2490 |
| 2497 |
100 |
شاومي 14 تي |
Delivard Store |
204 |
V |
2490 |
| 2499 |
100 |
شاومي ميكس فليب |
Delivard Store |
205 |
P |
0 |
| 2500 |
100 |
شاومي ميكس فليب |
Delivard Store |
205 |
V |
2499 |
| 2503 |
100 |
شاومي 14 |
Delivard Store |
207 |
P |
0 |
| 2504 |
100 |
شاومي 14 |
Delivard Store |
207 |
V |
2503 |
| 2505 |
100 |
شاومي 14 |
Delivard Store |
207 |
V |
2503 |
| 2524 |
100 |
شاومي ريدمي إيه 5 |
Delivard Store |
213 |
V |
2527 |
| 2525 |
100 |
شاومي ريدمي إيه 5 |
Delivard Store |
213 |
V |
2527 |
| 2526 |
100 |
شاومي ريدمي إيه 5 |
Delivard Store |
213 |
V |
2527 |
| 2527 |
100 |
شاومي ريدمي إيه 5 |
Delivard Store |
213 |
P |
0 |
| 2528 |
100 |
شاومي ريدمي إيه 5 |
Delivard Store |
213 |
V |
2527 |
| 2529 |
100 |
شاومي ريدمي إيه 5 |
Delivard Store |
213 |
V |
2527 |
| 2530 |
100 |
شاومي ريدمي إيه 5 |
Delivard Store |
213 |
V |
2527 |
| 2531 |
100 |
شاومي ريدمي إيه 5 |
Delivard Store |
213 |
V |
2527 |
| 2538 |
100 |
شاومي ريدمي نوت 14 برو بلس 5 جي |
Delivard Store |
215 |
V |
2540 |
| 2540 |
100 |
شاومي ريدمي نوت 14 برو بلس 5 جي |
Delivard Store |
215 |
P |
0 |
| 2541 |
100 |
شاومي ريدمي نوت 14 برو بلس 5 جي |
Delivard Store |
215 |
V |
2540 |
| 2550 |
100 |
شاومي ريدمي نوت 14 برو 5 جي |
Delivard Store |
217 |
P |
0 |
| 2549 |
100 |
شاومي ريدمي نوت 14 برو 5 جي |
Delivard Store |
217 |
V |
2550 |
| 2548 |
100 |
شاومي ريدمي نوت 14 برو 5 جي |
Delivard Store |
217 |
V |
2550 |
| 2544 |
100 |
شاومي ريدمي نوت 14 برو 5 جي |
Delivard Store |
217 |
V |
2550 |
| 2551 |
100 |
شاومي ريدمي نوت 14 برو 5 جي |
Delivard Store |
217 |
V |
2550 |
| 2552 |
100 |
شاومي ريدمي نوت 14 برو 5 جي |
Delivard Store |
217 |
V |
2550 |
| 2534 |
100 |
شاومي ريدمي نوت 14 إس |
Delivard Store |
221 |
V |
2565 |
| 2564 |
100 |
شاومي ريدمي نوت 14 إس |
Delivard Store |
221 |
V |
2565 |
| 2565 |
100 |
شاومي ريدمي نوت 14 إس |
Delivard Store |
221 |
P |
0 |
| 2576 |
100 |
شاومي بوكو إم 7 برو 5 جي |
Delivard Store |
227 |
P |
0 |
| 2577 |
100 |
شاومي بوكو إم 7 برو 5 جي |
Delivard Store |
227 |
V |
2576 |
| 2578 |
100 |
شاومي بوكو إم 7 برو 5 جي |
Delivard Store |
227 |
V |
2576 |
| 2579 |
100 |
شاومي بوكو إف 7 ألترا |
Delivard Store |
228 |
V |
2580 |
| 2580 |
100 |
شاومي بوكو إف 7 ألترا |
Delivard Store |
228 |
P |
0 |
| 2581 |
100 |
شاومي بوكو إف 7 برو |
Delivard Store |
230 |
P |
0 |
| 2585 |
100 |
شاومي بوكو إف 7 برو |
Delivard Store |
230 |
V |
2581 |
| 2586 |
100 |
شاومي بوكو إف 7 برو |
Delivard Store |
230 |
V |
2581 |
| 2596 |
100 |
شاومي بوكو إكس 7 برو 5 جي |
Delivard Store |
234 |
V |
2599 |
| 2597 |
100 |
شاومي بوكو إكس 7 برو 5 جي |
Delivard Store |
234 |
V |
2599 |
| 2598 |
100 |
شاومي بوكو إكس 7 برو 5 جي |
Delivard Store |
234 |
V |
2599 |
| 2599 |
100 |
شاومي بوكو إكس 7 برو 5 جي |
Delivard Store |
234 |
P |
0 |
| 2600 |
100 |
شاومي بوكو إكس 7 برو 5 جي |
Delivard Store |
234 |
V |
2599 |
| 2601 |
100 |
شاومي بوكو إكس 7 برو 5 جي |
Delivard Store |
234 |
V |
2599 |
| 2602 |
100 |
شاومي بوكو إكس 7 5 جي |
Delivard Store |
235 |
P |
0 |
| 2604 |
100 |
شاومي بوكو إكس 7 5 جي |
Delivard Store |
235 |
V |
2602 |
| 2605 |
100 |
شاومي بوكو إكس 7 5 جي |
Delivard Store |
235 |
V |
2602 |
| 2606 |
100 |
شاومي بوكو إكس 7 5 جي |
Delivard Store |
235 |
V |
2602 |
| 2607 |
100 |
شاومي بوكو إكس 7 5 جي |
Delivard Store |
235 |
V |
2602 |
| 2608 |
100 |
شاومي بوكو إكس 7 5 جي |
Delivard Store |
235 |
V |
2602 |
| 2615 |
100 |
شاومي بوكو سي 61 |
Delivard Store |
239 |
V |
2620 |
| 2620 |
100 |
شاومي بوكو سي 61 |
Delivard Store |
239 |
P |
0 |
| 2621 |
100 |
شاومي بوكو سي 61 |
Delivard Store |
239 |
V |
2620 |
| 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 |
| 2685 |
100 |
شاومي بوكو إم 6 برو |
Delivard Store |
257 |
P |
0 |
| 2686 |
100 |
شاومي بوكو إم 6 برو |
Delivard Store |
257 |
V |
2685 |
| 2687 |
100 |
شاومي بوكو إم 6 برو |
Delivard Store |
257 |
V |
2685 |
| 2502 |
100 |
شاومي 14 ألترا |
Delivard Store |
415 |
P |
0 |
| 3639 |
100 |
شاومي 14 ألترا |
Delivard Store |
415 |
V |
2502 |
| 8417 |
100 |
شاومي ريدمي نوت 13 |
Delivard Store |
803 |
V |
8398 |
| 8418 |
100 |
شاومي ريدمي نوت 13 |
Delivard Store |
803 |
V |
8398 |
| 8419 |
100 |
شاومي ريدمي نوت 13 |
Delivard Store |
803 |
V |
8398 |
| 8420 |
100 |
شاومي ريدمي نوت 13 |
Delivard Store |
803 |
V |
8398 |
| 8398 |
100 |
شاومي ريدمي نوت 13 |
Delivard Store |
803 |
P |
0 |
| 8415 |
100 |
شاومي ريدمي نوت 13 |
Delivard Store |
803 |
V |
8398 |
| 8416 |
100 |
شاومي ريدمي نوت 13 |
Delivard Store |
803 |
V |
8398 |
| 8421 |
100 |
شاومي ريدمي نوت 13 |
Delivard Store |
803 |
V |
8398 |