Query time 0.00526
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "184.54"
},
"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": 238,
"rows_produced_per_join": 396,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.56",
"eval_cost": "39.67",
"prefix_cost": "42.49",
"data_read_per_join": "6K"
},
"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": 19,
"filtered": "5.00",
"cost_info": {
"read_cost": "59.50",
"eval_cost": "1.98",
"prefix_cost": "141.66",
"data_read_per_join": "95K"
},
"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": 19,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.98",
"eval_cost": "1.98",
"prefix_cost": "146.62",
"data_read_per_join": "75K"
},
"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": 32,
"filtered": "9.92",
"cost_info": {
"read_cost": "5.05",
"eval_cost": "3.26",
"prefix_cost": "184.54",
"data_read_per_join": "783"
},
"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 |
| 89976 |
Victrion 640mm Basin 1TH |
Roxor |
304.17000000 |
P |
0 |
N |
N |
N |
| 89977 |
Victrion 640mm Basin 2TH |
Roxor |
304.17000000 |
P |
0 |
N |
N |
N |
| 89978 |
Victrion 640mm Basin 3TH |
Roxor |
304.17000000 |
P |
0 |
N |
N |
N |
| 89979 |
Victrion 540mm Basin 1TH |
Roxor |
295.83000000 |
P |
0 |
N |
N |
N |
| 89980 |
Victrion Square Ceramic Basin 2 Tap Hole - 540mm |
Roxor |
295.83000000 |
P |
0 |
N |
N |
N |
| 89981 |
Victrion Square Ceramic Basin 3 Tap Hole - 540mm |
Roxor |
295.83000000 |
P |
0 |
N |
N |
N |
| 88069 |
Maya 850mm Basin 1 Tap Hole |
Roxor |
255.00000000 |
P |
0 |
N |
N |
N |
| 88068 |
Maya 650mm Basin 1 Tap Hole |
Roxor |
213.33000000 |
P |
0 |
N |
N |
N |
| 88067 |
Maya 550mm Basin 1 Tap Hole |
Roxor |
212.50000000 |
P |
0 |
N |
N |
N |
| 88083 |
Arlo 550mm 1 Tap Hole Basin |
Roxor |
151.67000000 |
P |
0 |
N |
N |
N |
| 87938 |
Chancery Large Basin 1 Tap Hole |
Roxor |
131.67000000 |
P |
0 |
N |
N |
N |
| 87941 |
Chancery Large Basin 2 Tap Hole |
Roxor |
131.67000000 |
P |
0 |
N |
N |
N |
| 87988 |
Bliss Square 600mm Basin 1 Tap Hole |
Roxor |
129.17000000 |
P |
0 |
N |
N |
N |
| 88052 |
Richmond Wall Hung 2 Tap Hole Basin 595mm |
Roxor |
121.67000000 |
P |
0 |
N |
N |
N |
| 88053 |
Richmond Wall Hung 1 Tap Hole Basin 595mm |
Roxor |
121.67000000 |
P |
0 |
N |
N |
N |
| 88054 |
Richmond Wall Hung 3 Tap Hole Basin 595mm |
Roxor |
121.67000000 |
P |
0 |
N |
N |
N |
| 87990 |
Bliss Square 520mm Basin 1 Tap Hole |
Roxor |
118.33000000 |
P |
0 |
N |
N |
N |
| 87961 |
Ambrose 500mm Basin 1 Tap Hole |
Roxor |
117.50000000 |
P |
0 |
N |
N |
N |
| 87959 |
Ambrose 450mm Basin 1 Tap Hole |
Roxor |
115.00000000 |
P |
0 |
N |
N |
N |
| 87998 |
Provost 420mm Small Basin 1 Tap Hole |
Roxor |
110.00000000 |
P |
0 |
N |
N |
N |
| 88000 |
Provost Medium 520mm Basin 1 Tap Hole |
Roxor |
110.00000000 |
P |
0 |
N |
N |
N |
| 88031 |
Legend Large Basin 2 Tap Hole |
Roxor |
106.67000000 |
P |
0 |
N |
N |
N |
| 87945 |
Asselby 600mm Medium Basin 1 Tap Hole |
Roxor |
100.83000000 |
P |
0 |
N |
N |
N |
| 87942 |
Chancery Small Cloakroom Basin 2 Tap Hole |
Roxor |
95.83000000 |
P |
0 |
N |
N |
N |
| 87964 |
550mm Basin 1TH |
Roxor |
95.83000000 |
P |
0 |
N |
N |
N |
| 88018 |
Ivo Large Basin 1 Tap Hole |
Roxor |
93.33000000 |
P |
0 |
N |
N |
N |
| 88021 |
Ivo 550 Basin 2 Tap Hole |
Roxor |
93.33000000 |
P |
0 |
N |
N |
N |
| 88006 |
Harmony 500mm Basin 1 Tap Hole |
Roxor |
87.50000000 |
P |
0 |
N |
N |
N |
| 88013 |
Melbourne Large Basin 1 Tap Hole |
Roxor |
87.50000000 |
P |
0 |
N |
N |
N |
| 88015 |
Melbourne Large Basin 2 Tap Hole |
Roxor |
87.50000000 |
P |
0 |
N |
N |
N |
| 87972 |
545mm Basin 1TH |
Roxor |
86.67000000 |
P |
0 |
N |
N |
N |
| 87944 |
Asselby Small Cloakroom Basin 1 Tap Hole |
Roxor |
80.00000000 |
P |
0 |
N |
N |
N |
| 88154 |
Lawton 560mm Basin 1 Tap Hole |
Roxor |
77.50000000 |
P |
0 |
N |
N |
N |
| 94484 |
BAYC001 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94486 |
BAYC003 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94487 |
BAYC004 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94488 |
BAYC005 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94489 |
BAYC006 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94490 |
BAYC007 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94491 |
BAYC008 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94493 |
BAYC010 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94494 |
BAYC013 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94505 |
BAYC024 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94506 |
BAYC025 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94507 |
BAYC026 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94509 |
BAYC101 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94511 |
BAYC103 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94512 |
BAYC104 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94513 |
BAYC105 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94516 |
BAYC201 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94517 |
BAYC202 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94518 |
BAYC203 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94519 |
BAYC204 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94520 |
BAYC205 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94521 |
BAYC206 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94522 |
BAYC221 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94523 |
BAYC222 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94524 |
BAYC223 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94525 |
BAYC224 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94526 |
BAYC225 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94527 |
BAYC226 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94528 |
BAYC227 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94529 |
BAYC228 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94530 |
BAYC229 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94531 |
BAYC230 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94532 |
BAYC231 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94533 |
BAYC232 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94534 |
BAYC233 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94535 |
BAYC234 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94536 |
BAYC235 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94537 |
BAYC236 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94538 |
BAYC237 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94539 |
BAYC238 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94540 |
BAYC239 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94541 |
BAYC240 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94542 |
BAYC241 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94543 |
BAYC242 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94544 |
BAYC243 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94545 |
BAYC244 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94546 |
BAYC245 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94547 |
BAYC246 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94548 |
BAYC247 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94549 |
BAYC248 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94550 |
BAYC249 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94551 |
BAYC250 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94552 |
BAYC251 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94553 |
BAYC252 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94554 |
BAYC253 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94555 |
BAYC254 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94556 |
BAYC255 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94557 |
BAYC256 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94573 |
BAYC301 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94575 |
BAYC303 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94576 |
BAYC304 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94577 |
BAYC305 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94578 |
BAYC306 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |