Query time 0.00324
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.130061098,
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "variation_group_products",
"access_type": "range",
"possible_keys": ["PRIMARY", "idx_group_id"],
"key": "idx_group_id",
"key_length": "3",
"used_key_parts": ["group_id"],
"loops": 1,
"rows": 24,
"cost": 0.01339796,
"filtered": 100,
"attached_condition": "variation_group_products.group_id in (31,32,33,135,136,177,180,34,35,36)",
"using_index": true
}
},
{
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "status"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["u508912950_dev_2025.variation_group_products.product_id"],
"loops": 24,
"rows": 1,
"cost": 0.04112736,
"filtered": 64.97853851,
"attached_condition": "(products.usergroup_ids = '' or find_in_set(0,products.usergroup_ids) or find_in_set(1,products.usergroup_ids)) and products.`status` = 'A' and products.product_type <> 'D'"
}
},
{
"table": {
"table_name": "descr1",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "product_id"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["product_id", "lang_code"],
"ref": [
"u508912950_dev_2025.variation_group_products.product_id",
"const"
],
"loops": 15.59484979,
"rows": 1,
"cost": 0.026723958,
"filtered": 100,
"attached_condition": "trigcond(descr1.lang_code = 'en')"
}
},
{
"table": {
"table_name": "companies",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["company_id"],
"ref": ["u508912950_dev_2025.products.company_id"],
"loops": 15.59484979,
"rows": 1,
"cost": 0.014767857,
"filtered": 100,
"attached_condition": "companies.`status` = 'A'"
}
},
{
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": ["PRIMARY", "pt"],
"key": "pt",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["u508912950_dev_2025.variation_group_products.product_id"],
"loops": 15.59484979,
"rows": 1,
"cost": 0.016818505,
"filtered": 100,
"using_index": true
}
},
{
"table": {
"table_name": "cscart_categories",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "c_status", "p_category_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"ref": ["u508912950_dev_2025.products_categories.category_id"],
"loops": 15.59484979,
"rows": 1,
"cost": 0.017225457,
"filtered": 100,
"attached_condition": "(cscart_categories.usergroup_ids = '' or find_in_set(0,cscart_categories.usergroup_ids) or find_in_set(1,cscart_categories.usergroup_ids)) and cscart_categories.`status` in ('A','H') and cscart_categories.storefront_id in (0,1)"
}
}
]
}
}
}
Result
| product_id |
amount |
product |
company_name |
variation_group_id |
product_type |
parent_product_id |
| 13439 |
5 |
Amyris |
36Oils |
31 |
P |
0 |
| 13467 |
5 |
Amyris |
36Oils |
31 |
V |
13439 |
| 13440 |
5 |
Aniseed |
36Oils |
32 |
P |
0 |
| 13468 |
5 |
Aniseed |
36Oils |
32 |
V |
13440 |
| 13441 |
5 |
Basil |
36Oils |
33 |
P |
0 |
| 13469 |
5 |
Basil |
36Oils |
33 |
V |
13441 |
| 13442 |
5 |
Bergamot |
36Oils |
34 |
P |
0 |
| 13470 |
5 |
Bergamot |
36Oils |
34 |
V |
13442 |
| 13443 |
5 |
Birch Sweet |
36Oils |
35 |
P |
0 |
| 13471 |
5 |
Birch Sweet |
36Oils |
35 |
V |
13443 |
| 13444 |
5 |
Black Pepper |
36Oils |
36 |
P |
0 |
| 13472 |
5 |
Black Pepper |
36Oils |
36 |
V |
13444 |
| 13876 |
10 |
BB Cream Vegan |
Aden Cosmetics Malta |
135 |
P |
0 |
| 13877 |
10 |
BB Cream Vegan |
Aden Cosmetics Malta |
135 |
V |
13876 |
| 13878 |
10 |
BB Cream Vegan |
Aden Cosmetics Malta |
135 |
V |
13876 |
| 13879 |
2 |
BB Cream With Collagen |
Aden Cosmetics Malta |
136 |
P |
0 |
| 13880 |
0 |
BB Cream With Collagen |
Aden Cosmetics Malta |
136 |
V |
13879 |
| 13881 |
10 |
BB Cream With Collagen |
Aden Cosmetics Malta |
136 |
V |
13879 |
| 13882 |
10 |
BB Cream With Collagen |
Aden Cosmetics Malta |
136 |
V |
13879 |
| 16334 |
1 |
Bee Embellished Crossbody Phone Bag |
BP Beauty |
177 |
P |
0 |
| 16335 |
1 |
Bee Embellished Crossbody Phone Bag |
BP Beauty |
177 |
V |
16334 |
| 16348 |
1 |
Bee Embellished Wallet |
BP Beauty |
180 |
P |
0 |
| 16349 |
1 |
Bee Embellished Wallet |
BP Beauty |
180 |
V |
16348 |
| 16350 |
1 |
Bee Embellished Wallet |
BP Beauty |
180 |
V |
16348 |