Query time 0.00659
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "cp_variation_group_products.position, products.product_id",
"temporary_table": {
"table": {
"table_name": "companies",
"access_type": "system",
"possible_keys": ["PRIMARY"],
"rows": 1,
"filtered": 100
},
"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"],
"rows": 20,
"filtered": 100,
"index_condition": "variation_group_products.group_id in (6,31,49,23)"
},
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "status"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["herbaria_cscart_4_18.variation_group_products.product_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "products.company_id = 1 and (products.usergroup_ids = '' or find_in_set(0,products.usergroup_ids) or find_in_set(1,products.usergroup_ids)) and (products.`status` = 'A' or products.`status` in ('A','H'))"
},
"table": {
"table_name": "shared_descr",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "product_id", "company_id"],
"key": "PRIMARY",
"key_length": "13",
"used_key_parts": ["product_id", "lang_code", "company_id"],
"ref": [
"herbaria_cscart_4_18.variation_group_products.product_id",
"const",
"const"
],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(shared_descr.lang_code = 'en')"
},
"table": {
"table_name": "cp_variation_group_products",
"access_type": "ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["herbaria_cscart_4_18.variation_group_products.product_id"],
"rows": 1,
"filtered": 100
},
"table": {
"table_name": "descr1",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["product_id", "lang_code"],
"ref": [
"herbaria_cscart_4_18.variation_group_products.product_id",
"const"
],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(products.`status` = 'A' or products.`status` in ('A','H') and descr1.product like '%Free%') and trigcond(descr1.lang_code = 'en')"
},
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": ["PRIMARY", "pt"],
"key": "pt",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["herbaria_cscart_4_18.variation_group_products.product_id"],
"rows": 4,
"filtered": 100
},
"table": {
"table_name": "cscart_categories",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "c_status"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"ref": ["herbaria_cscart_4_18.products_categories.category_id"],
"rows": 1,
"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 |
variation_position |
143 |
998801 |
Shave Soaps |
Herbaria |
23 |
V |
5477 |
0 |
298 |
100 |
Aftershaves |
Herbaria |
6 |
P |
0 |
0 |
305 |
49843 |
Hemp Seed Oil |
Herbaria |
31 |
P |
0 |
0 |
339 |
48620 |
Luffa (Loofah) Soaps on a Rope |
Herbaria |
49 |
V |
5556 |
0 |
427 |
100 |
Aftershaves |
Herbaria |
6 |
V |
298 |
0 |
428 |
100 |
Aftershaves |
Herbaria |
6 |
V |
298 |
0 |
429 |
100 |
Aftershaves |
Herbaria |
6 |
V |
298 |
0 |
430 |
100 |
Aftershaves |
Herbaria |
6 |
V |
298 |
0 |
431 |
100 |
Aftershaves |
Herbaria |
6 |
V |
298 |
0 |
516 |
999277 |
Shave Soaps |
Herbaria |
23 |
V |
5477 |
0 |
517 |
999454 |
Shave Soaps |
Herbaria |
23 |
V |
5477 |
0 |
538 |
49892 |
Hemp Seed Oil |
Herbaria |
31 |
V |
305 |
0 |
1565 |
49486 |
Luffa (Loofah) Soaps on a Rope |
Herbaria |
49 |
V |
5556 |
0 |
1566 |
49427 |
Luffa (Loofah) Soaps on a Rope |
Herbaria |
49 |
V |
5556 |
0 |
1567 |
48756 |
Luffa (Loofah) Soaps on a Rope |
Herbaria |
49 |
V |
5556 |
0 |
1568 |
49134 |
Luffa (Loofah) Soaps on a Rope |
Herbaria |
49 |
V |
5556 |
0 |
1569 |
49884 |
Luffa (Loofah) Soaps on a Rope |
Herbaria |
49 |
V |
5556 |
0 |
1570 |
49151 |
Luffa (Loofah) Soaps on a Rope |
Herbaria |
49 |
V |
5556 |
0 |
5477 |
998820 |
Shave Soaps |
Herbaria |
23 |
P |
0 |
0 |
5556 |
48653 |
Luffa (Loofah) Soaps on a Rope |
Herbaria |
49 |
P |
0 |
0 |