Query time 0.00065
    
    
            JSON explain
        {
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "6.46"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "1.00"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_vendor_plans",
            "access_type": "ALL",
            "rows_examined_per_scan": 5,
            "rows_produced_per_join": 1,
            "filtered": "20.00",
            "cost_info": {
              "read_cost": "2.86",
              "eval_cost": "0.20",
              "prefix_cost": "3.06",
              "data_read_per_join": "104"
            },
            "used_columns": [
              "plan_id",
              "status",
              "position",
              "is_default",
              "price",
              "periodicity",
              "commission",
              "fixed_commission",
              "products_limit",
              "revenue_limit",
              "vendor_store",
              "categories",
              "storefronts",
              "usergroups",
              "lowers_allowed_balance",
              "grace_period_to_refill_balance",
              "ec_enable_rfq",
              "ec_pos_plan_type"
            ],
            "attached_condition": "((`atulecarter_atul_demo4`.`cscart_vendor_plans`.`status` = 'A') and (find_in_set(1,`atulecarter_atul_demo4`.`cscart_vendor_plans`.`storefronts`) or isnull(`atulecarter_atul_demo4`.`cscart_vendor_plans`.`storefronts`) or (`atulecarter_atul_demo4`.`cscart_vendor_plans`.`storefronts` = '')))"
          }
        },
        {
          "table": {
            "table_name": "cscart_vendor_plan_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "plan_id",
              "lang_code"
            ],
            "key_length": "10",
            "ref": [
              "atulecarter_atul_demo4.cscart_vendor_plans.plan_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 1,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.00",
              "eval_cost": "0.20",
              "prefix_cost": "4.26",
              "data_read_per_join": "792"
            },
            "used_columns": [
              "plan_id",
              "lang_code",
              "plan",
              "description"
            ]
          }
        },
        {
          "table": {
            "table_name": "manual_rating",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "object_id",
              "object_type"
            ],
            "key_length": "102",
            "ref": [
              "atulecarter_atul_demo4.cscart_vendor_plans.plan_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 1,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.00",
              "eval_cost": "0.20",
              "prefix_cost": "5.46",
              "data_read_per_join": "112"
            },
            "used_columns": [
              "object_id",
              "object_type",
              "rating"
            ]
          }
        }
      ]
    }
  }
}
    
            
            
                Result
                                    
                                                    | plan_id | lang_code | plan | description | status | position | is_default | price | periodicity | commission | fixed_commission | products_limit | revenue_limit | vendor_store | categories | storefronts | usergroups | lowers_allowed_balance | grace_period_to_refill_balance | ec_enable_rfq | ec_pos_plan_type | manual_rating | 
                                            
                                                            | 2 | en | Bronze |  | A | 10 | 0 | 0.00 | month | 20.00 | 0.00 | 25 | 500.00 | 0 |  |  |  |  |  | Y | B | 0 | 
                                            
                                                            | 1 | en | Silver |  | A | 20 | 0 | 100.00 | month | 10.00 | 0.00 | 1000 | 1000.00 | 1 |  |  |  |  |  | N | O |  | 
                                            
                                                            | 3 | en | Gold |  | A | 30 | 0 | 250.00 | month | 5.00 | 0.00 | 10000 | 10000.00 | 1 |  |  |  |  |  | Y | B | 0 | 
                                            
                                                            | 4 | en | Platinum |  | A | 40 | 1 | 1000.00 | month | 1.00 | 0.00 | 100000 | 0.00 | 1 |  |  |  |  |  | Y | B | 0 |