{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "107.47"
},
"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": 115,
"rows_produced_per_join": 115,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.96",
"eval_cost": "11.50",
"prefix_cost": "13.19",
"data_read_per_join": "1K"
},
"used_columns": [
"product_id",
"category_id"
]
}
},
{
"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": 115,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "28.75",
"eval_cost": "11.50",
"prefix_cost": "53.44",
"data_read_per_join": "88K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
},
{
"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": 11,
"filtered": "9.95",
"cost_info": {
"read_cost": "28.75",
"eval_cost": "1.14",
"prefix_cost": "93.69",
"data_read_per_join": "74K"
},
"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": 11,
"filtered": "99.91",
"cost_info": {
"read_cost": "2.86",
"eval_cost": "1.14",
"prefix_cost": "97.69",
"data_read_per_join": "274"
},
"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": "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": 11,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.86",
"eval_cost": "1.14",
"prefix_cost": "101.70",
"data_read_per_join": "43K"
},
"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": 11,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.63",
"eval_cost": "1.14",
"prefix_cost": "107.47",
"data_read_per_join": "52K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
}
| product_id | product | company_name | product_ids | product_types | parent_product_ids | product_type | parent_product_id |
|---|---|---|---|---|---|---|---|
| 12594 | Line pressure regulator Omega I | Gaseus | 12594,12595,12596,12597,12598,12599,12600,12601,12602,12603,12604,12605,12606,12607,12608 | P,V,V,V,V,V,V,V,V,V,V,V,V,V,V | 0,12594,12594,12594,12594,12594,12594,12594,12594,12594,12594,12594,12594,12594,12594 | P | 0 |
| 12609 | Line pressure regulator Omega II | Gaseus | 12609,12610,12611,12612,12613,12614,12615,12616,12617,12618,12619,12620,12621,12622,12623 | P,V,V,V,V,V,V,V,V,V,V,V,V,V,V | 0,12609,12609,12609,12609,12609,12609,12609,12609,12609,12609,12609,12609,12609,12609 | P | 0 |
| 12424 | Line pressure regulator Sigma I | Gaseus | 12424,12425,12426,12427,12428,12429,12430,12431,12432,12433,12434,12435,12436,12437,12438,12439,12440,12441,12442,12443,12444,12445,12446,12447,12448,12449,12450,12451,12452,12453,12454,12455,12456,12457,12458,12459,12460,12461,12462,12463 | P,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V | 0,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424,12424 | P | 0 |
| 12554 | Line pressure regulator Sigma II | Gaseus | 12554,12555,12556,12557,12558,12559,12560,12561,12562,12563,12564,12565,12566,12567,12568,12569,12570,12571,12572,12573,12574,12575,12576,12577,12578,12579,12580,12581,12582,12583,12584,12585,12586,12587,12588,12589,12590,12591,12592,12593 | P,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V | 0,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554,12554 | P | 0 |
| 12536 | Line pressure regulator Thanos | Gaseus | 12536,12537,12538,12539,12540,12541,12542,12543,12544,12545 | P,V,V,V,V,V,V,V,V,V | 0,12536,12536,12536,12536,12536,12536,12536,12536,12536 | P | 0 |
| 12546 | Line pressure regulator Thanos II | Gaseus | 12546,12547,12548,12549,12550,12551,12552,12553 | P,V,V,V,V,V,V,V | 0,12546,12546,12546,12546,12546,12546,12546 | P | 0 |