Query time 0.00029
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "0.40"
},
"ordering_operation": {
"using_filesort": false,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "0.01"
},
"nested_loop": [
{
"table": {
"table_name": "links",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"bundle_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "10.00",
"index_condition": "(`cscartdevel`.`links`.`bundle_id` is not null)",
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.01",
"prefix_cost": "0.35",
"data_read_per_join": "2"
},
"used_columns": [
"bundle_id",
"product_id",
"amount",
"show_on_product_page",
"all_variants"
],
"attached_condition": "(`cscartdevel`.`links`.`show_on_product_page` = 'Y')"
}
},
{
"table": {
"table_name": "bundles",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"bundle_id"
],
"key_length": "4",
"ref": [
"cscartdevel.links.bundle_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "14.29",
"cost_info": {
"read_cost": "0.03",
"eval_cost": "0.00",
"prefix_cost": "0.39",
"data_read_per_join": "0"
},
"used_columns": [
"bundle_id",
"company_id",
"products",
"date_from",
"date_to",
"display_in_promotions",
"status",
"linked_promotion_id"
],
"attached_condition": "((`cscartdevel`.`bundles`.`status` = 'A') and (0 <> if(`cscartdevel`.`bundles`.`date_from`,(`cscartdevel`.`bundles`.`date_from` <= 1755919171),1)) and (0 <> if(`cscartdevel`.`bundles`.`date_to`,(`cscartdevel`.`bundles`.`date_to` >= 1755919171),1)))"
}
},
{
"table": {
"table_name": "descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"bundle_id",
"lang_code"
],
"key_length": "10",
"ref": [
"cscartdevel.links.bundle_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.00",
"prefix_cost": "0.39",
"data_read_per_join": "4"
},
"used_columns": [
"bundle_id",
"name",
"storefront_name",
"description",
"lang_code"
]
}
}
]
}
}
}
}
Result
bundle_id |
company_id |
products |
date_from |
date_to |
display_in_promotions |
status |
linked_promotion_id |
name |
storefront_name |
description |
lang_code |
product_id |
amount |
show_on_product_page |
all_variants |
7 |
156 |
a:2:{i:0;a:5:{s:10:"product_id";i:1728;s:6:"amount";i:1;s:13:"modifier_type";s:8:"by_fixed";s:8:"modifier";d:20;s:20:"show_on_product_page";s:1:"Y";}i:1;a:5:{s:10:"product_id";i:1729;s:6:"amount";i:1;s:13:"modifier_type";s:8:"by_fixed";s:8:"modifier";d:9;s:20:"show_on_product_page";s:1:"Y";}} |
1754172000 |
1759269599 |
N |
A |
40 |
Mumio Naturalis + książka Mumio siła natury |
Mumio Naturalis + książka Mumio siła natury |
|
pl |
1729 |
1 |
Y |
N |