Query time 0.00046
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "3.67"
},
"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": 14,
"rows_produced_per_join": 0,
"filtered": "7.14",
"cost_info": {
"read_cost": "2.23",
"eval_cost": "0.10",
"prefix_cost": "2.33",
"data_read_per_join": "39"
},
"used_columns": [
"bundle_id",
"company_id",
"products",
"date_from",
"date_to",
"display_in_promotions",
"status",
"linked_promotion_id"
],
"attached_condition": "((`test_uchur_k`.`bundles`.`display_in_promotions` = 'Y') and (`test_uchur_k`.`bundles`.`status` = 'A') and (0 <> if(`test_uchur_k`.`bundles`.`date_from`,(`test_uchur_k`.`bundles`.`date_from` <= 1776342125),1)) and (0 <> if(`test_uchur_k`.`bundles`.`date_to`,(`test_uchur_k`.`bundles`.`date_to` >= 1776342125),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": [
"test_uchur_k.bundles.bundle_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.10",
"prefix_cost": "2.68",
"data_read_per_join": "327"
},
"used_columns": [
"bundle_id",
"name",
"storefront_name",
"description",
"lang_code"
]
}
}
]
}
}
}
}