Query time 0.02701
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "34.26"
},
"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": "12.50",
"cost_info": {
"read_cost": "2.20",
"eval_cost": "0.06",
"prefix_cost": "2.26",
"data_read_per_join": "3K"
},
"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": 12,
"rows_produced_per_join": 0,
"filtered": "4.00",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "3.36",
"eval_cost": "0.03",
"prefix_cost": "5.65",
"data_read_per_join": "801"
},
"used_columns": [
"category_id",
"usergroup_ids",
"status",
"storefront_id"
],
"attached_condition": "((`nuie_scalesta_net`.`cscart_categories`.`category_id` in (7168,7169,7172,7173,7174,7175,7176,7177,7178,7179,7180,7181)) 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": 175,
"rows_produced_per_join": 52,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.09",
"eval_cost": "5.26",
"prefix_cost": "11.00",
"data_read_per_join": "841"
},
"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": "13.15",
"eval_cost": "0.26",
"prefix_cost": "29.41",
"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.66",
"eval_cost": "0.26",
"prefix_cost": "30.33",
"data_read_per_join": "10K"
},
"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": 12,
"rows_produced_per_join": 2,
"filtered": "8.99",
"cost_info": {
"read_cost": "0.67",
"eval_cost": "0.29",
"prefix_cost": "34.26",
"data_read_per_join": "70"
},
"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 |
| 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 |
| 95035 |
AQVEN8103 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95036 |
AQVEN8104 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95037 |
AQVEN8105 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95038 |
AQVEN8106 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95039 |
AQVEN8107 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95040 |
AQVEN8108 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95041 |
AQVEN8109 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95042 |
AQVEN8110 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95043 |
AQVEN8111 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95044 |
AQVEN8112 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95045 |
AQVEN8113 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95046 |
AQVEN8114 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95047 |
AQVEN8115 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95048 |
AQVEN8116 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95049 |
AQVEN8117 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95050 |
AQVEN8118 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95051 |
AQVEN8119 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95052 |
AQVEN8120 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95053 |
AQVEN8121 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95054 |
AQVEN8122 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95055 |
AQVEN8123 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95056 |
AQVEN8124 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95057 |
AQVEN8125 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95058 |
AQVEN8126 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95059 |
AQVEN8127 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95060 |
AQVEN8128 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95061 |
AQVEN8129 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95062 |
AQVEN8130 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95063 |
AQVEN8131 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95064 |
AQVEN8132 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95065 |
AQVEN8133 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95066 |
AQVEN8135 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95067 |
AQVEN8136 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95068 |
AQVEN8137 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95069 |
AQVEN8138 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95070 |
AQVEN8139 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95071 |
AQVEN8140 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95072 |
AQVEN8141 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95073 |
AQVEN8142 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95074 |
AQVEN8143 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95075 |
AQVEN8144 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95076 |
AQVEN8145 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95077 |
AQVEN8146 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95078 |
AQVEN8147 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95079 |
AQVEN8148 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95080 |
AQVEN8149 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95081 |
AQVEN8150 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95082 |
AQVEN8151 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95083 |
AQVEN8152 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95084 |
AQVEN8159 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95085 |
AQVEN8160 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95086 |
AQVEN8161 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95087 |
AQVEN8162 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95088 |
AQVEN8163 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |