Query time 0.04889
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "51.17"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"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": 0,
"filtered": "14.29",
"cost_info": {
"read_cost": "2.19",
"eval_cost": "0.07",
"prefix_cost": "2.26",
"data_read_per_join": "4K"
},
"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": "cscart_categories",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"rows_examined_per_scan": 22,
"rows_produced_per_join": 0,
"filtered": "4.00",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "7.03",
"eval_cost": "0.06",
"prefix_cost": "9.35",
"data_read_per_join": "1K"
},
"used_columns": [
"category_id",
"usergroup_ids",
"status",
"storefront_id"
],
"attached_condition": "((`nuie_scalesta_net`.`cscart_categories`.`category_id` in (7165,7166,7167,7193,7168,7169,7172,7173,7174,7175,7176,7177,7178,7179,7180,7181,7182,7183,7226,7318,7319,7328)) and ((`nuie_scalesta_net`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`nuie_scalesta_net`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`nuie_scalesta_net`.`cscart_categories`.`usergroup_ids`))) and (`nuie_scalesta_net`.`cscart_categories`.`status` in ('A','H')) and (`nuie_scalesta_net`.`cscart_categories`.`storefront_id` in (0,1)))"
}
},
{
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"nuie_scalesta_net.cscart_categories.category_id"
],
"rows_examined_per_scan": 117,
"rows_produced_per_join": 73,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.18",
"eval_cost": "7.39",
"prefix_cost": "16.93",
"data_read_per_join": "1K"
},
"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": 3,
"filtered": "5.00",
"cost_info": {
"read_cost": "18.48",
"eval_cost": "0.37",
"prefix_cost": "42.81",
"data_read_per_join": "17K"
},
"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": 3,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.92",
"eval_cost": "0.37",
"prefix_cost": "44.10",
"data_read_per_join": "14K"
},
"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": 6,
"filtered": "9.92",
"cost_info": {
"read_cost": "0.94",
"eval_cost": "0.61",
"prefix_cost": "51.17",
"data_read_per_join": "145"
},
"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 |
| 94311 |
ENZW147 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94312 |
ENZW148 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94313 |
ENZW149 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94314 |
ENZW150 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94315 |
ENZW151 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94316 |
ENZW152 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94317 |
ENZW153 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94318 |
ENZW154 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94319 |
ENZW155 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94320 |
ENZW156 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94321 |
ENZW157 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94322 |
ENZW158 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94323 |
ENZW159 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94324 |
ENZW160 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94325 |
ENZW161 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94326 |
ENZW162 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94327 |
ENZW163 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94328 |
ENZW164 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94329 |
ENZW165 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94330 |
ENZW166 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94331 |
ENZW167 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94332 |
ENZW168 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94381 |
WRSF009 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94838 |
SMQ9E1-E6 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94849 |
2381276SIDE-Q |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94958 |
AQVEN6106 |
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 |
| 94983 |
AQVEN6161 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94984 |
AQVEN6162 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94985 |
AQVEN6163 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94986 |
AQVEN6164 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94987 |
AQVEN6165 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94988 |
AQVEN6166 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94989 |
AQVEN6167 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94990 |
AQVEN6168 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94991 |
AQVEN6169 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94992 |
AQVEN6170 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94993 |
AQVEN6171 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94994 |
AQVEN6172 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94995 |
AQVEN6173 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94996 |
AQVEN6174 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94997 |
AQVEN6175 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94998 |
AQVEN6182 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94999 |
AQVEN6183 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95000 |
AQVEN6184 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95001 |
AQVEN6185 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95002 |
AQVEN6186 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95003 |
AQVEN6187 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95004 |
AQVEN6188 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95005 |
AQVEN6192 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95006 |
AQVEN6193 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95007 |
AQVEN6202 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95008 |
AQVEN6206 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95009 |
AQVEN6207 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95010 |
AQVEN6227 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95011 |
AQVEN6228 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95012 |
AQVEN6229 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95013 |
AQVEN6230 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95014 |
AQVEN6231 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95015 |
AQVEN6232 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95016 |
AQVEN6233 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95017 |
AQVEN6234 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95018 |
AQVEN6235 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95019 |
AQVEN6236 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95020 |
AQVEN6237 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95021 |
AQVEN6238 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95022 |
AQVEN6239 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95023 |
AQVEN6240 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95024 |
AQVEN6241 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95025 |
AQVEN6242 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95026 |
AQVEN6243 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95027 |
AQVEN6244 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95028 |
AQVEN6245 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95029 |
AQVEN6246 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95030 |
AQVEN6247 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95031 |
AQVEN6248 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95032 |
AQVEN6249 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95033 |
AQVEN6250 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95034 |
AQVEN6270 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |