Query time 0.00081
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "1.48"
},
"ordering_operation": {
"using_filesort": false,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "0.05"
},
"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": "14.29",
"index_condition": "(`satishecarter_dec_setup_001`.`links`.`bundle_id` is not null)",
"cost_info": {
"read_cost": "1.00",
"eval_cost": "0.03",
"prefix_cost": "1.20",
"data_read_per_join": "3"
},
"used_columns": [
"bundle_id",
"product_id",
"amount",
"show_on_product_page",
"all_variants"
],
"attached_condition": "(`satishecarter_dec_setup_001`.`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": [
"satishecarter_dec_setup_001.links.bundle_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "33.33",
"cost_info": {
"read_cost": "0.14",
"eval_cost": "0.01",
"prefix_cost": "1.37",
"data_read_per_join": "1"
},
"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`.`status` = 'A') and if(`satishecarter_dec_setup_001`.`bundles`.`date_from`,(`satishecarter_dec_setup_001`.`bundles`.`date_from` <= 1737187663),1) and if(`satishecarter_dec_setup_001`.`bundles`.`date_to`,(`satishecarter_dec_setup_001`.`bundles`.`date_to` >= 1737187663),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.links.bundle_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.05",
"eval_cost": "0.01",
"prefix_cost": "1.43",
"data_read_per_join": "15"
},
"used_columns": [
"bundle_id",
"name",
"storefront_name",
"description",
"lang_code"
]
}
}
]
}
}
}
}