Query time 0.04094
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "79.63"
},
"ordering_operation": {
"using_filesort": false,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "companies",
"access_type": "ALL",
"possible_keys": [
"PRIMARY"
],
"rows_examined_per_scan": 2,
"rows_produced_per_join": 1,
"filtered": "50.00",
"cost_info": {
"read_cost": "0.62",
"eval_cost": "0.10",
"prefix_cost": "0.72",
"data_read_per_join": "5K"
},
"used_columns": [
"company_id",
"status",
"company"
],
"attached_condition": "(`gaseus`.`companies`.`status` = 'A')"
}
},
{
"table": {
"table_name": "cscart_categories",
"access_type": "ALL",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"rows_examined_per_scan": 46,
"rows_produced_per_join": 1,
"filtered": "4.00",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "5.17",
"eval_cost": "0.18",
"prefix_cost": "6.07",
"data_read_per_join": "7K"
},
"used_columns": [
"category_id",
"storefront_id",
"usergroup_ids",
"status"
],
"attached_condition": "(((`gaseus`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`gaseus`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`gaseus`.`cscart_categories`.`usergroup_ids`))) and (`gaseus`.`cscart_categories`.`status` in ('A','H')) and (`gaseus`.`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": [
"gaseus.cscart_categories.category_id"
],
"rows_examined_per_scan": 83,
"rows_produced_per_join": 152,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "1.40",
"eval_cost": "15.27",
"prefix_cost": "22.75",
"data_read_per_join": "2K"
},
"used_columns": [
"product_id",
"category_id"
]
}
},
{
"table": {
"table_name": "variation_group_products",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"gaseus.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 7,
"filtered": "5.00",
"using_index": true,
"cost_info": {
"read_cost": "38.18",
"eval_cost": "0.76",
"prefix_cost": "76.20",
"data_read_per_join": "122"
},
"used_columns": [
"product_id",
"group_id"
],
"attached_condition": "(`gaseus`.`variation_group_products`.`group_id` in (887,888,891,892,897,898,899,900,893,894))"
}
},
{
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"status"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"gaseus.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "9.96",
"cost_info": {
"read_cost": "1.91",
"eval_cost": "0.08",
"prefix_cost": "78.87",
"data_read_per_join": "4K"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"amount",
"usergroup_ids",
"parent_product_id"
],
"attached_condition": "((`gaseus`.`products`.`company_id` = `gaseus`.`companies`.`company_id`) and ((`gaseus`.`products`.`usergroup_ids` = '') or (0 <> find_in_set(0,`gaseus`.`products`.`usergroup_ids`)) or (0 <> find_in_set(1,`gaseus`.`products`.`usergroup_ids`))) and (`gaseus`.`products`.`status` = 'A'))"
}
},
{
"table": {
"table_name": "shared_descr",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"product_id",
"company_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id",
"lang_code",
"company_id"
],
"key_length": "13",
"ref": [
"gaseus.products_categories.product_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.22",
"eval_cost": "0.08",
"prefix_cost": "79.17",
"data_read_per_join": "2K"
},
"used_columns": [
"product_id",
"lang_code",
"company_id",
"product"
]
}
},
{
"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": [
"gaseus.products_categories.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.38",
"eval_cost": "0.08",
"prefix_cost": "79.63",
"data_read_per_join": "3K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
Result
| product_id |
amount |
product |
company_name |
variation_group_id |
product_type |
parent_product_id |
| 12956 |
0 |
Single-bundle acetylene manifold station Vulkan TecLine EB10 |
Gaseus |
891 |
P |
0 |
| 12957 |
0 |
Single-bundle acetylene manifold station Vulkan TecLine EB10 |
Gaseus |
891 |
V |
12956 |
| 12958 |
0 |
Single-bundle acetylene manifold station Vulkan TecLine EB20 |
Gaseus |
892 |
P |
0 |
| 12959 |
0 |
Single-bundle acetylene manifold station Vulkan TecLine EB20 |
Gaseus |
892 |
V |
12958 |
| 12960 |
0 |
Single-bundle manifold station Vulkan TecLine EB60/300 |
Gaseus |
893 |
P |
0 |
| 12961 |
0 |
Single-bundle manifold station Vulkan TecLine EB60/300 |
Gaseus |
893 |
V |
12960 |
| 12962 |
0 |
Single-bundle manifold station Vulkan TecLine EB60/300 |
Gaseus |
893 |
V |
12960 |
| 12963 |
0 |
Single-bundle manifold station Vulkan TecLine EB60/300 |
Gaseus |
893 |
V |
12960 |
| 12964 |
0 |
Single-bundle manifold station Vulkan TecLine EB60/300 |
Gaseus |
893 |
V |
12960 |
| 12965 |
0 |
Single-bundle manifold station Vulkan TecLine EB60/300 |
Gaseus |
893 |
V |
12960 |
| 12966 |
0 |
Single-bundle manifold station Vulkan TecLine EB60/300 |
Gaseus |
893 |
V |
12960 |
| 12967 |
0 |
Single-bundle manifold station Vulkan TecLine EB60/300 |
Gaseus |
893 |
V |
12960 |
| 12968 |
0 |
Single-bundle manifold station Vulkan TecLine EB60/300 |
Gaseus |
893 |
V |
12960 |
| 12969 |
0 |
Single-bundle manifold station Vulkan TecLine EB60/300 |
Gaseus |
893 |
V |
12960 |
| 12970 |
0 |
Single-bundle manifold station Vulkan TecLine EB60/300 |
Gaseus |
893 |
V |
12960 |
| 12971 |
0 |
Single-bundle manifold station Vulkan TecLine EB60/300 |
Gaseus |
893 |
V |
12960 |
| 12972 |
0 |
Single-bundle manifold station Vulkan TecLine EB60/300 |
Gaseus |
893 |
V |
12960 |
| 12973 |
0 |
Single-bundle manifold station Vulkan TecLine EB60/300 |
Gaseus |
893 |
V |
12960 |
| 12974 |
0 |
Single-bundle manifold station Vulkan TecLine EB70/300 |
Gaseus |
894 |
P |
0 |
| 12975 |
0 |
Single-bundle manifold station Vulkan TecLine EB70/300 |
Gaseus |
894 |
V |
12974 |
| 12976 |
0 |
Single-bundle manifold station Vulkan TecLine EB70/300 |
Gaseus |
894 |
V |
12974 |
| 12977 |
0 |
Single-bundle manifold station Vulkan TecLine EB70/300 |
Gaseus |
894 |
V |
12974 |
| 12978 |
0 |
Single-bundle manifold station Vulkan TecLine EB70/300 |
Gaseus |
894 |
V |
12974 |
| 12979 |
0 |
Single-bundle manifold station Vulkan TecLine EB70/300 |
Gaseus |
894 |
V |
12974 |
| 12980 |
0 |
Single-bundle manifold station Vulkan TecLine EB70/300 |
Gaseus |
894 |
V |
12974 |
| 12981 |
0 |
Single-bundle manifold station Vulkan TecLine EB70/300 |
Gaseus |
894 |
V |
12974 |
| 12982 |
0 |
Single-bundle manifold station Vulkan TecLine EB70/300 |
Gaseus |
894 |
V |
12974 |
| 12983 |
0 |
Single-bundle manifold station Vulkan TecLine EB70/300 |
Gaseus |
894 |
V |
12974 |
| 12984 |
0 |
Single-bundle manifold station Vulkan TecLine EB70/300 |
Gaseus |
894 |
V |
12974 |
| 12985 |
0 |
Single-bundle manifold station Vulkan TecLine EB70/300 |
Gaseus |
894 |
V |
12974 |
| 12986 |
0 |
Single-bundle manifold station Vulkan TecLine EB70/300 |
Gaseus |
894 |
V |
12974 |
| 12987 |
0 |
Single-bundle manifold station Vulkan TecLine EB70/300 |
Gaseus |
894 |
V |
12974 |
| 13014 |
0 |
Single-bundle manifold station Vulkan TecLine EB100/300 |
Gaseus |
897 |
P |
0 |
| 13015 |
0 |
Single-bundle manifold station Vulkan TecLine EB100/300 |
Gaseus |
897 |
V |
13014 |
| 13016 |
0 |
Single-bundle manifold station Vulkan TecLine EB100/300 |
Gaseus |
897 |
V |
13014 |
| 13017 |
0 |
Single-bundle manifold station Vulkan TecLine EB100/300 |
Gaseus |
897 |
V |
13014 |
| 13018 |
0 |
Single-bundle manifold station Vulkan TecLine EB100/300 |
Gaseus |
897 |
V |
13014 |
| 13019 |
0 |
Single-bundle manifold station Vulkan TecLine EB100/300 |
Gaseus |
897 |
V |
13014 |
| 13020 |
0 |
Single-bundle manifold station Vulkan TecLine EB100/300 |
Gaseus |
897 |
V |
13014 |
| 13021 |
0 |
Single-bundle manifold station Vulkan TecLine EB100/300 |
Gaseus |
897 |
V |
13014 |
| 13022 |
0 |
Single-bundle manifold station Vulkan TecLine EB100/300 |
Gaseus |
897 |
V |
13014 |
| 13023 |
0 |
Single-bundle manifold station Vulkan TecLine EB100/300 |
Gaseus |
897 |
V |
13014 |
| 13024 |
0 |
Single-bundle manifold station Vulkan TecLine EB100/300 |
Gaseus |
897 |
V |
13014 |
| 13025 |
0 |
Single-bundle manifold station Vulkan TecLine EB100/300 |
Gaseus |
897 |
V |
13014 |
| 13026 |
0 |
Single-bundle manifold station Vulkan TecLine EB100/300 |
Gaseus |
897 |
V |
13014 |
| 13027 |
0 |
Single-bundle manifold station Vulkan TecLine EB100/300 |
Gaseus |
897 |
V |
13014 |
| 13028 |
0 |
Single-bundle manifold station Vulkan TecLine EB120/300 |
Gaseus |
898 |
P |
0 |
| 13029 |
0 |
Single-bundle manifold station Vulkan TecLine EB120/300 |
Gaseus |
898 |
V |
13028 |
| 13030 |
0 |
Single-bundle manifold station Vulkan TecLine EB120/300 |
Gaseus |
898 |
V |
13028 |
| 13031 |
0 |
Single-bundle manifold station Vulkan TecLine EB120/300 |
Gaseus |
898 |
V |
13028 |
| 13032 |
0 |
Single-bundle manifold station Vulkan TecLine EB120/300 |
Gaseus |
898 |
V |
13028 |
| 13033 |
0 |
Single-bundle manifold station Vulkan TecLine EB120/300 |
Gaseus |
898 |
V |
13028 |
| 13034 |
0 |
Single-bundle manifold station Vulkan TecLine EB120/300 |
Gaseus |
898 |
V |
13028 |
| 13035 |
0 |
Single-bundle manifold station Vulkan TecLine EB120/300 |
Gaseus |
898 |
V |
13028 |
| 13036 |
0 |
Single-bundle manifold station Vulkan TecLine EB120/300 |
Gaseus |
898 |
V |
13028 |
| 13037 |
0 |
Single-bundle manifold station Vulkan TecLine EB120/300 |
Gaseus |
898 |
V |
13028 |
| 13038 |
0 |
Single-bundle manifold station Vulkan TecLine EB120/300 |
Gaseus |
898 |
V |
13028 |
| 13039 |
0 |
Single-bundle manifold station Vulkan TecLine EB120/300 |
Gaseus |
898 |
V |
13028 |
| 13040 |
0 |
Single-bundle manifold station Vulkan TecLine EB200/300 |
Gaseus |
899 |
P |
0 |
| 13041 |
0 |
Single-bundle manifold station Vulkan TecLine EB200/300 |
Gaseus |
899 |
V |
13040 |
| 13042 |
0 |
Single-bundle manifold station Vulkan TecLine EB200/300 |
Gaseus |
899 |
V |
13040 |
| 13043 |
0 |
Single-bundle manifold station Vulkan TecLine EB200/300 |
Gaseus |
899 |
V |
13040 |
| 13044 |
0 |
Single-bundle manifold station Vulkan TecLine EB200/300 |
Gaseus |
899 |
V |
13040 |
| 13045 |
0 |
Single-bundle manifold station Vulkan TecLine EB200/300 |
Gaseus |
899 |
V |
13040 |
| 13046 |
0 |
Single-bundle manifold station Vulkan TecLine EB200/300 |
Gaseus |
899 |
V |
13040 |
| 13047 |
0 |
Single-bundle manifold station Vulkan TecLine EB200/300 |
Gaseus |
899 |
V |
13040 |
| 13048 |
0 |
Single-bundle manifold station Vulkan TecLine EB200/300 |
Gaseus |
899 |
V |
13040 |
| 13049 |
0 |
Single-bundle manifold station Vulkan TecLine EB200/300 |
Gaseus |
899 |
V |
13040 |
| 13050 |
0 |
Single-bundle manifold station Vulkan TecLine EB200/300 |
Gaseus |
899 |
V |
13040 |
| 13051 |
0 |
Single-bundle manifold station Vulkan TecLine EB200/300 |
Gaseus |
899 |
V |
13040 |
| 13052 |
0 |
Single-bundle manifold station Vulkan TecLine EB270/300 |
Gaseus |
900 |
P |
0 |
| 13053 |
0 |
Single-bundle manifold station Vulkan TecLine EB270/300 |
Gaseus |
900 |
V |
13052 |
| 13054 |
0 |
Single-bundle manifold station Vulkan TecLine EB270/300 |
Gaseus |
900 |
V |
13052 |
| 13055 |
0 |
Single-bundle manifold station Vulkan TecLine EB270/300 |
Gaseus |
900 |
V |
13052 |
| 13056 |
0 |
Single-bundle manifold station Vulkan TecLine EB270/300 |
Gaseus |
900 |
V |
13052 |
| 13057 |
0 |
Single-bundle manifold station Vulkan TecLine EB270/300 |
Gaseus |
900 |
V |
13052 |
| 13058 |
0 |
Single-bundle manifold station Vulkan TecLine EB270/300 |
Gaseus |
900 |
V |
13052 |
| 13059 |
0 |
Single-bundle manifold station Vulkan TecLine EB270/300 |
Gaseus |
900 |
V |
13052 |
| 13060 |
0 |
Single-bundle manifold station Vulkan TecLine EB270/300 |
Gaseus |
900 |
V |
13052 |
| 13061 |
0 |
Single-bundle manifold station Vulkan TecLine EB270/300 |
Gaseus |
900 |
V |
13052 |
| 13062 |
0 |
Single-bundle manifold station Vulkan TecLine EB270/300 |
Gaseus |
900 |
V |
13052 |
| 13063 |
0 |
Single-bundle manifold station Vulkan TecLine EB270/300 |
Gaseus |
900 |
V |
13052 |
| 12916 |
0 |
Ribbed tapping point regulator Vulkan TecLine ER20 |
Gaseus |
887 |
P |
0 |
| 12917 |
0 |
Ribbed tapping point regulator Vulkan TecLine ER20 |
Gaseus |
887 |
V |
12916 |
| 12918 |
0 |
Ribbed tapping point regulator Vulkan TecLine ER20 |
Gaseus |
887 |
V |
12916 |
| 12919 |
0 |
Ribbed tapping point regulator Vulkan TecLine ER20 |
Gaseus |
887 |
V |
12916 |
| 12920 |
0 |
Ribbed tapping point regulator Vulkan TecLine ER20 |
Gaseus |
887 |
V |
12916 |
| 12921 |
0 |
Ribbed tapping point regulator Vulkan TecLine ER40 |
Gaseus |
888 |
P |
0 |
| 12922 |
0 |
Ribbed tapping point regulator Vulkan TecLine ER40 |
Gaseus |
888 |
V |
12921 |
| 12923 |
0 |
Ribbed tapping point regulator Vulkan TecLine ER40 |
Gaseus |
888 |
V |
12921 |
| 12924 |
0 |
Ribbed tapping point regulator Vulkan TecLine ER40 |
Gaseus |
888 |
V |
12921 |
| 12925 |
0 |
Ribbed tapping point regulator Vulkan TecLine ER40 |
Gaseus |
888 |
V |
12921 |