Query time 0.00071
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "5.36"
},
"ordering_operation": {
"using_filesort": false,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "0.10"
},
"nested_loop": [
{
"table": {
"table_name": "links",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"bundle_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"rows_examined_per_scan": 2,
"rows_produced_per_join": 0,
"filtered": "14.29",
"index_condition": "((((`danishecarter_latest`.`links`.`product_id` = '282') and (`danishecarter_latest`.`links`.`all_variants` = 'Y')) or (`danishecarter_latest`.`links`.`product_id` = '284')) and (`danishecarter_latest`.`links`.`bundle_id` is not null))",
"cost_info": {
"read_cost": "4.75",
"eval_cost": "0.06",
"prefix_cost": "4.81",
"data_read_per_join": "6"
},
"used_columns": [
"bundle_id",
"product_id",
"amount",
"show_on_product_page",
"all_variants"
],
"attached_condition": "(`danishecarter_latest`.`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": [
"danishecarter_latest.links.bundle_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "33.33",
"cost_info": {
"read_cost": "0.29",
"eval_cost": "0.02",
"prefix_cost": "5.15",
"data_read_per_join": "3"
},
"used_columns": [
"bundle_id",
"company_id",
"products",
"date_from",
"date_to",
"display_in_promotions",
"status",
"linked_promotion_id"
],
"attached_condition": "((`danishecarter_latest`.`bundles`.`status` = 'A') and if(`danishecarter_latest`.`bundles`.`date_from`,(`danishecarter_latest`.`bundles`.`date_from` <= 1743822786),1) and if(`danishecarter_latest`.`bundles`.`date_to`,(`danishecarter_latest`.`bundles`.`date_to` >= 1743822786),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": [
"danishecarter_latest.links.bundle_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.10",
"eval_cost": "0.02",
"prefix_cost": "5.27",
"data_read_per_join": "31"
},
"used_columns": [
"bundle_id",
"name",
"storefront_name",
"description",
"lang_code"
]
}
}
]
}
}
}
}