Query time 0.00402
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "43.28"
},
"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",
"usergroup_ids",
"status",
"age_verification",
"age_limit",
"parent_age_verification",
"parent_age_limit",
"storefront_id"
]
}
},
{
"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": 51,
"rows_produced_per_join": 51,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.56",
"eval_cost": "5.10",
"prefix_cost": "5.66",
"data_read_per_join": "816"
},
"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": [
"dev_yourmart_co_bw.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 11,
"filtered": "23.23",
"cost_info": {
"read_cost": "12.75",
"eval_cost": "1.18",
"prefix_cost": "23.51",
"data_read_per_join": "61K"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"usergroup_ids",
"age_verification",
"age_limit",
"parent_product_id"
],
"attached_condition": "((`dev_yourmart_co_bw`.`products`.`parent_product_id` = 0) and ((`dev_yourmart_co_bw`.`products`.`usergroup_ids` = '') or (0 <> find_in_set(0,`dev_yourmart_co_bw`.`products`.`usergroup_ids`)) or (0 <> find_in_set(1,`dev_yourmart_co_bw`.`products`.`usergroup_ids`))) and (`dev_yourmart_co_bw`.`products`.`status` = 'A') and (`dev_yourmart_co_bw`.`products`.`product_type` <> 'D'))"
}
},
{
"table": {
"table_name": "companies",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"company_id"
],
"key_length": "4",
"ref": [
"dev_yourmart_co_bw.products.company_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "10.00",
"cost_info": {
"read_cost": "2.96",
"eval_cost": "0.12",
"prefix_cost": "27.66",
"data_read_per_join": "7K"
},
"used_columns": [
"company_id",
"status",
"company"
],
"attached_condition": "(`dev_yourmart_co_bw`.`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": [
"dev_yourmart_co_bw.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "59.08",
"cost_info": {
"read_cost": "0.30",
"eval_cost": "0.07",
"prefix_cost": "28.07",
"data_read_per_join": "16"
},
"used_columns": [
"product_id",
"lower_limit",
"usergroup_id"
],
"attached_condition": "((`dev_yourmart_co_bw`.`prices`.`lower_limit` = 1) and (`dev_yourmart_co_bw`.`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": [
"dev_yourmart_co_bw.products_categories.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.18",
"eval_cost": "0.07",
"prefix_cost": "28.32",
"data_read_per_join": "2K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
},
{
"table": {
"table_name": "war_sum_amount",
"access_type": "ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"dev_yourmart_co_bw.products_categories.product_id"
],
"rows_examined_per_scan": 20,
"rows_produced_per_join": 14,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.26",
"eval_cost": "1.40",
"prefix_cost": "29.98",
"data_read_per_join": "224"
},
"used_columns": [
"product_id"
]
}
},
{
"table": {
"table_name": "opt_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": [
"dev_yourmart_co_bw.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 14,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.50",
"eval_cost": "1.40",
"prefix_cost": "34.88",
"data_read_per_join": "336"
},
"used_columns": [
"product_id",
"lower_limit",
"usergroup_id"
],
"attached_condition": "<if>(is_not_null_compl(opt_prices), ((`dev_yourmart_co_bw`.`opt_prices`.`lower_limit` > 1) and (`dev_yourmart_co_bw`.`opt_prices`.`usergroup_id` in (0,1))), true)"
}
},
{
"table": {
"table_name": "abt_normal_prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit"
],
"key": "product_id",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"dev_yourmart_co_bw.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 14,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.50",
"eval_cost": "1.40",
"prefix_cost": "39.78",
"data_read_per_join": "336"
},
"used_columns": [
"product_id",
"price",
"lower_limit"
],
"attached_condition": "<if>(is_not_null_compl(abt_normal_prices), (`dev_yourmart_co_bw`.`abt_normal_prices`.`lower_limit` = 1), true)"
}
},
{
"table": {
"table_name": "sop",
"access_type": "ALL",
"rows_examined_per_scan": 8,
"rows_produced_per_join": 26,
"filtered": "23.44",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "0.87",
"eval_cost": "2.63",
"prefix_cost": "43.28",
"data_read_per_join": "20K"
},
"used_columns": [
"user_id",
"product_id",
"old_product_only"
],
"attached_condition": "(<if>(found_match(sop), ((`dev_yourmart_co_bw`.`sop`.`old_product_only` = 'Y') or (`dev_yourmart_co_bw`.`sop`.`old_product_only` is null)), true) and <if>(is_not_null_compl(sop), (`dev_yourmart_co_bw`.`sop`.`product_id` = `dev_yourmart_co_bw`.`products_categories`.`product_id`), true))"
}
}
]
}
}
}
}
Result
product_id |
product |
company_name |
product_type |
parent_product_id |
need_age_verification |
age_limit |
ab__is_qty_discount |
old_product_only |
16545 |
Motul 300V FL Off Road 15W60 1l |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16551 |
Motul 300V FL Road Race 10W40 $l |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16528 |
Motul 4100 SYN-energy SPEC 10W-40 1l |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
15765 |
Motul 4100 SYN-nergy SPEC 10W40 5L |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16526 |
Motul 5100 15W50 4T 1L |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16547 |
Motul A3 Air Filter Oil 1l |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
15767 |
Motul Auto Cool Optimal -37°C |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16529 |
Motul Bio Wash 20l |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16523 |
Motul Boost & Clean Moto 2T/4T 200ml |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
15764 |
Motul Brake Fluid Racing RBF660 500ML |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16544 |
Motul Care A2 Air Filter Oil Spray 400ml |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16539 |
Motul Chain Cleaner C1 400ml |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16548 |
Motul Chain Lube On Road C4 FL 400ml |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16527 |
Motul Cool Expert -37c 1L |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16530 |
Motul Coolant Auto Cool Optimal -37c 1L |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16533 |
Motul E10 Shine & Go Spray 400ml |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16550 |
Motul Ez Lube 750ml |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16538 |
Motul Fluid ATF VI 1l |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16531 |
Motul Fluid Multi ATF 1l |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16532 |
Motul Fluid Multi DCTF 1L |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16546 |
Motul Fork Oil Exp 5W 1l |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16520 |
Motul Gear 300 LS 75W90 1L D38 |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16189 |
Motul HD 80W90 208l |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16537 |
Motul Motylgear 75W90 1l |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
15876 |
Motul Oil 4100 Turbolight 10w40 208L |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16543 |
Motul Oil 6100 Syn-Energy 5W40 5l |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
15760 |
Motul Oil 7100 4T 10w40 4L |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16534 |
Motul Oil 7100 4T 10W60 1l |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
15763 |
Motul Oil 7100 4T 20W50 1L |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16542 |
Motul Oil 8100 Eco-Lite 5W30 5l |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16522 |
Motul Oil 8100 Eco-nergy 5W30 1L |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16525 |
Motul Oil 8100 X-Cess 5W40 1L |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
15766 |
Motul Oil 8100 X-Cess 5W40 5L |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16540 |
Motul Oil 8100 X-Clean EFE 5W30 5l |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16536 |
Motul Oil Tekma Mega 15W40 5l |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16535 |
Motul Oil Transoil Expert 10W40 1l |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16549 |
Motul P1 Carbu Clean 400ml |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16190 |
Motul Rubric HV 46 208l |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16541 |
Motul Tech Grease 300 400g |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16521 |
Motul Tech Grease 300 50kg |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16188 |
Motul Tekma Mega 15w40 208l |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
16524 |
Motul Translube 350ml |
Team Agencies |
P |
0 |
N |
0 |
0 |
|
3519 |
Rough & Tough - 2 Cylinder Air Compressor |
Riley's Garage |
P |
0 |
N |
0 |
0 |
|
3517 |
Rough & Tough - Air Bullet - Air Compressor 180L/min |
Riley's Garage |
P |
0 |
N |
0 |
0 |
|
3518 |
Rough & Tough - Portable Air Compressor |
Riley's Garage |
P |
0 |
N |
0 |
0 |
|
3520 |
Rough & Tough - Portable Compressor |
Riley's Garage |
P |
0 |
N |
0 |
0 |
|
13113 |
SRAM AXS/ETAP BATTERY CHARGER |
Your Mart |
P |
0 |
N |
0 |
0 |
|