Query time 0.02318
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "1015.36"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"buffer_result": {
"using_temporary_table": true,
"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": "4K"
},
"used_columns": [
"category_id",
"storefront_id",
"usergroup_ids",
"status"
]
}
},
{
"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": "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": 1621,
"rows_produced_per_join": 1621,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "10.38",
"eval_cost": "162.10",
"prefix_cost": "173.20",
"data_read_per_join": "25K"
},
"used_columns": [
"product_id",
"category_id"
]
}
},
{
"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": 162,
"filtered": "10.00",
"cost_info": {
"read_cost": "405.25",
"eval_cost": "16.20",
"prefix_cost": "740.55",
"data_read_per_join": "1M"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"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": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "usergroup",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"gaseus.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 161,
"filtered": "99.97",
"using_index": true,
"cost_info": {
"read_cost": "40.51",
"eval_cost": "16.20",
"prefix_cost": "797.26",
"data_read_per_join": "3K"
},
"used_columns": [
"product_id",
"lower_limit",
"usergroup_id"
],
"attached_condition": "((`gaseus`.`prices`.`lower_limit` = 1) and (`gaseus`.`prices`.`usergroup_id` in (0,0,1)))"
}
},
{
"table": {
"table_name": "var_val_18",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"fl",
"variant_id",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"key_length": "15",
"ref": [
"const",
"gaseus.products_categories.product_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 161,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "40.50",
"eval_cost": "16.20",
"prefix_cost": "853.96",
"data_read_per_join": "125K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
},
{
"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": 161,
"filtered": "100.00",
"cost_info": {
"read_cost": "47.67",
"eval_cost": "16.20",
"prefix_cost": "917.83",
"data_read_per_join": "617K"
},
"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": 161,
"filtered": "100.00",
"cost_info": {
"read_cost": "81.33",
"eval_cost": "16.20",
"prefix_cost": "1015.36",
"data_read_per_join": "739K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
}
Result
| product_id |
product |
company_name |
product_ids |
product_types |
parent_product_ids |
product_type |
parent_product_id |
| 4035 |
Line pressure regulator Nitrogen 0-1,5 bar Vulkan L15/2 |
Gaseus |
4035 |
P |
0 |
P |
0 |
| 4036 |
Line pressure regulator Nitrogen 0-1,5 bar Vulkan L15/2 |
Gaseus |
4036 |
P |
0 |
P |
0 |
| 4037 |
Line pressure regulator Nitrogen 0-1,5 bar Vulkan L15/2 |
Gaseus |
4037 |
P |
0 |
P |
0 |
| 4038 |
Line pressure regulator Nitrogen 0-1,5 bar Vulkan L15/2 |
Gaseus |
4038 |
P |
0 |
P |
0 |
| 4039 |
Line pressure regulator Nitrogen 0-1,5 bar Vulkan L15/2 |
Gaseus |
4039 |
P |
0 |
P |
0 |
| 4040 |
Line pressure regulator Nitrogen 0-1,5 bar Vulkan L15/2 |
Gaseus |
4040 |
P |
0 |
P |
0 |
| 4041 |
Line pressure regulator Nitrogen 0-1,5 bar Vulkan L15/2 |
Gaseus |
4041 |
P |
0 |
P |
0 |
| 4117 |
Line pressure regulator Nitrogen 0-1,5 bar Vulkan L15/2 |
Gaseus |
4117 |
P |
0 |
P |
0 |
| 4118 |
Line pressure regulator Nitrogen 0-1,5 bar Vulkan L15/2 |
Gaseus |
4118 |
P |
0 |
P |
0 |
| 4119 |
Line pressure regulator Nitrogen 0-1,5 bar Vulkan L15/2 |
Gaseus |
4119 |
P |
0 |
P |
0 |
| 4120 |
Line pressure regulator Nitrogen 0-1,5 bar Vulkan L15/2 |
Gaseus |
4120 |
P |
0 |
P |
0 |
| 4121 |
Line pressure regulator Nitrogen 0-1,5 bar Vulkan L15/2 |
Gaseus |
4121 |
P |
0 |
P |
0 |
| 4122 |
Line pressure regulator Nitrogen 0-1,5 bar Vulkan L15/2 |
Gaseus |
4122 |
P |
0 |
P |
0 |
| 4123 |
Line pressure regulator Nitrogen 0-1,5 bar Vulkan L15/2 |
Gaseus |
4123 |
P |
0 |
P |
0 |
| 4171 |
Line pressure regulator Nitrogen 0-1,5 bar Vulkan L15/2 |
Gaseus |
4171 |
P |
0 |
P |
0 |
| 4172 |
Line pressure regulator Nitrogen 0-1,5 bar Vulkan L15/2 |
Gaseus |
4172 |
P |
0 |
P |
0 |
| 4173 |
Line pressure regulator Nitrogen 0-1,5 bar Vulkan L15/2 |
Gaseus |
4173 |
P |
0 |
P |
0 |
| 4174 |
Line pressure regulator Nitrogen 0-1,5 bar Vulkan L15/2 |
Gaseus |
4174 |
P |
0 |
P |
0 |
| 4175 |
Line pressure regulator Nitrogen 0-1,5 bar Vulkan L15/2 |
Gaseus |
4175 |
P |
0 |
P |
0 |
| 4176 |
Line pressure regulator Nitrogen 0-1,5 bar Vulkan L15/2 |
Gaseus |
4176 |
P |
0 |
P |
0 |
| 50 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
50 |
P |
0 |
P |
0 |
| 51 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
51 |
P |
0 |
P |
0 |
| 52 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
52 |
P |
0 |
P |
0 |
| 53 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
53 |
P |
0 |
P |
0 |
| 54 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
54 |
P |
0 |
P |
0 |
| 55 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
55 |
P |
0 |
P |
0 |
| 56 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
56 |
P |
0 |
P |
0 |
| 97 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
97 |
P |
0 |
P |
0 |
| 98 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
98 |
P |
0 |
P |
0 |
| 99 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
99 |
P |
0 |
P |
0 |
| 100 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
100 |
P |
0 |
P |
0 |
| 101 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
101 |
P |
0 |
P |
0 |
| 102 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
102 |
P |
0 |
P |
0 |
| 103 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
103 |
P |
0 |
P |
0 |
| 182 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
182 |
P |
0 |
P |
0 |
| 183 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
183 |
P |
0 |
P |
0 |
| 184 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
184 |
P |
0 |
P |
0 |
| 185 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
185 |
P |
0 |
P |
0 |
| 186 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
186 |
P |
0 |
P |
0 |
| 187 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
187 |
P |
0 |
P |
0 |
| 188 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
188 |
P |
0 |
P |
0 |
| 189 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
189 |
P |
0 |
P |
0 |
| 190 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
190 |
P |
0 |
P |
0 |
| 191 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
191 |
P |
0 |
P |
0 |
| 192 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
192 |
P |
0 |
P |
0 |
| 193 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
193 |
P |
0 |
P |
0 |
| 194 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
194 |
P |
0 |
P |
0 |
| 195 |
Line pressure regulator Nitrogen 0-10 bar Vulkan L10 |
Gaseus |
195 |
P |
0 |
P |
0 |