Query time 0.04885
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 |
| 99396 |
NSSQR2-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99397 |
NSSR1-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99398 |
NSSR2-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100358 |
SQU9-E5-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100395 |
SY-BEL15L-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100396 |
SY-BEL15R-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100397 |
SY-EAG15LSF-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100398 |
SY-EAG15RSF-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100400 |
SY-FSB200-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100401 |
SY-FSB202-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100402 |
SY-FSB202BLK-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100403 |
SY-FSB202MW-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100404 |
SY-FSB204MW-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100405 |
SY-FSB301-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100406 |
SY-FSB302-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100407 |
SY-FSB303-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100408 |
SY-FSB304-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100409 |
SY-FSB305-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100410 |
SY-FSB307-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100411 |
SY-FSB309-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100412 |
SY-FSB310-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100413 |
SY-FSB311-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100414 |
SY-FSB312-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100415 |
SY-FSB321L-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100416 |
SY-FSB321R-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100417 |
SY-FSB351-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100418 |
SY-FSB352-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100419 |
SY-FSB353-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100420 |
SY-FSB400-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100421 |
SY-FSB401-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100422 |
SY-FSB402-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100423 |
SY-FSB403-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100424 |
SY-FSB405-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100425 |
SY-FSB406-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100426 |
SY-FSB407-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100427 |
SY-FSB601-A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100428 |
SY-M344-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100429 |
SY-PSN13611-N-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100430 |
SY-PSN71607-N-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100477 |
SY-ZB17LS-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100478 |
SY-ZB17RS-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100500 |
TJ-LAGUNAM-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100503 |
TJ-LAGUNAS-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100849 |
WBB101-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100850 |
WBB102-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100851 |
WBB103-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100852 |
WBB104-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100857 |
WBP101-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100858 |
WBP102-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100859 |
WBP103-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100860 |
WBP104-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100861 |
WBP105-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100862 |
WBP106-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100867 |
WBS103-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100868 |
WBS104-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100869 |
WBS105-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100870 |
WBS106-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100877 |
WBS701-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100878 |
WBS702-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101055 |
BAB059-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101056 |
BAYB101HG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101057 |
BAYB101MB-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101058 |
BAYB101PG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101059 |
BAYB101SB-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101060 |
BAYB102HG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101061 |
BAYB102MB-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101062 |
BAYB102PG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101063 |
BAYB102SB-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101064 |
BAYB103HG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101065 |
BAYB103MB-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101066 |
BAYB103PG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101067 |
BAYB103SB-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101068 |
BAYB104HG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101069 |
BAYB104MB-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101070 |
BAYB104PG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101071 |
BAYB104SB-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101072 |
BAYB105HG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101073 |
BAYB105MB-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101074 |
BAYB105PG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101075 |
BAYB105SB-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101076 |
BAYB106HG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101077 |
BAYB106MB-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101078 |
BAYB106PG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101079 |
BAYB106SB-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101080 |
BAYB112HG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101081 |
BAYB112MB-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101082 |
BAYB112PG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101083 |
BAYB112SB-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101084 |
BAYB113HG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101085 |
BAYB113MB-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101086 |
BAYB113PG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101087 |
BAYB113SB-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101088 |
BAYB130-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101089 |
BAYB130HG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101090 |
BAYB130MB-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101091 |
BAYB130PG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |