Query time 0.00043
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "4.21"
},
"ordering_operation": {
"using_filesort": false,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "1.40"
},
"nested_loop": [
{
"table": {
"table_name": "bundles",
"access_type": "ALL",
"possible_keys": [
"PRIMARY"
],
"rows_examined_per_scan": 14,
"rows_produced_per_join": 1,
"filtered": "10.00",
"cost_info": {
"read_cost": "2.19",
"eval_cost": "0.14",
"prefix_cost": "2.33",
"data_read_per_join": "55"
},
"used_columns": [
"bundle_id",
"company_id",
"products",
"date_from",
"date_to",
"display_in_promotions",
"status",
"linked_promotion_id"
],
"attached_condition": "((`test_uchur_k`.`bundles`.`status` = 'A') and (0 <> if(`test_uchur_k`.`bundles`.`date_from`,(`test_uchur_k`.`bundles`.`date_from` <= 1771749868),1)) and (0 <> if(`test_uchur_k`.`bundles`.`date_to`,(`test_uchur_k`.`bundles`.`date_to` >= 1771749868),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": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.35",
"eval_cost": "0.14",
"prefix_cost": "2.82",
"data_read_per_join": "459"
},
"used_columns": [
"bundle_id",
"name",
"storefront_name",
"description",
"lang_code"
]
}
}
]
}
}
}
}