Query time 0.00057
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "5.09"
},
"ordering_operation": {
"using_filesort": false,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "1.00"
},
"nested_loop": [
{
"table": {
"table_name": "bundles",
"access_type": "ALL",
"possible_keys": [
"PRIMARY"
],
"rows_examined_per_scan": 3,
"rows_produced_per_join": 1,
"filtered": "33.33",
"cost_info": {
"read_cost": "2.69",
"eval_cost": "0.20",
"prefix_cost": "2.89",
"data_read_per_join": "40"
},
"used_columns": [
"bundle_id",
"company_id",
"products",
"date_from",
"date_to",
"display_in_promotions",
"status",
"linked_promotion_id"
],
"attached_condition": "((`satishecarter_dec_setup_001`.`bundles`.`display_in_promotions` = 'Y') and (`satishecarter_dec_setup_001`.`bundles`.`status` = 'A') and if(`satishecarter_dec_setup_001`.`bundles`.`date_from`,(`satishecarter_dec_setup_001`.`bundles`.`date_from` <= 1737176480),1) and if(`satishecarter_dec_setup_001`.`bundles`.`date_to`,(`satishecarter_dec_setup_001`.`bundles`.`date_to` >= 1737176480),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": [
"satishecarter_dec_setup_001.bundles.bundle_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.00",
"eval_cost": "0.20",
"prefix_cost": "4.09",
"data_read_per_join": "328"
},
"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 |
1 |
1 |
a:1:{i:0;a:6:{s:10:"product_id";i:12;s:6:"amount";i:3;s:13:"modifier_type";s:13:"by_percentage";s:8:"modifier";d:33.3299999999999982946974341757595539093017578125;s:20:"show_on_product_page";s:1:"Y";s:3:"aoc";s:1:"Y";}} |
0 |
0 |
Y |
A |
25 |
Sports pants bundle |
Sports pants bundle |
Get 3 pairs of pants at the price of 2 |
en |
2 |
1 |
a:3:{i:0;a:5:{s:10:"product_id";i:39;s:6:"amount";i:1;s:13:"modifier_type";s:13:"by_percentage";s:8:"modifier";i:50;s:20:"show_on_product_page";s:1:"Y";}i:1;a:5:{s:10:"product_id";i:51;s:6:"amount";i:1;s:13:"modifier_type";s:13:"by_percentage";s:8:"modifier";i:50;s:20:"show_on_product_page";s:1:"Y";}i:2;a:5:{s:10:"product_id";i:52;s:6:"amount";i:1;s:13:"modifier_type";s:13:"by_percentage";s:8:"modifier";i:50;s:20:"show_on_product_page";s:1:"Y";}} |
0 |
0 |
Y |
A |
26 |
Car audio bundle |
Car audio bundle |
Get everything you need for your car in one package, with 50% off |
en |
3 |
1 |
a:3:{i:0;a:5:{s:10:"product_id";i:237;s:6:"amount";i:1;s:13:"modifier_type";s:13:"by_percentage";s:8:"modifier";i:33;s:20:"show_on_product_page";s:1:"Y";}i:1;a:5:{s:10:"product_id";i:230;s:6:"amount";i:1;s:13:"modifier_type";s:13:"by_percentage";s:8:"modifier";i:33;s:20:"show_on_product_page";s:1:"Y";}i:2;a:5:{s:10:"product_id";i:234;s:6:"amount";i:1;s:13:"modifier_type";s:13:"by_percentage";s:8:"modifier";i:33;s:20:"show_on_product_page";s:1:"Y";}} |
0 |
0 |
Y |
A |
27 |
Camping bundle |
Camping bundle |
33% off everything a traveler needs |
en |