Query time 0.04728
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "35.61"
},
"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": 15,
"rows_produced_per_join": 0,
"filtered": "4.00",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "4.79",
"eval_cost": "0.04",
"prefix_cost": "7.10",
"data_read_per_join": "1K"
},
"used_columns": [
"category_id",
"usergroup_ids",
"status",
"storefront_id"
],
"attached_condition": "((`nuie_scalesta_net`.`cscart_categories`.`category_id` in (7195,7196,7222,7251,7252,7253,7254,7284,7285,7286,7287,7316,7317,7330,7331)) 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": 50,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.13",
"eval_cost": "5.04",
"prefix_cost": "12.27",
"data_read_per_join": "806"
},
"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": 2,
"filtered": "5.00",
"cost_info": {
"read_cost": "12.60",
"eval_cost": "0.25",
"prefix_cost": "29.91",
"data_read_per_join": "12K"
},
"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": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.63",
"eval_cost": "0.25",
"prefix_cost": "30.79",
"data_read_per_join": "9K"
},
"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": 4,
"filtered": "9.92",
"cost_info": {
"read_cost": "0.64",
"eval_cost": "0.41",
"prefix_cost": "35.61",
"data_read_per_join": "99"
},
"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 |
| 97167 |
BAB032GMS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97168 |
BAB032IG-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97169 |
BAB032IGS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97170 |
BAB032KG-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97171 |
BAB032KGS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97172 |
BAB032M-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97173 |
BAB032ME-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97174 |
BAB032MES-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97175 |
BAB032MS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97176 |
BAB032PG-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97177 |
BAB032PGS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97178 |
BAB032R-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97179 |
BAB032RS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97180 |
BAB032S-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97181 |
BAB033-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97182 |
BAB033S-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97183 |
BAB035-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97184 |
BAB035B-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97185 |
BAB035BS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97186 |
BAB035F-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97187 |
BAB035FS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97188 |
BAB035GM-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97189 |
BAB035GMS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97190 |
BAB035IG-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97191 |
BAB035IGS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97192 |
BAB035KG-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97193 |
BAB035KGS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97194 |
BAB035M-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97195 |
BAB035MS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97196 |
BAB035PG-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97197 |
BAB035PGS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97198 |
BAB035R-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97199 |
BAB035RS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97200 |
BAB035S-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97201 |
BAB045-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97202 |
BAB045B-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97203 |
BAB045BS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97204 |
BAB045F-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97205 |
BAB045FS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97206 |
BAB045GM-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97207 |
BAB045GMS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97208 |
BAB045IG-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97209 |
BAB045IGS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97210 |
BAB045KG-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97211 |
BAB045KGS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97212 |
BAB045M-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97213 |
BAB045MS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97214 |
BAB045PG-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97215 |
BAB045PGS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97216 |
BAB045R-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97217 |
BAB045RS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97218 |
BAB045S-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97228 |
BAB051-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97229 |
BAB051B-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97230 |
BAB051BS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97231 |
BAB051F-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97232 |
BAB051FS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97233 |
BAB051GM-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97234 |
BAB051GMS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97235 |
BAB051IG-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97236 |
BAB051IGS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97237 |
BAB051KG-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97238 |
BAB051KGS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97239 |
BAB051M-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97240 |
BAB051MS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97241 |
BAB051PG-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97242 |
BAB051PGS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97243 |
BAB051R-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97244 |
BAB051RS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97245 |
BAB051S-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97246 |
BAB052-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97247 |
BAB052S-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97248 |
BAB053-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97249 |
BAB053S-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97250 |
BAB054-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97251 |
BAB054S-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97252 |
BAB055-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97253 |
BAB055B-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97254 |
BAB055BS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97255 |
BAB055F-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97256 |
BAB055FS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97257 |
BAB055GM-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97258 |
BAB055GMS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97259 |
BAB055IG-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97260 |
BAB055IGS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97261 |
BAB055KG-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97262 |
BAB055KGS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97263 |
BAB055M-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97264 |
BAB055MS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97265 |
BAB055PG-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97266 |
BAB055PGS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97267 |
BAB055R-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97268 |
BAB055RS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97269 |
BAB055S-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97270 |
BAB056-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97271 |
BAB056S-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |