Query time 0.02800
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "19.55"
},
"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": 8,
"rows_produced_per_join": 0,
"filtered": "4.00",
"cost_info": {
"read_cost": "3.58",
"eval_cost": "0.03",
"prefix_cost": "3.62",
"data_read_per_join": "855"
},
"used_columns": [
"category_id",
"usergroup_ids",
"status",
"storefront_id"
],
"attached_condition": "((`nuie_scalesta_net`.`cscart_categories`.`category_id` in (7257,7258,7259,7260,7261,7262,7265,7309)) 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": 0,
"filtered": "14.29",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "0.70",
"eval_cost": "0.02",
"prefix_cost": "4.34",
"data_read_per_join": "1K"
},
"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": 26,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.07",
"eval_cost": "2.69",
"prefix_cost": "7.10",
"data_read_per_join": "430"
},
"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": 1,
"filtered": "5.00",
"cost_info": {
"read_cost": "6.72",
"eval_cost": "0.13",
"prefix_cost": "16.51",
"data_read_per_join": "6K"
},
"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": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.34",
"eval_cost": "0.13",
"prefix_cost": "16.98",
"data_read_per_join": "5K"
},
"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": 2,
"filtered": "9.92",
"cost_info": {
"read_cost": "0.34",
"eval_cost": "0.22",
"prefix_cost": "19.55",
"data_read_per_join": "53"
},
"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 |
| 98785 |
LOM233-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98786 |
LOM234-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98787 |
LOM235-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98788 |
LOM236-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98789 |
LOM237-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98790 |
LOM238-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98791 |
LOM245-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98792 |
LOM246-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98793 |
LOM247-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98794 |
LOM248-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98795 |
LOM249-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98796 |
LOM250-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98797 |
LOM263-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98798 |
LOM264-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98799 |
LOM265-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98800 |
LOM266-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98801 |
LOM267-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98802 |
LOM268-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98803 |
LOM269-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98804 |
LOM270-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98805 |
LOM271-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98806 |
LOM272-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98807 |
LOM273-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98808 |
LOM274-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98809 |
LOM275-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98810 |
LOM276-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98811 |
LOM277-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98812 |
LOM278-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98813 |
LOM279-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98814 |
LOM280-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98874 |
LSM222-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98875 |
LSM228-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98876 |
LSM234-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98877 |
LSM246-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98878 |
LUL300-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98879 |
LUL300C-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98880 |
LXBW005-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98881 |
LXBW006-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98886 |
LXCH106-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98887 |
LXCH606-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98888 |
LXCU700-M |
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 |
| 99067 |
NBV001-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99077 |
NBV160-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99078 |
NBV161-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99081 |
NBV164-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99082 |
NBV165-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99110 |
NCA100-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99111 |
NCA101-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99112 |
NCA102-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99113 |
NCA103-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99114 |
NCA104-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99115 |
NCA122-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99116 |
NCA124-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99117 |
NCA203-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99118 |
NCA204-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99119 |
NCA205-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99120 |
NCA220-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99121 |
NCA370-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99122 |
NCA371-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99123 |
NCA380-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99124 |
NCA381-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99125 |
NCA620-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99126 |
NCA621-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99127 |
NCB500-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99128 |
NCB500A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99129 |
NCB501-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99130 |
NCB502-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99131 |
NCB503-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99132 |
NCB522-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99134 |
NCG302-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99135 |
NCG303-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99143 |
NCG402-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99144 |
NCG403-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99162 |
NCH100B-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99163 |
NCH101-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99164 |
NCH102-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99165 |
NCH103-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99166 |
NCH105-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99168 |
NCH107-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99171 |
NCH400-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99172 |
NCH401-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99173 |
NCH402-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99174 |
NCH403-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99175 |
NCH404-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99176 |
NCH407-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99177 |
NCH600B-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |