Query time 0.00892
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": 26,
"filtered": 100,
"index_condition": "variation_group_products.group_id in (51,49,58)"
},
"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 |
339 |
48620 |
Luffa (Loofah) Soaps on a Rope |
Herbaria |
49 |
V |
5556 |
0 |
376 |
98268 |
Shampoo Bars |
Herbaria |
58 |
V |
5476 |
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 |
1612 |
98817 |
Shampoo Bars |
Herbaria |
58 |
V |
5476 |
0 |
1613 |
98421 |
Shampoo Bars |
Herbaria |
58 |
V |
5476 |
0 |
1614 |
99002 |
Shampoo Bars |
Herbaria |
58 |
V |
5476 |
0 |
1615 |
98548 |
Shampoo Bars |
Herbaria |
58 |
V |
5476 |
0 |
1616 |
98850 |
Shampoo Bars |
Herbaria |
58 |
V |
5476 |
0 |
1617 |
98323 |
Shampoo Bars |
Herbaria |
58 |
V |
5476 |
0 |
1618 |
98417 |
Shampoo Bars |
Herbaria |
58 |
V |
5476 |
0 |
5476 |
98301 |
Shampoo Bars |
Herbaria |
58 |
P |
0 |
0 |
5556 |
48653 |
Luffa (Loofah) Soaps on a Rope |
Herbaria |
49 |
P |
0 |
0 |
1581 |
997004 |
Lip Balms |
Herbaria |
51 |
P |
0 |
1 |
1582 |
998478 |
Lip Balms |
Herbaria |
51 |
V |
1581 |
2 |
1583 |
998470 |
Lip Balms |
Herbaria |
51 |
V |
1581 |
3 |
1584 |
997715 |
Lip Balms |
Herbaria |
51 |
V |
1581 |
4 |
1585 |
999391 |
Lip Balms |
Herbaria |
51 |
V |
1581 |
5 |
349 |
999679 |
Lip Balms |
Herbaria |
51 |
V |
1581 |
6 |
1586 |
999240 |
Lip Balms |
Herbaria |
51 |
V |
1581 |
7 |
1587 |
997388 |
Lip Balms |
Herbaria |
51 |
V |
1581 |
8 |