Query time 0.00073
    
    
            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": "(`atulecarter_atul_demo5`.`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": "(`atulecarter_atul_demo5`.`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": [
                "atulecarter_atul_demo5.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": "((`atulecarter_atul_demo5`.`bundles`.`status` = 'A') and if(`atulecarter_atul_demo5`.`bundles`.`date_from`,(`atulecarter_atul_demo5`.`bundles`.`date_from` <= 1761846808),1) and if(`atulecarter_atul_demo5`.`bundles`.`date_to`,(`atulecarter_atul_demo5`.`bundles`.`date_to` >= 1761846808),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": [
                "atulecarter_atul_demo5.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"
              ]
            }
          }
        ]
      }
    }
  }
}
    
            
            
                Result
                                    
                                                    | bundle_id | company_id | products | date_from | date_to | display_in_promotions | status | linked_promotion_id | name | storefront_name | description | lang_code | product_id | amount | show_on_product_page | all_variants | 
                                            
                                                            | 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 | 52 | 1 | Y | N |