Query time 0.00146
    
    
            JSON explain
        {
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "25.77"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "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_features'))"
          }
        },
        {
          "table": {
            "table_name": "f",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY",
              "status"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "feature_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": "9.71",
            "index_condition": "(`atulecarter_atul_demo5`.`cscart_ult_objects_sharing`.`share_object_id` = `atulecarter_atul_demo5`.`f`.`feature_id`)",
            "cost_info": {
              "read_cost": "1.04",
              "eval_cost": "0.02",
              "prefix_cost": "24.71",
              "data_read_per_join": "44"
            },
            "used_columns": [
              "feature_id",
              "feature_code",
              "purpose",
              "feature_type",
              "categories_path",
              "parent_id",
              "display_on_product",
              "display_on_catalog",
              "display_on_header",
              "status",
              "position"
            ],
            "attached_condition": "((`atulecarter_atul_demo5`.`f`.`status` = 'A') and (`atulecarter_atul_demo5`.`f`.`display_on_catalog` = 'Y') and ((`atulecarter_atul_demo5`.`f`.`categories_path` = '') or find_in_set(245,`atulecarter_atul_demo5`.`f`.`categories_path`) or find_in_set(248,`atulecarter_atul_demo5`.`f`.`categories_path`) or find_in_set(166,`atulecarter_atul_demo5`.`f`.`categories_path`) or find_in_set(254,`atulecarter_atul_demo5`.`f`.`categories_path`) or find_in_set(263,`atulecarter_atul_demo5`.`f`.`categories_path`) or find_in_set(255,`atulecarter_atul_demo5`.`f`.`categories_path`)) and (if(`atulecarter_atul_demo5`.`f`.`parent_id`,(/* select#2 */ select `atulecarter_atul_demo5`.`df`.`status` from `atulecarter_atul_demo5`.`cscart_product_features` `df` where (`atulecarter_atul_demo5`.`df`.`feature_id` = `atulecarter_atul_demo5`.`f`.`parent_id`)),'A') = 'A'))",
            "attached_subqueries": [
              {
                "dependent": true,
                "cacheable": false,
                "query_block": {
                  "select_id": 2,
                  "cost_info": {
                    "query_cost": "1.20"
                  },
                  "table": {
                    "table_name": "df",
                    "access_type": "eq_ref",
                    "possible_keys": [
                      "PRIMARY"
                    ],
                    "key": "PRIMARY",
                    "used_key_parts": [
                      "feature_id"
                    ],
                    "key_length": "3",
                    "ref": [
                      "atulecarter_atul_demo5.f.parent_id"
                    ],
                    "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": "1.20",
                      "data_read_per_join": "440"
                    },
                    "used_columns": [
                      "feature_id",
                      "status"
                    ]
                  }
                }
              }
            ]
          }
        },
        {
          "table": {
            "table_name": "v",
            "access_type": "ref",
            "possible_keys": [
              "PRIMARY",
              "fl",
              "variant_id",
              "lang_code",
              "product_id",
              "fpl",
              "idx_product_feature_variant_id"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "feature_id",
              "product_id"
            ],
            "key_length": "6",
            "ref": [
              "atulecarter_atul_demo5.cscart_ult_objects_sharing.share_object_id",
              "const"
            ],
            "rows_examined_per_scan": 2,
            "rows_produced_per_join": 0,
            "filtered": "97.08",
            "index_condition": "((`atulecarter_atul_demo5`.`v`.`feature_id` = `atulecarter_atul_demo5`.`f`.`feature_id`) and (`atulecarter_atul_demo5`.`v`.`lang_code` = 'en'))",
            "cost_info": {
              "read_cost": "0.26",
              "eval_cost": "0.04",
              "prefix_cost": "25.02",
              "data_read_per_join": "155"
            },
            "used_columns": [
              "feature_id",
              "product_id",
              "variant_id",
              "value",
              "value_int",
              "lang_code"
            ],
            "attached_condition": "((`atulecarter_atul_demo5`.`v`.`variant_id` <> 0) or ((`atulecarter_atul_demo5`.`f`.`feature_type` <> 'C') and (`atulecarter_atul_demo5`.`v`.`value` <> '')) or (`atulecarter_atul_demo5`.`f`.`feature_type` = 'C') or (`atulecarter_atul_demo5`.`v`.`value_int` <> ''))"
          }
        },
        {
          "table": {
            "table_name": "fd",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "feature_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "atulecarter_atul_demo5.f.feature_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.10",
              "eval_cost": "0.04",
              "prefix_cost": "25.16",
              "data_read_per_join": "456"
            },
            "used_columns": [
              "feature_id",
              "description",
              "internal_name",
              "prefix",
              "suffix",
              "lang_code"
            ]
          }
        },
        {
          "table": {
            "table_name": "fv",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "variant_id"
            ],
            "key_length": "3",
            "ref": [
              "atulecarter_atul_demo5.v.variant_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.20",
              "eval_cost": "0.04",
              "prefix_cost": "25.39",
              "data_read_per_join": "229"
            },
            "used_columns": [
              "variant_id",
              "position"
            ]
          }
        },
        {
          "table": {
            "table_name": "vd",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "variant_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "atulecarter_atul_demo5.fv.variant_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.20",
              "eval_cost": "0.04",
              "prefix_cost": "25.63",
              "data_read_per_join": "607"
            },
            "used_columns": [
              "variant_id",
              "variant",
              "lang_code"
            ]
          }
        },
        {
          "table": {
            "table_name": "gf",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "feature_id"
            ],
            "key_length": "3",
            "ref": [
              "atulecarter_atul_demo5.f.parent_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.10",
              "eval_cost": "0.04",
              "prefix_cost": "25.77",
              "data_read_per_join": "86"
            },
            "used_columns": [
              "feature_id",
              "feature_type",
              "position"
            ],
            "attached_condition": "<if>(is_not_null_compl(gf), (`atulecarter_atul_demo5`.`gf`.`feature_type` = 'G'), true)"
          }
        }
      ]
    }
  }
}
    
            
            
                Result
                                    
                                                    | feature_id | value | value_int | variant_id | feature_type | internal_name | description | prefix | suffix | variant | parent_id | position | gposition | display_on_header | display_on_catalog | display_on_product | feature_code | purpose | 
                                            
                                                            | 47 | N |  | 0 | C | 3D support | 3D support |  |  |  | 20 | 0 | 10 | N | Y | Y |  | find_products | 
                                            
                                                            | 42 |  |  | 158 | M | Accessories included | Accessories included |  |  | USB cable | 40 | 0 | 50 | N | Y | Y |  | find_products | 
                                            
                                                            | 42 |  |  | 157 | M | Accessories included | Accessories included |  |  | HDMI cable | 40 | 0 | 50 | N | Y | Y |  | find_products | 
                                            
                                                            | 42 |  |  | 156 | M | Accessories included | Accessories included |  |  | Headset | 40 | 0 | 50 | N | Y | Y |  | find_products | 
                                            
                                                            | 45 |  |  | 161 | S | Colors | Colors |  |  | Black | 40 | 0 | 50 | N | Y | Y |  | find_products | 
                                            
                                                            | 32 |  |  | 149 | M | Communications | Communications |  |  | Ethernet | 30 | 0 | 40 | N | Y | Y |  | find_products | 
                                            
                                                            | 32 |  |  | 148 | M | Communications | Communications |  |  | Wi-Fi (802.11b/g/n) | 30 | 0 | 40 | N | Y | Y |  | find_products | 
                                            
                                                            | 44 |  |  | 160 | M | Compatibility with console videogames | Compatibility with console videogames |  |  | Xbox One | 40 | 0 | 50 | N | Y | Y |  | find_products | 
                                            
                                                            | 41 | yes, wireless |  | 0 | T | Controller included | Controller included |  |  |  | 40 | 0 | 50 | N | Y | Y |  | describe_product | 
                                            
                                                            | 29 |  |  | 144 | S | CPU | CPU |  |  | 8-core AMD | 24 | 0 | 20 | N | Y | Y |  | find_products | 
                                            
                                                            | 28 |  |  | 143 | S | CPU speed | CPU speed |  |  | 1.75 GHz | 24 | 0 | 20 | N | Y | Y |  | find_products | 
                                            
                                                            | 38 | 343x81x264 mm |  | 0 | T | Dimensions (W x H x D) | Dimensions (W x H x D) |  |  |  | 37 | 0 | 100 | N | Y | Y |  | describe_product | 
                                            
                                                            | 46 | HDMI; complectation Kinect 2.0 |  | 0 | T | Features | Features |  |  |  | 40 | 0 | 50 | N | Y | Y |  | describe_product | 
                                            
                                                            | 26 |  |  | 141 | S | Graphics processor | Graphics processor |  |  | integrated AMD Radeon GPU | 24 | 0 | 20 | N | Y | Y |  | find_products | 
                                            
                                                            | 23 |  |  | 139 | S | Hard drive | Hard drive |  |  | 500 GB | 20 | 0 | 10 | Y | Y | Y |  | find_products | 
                                            
                                                            | 22 | Y |  | 0 | C | HD support | HD support |  |  |  | 20 | 0 | 10 | N | Y | Y |  | find_products | 
                                            
                                                            | 31 |  |  | 147 | M | Ports | Ports |  |  | optical audio output | 30 | 0 | 40 | N | Y | Y |  | find_products | 
                                            
                                                            | 31 |  |  | 146 | M | Ports | Ports |  |  | USB x2 | 30 | 0 | 40 | N | Y | Y |  | find_products | 
                                            
                                                            | 31 |  |  | 145 | M | Ports | Ports |  |  | HDMI | 30 | 0 | 40 | N | Y | Y |  | find_products | 
                                            
                                                            | 25 |  |  | 140 | S | RAM | RAM |  |  | 8192 MB, DDR3 | 24 | 0 | 20 | N | Y | Y |  | find_products | 
                                            
                                                            | 36 |  |  | 155 | M | Supported formats | Supported formats |  |  | WMA | 33 | 0 | 30 | N | Y | Y |  | find_products | 
                                            
                                                            | 35 |  |  | 154 | M | Supported storage devices | Supported storage devices |  |  | CD | 33 | 0 | 30 | N | Y | Y |  | find_products | 
                                            
                                                            | 35 |  |  | 153 | M | Supported storage devices | Supported storage devices |  |  | DVD RW | 33 | 0 | 30 | N | Y | Y |  | find_products | 
                                            
                                                            | 35 |  |  | 152 | M | Supported storage devices | Supported storage devices |  |  | DVD R | 33 | 0 | 30 | N | Y | Y |  | find_products | 
                                            
                                                            | 35 |  |  | 151 | M | Supported storage devices | Supported storage devices |  |  | DVD | 33 | 0 | 30 | N | Y | Y |  | find_products | 
                                            
                                                            | 35 |  |  | 150 | M | Supported storage devices | Supported storage devices |  |  | Blu-ray | 33 | 0 | 30 | N | Y | Y |  | find_products | 
                                            
                                                            | 27 |  |  | 142 | S | System performance for floating point computation | System performance for floating point computation |  |  | 1.23 TFLOPs | 24 | 0 | 20 | N | Y | Y |  | find_products | 
                                            
                                                            | 21 |  |  | 137 | S | Type | Type |  |  | stationary | 20 | 0 | 10 | N | Y | Y |  | find_products | 
                                            
                                                            | 34 | Y |  | 0 | C | Video playback | Video playback |  |  |  | 33 | 0 | 30 | N | Y | Y |  | find_products | 
                                            
                                                            | 43 |  |  | 159 | S | Videogames storage | Videogames storage |  |  | BD (Blu-ray Disc) | 40 | 0 | 50 | N | Y | Y |  | find_products | 
                                            
                                                            | 39 | 3.62 kg |  | 0 | T | Weight | Weight |  |  |  | 37 | 0 | 100 | N | Y | Y |  | describe_product |