Query time 0.20602
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "172.04"
},
"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": "(`test2_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.16",
"eval_cost": "0.18",
"prefix_cost": "6.07",
"data_read_per_join": "7K"
},
"used_columns": [
"category_id",
"storefront_id",
"usergroup_ids",
"status"
],
"attached_condition": "(((`test2_gaseus`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`test2_gaseus`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`test2_gaseus`.`cscart_categories`.`usergroup_ids`))) and (`test2_gaseus`.`cscart_categories`.`status` in ('A','H')) and (`test2_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": [
"test2_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": "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": 15,
"filtered": "9.95",
"cost_info": {
"read_cost": "38.18",
"eval_cost": "1.52",
"prefix_cost": "76.20",
"data_read_per_join": "99K"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"amount",
"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": "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": 15,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.80",
"eval_cost": "1.52",
"prefix_cost": "81.52",
"data_read_per_join": "57K"
},
"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": 15,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.16",
"eval_cost": "1.52",
"prefix_cost": "89.20",
"data_read_per_join": "69K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
},
{
"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": [
"test2_gaseus.products_categories.product_id"
],
"rows_examined_per_scan": 49,
"rows_produced_per_join": 19,
"filtered": "2.58",
"using_index": true,
"cost_info": {
"read_cost": "8.36",
"eval_cost": "1.93",
"prefix_cost": "172.04",
"data_read_per_join": "308"
},
"used_columns": [
"product_id",
"group_id"
],
"attached_condition": "(`test2_gaseus`.`variation_group_products`.`group_id` in (914,861,871,872,915,948,901))"
}
}
]
}
}
}
}
Result
| product_id |
amount |
product |
company_name |
variation_group_id |
product_type |
parent_product_id |
| 12464 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
P |
0 |
| 12465 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12466 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12467 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12468 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12469 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12470 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12471 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12472 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12473 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12474 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12475 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12476 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12477 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12478 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12479 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12480 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12481 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12482 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12483 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12484 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12485 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12486 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12487 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12488 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12489 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12490 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12491 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12492 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12493 |
0 |
Manual Gas Panel DRS 1/1 |
Gaseus |
861 |
V |
12464 |
| 12624 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
P |
0 |
| 12625 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12626 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12627 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12628 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12629 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12630 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12631 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12632 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12633 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12634 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12635 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12636 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12637 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12638 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12639 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12640 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12641 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12642 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12643 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12644 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12645 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12646 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12647 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12648 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12649 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12650 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12651 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12652 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12653 |
0 |
Manual Gas Panel DRS 1/2 |
Gaseus |
871 |
V |
12624 |
| 12654 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
P |
0 |
| 12655 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12656 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12657 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12658 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12659 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12660 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12661 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12662 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12663 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12664 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12665 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12666 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12667 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12668 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12669 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12670 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12671 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12672 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12673 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12674 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12675 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12676 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12677 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12678 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12679 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12680 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12681 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12682 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12683 |
0 |
Manual Gas Panel DRS 2/2 |
Gaseus |
872 |
V |
12654 |
| 12928 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/300 |
Gaseus |
901 |
P |
0 |
| 12929 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/300 |
Gaseus |
901 |
V |
12928 |
| 13127 |
0 |
Manual base station Vulkan LabLine Modula Vareo BS 50/300 Effect |
Gaseus |
914 |
P |
0 |
| 13128 |
0 |
Manual base station Vulkan LabLine Modula Vareo BS 50/300 Effect |
Gaseus |
914 |
V |
13127 |
| 13129 |
0 |
Manual base station Vulkan LabLine Modula Vareo BS 50/300 Effect |
Gaseus |
914 |
V |
13127 |
| 13130 |
0 |
Manual base station Vulkan LabLine Modula Vareo BS 50/300 Effect |
Gaseus |
914 |
V |
13127 |
| 13131 |
0 |
Manual base station Vulkan LabLine Modula Vareo BS 50/300 Effect |
Gaseus |
914 |
V |
13127 |
| 13132 |
0 |
Manual base station Vulkan LabLine Modula Vareo BS 50/300 Effect |
Gaseus |
914 |
V |
13127 |
| 13133 |
0 |
Manual base station Vulkan LabLine Modula Vareo BS 50/300 Effect |
Gaseus |
914 |
V |
13127 |
| 13134 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/300 |
Gaseus |
901 |
V |
12928 |
| 13135 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/300 |
Gaseus |
901 |
V |
12928 |
| 13136 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/300 |
Gaseus |
901 |
V |
12928 |
| 13137 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/300 |
Gaseus |
901 |
V |
12928 |
| 13138 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/300 |
Gaseus |
901 |
V |
12928 |
| 13139 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/300 |
Gaseus |
901 |
V |
12928 |
| 13140 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/300 |
Gaseus |
901 |
V |
12928 |
| 13141 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/300 |
Gaseus |
901 |
V |
12928 |
| 13142 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/300 |
Gaseus |
901 |
V |
12928 |
| 13143 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/300 |
Gaseus |
901 |
V |
12928 |
| 13144 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/300 |
Gaseus |
901 |
V |
12928 |
| 13145 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/300 |
Gaseus |
901 |
V |
12928 |
| 13146 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/300 |
Gaseus |
901 |
V |
12928 |
| 13147 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/300 |
Gaseus |
901 |
V |
12928 |
| 13148 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/2 300 |
Gaseus |
915 |
P |
0 |
| 13149 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/2 300 |
Gaseus |
915 |
V |
13148 |
| 13150 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/2 300 |
Gaseus |
948 |
V |
13153 |
| 13151 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/2 300 |
Gaseus |
948 |
V |
13153 |
| 13152 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/2 300 |
Gaseus |
948 |
V |
13153 |
| 13153 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/2 300 |
Gaseus |
948 |
P |
0 |
| 13154 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/2 300 |
Gaseus |
948 |
V |
13153 |
| 13155 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/2 300 |
Gaseus |
948 |
V |
13153 |
| 13156 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/2 300 |
Gaseus |
948 |
V |
13153 |
| 13157 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/2 300 |
Gaseus |
948 |
V |
13153 |
| 13158 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/2 300 |
Gaseus |
948 |
V |
13153 |
| 13159 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/2 300 |
Gaseus |
948 |
V |
13153 |
| 13160 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/2 300 |
Gaseus |
948 |
V |
13153 |
| 13161 |
0 |
Single-cylinder manifold station Vulkan LabLine SE 10/2 300 |
Gaseus |
948 |
V |
13153 |