Query time 0.00086
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "23.69"
},
"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": 40,
"rows_produced_per_join": 40,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.49",
"eval_cost": "4.00",
"prefix_cost": "4.49",
"data_read_per_join": "640"
},
"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": 12,
"filtered": "30.95",
"cost_info": {
"read_cost": "10.00",
"eval_cost": "1.24",
"prefix_cost": "18.49",
"data_read_per_join": "56K"
},
"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": 1,
"filtered": "10.00",
"cost_info": {
"read_cost": "3.10",
"eval_cost": "0.12",
"prefix_cost": "22.83",
"data_read_per_join": "9K"
},
"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": 1,
"filtered": "99.85",
"cost_info": {
"read_cost": "0.31",
"eval_cost": "0.12",
"prefix_cost": "23.26",
"data_read_per_join": "29"
},
"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": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.31",
"eval_cost": "0.12",
"prefix_cost": "23.69",
"data_read_per_join": "6K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
Result
product_id |
product |
company_name |
product_type |
parent_product_id |
2227 |
BATON BAKALIOWY Z KAKAO KOSMOS BEZGLUTENOWY 70 g - ZMIANY ZMIANY |
Eden BIO |
P |
0 |
2060 |
BUDYŃ O SMAKU CZEKOLADOWYM BEZGLUTENOWY BIO 40 g - AMYLON |
Eden BIO |
P |
0 |
2122 |
BUDYŃ O SMAKU ŚMIETANKOWYM BEZGLUTENOWY BIO 40 g - AMYLON |
Eden BIO |
P |
0 |
2274 |
BUDYŃ TRUSKAWKOWY BEZGLUTENOWY BIO 40 g - AMYLON |
Eden BIO |
P |
0 |
2061 |
BUDYŃ WANILIOWY BEZGLUTENOWY BIO 40 g - AMYLON |
Eden BIO |
P |
0 |
1957 |
CHAŁWA MIODOWA BIO 75 g - ALLOS |
Eden BIO |
P |
0 |
1814 |
CHIPSY BANANOWE NIESŁODZONE BIO 150 g - BIO PLANET |
Eden BIO |
P |
0 |
2331 |
CHIPSY JABŁKOWE BEZGLUTENOWE BIO (POLSKA) 50 g - BIO RAJ |
Eden BIO |
P |
0 |
1748 |
CHIPSY JABŁKOWE BEZGLUTENOWE BIO 100 g - BIO PLANET |
Eden BIO |
P |
0 |
2005 |
CHIPSY JABŁKOWE BEZGLUTENOWE BIO 30 g - BIOMINKI |
Eden BIO |
P |
0 |
2214 |
CHIPSY Z CIECIERZYCY Z CURRY BEZGLUTENOWE BIO 75 g - O'NEST |
Eden BIO |
P |
0 |
2342 |
CHIPSY Z CIECIERZYCY Z SOLĄ MORSKĄ BIO 75 g - TRAFO |
Eden BIO |
P |
0 |
2215 |
CHIPSY Z CIECIERZYCY Z SOLĄ MORSKĄ I CZARNYM PIEPRZEM BEZGLUTENOWE BIO 40 g - O'NEST |
Eden BIO |
P |
0 |
2211 |
CHIPSY Z CIECIERZYCY Z SOLĄ MORSKĄ I CZARNYM PIEPRZEM BEZGLUTENOWE BIO 75 g - O'NEST |
Eden BIO |
P |
0 |
2225 |
CHIPSY Z SOCZEWICY PAPRYKOWE BEZGLUTENOWE BIO 75 g - JOHN ALTMAN |
Eden BIO |
P |
0 |
2212 |
CHIPSY Z SOCZEWICY PAPRYKOWE BEZGLUTENOWE BIO 75 g - O'NEST |
Eden BIO |
P |
0 |
2213 |
CHIPSY Z SOCZEWICY Z ROZMARYNEM BEZGLUTENOWE BIO 75 g - O'NEST |
Eden BIO |
P |
0 |
2226 |
CHIPSY Z SOCZEWICY Z SOLĄ I CZARNYM PIEPRZEM BEZGLUTENOWE BIO 75 g - JOHN ALTMAN |
Eden BIO |
P |
0 |
2303 |
KASZTANY JADALNE CAŁE (GOTOWANE) BIO 320 g - DANIVAL |
Eden BIO |
P |
0 |
2260 |
LODY WODNE DO ZAMROŻENIA BIO (10 x 40 ml) 400 ml - TERRASANA |
Eden BIO |
P |
0 |
2195 |
PASTA CHAŁWOWA BEZGLUTENOWA 200 g - WARSZAWSKI |
Eden BIO |
P |
0 |
2130 |
PASTA KOKOSOWA BIO 200 g - AMAIZIN |
Eden BIO |
P |
0 |
2332 |
PESTKI DYNI CIEMNOZIELONE BIO (POLSKA) 300 g - BIO RAJ |
Eden BIO |
P |
0 |
1840 |
POPCORN (ZIARNO KUKURYDZY) BIO 400 g - BIO PLANET |
Eden BIO |
P |
0 |
2163 |
POPCORN (ZIARNO KUKURYDZY) BIO 600 g - THE PLANET |
Eden BIO |
P |
0 |
2173 |
PRZEKĄSKI ROLL JABŁKO - BORÓWKA BEZ DODATKU CUKRÓW BEZGLUTENOWE 100 g - BOB SNAIL |
Eden BIO |
P |
0 |
2175 |
PRZEKĄSKI ROLL JABŁKO - CZARNA PORZECZKA BEZ DODATKU CUKRÓW BEZGLUTENOWE 100 g - BOB SNAIL |
Eden BIO |
P |
0 |
2177 |
PRZEKĄSKI ROLL JABŁKO - MALINA BEZ DODATKU CUKRÓW BEZGLUTENOWE 100 g - BOB SNAIL |
Eden BIO |
P |
0 |
2176 |
PRZEKĄSKI ROLL JABŁKO - TRUSKAWKA BEZ DODATKU CUKRÓW BEZGLUTENOWE 100 g - BOB SNAIL |
Eden BIO |
P |
0 |
2070 |
SŁODKA PRZEKĄSKA JAGODA BIO 200 g - RUNOLAND |
Eden BIO |
P |
0 |
2069 |
SŁODKA PRZEKĄSKA TRUSKAWKA BIO 200 g - RUNOLAND |
Eden BIO |
P |
0 |
2351 |
TABLICZKA GORZKA 100 % KAKAO BIO 50 g - ALCE NERO |
Eden BIO |
P |
0 |
2209 |
TAPIOKA PEREŁKI 300 g - NATURAVENA |
Eden BIO |
P |
0 |
2261 |
ŻELKI OWOCOWE BEZ DODATKU CUKRÓW BEZGLUTENOWE BIO 400 g - BIOMINKI |
Eden BIO |
P |
0 |
2174 |
ZESTAW PRZEKĄSEK OWOCOWYCH BEZ DODATKU CUKRÓW BEZGLUTENOWY 98 g - BOB SNAIL |
Eden BIO |
P |
0 |
2235 |
ZESTAW SZKOLNY - PRZEKĄSKI OWOCOWE Z ZABAWKĄ BEZ DODATKU CUKRÓW BEZGLUTENOWE 231 g - BOB SNAIL |
Eden BIO |
P |
0 |