Query time 0.02432
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 |
| 211 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
211 |
P |
0 |
P |
0 |
| 212 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
212 |
P |
0 |
P |
0 |
| 213 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
213 |
P |
0 |
P |
0 |
| 214 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
214 |
P |
0 |
P |
0 |
| 215 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
215 |
P |
0 |
P |
0 |
| 216 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
216 |
P |
0 |
P |
0 |
| 217 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
217 |
P |
0 |
P |
0 |
| 218 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
218 |
P |
0 |
P |
0 |
| 219 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
219 |
P |
0 |
P |
0 |
| 220 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
220 |
P |
0 |
P |
0 |
| 221 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
221 |
P |
0 |
P |
0 |
| 222 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
222 |
P |
0 |
P |
0 |
| 223 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
223 |
P |
0 |
P |
0 |
| 278 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
278 |
P |
0 |
P |
0 |
| 279 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
279 |
P |
0 |
P |
0 |
| 280 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
280 |
P |
0 |
P |
0 |
| 281 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
281 |
P |
0 |
P |
0 |
| 282 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
282 |
P |
0 |
P |
0 |
| 283 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
283 |
P |
0 |
P |
0 |
| 284 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
284 |
P |
0 |
P |
0 |
| 332 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
332 |
P |
0 |
P |
0 |
| 333 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
333 |
P |
0 |
P |
0 |
| 334 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
334 |
P |
0 |
P |
0 |
| 335 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
335 |
P |
0 |
P |
0 |
| 336 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
336 |
P |
0 |
P |
0 |
| 337 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
337 |
P |
0 |
P |
0 |
| 3915 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
3915 |
P |
0 |
P |
0 |
| 3916 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
3916 |
P |
0 |
P |
0 |
| 3917 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
3917 |
P |
0 |
P |
0 |
| 3918 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
3918 |
P |
0 |
P |
0 |
| 3919 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
3919 |
P |
0 |
P |
0 |
| 3920 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
3920 |
P |
0 |
P |
0 |
| 3921 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
3921 |
P |
0 |
P |
0 |
| 3968 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
3968 |
P |
0 |
P |
0 |
| 3969 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
3969 |
P |
0 |
P |
0 |
| 3970 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
3970 |
P |
0 |
P |
0 |
| 3971 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
3971 |
P |
0 |
P |
0 |
| 3972 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
3972 |
P |
0 |
P |
0 |
| 3973 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
3973 |
P |
0 |
P |
0 |
| 3974 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
3974 |
P |
0 |
P |
0 |
| 4020 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
4020 |
P |
0 |
P |
0 |
| 4021 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
4021 |
P |
0 |
P |
0 |
| 4022 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
4022 |
P |
0 |
P |
0 |
| 4023 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
4023 |
P |
0 |
P |
0 |
| 4024 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
4024 |
P |
0 |
P |
0 |
| 4025 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
4025 |
P |
0 |
P |
0 |
| 4026 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
4026 |
P |
0 |
P |
0 |
| 4094 |
Line pressure regulator Nitrogen 0-20 bar Vulkan L20 |
Gaseus |
4094 |
P |
0 |
P |
0 |