Query time 0.00156
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "61.51"
},
"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",
"storefront_id"
]
}
},
{
"table": {
"table_name": "companies",
"access_type": "range",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"company_id"
],
"key_length": "4",
"rows_examined_per_scan": 5,
"rows_produced_per_join": 1,
"filtered": "33.33",
"cost_info": {
"read_cost": "2.10",
"eval_cost": "0.17",
"prefix_cost": "2.26",
"data_read_per_join": "10K"
},
"used_columns": [
"company_id",
"status",
"company"
],
"attached_condition": "((`nuie_scalesta_net`.`companies`.`status` = 'A') and (`nuie_scalesta_net`.`companies`.`company_id` in (2,8,9,10,0)))"
}
},
{
"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": 77,
"rows_produced_per_join": 128,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.46",
"eval_cost": "12.83",
"prefix_cost": "15.56",
"data_read_per_join": "2K"
},
"used_columns": [
"product_id",
"category_id"
]
}
},
{
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"age_verification",
"status",
"idx_parent_product_id",
"my_supplier_id",
"supplier_access_time",
"products_rf_product_code_index",
"products_rf_manufacturer_code_index"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"nuie_scalesta_net.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 6,
"filtered": "5.00",
"cost_info": {
"read_cost": "19.25",
"eval_cost": "0.64",
"prefix_cost": "47.64",
"data_read_per_join": "30K"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"usergroup_ids",
"parent_product_id",
"rf_stop_update_price",
"rf_stop_update_amount",
"rf_stop_update_status"
],
"attached_condition": "((`nuie_scalesta_net`.`products`.`company_id` = `nuie_scalesta_net`.`companies`.`company_id`) and (`nuie_scalesta_net`.`products`.`parent_product_id` = 0) and ((`nuie_scalesta_net`.`products`.`usergroup_ids` = '') or (0 <> find_in_set(0,`nuie_scalesta_net`.`products`.`usergroup_ids`)) or (0 <> find_in_set(1,`nuie_scalesta_net`.`products`.`usergroup_ids`))) and (`nuie_scalesta_net`.`products`.`status` = 'A') and (`nuie_scalesta_net`.`products`.`product_type` <> 'D'))"
}
},
{
"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": [
"nuie_scalesta_net.products_categories.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 6,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.96",
"eval_cost": "0.64",
"prefix_cost": "49.25",
"data_read_per_join": "24K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
},
{
"table": {
"table_name": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "usergroup",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"nuie_scalesta_net.products_categories.product_id"
],
"rows_examined_per_scan": 16,
"rows_produced_per_join": 10,
"filtered": "9.92",
"cost_info": {
"read_cost": "1.63",
"eval_cost": "1.06",
"prefix_cost": "61.52",
"data_read_per_join": "253"
},
"used_columns": [
"product_id",
"price",
"percentage_discount",
"lower_limit",
"usergroup_id"
],
"attached_condition": "((`nuie_scalesta_net`.`prices`.`lower_limit` = 1) and (`nuie_scalesta_net`.`prices`.`usergroup_id` in (0,0,1)))"
}
}
]
}
}
}
}
Result
| product_id |
product |
company_name |
price |
product_type |
parent_product_id |
rf_stop_update_price |
rf_stop_update_amount |
rf_stop_update_status |
| 92176 |
Victrion 640mm Basin & Ornate Stand 1TH - White |
Roxor |
1301.67000000 |
P |
0 |
N |
N |
N |
| 92177 |
Victrion 640mm Basin & Ornate Stand 2TH - White |
Roxor |
1301.67000000 |
P |
0 |
N |
N |
N |
| 92178 |
Victrion 640mm Basin & Ornate Stand 3TH - White |
Roxor |
1301.67000000 |
P |
0 |
N |
N |
N |
| 92322 |
500mm 1TH Basin With Traditional Stand |
Roxor |
597.50000000 |
P |
0 |
N |
N |
N |
| 92323 |
500mm 0TH Basin With Traditional Stand |
Roxor |
597.50000000 |
P |
0 |
N |
N |
N |
| 92324 |
500mm 3TH Basin With Traditional Stand |
Roxor |
597.50000000 |
P |
0 |
N |
N |
N |
| 92161 |
Victrion 640mm Basin & Pedestal 1TH - White |
Roxor |
405.84000000 |
P |
0 |
N |
N |
N |
| 92162 |
Victrion 640mm Basin & Pedestal 2TH - White |
Roxor |
405.84000000 |
P |
0 |
N |
N |
N |
| 92163 |
Victrion 640mm Basin & Pedestal 3TH - White |
Roxor |
405.84000000 |
P |
0 |
N |
N |
N |
| 92164 |
Victrion 640mm Basin & Pedestal 1TH - White |
Roxor |
395.00000000 |
P |
0 |
N |
N |
N |
| 92165 |
Victrion 640mm Basin & Pedestal 2TH - White |
Roxor |
395.00000000 |
P |
0 |
N |
N |
N |
| 92166 |
Victrion 640mm Basin & Pedestal 3TH - White |
Roxor |
395.00000000 |
P |
0 |
N |
N |
N |
| 84712 |
Maya 850mm Basin & Pedestal |
Roxor |
336.67000000 |
P |
0 |
N |
N |
N |
| 84711 |
Maya 650mm Basin & Pedestal |
Roxor |
295.00000000 |
P |
0 |
N |
N |
N |
| 84710 |
Maya 550mm Basin & Pedestal |
Roxor |
294.17000000 |
P |
0 |
N |
N |
N |
| 84940 |
Arlo 550mm Basin & Pedestal |
Roxor |
233.33000000 |
P |
0 |
N |
N |
N |
| 84728 |
Richmond 600mm 3 Tap Hole Basin & Comfort Height Pedestal |
Roxor |
218.33000000 |
P |
0 |
N |
N |
N |
| 84729 |
Richmond 600mm 2 Tap Hole Basin & Comfort Height Pedestal |
Roxor |
218.33000000 |
P |
0 |
N |
N |
N |
| 84730 |
Richmond 600mm 1 Tap Hole Basin & Comfort Height Pedestal |
Roxor |
218.33000000 |
P |
0 |
N |
N |
N |
| 84731 |
Richmond 560mm 3 Tap Hole Basin & Comfort Height Pedestal |
Roxor |
209.17000000 |
P |
0 |
N |
N |
N |
| 84732 |
Richmond 560mm 2 Tap Hole Basin & Comfort Height Pedestal |
Roxor |
209.17000000 |
P |
0 |
N |
N |
N |
| 84733 |
Richmond 560mm 1 Tap Hole Basin & Comfort Height Pedestal |
Roxor |
209.17000000 |
P |
0 |
N |
N |
N |
| 84720 |
Richmond 600mm Basin & Pedestal 1 Tap Hole |
Roxor |
205.00000000 |
P |
0 |
N |
N |
N |
| 84723 |
Richmond 600mm Basin & Pedestal 2 Tap Hole |
Roxor |
205.00000000 |
P |
0 |
N |
N |
N |
| 84727 |
Richmond 600mm Basin & Pedestal 3 Tap Hole |
Roxor |
205.00000000 |
P |
0 |
N |
N |
N |
| 84734 |
Richmond 500mm 2 Tap Hole Basin & Comfort Height Pedestal |
Roxor |
199.17000000 |
P |
0 |
N |
N |
N |
| 84735 |
Richmond 500mm 1 Tap Hole Basin & Comfort Height Pedestal |
Roxor |
199.17000000 |
P |
0 |
N |
N |
N |
| 84719 |
Richmond 560mm Basin & Pedestal 1 Tap Hole |
Roxor |
195.83000000 |
P |
0 |
N |
N |
N |
| 84722 |
Richmond 560mm Basin & Pedestal 2 Tap Hole |
Roxor |
195.83000000 |
P |
0 |
N |
N |
N |
| 84724 |
Richmond 560mm Basin & Pedestal 3 Tap Hole |
Roxor |
195.83000000 |
P |
0 |
N |
N |
N |
| 84744 |
Carlton 560mm Basin & Pedestal 2 Tap Hole |
Roxor |
195.83000000 |
P |
0 |
N |
N |
N |
| 84718 |
Richmond 500mm Basin & Pedestal 1 Tap Hole |
Roxor |
185.83000000 |
P |
0 |
N |
N |
N |
| 84721 |
Richmond 500mm Basin & Pedestal 2 Tap Hole |
Roxor |
185.83000000 |
P |
0 |
N |
N |
N |
| 84937 |
Ambrose 500mm Basin & Pedestal |
Roxor |
184.17000000 |
P |
0 |
N |
N |
N |
| 84936 |
Ambrose 450mm Basin & Pedestal |
Roxor |
181.67000000 |
P |
0 |
N |
N |
N |
| 84949 |
Chancery 600mm Basin & Pedestal 1 Tap Hole |
Roxor |
174.17000000 |
P |
0 |
N |
N |
N |
| 84950 |
Chancery 600mm Basin & Pedestal 2 Tap Hole |
Roxor |
174.17000000 |
P |
0 |
N |
N |
N |
| 84690 |
Bliss 600mm Basin & Pedestal |
Roxor |
171.67000000 |
P |
0 |
N |
N |
N |
| 84847 |
Legend 580mm Basin & Pedestal 2 Tap Hole |
Roxor |
165.00000000 |
P |
0 |
N |
N |
N |
| 84854 |
Luna 420mm Basin & Pedestal |
Roxor |
164.17000000 |
P |
0 |
N |
N |
N |
| 84855 |
Luna 520mm Basin & Pedestal |
Roxor |
164.17000000 |
P |
0 |
N |
N |
N |
| 84689 |
Bliss 520mm Basin & Pedestal |
Roxor |
160.83000000 |
P |
0 |
N |
N |
N |
| 84754 |
Ivo 550mm 1 Tap Hole Basin & Pedestal |
Roxor |
150.00000000 |
P |
0 |
N |
N |
N |
| 84755 |
Ivo 550mm 2 Tap Hole Basin & Pedestal |
Roxor |
150.00000000 |
P |
0 |
N |
N |
N |
| 84943 |
Provost 420mm Basin & Pedestal |
Roxor |
149.17000000 |
P |
0 |
N |
N |
N |
| 84944 |
Provost 520mm Basin & Pedestal |
Roxor |
149.17000000 |
P |
0 |
N |
N |
N |
| 84958 |
Asselby 600mm Basin & Pedestal |
Roxor |
141.67000000 |
P |
0 |
N |
N |
N |
| 84952 |
Chancery 500mm Basin & Pedestal 2 Tap Hole |
Roxor |
138.33000000 |
P |
0 |
N |
N |
N |
| 84953 |
Chancery 500mm Basin & Pedestal 1 Tap Hole |
Roxor |
138.33000000 |
P |
0 |
N |
N |
N |
| 84746 |
Harmony 500mm Basin & Pedestal |
Roxor |
130.83000000 |
P |
0 |
N |
N |
N |
| 87963 |
Freya 560mm Basin & Pedestal |
Roxor |
130.83000000 |
P |
0 |
N |
N |
N |
| 87971 |
Ava 545mm Basin & Pedestal |
Roxor |
126.67000000 |
P |
0 |
N |
N |
N |
| 84861 |
Melbourne 550mm 1 Tap Hole Basin & Pedestal |
Roxor |
120.00000000 |
P |
0 |
N |
N |
N |
| 84862 |
Melbourne 550mm 2 Tap Hole Basin & Pedestal |
Roxor |
120.00000000 |
P |
0 |
N |
N |
N |
| 84851 |
Lawton 550mm Basin & Pedestal |
Roxor |
110.00000000 |
P |
0 |
N |
N |
N |
| 94451 |
BAR004 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94798 |
MIL002 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94799 |
MIL003 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94823 |
RAM002 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94824 |
RAM003 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95743 |
HCT004 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95744 |
HCT004A |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95745 |
HCT004B |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95746 |
HCT005 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95747 |
HCT005A |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95748 |
HCT005B |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95749 |
HEC002 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95750 |
HEC003 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95813 |
LUL002 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95814 |
LUL003 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95815 |
LUL004 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |