Query time 0.00639
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "113.38"
},
"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": "(`test2_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": 184,
"rows_produced_per_join": 184,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "1.39",
"eval_cost": "18.40",
"prefix_cost": "20.52",
"data_read_per_join": "2K"
},
"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": [
"test2_gaseus.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 18,
"filtered": "9.95",
"cost_info": {
"read_cost": "46.00",
"eval_cost": "1.83",
"prefix_cost": "84.92",
"data_read_per_join": "119K"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"usergroup_ids",
"parent_product_id"
],
"attached_condition": "((`test2_gaseus`.`products`.`company_id` = `test2_gaseus`.`companies`.`company_id`) and ((`test2_gaseus`.`products`.`usergroup_ids` = '') or (0 <> find_in_set(0,`test2_gaseus`.`products`.`usergroup_ids`)) or (0 <> find_in_set(1,`test2_gaseus`.`products`.`usergroup_ids`))) and (`test2_gaseus`.`products`.`status` = 'A'))"
}
},
{
"table": {
"table_name": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "product_id",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"test2_gaseus.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 18,
"filtered": "99.91",
"cost_info": {
"read_cost": "4.58",
"eval_cost": "1.83",
"prefix_cost": "91.33",
"data_read_per_join": "439"
},
"used_columns": [
"product_id",
"lower_limit",
"usergroup_id"
],
"attached_condition": "((`test2_gaseus`.`prices`.`lower_limit` = 1) and (`test2_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",
"test2_gaseus.products_categories.product_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 18,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "4.57",
"eval_cost": "1.83",
"prefix_cost": "97.73",
"data_read_per_join": "14K"
},
"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": [
"test2_gaseus.products_categories.product_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 18,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.57",
"eval_cost": "1.83",
"prefix_cost": "104.14",
"data_read_per_join": "69K"
},
"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": [
"test2_gaseus.products_categories.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 18,
"filtered": "100.00",
"cost_info": {
"read_cost": "7.41",
"eval_cost": "1.83",
"prefix_cost": "113.38",
"data_read_per_join": "83K"
},
"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 |
| 13124 |
Manual base station for acetylene Vulkan TecLine Modula Vareo BSA 10 B |
Gaseus |
13124 |
P |
0 |
P |
0 |
| 13125 |
Manual base station for acetylene Vulkan TecLine Modula Vareo BSA 20 B |
Gaseus |
13125 |
P |
0 |
P |
0 |
| 13126 |
Manual base station for acetylene Vulkan TecLine Modula Vareo BSA 40 B |
Gaseus |
13126 |
P |
0 |
P |
0 |
| 13098 |
Manual base station Vulkan TecLine Modula Vareo BS 100/300 |
Gaseus |
13098,13099,13100,13101,13102,13103,13104 |
P,V,V,V,V,V,V |
0,13098,13098,13098,13098,13098,13098 |
P |
0 |
| 13105 |
Manual base station Vulkan TecLine Modula Vareo BS 120/300 |
Gaseus |
13105,13106,13107,13108,13109,13110,13111 |
P,V,V,V,V,V,V |
0,13105,13105,13105,13105,13105,13105 |
P |
0 |
| 13112 |
Manual base station Vulkan TecLine Modula Vareo BS 200/300 |
Gaseus |
13112,13113,13114,13115,13116,13117 |
P,V,V,V,V,V |
0,13112,13112,13112,13112,13112 |
P |
0 |
| 13118 |
Manual base station Vulkan TecLine Modula Vareo BS 270/300 |
Gaseus |
13118,13119,13120,13121,13122,13123 |
P,V,V,V,V,V |
0,13118,13118,13118,13118,13118 |
P |
0 |
| 13064 |
Manual base station Vulkan TecLine Modula Vareo BS 50/300 |
Gaseus |
13064,13065,13066,13067,13068,13069,13070 |
P,V,V,V,V,V,V |
0,13064,13064,13064,13064,13064,13064 |
P |
0 |
| 13071 |
Manual base station Vulkan TecLine Modula Vareo BS 60/300 |
Gaseus |
13071,13072,13073,13074,13075,13076,13077 |
P,V,V,V,V,V,V |
0,13071,13071,13071,13071,13071,13071 |
P |
0 |
| 13078 |
Manual base station Vulkan TecLine Modula Vareo BS 70/300 |
Gaseus |
13078,13079,13080,13081,13082,13083,13084 |
P,V,V,V,V,V,V |
0,13078,13078,13078,13078,13078,13078 |
P |
0 |
| 13085 |
Manual base station Vulkan TecLine Modula Vareo BS 75/300 |
Gaseus |
13085,13086,13087,13088,13089,13090 |
P,V,V,V,V,V |
0,13085,13085,13085,13085,13085 |
P |
0 |
| 13091 |
Manual base station Vulkan TecLine Modula Vareo BS 80/300 |
Gaseus |
13091,13092,13093,13094,13095,13096,13097 |
P,V,V,V,V,V,V |
0,13091,13091,13091,13091,13091,13091 |
P |
0 |