Query time 0.01357
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "132.63"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "const",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.10",
"prefix_cost": "0.00",
"data_read_per_join": "2K"
},
"used_columns": [
"category_id",
"usergroup_ids",
"status",
"storefront_id"
]
}
},
{
"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": "products_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 384,
"rows_produced_per_join": 240,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.24",
"eval_cost": "24.00",
"prefix_cost": "26.51",
"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": "60.00",
"eval_cost": "1.20",
"prefix_cost": "110.51",
"data_read_per_join": "57K"
},
"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": "3.00",
"eval_cost": "1.20",
"prefix_cost": "114.71",
"data_read_per_join": "45K"
},
"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": 13,
"filtered": "8.99",
"cost_info": {
"read_cost": "3.04",
"eval_cost": "1.34",
"prefix_cost": "132.63",
"data_read_per_join": "321"
},
"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 |
| 99021 |
NAV304-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99023 |
NAV404-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99025 |
NAV804-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99528 |
PK350-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99562 |
PN321-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99563 |
PN322-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99564 |
PN421-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99565 |
PN821-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100144 |
SAN304-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100147 |
SAN316-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100149 |
SAN334-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100293 |
SOA304-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100295 |
SOT304-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100483 |
TAT304-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100488 |
TEL354-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100492 |
TEX354-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100497 |
TIW354-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100537 |
TMO354-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100539 |
TMU304-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100595 |
TSI304-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100597 |
TSI404-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100612 |
TT004-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100616 |
TT107-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100618 |
TT1105-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100619 |
TT204-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100621 |
TT207-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100622 |
TT304-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100624 |
TT404-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100626 |
TT406-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100627 |
TT504-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100629 |
TT604-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100631 |
TT704-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100633 |
TT706-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100635 |
TT752-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100637 |
TT762-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100639 |
TT772-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100641 |
TTR-CLU01-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100645 |
TTR-LEV01-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100880 |
WIL304-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100881 |
WIN005-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100883 |
WIN1521-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100890 |
WIN304-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100893 |
WIN314-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100894 |
WIN316-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100895 |
WIN321-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100897 |
WIN334-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100899 |
WIN421-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100906 |
WIN721-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100912 |
WIN821-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101107 |
ESK314C-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101108 |
ESK314P-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101109 |
ESK321-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101116 |
ESK414C-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101117 |
ESK414P-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101118 |
ESK421-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101125 |
ESK814C-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101126 |
ESK814P-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101127 |
ESK821-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101509 |
RIV314C-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101510 |
RIV314P-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101511 |
RIV321-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101518 |
RIV414C-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101519 |
RIV414P-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101520 |
RIV421-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101527 |
RIV814C-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101528 |
RIV814P-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101529 |
RIV821-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101547 |
STP314C-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101548 |
STP314P-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101549 |
STP321-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101556 |
STP414C-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101557 |
STP414P-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101558 |
STP421-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101565 |
STP814C-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101566 |
STP814P-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101567 |
STP821-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101804 |
SY-VG05BB |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101805 |
SY-VG05BB-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101806 |
SY-VG05BP |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101807 |
SY-VG05BP-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101808 |
SY-VG05BZ |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101809 |
SY-VG05BZ-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101810 |
SY-VG05CR |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101811 |
SY-VG05CR-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101812 |
SY-VG05MB |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101813 |
SY-VG05MB-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |