Query time 0.00115
    
    
            JSON explain
        {
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "27.89"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "0.94"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_ult_objects_sharing",
            "access_type": "index",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "share_object_id",
              "share_company_id",
              "share_object_type"
            ],
            "key_length": "159",
            "rows_examined_per_scan": 104,
            "rows_produced_per_join": 1,
            "filtered": "1.00",
            "using_index": true,
            "cost_info": {
              "read_cost": "23.26",
              "eval_cost": "0.21",
              "prefix_cost": "23.47",
              "data_read_per_join": "166"
            },
            "used_columns": [
              "share_company_id",
              "share_object_id",
              "share_object_type"
            ],
            "attached_condition": "((`atulecarter_atul_demo5`.`cscart_ult_objects_sharing`.`share_company_id` = 1) and (`atulecarter_atul_demo5`.`cscart_ult_objects_sharing`.`share_object_type` = 'product_options'))"
          }
        },
        {
          "table": {
            "table_name": "a",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY",
              "c_status"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "option_id"
            ],
            "key_length": "3",
            "ref": [
              "atulecarter_atul_demo5.cscart_ult_objects_sharing.share_object_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "90.00",
            "index_condition": "(`atulecarter_atul_demo5`.`cscart_ult_objects_sharing`.`share_object_id` = `atulecarter_atul_demo5`.`a`.`option_id`)",
            "cost_info": {
              "read_cost": "1.04",
              "eval_cost": "0.19",
              "prefix_cost": "24.71",
              "data_read_per_join": "2K"
            },
            "used_columns": [
              "option_id",
              "product_id",
              "company_id",
              "option_type",
              "regexp",
              "required",
              "multiupload",
              "allowed_extensions",
              "max_file_size",
              "missing_variants_handling",
              "status",
              "position",
              "value"
            ],
            "attached_condition": "((`atulecarter_atul_demo5`.`a`.`product_id` = 0) and (`atulecarter_atul_demo5`.`a`.`status` = 'A'))"
          }
        },
        {
          "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": 0,
            "filtered": "100.00",
            "using_index": true,
            "cost_info": {
              "read_cost": "0.94",
              "eval_cost": "0.19",
              "prefix_cost": "25.84",
              "data_read_per_join": "7"
            },
            "used_columns": [
              "option_id",
              "product_id"
            ],
            "attached_condition": "(`atulecarter_atul_demo5`.`c`.`product_id` in (148,180,18,16,4,5,23,24,1,22,149,227,190,189,245,238,239,242,243,241,240,214,217,218,207,59,58,60,172,134,135,168,167,169,42,39,40,205,37,74,73,71,75,72,70,156,175,43,76,56,57,30,246,208,173,229,211,210,209,67,25,213,215,226,154,53,52,228,161,165,166,86,106,105,247,101,33,32,163,244,212,155,55,69,206,184,183,133,132,125,120,223,225,224,146,147))"
          }
        },
        {
          "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": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.94",
              "eval_cost": "0.19",
              "prefix_cost": "26.96",
              "data_read_per_join": "3K"
            },
            "used_columns": [
              "option_id",
              "lang_code",
              "option_name",
              "internal_option_name",
              "option_text",
              "description",
              "comment",
              "inner_hint",
              "incorrect_message"
            ]
          }
        }
      ]
    }
  }
}
    
            
            
                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 | 
                                            
                                                            | 240 | 11 | 0 | 1 | C |  | N | N |  | 0 | M | A | 0 |  | 3G Connectivity | Apple iPad 3G |  |  |  |  |  | 
                                            
                                                            | 241 | 13 | 0 | 1 | C |  | N | N |  | 0 | M | A | 0 |  | 3G Connectivity | Apple 3G |  |  |  |  |  | 
                                            
                                                            | 240 | 14 | 0 | 1 | S |  | N | N |  | 0 | M | A | 0 |  | Memory capacity | Memory capacity |  |  |  |  |  | 
                                            
                                                            | 241 | 14 | 0 | 1 | S |  | N | N |  | 0 | M | A | 0 |  | Memory capacity | Memory capacity |  |  |  |  |  | 
                                            
                                                            | 247 | 14 | 0 | 1 | S |  | N | N |  | 0 | M | A | 0 |  | Memory capacity | Memory capacity |  |  |  |  |  | 
                                            
                                                            | 247 | 15 | 0 | 1 | C |  | N | N |  | 0 | M | A | 0 |  | 3G Connectivity | Nokia 3G |  |  |  |  |  | 
                                            
                                                            | 247 | 1 | 0 | 1 | S |  | N | N |  | 0 | M | A | 10 |  | Color | Monotone color | Color |  |  |  |  |