Query time 0.00047
    
    
            JSON explain
        {
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "20.49"
    },
    "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": "27.27",
            "using_index": true,
            "cost_info": {
              "read_cost": "9.00",
              "eval_cost": "0.49",
              "prefix_cost": "14.60",
              "data_read_per_join": "19"
            },
            "used_columns": [
              "option_id",
              "product_id"
            ],
            "attached_condition": "(`atulecarter_atul_demo5`.`c`.`product_id` in (41,34,31,38,28,27))"
          }
        },
        {
          "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.45",
              "eval_cost": "0.49",
              "prefix_cost": "17.55",
              "data_read_per_join": "8K"
            },
            "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.45",
              "eval_cost": "0.49",
              "prefix_cost": "20.49",
              "data_read_per_join": "392"
            },
            "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 | 
                                            
                                                            | 27 | 2 | 0 | 1 | S |  | N | N |  | 0 | M | A | 20 |  | Size | Apparel Size | Size |  |  |  |  | 
                                            
                                                            | 28 | 2 | 0 | 1 | S |  | N | N |  | 0 | M | A | 20 |  | Size | Apparel Size | Size |  |  |  |  | 
                                            
                                                            | 31 | 2 | 0 | 1 | S |  | N | N |  | 0 | M | A | 20 |  | Size | Apparel Size | Size |  |  |  |  | 
                                            
                                                            | 34 | 2 | 0 | 1 | S |  | N | N |  | 0 | M | A | 20 |  | Size | Apparel Size | Size |  |  |  |  | 
                                            
                                                            | 38 | 2 | 0 | 1 | S |  | N | N |  | 0 | M | A | 20 |  | Size | Apparel Size | Size |  |  |  |  | 
                                            
                                                            | 41 | 2 | 0 | 1 | S |  | N | N |  | 0 | M | A | 20 |  | Size | Apparel Size | Size |  |  |  |  |