Query time 0.00698
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "63.18"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "const",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.10",
"prefix_cost": "0.00",
"data_read_per_join": "2K"
},
"used_columns": [
"category_id",
"storefront_id",
"usergroup_ids",
"status",
"age_verification",
"age_limit",
"parent_age_verification",
"parent_age_limit"
]
}
},
{
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 120,
"rows_produced_per_join": 120,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.99",
"eval_cost": "12.00",
"prefix_cost": "12.99",
"data_read_per_join": "1K"
},
"used_columns": [
"product_id",
"category_id"
]
}
},
{
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"status",
"idx_parent_product_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"wearethehelpful_scalesta_net.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 19,
"filtered": "16.25",
"cost_info": {
"read_cost": "30.00",
"eval_cost": "1.95",
"prefix_cost": "54.99",
"data_read_per_join": "86K"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"timestamp",
"usergroup_ids",
"age_verification",
"age_limit",
"parent_product_id"
],
"attached_condition": "((`wearethehelpful_scalesta_net`.`products`.`parent_product_id` = 0) and ((`wearethehelpful_scalesta_net`.`products`.`usergroup_ids` = '') or (0 <> find_in_set(0,`wearethehelpful_scalesta_net`.`products`.`usergroup_ids`)) or (0 <> find_in_set(1,`wearethehelpful_scalesta_net`.`products`.`usergroup_ids`))) and (`wearethehelpful_scalesta_net`.`products`.`status` = 'A'))"
}
},
{
"table": {
"table_name": "companies",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"company_id"
],
"key_length": "4",
"ref": [
"wearethehelpful_scalesta_net.products.company_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "10.00",
"cost_info": {
"read_cost": "4.87",
"eval_cost": "0.19",
"prefix_cost": "61.82",
"data_read_per_join": "13K"
},
"used_columns": [
"company_id",
"status",
"company"
],
"attached_condition": "(`wearethehelpful_scalesta_net`.`companies`.`status` = 'A')"
}
},
{
"table": {
"table_name": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "product_id",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"wearethehelpful_scalesta_net.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "99.58",
"cost_info": {
"read_cost": "0.49",
"eval_cost": "0.19",
"prefix_cost": "62.50",
"data_read_per_join": "46"
},
"used_columns": [
"product_id",
"lower_limit",
"usergroup_id"
],
"attached_condition": "((`wearethehelpful_scalesta_net`.`prices`.`lower_limit` = 1) and (`wearethehelpful_scalesta_net`.`prices`.`usergroup_id` in (0,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": [
"wearethehelpful_scalesta_net.products_categories.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.49",
"eval_cost": "0.19",
"prefix_cost": "63.18",
"data_read_per_join": "8K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
Result
| product_id |
product |
company_name |
product_type |
parent_product_id |
need_age_verification |
age_limit |
| 1909 |
The Life Postpartum Recovery Gift Package |
Life Postpartum |
P |
0 |
N |
0 |
| 1275 |
Womens Lemonland PJs |
TONIC |
P |
0 |
N |
0 |
| 1271 |
Womens Lemonland Hush Dressing Gown |
TONIC |
P |
0 |
N |
0 |
| 1267 |
Womens Hush Dressing Gown Silver Linings |
TONIC |
P |
0 |
N |
0 |
| 1264 |
Womens Hope Nightie Silver Linings |
TONIC |
P |
0 |
N |
0 |
| 1262 |
Womens Get In Line PJs |
TONIC |
P |
0 |
N |
0 |
| 1258 |
Womens Get In Line Hush Dressing Gown |
TONIC |
P |
0 |
N |
0 |
| 1246 |
Colour Pop Hospital Socks Pink |
TONIC |
C |
0 |
N |
0 |
| 1245 |
Colour Pop Hospital Socks Cornflower Blue |
TONIC |
C |
0 |
N |
0 |
| 1241 |
Party All Night blend |
Tired Mums Coffee Limited |
C |
0 |
N |
0 |
| 1229 |
Nobody’s Listening To Me blend |
Tired Mums Coffee Limited |
P |
0 |
N |
0 |
| 1131 |
Gentle Habits - Positive Outcomes Journal Peach |
We are The Helpful |
P |
0 |
N |
0 |
| 1130 |
Frosted Glass Incense Holder Small - Blue |
We are The Helpful |
P |
0 |
N |
0 |
| 1129 |
Frosted Glass Incense Holder Small - Lilac |
We are The Helpful |
P |
0 |
N |
0 |
| 1128 |
Frosted Glass Incense Holder Small - Peach |
We are The Helpful |
P |
0 |
N |
0 |
| 1127 |
The Full Anara Experience - Hydrate, Nourish & Protect |
Anara Skincare |
P |
0 |
N |
0 |
| 1126 |
Replenishing Facial Experience - Nourishes, Lifts & Sculpts |
Anara Skincare |
P |
0 |
N |
0 |
| 1125 |
Radiant Rituals - Hydrate, Nourish & Glow |
Anara Skincare |
P |
0 |
N |
0 |
| 1124 |
Perfect Partners Gift Set - Hydrate, Protect & Glow |
Anara Skincare |
P |
0 |
N |
0 |
| 1123 |
Our Most Loved Gift Set - Hydrate, Restore & Glow |
Anara Skincare |
P |
0 |
N |
0 |
| 1111 |
be_well Mood Boosting Beauty Box |
The Beauty Standard |
P |
0 |
N |
0 |
| 1110 |
be_unique Luxury Beauty Box |
The Beauty Standard |
P |
0 |
N |
0 |
| 1109 |
be_restful |
The Beauty Standard |
P |
0 |
N |
0 |
| 1108 |
be_mindful beauty box |
The Beauty Standard |
P |
0 |
N |
0 |