Query time 0.00071
    
    
            JSON explain
        {
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "8.29"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_product_filters",
            "access_type": "ALL",
            "possible_keys": [
              "PRIMARY"
            ],
            "rows_examined_per_scan": 7,
            "rows_produced_per_join": 0,
            "filtered": "14.29",
            "cost_info": {
              "read_cost": "3.29",
              "eval_cost": "0.20",
              "prefix_cost": "3.49",
              "data_read_per_join": "63"
            },
            "used_columns": [
              "filter_id",
              "categories_path",
              "feature_id",
              "position",
              "field_type",
              "status",
              "round_to",
              "display_count",
              "display"
            ],
            "attached_condition": "((`atulecarter_atul_demo5`.`cscart_product_filters`.`status` = 'A') and ((`atulecarter_atul_demo5`.`cscart_product_filters`.`categories_path` = '') or find_in_set(191,`atulecarter_atul_demo5`.`cscart_product_filters`.`categories_path`)))"
          }
        },
        {
          "table": {
            "table_name": "cscart_product_filter_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "filter_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "atulecarter_atul_demo5.cscart_product_filters.filter_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.00",
              "eval_cost": "0.20",
              "prefix_cost": "4.69",
              "data_read_per_join": "783"
            },
            "used_columns": [
              "filter_id",
              "lang_code",
              "filter"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_product_features",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "feature_id"
            ],
            "key_length": "3",
            "ref": [
              "atulecarter_atul_demo5.cscart_product_filters.feature_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.00",
              "eval_cost": "0.20",
              "prefix_cost": "5.89",
              "data_read_per_join": "439"
            },
            "used_columns": [
              "feature_id",
              "filter_style",
              "feature_type"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_product_features_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "feature_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "atulecarter_atul_demo5.cscart_product_filters.feature_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.00",
              "eval_cost": "0.20",
              "prefix_cost": "7.09",
              "data_read_per_join": "2K"
            },
            "used_columns": [
              "feature_id",
              "prefix",
              "suffix",
              "lang_code"
            ]
          }
        },
        {
          "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.cscart_product_filters.filter_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "using_index": true,
            "cost_info": {
              "read_cost": "1.00",
              "eval_cost": "0.20",
              "prefix_cost": "8.29",
              "data_read_per_join": "159"
            },
            "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`.`cscart_product_filters`.`filter_id`)"
          }
        }
      ]
    }
  }
}
    
            
            
                Result
                                    
                                                    | feature_id | filter_id | field_type | round_to | display | display_count | filter | feature_type | filter_style | prefix | suffix | 
                                            
                                                            | 18 | 10 |  | 1 | Y | 10 | Brand | E | checkbox |  |  | 
                                            
                                                            | 549 | 313 |  | 0.01 | Y | 10 | Color | S | checkbox |  |  | 
                                            
                                                            | 0 | 1 | P | 1 | Y | 10 | Price |  |  |  |  | 
                                            
                                                            | 548 | 312 |  | 0.01 | Y | 10 | Size | S | checkbox |  |  | 
                                            
                                                            | 16 | 8 |  | 1 | Y | 10 | Display | S | checkbox |  |  |