Query time 0.00298
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "67.63"
},
"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": 85,
"rows_produced_per_join": 141,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.47",
"eval_cost": "14.17",
"prefix_cost": "16.90",
"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": 7,
"filtered": "5.00",
"cost_info": {
"read_cost": "21.25",
"eval_cost": "0.71",
"prefix_cost": "52.31",
"data_read_per_join": "33K"
},
"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": 7,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.06",
"eval_cost": "0.71",
"prefix_cost": "54.09",
"data_read_per_join": "27K"
},
"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": 11,
"filtered": "9.92",
"cost_info": {
"read_cost": "1.80",
"eval_cost": "1.17",
"prefix_cost": "67.63",
"data_read_per_join": "279"
},
"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 |
| 82485 |
Pacific 800mm Bi-Fold Door 4mm Glass |
Roxor |
408.33000000 |
P |
0 |
N |
N |
N |
| 89533 |
Enclosures Rene 900mm Bi-Fold Shower Door |
Roxor |
370.00000000 |
P |
0 |
N |
N |
N |
| 85606 |
Ella 800mm Bi-Fold Door 5mm Glass |
Roxor |
365.83000000 |
P |
0 |
N |
N |
N |
| 85605 |
Ella 760mm Bi-Fold Door 5mm Glass |
Roxor |
359.17000000 |
P |
0 |
N |
N |
N |
| 89532 |
Enclosures Rene 800mm Bi-Fold Shower Door |
Roxor |
346.67000000 |
P |
0 |
N |
N |
N |
| 93902 |
SMBD76-E6 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93903 |
SMBD76BB-E6 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93904 |
SMBD76BP-E6 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93905 |
SMBD7BB-E6 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93906 |
SMBD7BP-E6 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93910 |
SMBD9-E6 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93911 |
SMBD9BB-E6 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93912 |
SMBD9BP-E6 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94965 |
AQVEN6143 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94966 |
AQVEN6144 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94967 |
AQVEN6145 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94968 |
AQVEN6146 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94969 |
AQVEN6147 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94970 |
AQVEN6148 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94971 |
AQVEN6149 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94972 |
AQVEN6150 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94973 |
AQVEN6151 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94974 |
AQVEN6152 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94975 |
AQVEN6153 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94976 |
AQVEN6154 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94977 |
AQVEN6155 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94978 |
AQVEN6156 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94979 |
AQVEN6157 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94980 |
AQVEN6158 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94981 |
AQVEN6159 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94982 |
AQVEN6160 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95450 |
2381000BIF-Q |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95459 |
2381100BIF-Q |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95463 |
2381200BIF-Q |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95511 |
238700BIF-Q |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95512 |
238700BIFBB-Q |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95513 |
238700BIFK-Q |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95517 |
238760BIF-Q |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95518 |
238760BIFBB-Q |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95519 |
238760BIFK-Q |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95527 |
238800BIFBB-Q |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95528 |
238800BIFK-Q |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95542 |
238900BIF-Q |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95543 |
238900BIFBB-Q |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95544 |
238900BIFK-Q |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96792 |
AQBD8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96848 |
AQVEN6143-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96849 |
AQVEN6144-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96850 |
AQVEN6145-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96851 |
AQVEN6146-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96852 |
AQVEN6147-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96853 |
AQVEN6148-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96854 |
AQVEN6149-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96855 |
AQVEN6150-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96856 |
AQVEN6151-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96857 |
AQVEN6152-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96858 |
AQVEN6153-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96859 |
AQVEN6154-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96860 |
AQVEN6155-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96861 |
AQVEN6156-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96862 |
AQVEN6157-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96863 |
AQVEN6158-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96864 |
AQVEN6159-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96865 |
AQVEN6160-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98509 |
ERBD76-E5-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98510 |
ERBD80-E5-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100187 |
SMBD76-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100188 |
SMBD76BB-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100189 |
SMBD76BP-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100190 |
SMBD7BB-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100191 |
SMBD7BP-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100195 |
SMBD9-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100196 |
SMBD9BB-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100197 |
SMBD9BP-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100298 |
SQBD80-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100300 |
SQBD90-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |