Query time 0.00104
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "46.56"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"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": "3K"
},
"used_columns": [
"category_id",
"storefront_id",
"usergroup_ids",
"status"
]
}
},
{
"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": 79,
"rows_produced_per_join": 79,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.74",
"eval_cost": "7.90",
"prefix_cost": "8.64",
"data_read_per_join": "1K"
},
"used_columns": [
"product_id",
"category_id"
]
}
},
{
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"status",
"idx_parent_product_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"cscartdevel.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 24,
"filtered": "30.95",
"cost_info": {
"read_cost": "19.75",
"eval_cost": "2.45",
"prefix_cost": "36.29",
"data_read_per_join": "111K"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"amount",
"usergroup_ids",
"tracking",
"parent_product_id"
],
"attached_condition": "((`cscartdevel`.`products`.`parent_product_id` = 0) and ((`cscartdevel`.`products`.`amount` > 0) or (`cscartdevel`.`products`.`tracking` = 'D')) and ((`cscartdevel`.`products`.`usergroup_ids` = '') or (0 <> find_in_set(0,`cscartdevel`.`products`.`usergroup_ids`)) or (0 <> find_in_set(1,`cscartdevel`.`products`.`usergroup_ids`))) and (`cscartdevel`.`products`.`status` = 'A') and (`cscartdevel`.`products`.`product_type` <> 'D'))"
}
},
{
"table": {
"table_name": "companies",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"company_id"
],
"key_length": "4",
"ref": [
"cscartdevel.products.company_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "10.00",
"cost_info": {
"read_cost": "6.11",
"eval_cost": "0.24",
"prefix_cost": "44.85",
"data_read_per_join": "19K"
},
"used_columns": [
"company_id",
"status",
"company"
],
"attached_condition": "(`cscartdevel`.`companies`.`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": [
"cscartdevel.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "99.85",
"cost_info": {
"read_cost": "0.61",
"eval_cost": "0.24",
"prefix_cost": "45.70",
"data_read_per_join": "58"
},
"used_columns": [
"product_id",
"lower_limit",
"usergroup_id"
],
"attached_condition": "((`cscartdevel`.`prices`.`lower_limit` = 1) and (`cscartdevel`.`prices`.`usergroup_id` in (0,0,1)))"
}
},
{
"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": [
"cscartdevel.products_categories.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.61",
"eval_cost": "0.24",
"prefix_cost": "46.56",
"data_read_per_join": "13K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
Result
product_id |
product |
company_name |
product_type |
parent_product_id |
1900 |
AMARANTUS BIO 1 kg - BIO PLANET |
Eden BIO |
P |
0 |
1813 |
AMARANTUS BIO 500 g - BIO PLANET |
Eden BIO |
P |
0 |
1767 |
GRYKA EKSPANDOWANA BEZGLUTENOWA BIO 100 g - BIO PLANET |
Eden BIO |
P |
0 |
1764 |
KASZA GRYCZANA KRAKOWSKA NIEPALONA BIO 500 g - BIO PLANET |
Eden BIO |
P |
0 |
1893 |
KASZA GRYCZANA NIEPALONA BEZGLUTENOWA BIO 1 kg - BIO PLANET |
Eden BIO |
P |
0 |
1857 |
KASZA GRYCZANA NIEPALONA BEZGLUTENOWA BIO 500 g - BIO PLANET |
Eden BIO |
P |
0 |
2147 |
KASZA GRYCZANA NIEPALONA BEZGLUTENOWA BIO 800 g - THE PLANET |
Eden BIO |
P |
0 |
1790 |
KASZA GRYCZANA PALONA BIO 1 kg - BIO PLANET |
Eden BIO |
P |
0 |
1877 |
KASZA GRYCZANA PALONA BIO 5 kg - HORECA (BIO PLANET) |
Eden BIO |
P |
0 |
1858 |
KASZA GRYCZANA PALONA BIO 500 g - BIO PLANET |
Eden BIO |
P |
0 |
1876 |
KASZA JAGLANA BEZGLUTENOWA BIO 1 kg - BIO PLANET |
Eden BIO |
P |
0 |
1841 |
KASZA JAGLANA BEZGLUTENOWA BIO 400 g - BIO PLANET |
Eden BIO |
P |
0 |
1796 |
KASZA JAGLANA BEZGLUTENOWA BIO 500 g - BIO PLANET |
Eden BIO |
P |
0 |
2329 |
KASZA JAGLANA BIO (POLSKA) 1 kg - BIO RAJ |
Eden BIO |
P |
0 |
2330 |
KASZA JAGLANA BIO (POLSKA) 500 g - BIO RAJ |
Eden BIO |
P |
0 |
1860 |
KASZA JĘCZMIENNA BIO 500 g - BIO PLANET |
Eden BIO |
P |
0 |
2148 |
KASZA KUSKUS KUKURYDZIANY BIO 700 g - THE PLANET |
Eden BIO |
P |
0 |
2152 |
KASZA KUSKUS RAZOWY BIO 700 g - THE PLANET |
Eden BIO |
P |
0 |
1868 |
KASZA MANNA BIO 500 g - BIO PLANET |
Eden BIO |
P |
0 |
1881 |
KASZA ORKISZOWA BIO 500 g - BIO PLANET |
Eden BIO |
P |
0 |
2028 |
MAKARON (GRYCZANY Z BATATAMI) NOODLE SPAGHETTI BEZGLUTENOWY BIO 250 g - TERRASANA |
Eden BIO |
P |
0 |
2118 |
MAKARON (KONJAC) NOODLE BEZGLUTENOWY BIO 385 g (300 g) - BETTER THAN FOODS |
Eden BIO |
P |
0 |
2116 |
MAKARON (KONJAC) SPAGHETTI BEZGLUTENOWY BIO 385 g (300 g) - BETTER THAN FOODS |
Eden BIO |
P |
0 |
2117 |
MAKARON (KONJAC) W KSZTAŁCIE RYŻU BEZGLUTENOWY BIO 385 g (300 g) - BETTER THAN FOODS |
Eden BIO |
P |
0 |
1966 |
MAKARON (KUKURYDZIANO - RYŻOWY) PENNE BEZGLUTENOWY BIO 250 g - ALCE NERO |
Eden BIO |
P |
0 |
1967 |
MAKARON (KUKURYDZIANO - RYŻOWY) SPAGHETTI BEZGLUTENOWY BIO 250 g - ALCE NERO |
Eden BIO |
P |
0 |
1965 |
MAKARON (KUKURYDZIANO - RYŻOWY) ŚWIDERKI BEZGLUTENOWY BIO 250 g - ALCE NERO |
Eden BIO |
P |
0 |
2026 |
MAKARON (RYŻOWY RAZOWY Z DYNIĄ I IMBIREM) NOODLE SPAGHETTI BEZGLUTENOWY BIO 250 g - TERRASANA |
Eden BIO |
P |
0 |
2027 |
MAKARON (RYŻOWY RAZOWY Z WAKAME) NOODLE SPAGHETTI BEZGLUTENOWY BIO 250 g - TERRASANA |
Eden BIO |
P |
0 |
2131 |
MAKARON (RYŻOWY RAZOWY) SPAGHETTI BEZGLUTENOWY BIO 250 g - RAPUNZEL |
Eden BIO |
P |
0 |
1938 |
MAKARON (RYŻOWY) NOODLE SPAGHETTI BEZGLUTENOWY BIO 250 g - TERRASANA |
Eden BIO |
P |
0 |
2025 |
MAKARON (Z RYŻU CZARNEGO I RYŻU BRĄZOWEGO) NOODLE SPAGHETTI BEZGLUTENOWY BIO 250 g - TERRASANA |
Eden BIO |
P |
0 |
1899 |
PŁATKI AMARANTUSOWE BIO 300 g - BIO PLANET |
Eden BIO |
P |
0 |
1910 |
PŁATKI AMARANTUSOWE BIO 600 g - BIO PLANET |
Eden BIO |
P |
0 |
1872 |
PŁATKI GRYCZANE BIO 300 g - BIO PLANET |
Eden BIO |
P |
0 |
1850 |
PŁATKI JAGLANE BIO 300 g - BIO PLANET |
Eden BIO |
P |
0 |
1883 |
PŁATKI JAGLANE BIO 600 g - BIO PLANET |
Eden BIO |
P |
0 |
1810 |
PŁATKI OWSIANE BIO 1 kg - BIO PLANET |
Eden BIO |
P |
0 |
1851 |
PŁATKI OWSIANE BIO 300 g - BIO PLANET |
Eden BIO |
P |
0 |
1884 |
PŁATKI OWSIANE BIO 600 g - BIO PLANET |
Eden BIO |
P |
0 |