Query time 0.00058
    
    
            JSON explain
        {
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "19.51"
    },
    "ordering_operation": {
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "a",
            "access_type": "ref",
            "possible_keys": [
              "PRIMARY",
              "c_status"
            ],
            "key": "c_status",
            "used_key_parts": [
              "product_id",
              "status"
            ],
            "key_length": "6",
            "ref": [
              "const",
              "const"
            ],
            "rows_examined_per_scan": 9,
            "rows_produced_per_join": 9,
            "filtered": "100.00",
            "index_condition": "((`atulecarter_atul_demo5`.`a`.`product_id` <=> 0) and (`atulecarter_atul_demo5`.`a`.`status` <=> 'A'))",
            "cost_info": {
              "read_cost": "2.00",
              "eval_cost": "1.80",
              "prefix_cost": "3.80",
              "data_read_per_join": "20K"
            },
            "used_columns": [
              "option_id",
              "product_id",
              "company_id",
              "option_type",
              "regexp",
              "required",
              "multiupload",
              "allowed_extensions",
              "max_file_size",
              "missing_variants_handling",
              "status",
              "position",
              "value"
            ]
          }
        },
        {
          "table": {
            "table_name": "c",
            "access_type": "ref",
            "possible_keys": [
              "PRIMARY",
              "product_id"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "option_id"
            ],
            "key_length": "3",
            "ref": [
              "atulecarter_atul_demo5.a.option_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 2,
            "filtered": "22.73",
            "using_index": true,
            "cost_info": {
              "read_cost": "9.00",
              "eval_cost": "0.41",
              "prefix_cost": "14.60",
              "data_read_per_join": "16"
            },
            "used_columns": [
              "option_id",
              "product_id"
            ],
            "attached_condition": "(`atulecarter_atul_demo5`.`c`.`product_id` in (12,199,11))"
          }
        },
        {
          "table": {
            "table_name": "b",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "option_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "atulecarter_atul_demo5.a.option_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 2,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "2.05",
              "eval_cost": "0.41",
              "prefix_cost": "17.05",
              "data_read_per_join": "6K"
            },
            "used_columns": [
              "option_id",
              "lang_code",
              "option_name",
              "internal_option_name",
              "option_text",
              "description",
              "comment",
              "inner_hint",
              "incorrect_message"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_ult_objects_sharing",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "share_object_id",
              "share_company_id",
              "share_object_type"
            ],
            "key_length": "159",
            "ref": [
              "atulecarter_atul_demo5.a.option_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 2,
            "filtered": "100.00",
            "using_index": true,
            "cost_info": {
              "read_cost": "2.05",
              "eval_cost": "0.41",
              "prefix_cost": "19.51",
              "data_read_per_join": "327"
            },
            "used_columns": [
              "share_company_id",
              "share_object_id",
              "share_object_type"
            ],
            "attached_condition": "(`atulecarter_atul_demo5`.`cscart_ult_objects_sharing`.`share_object_id` = `atulecarter_atul_demo5`.`a`.`option_id`)"
          }
        }
      ]
    }
  }
}
    
            
            
                Result
                                    
                                                    | cur_product_id | 
                                                    option_id | 
                                                    product_id | 
                                                    company_id | 
                                                    option_type | 
                                                    regexp | 
                                                    required | 
                                                    multiupload | 
                                                    allowed_extensions | 
                                                    max_file_size | 
                                                    missing_variants_handling | 
                                                    status | 
                                                    position | 
                                                    value | 
                                                    option_name | 
                                                    internal_option_name | 
                                                    option_text | 
                                                    description | 
                                                    inner_hint | 
                                                    incorrect_message | 
                                                    comment | 
                                            
                                            
                                                            | 12 | 
                                                            9 | 
                                                            0 | 
                                                            1 | 
                                                            S | 
                                                             | 
                                                            N | 
                                                            N | 
                                                             | 
                                                            0 | 
                                                            M | 
                                                            A | 
                                                            0 | 
                                                             | 
                                                            Color | 
                                                            Adidas pants color | 
                                                             | 
                                                             | 
                                                             | 
                                                             | 
                                                             | 
                                                    
                                            
                                                            | 11 | 
                                                            1 | 
                                                            0 | 
                                                            1 | 
                                                            S | 
                                                             | 
                                                            N | 
                                                            N | 
                                                             | 
                                                            0 | 
                                                            M | 
                                                            A | 
                                                            10 | 
                                                             | 
                                                            Color | 
                                                            Monotone color | 
                                                            Color | 
                                                             | 
                                                             | 
                                                             | 
                                                             | 
                                                    
                                            
                                                            | 11 | 
                                                            2 | 
                                                            0 | 
                                                            1 | 
                                                            S | 
                                                             | 
                                                            N | 
                                                            N | 
                                                             | 
                                                            0 | 
                                                            M | 
                                                            A | 
                                                            20 | 
                                                             | 
                                                            Size | 
                                                            Apparel Size | 
                                                            Size | 
                                                             | 
                                                             | 
                                                             | 
                                                             | 
                                                    
                                            
                                                            | 12 | 
                                                            2 | 
                                                            0 | 
                                                            1 | 
                                                            S | 
                                                             | 
                                                            N | 
                                                            N | 
                                                             | 
                                                            0 | 
                                                            M | 
                                                            A | 
                                                            20 | 
                                                             | 
                                                            Size | 
                                                            Apparel Size | 
                                                            Size | 
                                                             | 
                                                             | 
                                                             | 
                                                             |