Query time 0.08373
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "129.83"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"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": 31,
"rows_produced_per_join": 1,
"filtered": "4.00",
"cost_info": {
"read_cost": "13.86",
"eval_cost": "0.12",
"prefix_cost": "13.98",
"data_read_per_join": "3K"
},
"used_columns": [
"category_id",
"usergroup_ids",
"status",
"storefront_id"
],
"attached_condition": "((`nuie_scalesta_net`.`cscart_categories`.`category_id` in (7148,7149,7150,7151,7152,7160,7161,7162,7227,7156,7157,7194,7218,7158,7159,7247,7263,7163,7164,7207,7208,7224,7243,7225,7283,7266,7267,7313,7314,7342,7348)) 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": "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": 2,
"filtered": "33.33",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "2.60",
"eval_cost": "0.21",
"prefix_cost": "16.79",
"data_read_per_join": "13K"
},
"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": [
"nuie_scalesta_net.cscart_categories.category_id"
],
"rows_examined_per_scan": 117,
"rows_produced_per_join": 243,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.60",
"eval_cost": "24.31",
"prefix_cost": "41.71",
"data_read_per_join": "3K"
},
"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": 12,
"filtered": "5.00",
"cost_info": {
"read_cost": "36.47",
"eval_cost": "1.22",
"prefix_cost": "102.48",
"data_read_per_join": "58K"
},
"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": 12,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.48",
"eval_cost": "1.22",
"prefix_cost": "106.17",
"data_read_per_join": "46K"
},
"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": 19,
"filtered": "9.92",
"cost_info": {
"read_cost": "3.51",
"eval_cost": "2.00",
"prefix_cost": "129.83",
"data_read_per_join": "479"
},
"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 |
| 98955 |
MPC2335-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98956 |
MPC2605-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98957 |
MPC2607-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98958 |
MPC2611-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98959 |
MPC2612-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98960 |
MPC2613-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98961 |
MPC2631-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98962 |
MPC2635-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98963 |
MPC3105-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98964 |
MPC3107-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98965 |
MPC3111-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98966 |
MPC3112-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98967 |
MPC3113-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98968 |
MPC3131-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98969 |
MPC3135-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98970 |
MPC3205-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98971 |
MPC3207-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98972 |
MPC3211-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98973 |
MPC3212-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98974 |
MPC3213-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98975 |
MPC3231-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98976 |
MPC3235-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98977 |
MPD2505-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98978 |
MPD2507-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98979 |
MPD2511-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98980 |
MPD2512-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98981 |
MPD2513-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98982 |
MPD2531-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98983 |
MPD2535-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98984 |
MPD2705-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98985 |
MPD2707-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98986 |
MPD2711-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98987 |
MPD2712-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98988 |
MPD2713-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98989 |
MPD2731-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98990 |
MPD2735-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98991 |
MPD3005-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98992 |
MPD3007-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98993 |
MPD3011-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98994 |
MPD3012-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98995 |
MPD3013-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98996 |
MPD3031-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98997 |
MPD3035-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98998 |
MPD505N-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98999 |
MPD507N-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99000 |
MPD511N-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99001 |
MPD512N-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99002 |
MPD513N-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99003 |
MPD531N-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99004 |
MPD535N-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99005 |
MPD605N-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99006 |
MPD607N-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99007 |
MPD611N-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99008 |
MPD612N-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99009 |
MPD613N-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99010 |
MPD631N-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99011 |
MPD635N-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99056 |
NBC001-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99057 |
NBC002-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99058 |
NBC003-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99059 |
NBC004-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99060 |
NBC005-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99061 |
NBC006-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99062 |
NBC007-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99063 |
NBC101-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99064 |
NBC102-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99065 |
NBC103-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99066 |
NBL001-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99067 |
NBV001-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99133 |
NCB699-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99141 |
NCG398-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99142 |
NCG399-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99151 |
NCG496-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99152 |
NCG499-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99169 |
NCH196-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99170 |
NCH198-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99248 |
NCT699-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99257 |
NCU699-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99262 |
NCU799-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99322 |
NLS198-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99323 |
NLS199-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99324 |
NLV003-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99325 |
NLV005-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99326 |
NLV007-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99327 |
NLV033-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99328 |
NLV035-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99329 |
NLV037-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99333 |
NMP131-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99334 |
NMP131W-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99335 |
NMP135-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99336 |
NMP135W-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99337 |
NMP1431-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99338 |
NMP1435-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99339 |
NMP1800W-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99340 |
NMP2931-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99341 |
NMP2935-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |