Range Buckets Registry entry
Define range buckets for a field (i.e. when fine-tuning Range Indexing).
System Administrators have access to tools to tune the range indexing used by
Range indexing is really a series of "mini" indexes on a per field basis. Unlike the Two Level scheme, where all search terms are placed in the one index, range terms are placed in per field indexes that are then concatenated to form one range index. Each field index consists of a number of range buckets. These buckets are used to indicate whether a given value falls within the bucket or not.
There are two related considerations when establishing range buckets:
- Data distribution: as best as possible data should be distributed evenly between the buckets.
- Logical query ranges. The aim is to minimise the necessity to check a bucket for a value as checking whether records in a bucket match the query takes time; therefore if users are likely to search on particular ranges (decades for instance: 1/1/1910 to 1/1/1920), it makes sense to configure range buckets appropriately.
The setting of range bucket values is performed on a per field basis. Each range indexed field may have a Registry entry that defines the range buckets for that field. If a Registry entry does not exist, the built-in values defined when the table was designed are used.
Note:
See Range Indexing for details about
Description
Usage
This Registry entry is assigned at the system level only:
Key | System |
---|---|
Key 1 | System
|
Key 2 | Setting
|
Key 3 | Table
|
Key 4 | table |
Key 5 | Range Buckets
|
Key 6 | column |
Value | bucket;bucket;... |
System
|
Setting
|
Table
|
table | Range Buckets
|
column | bucket;bucket;... |
where:
table |
is the name of the |
||||||||||||||||||||
column |
is the name of the field (this can be determined by using the What's this help? facility in the |
||||||||||||||||||||
bucket;bucket;... |
is a semicolon separated list of values to be used for range buckets. The format of the value depends on the field type. It is important to make sure that the values specified are all fully qualified. In particular, full date values are required. The table below shows what constitutes a fully qualified value for each field type: |
||||||||||||||||||||
|
Examples
In this example the Date Visited field has range buckets of 2000-01-01, 2003-01-01, 2006-01-01 and 2009-01-01. This entry may be used to set these buckets:
Key | Setting |
---|---|
Key 1 | System
|
Key 2 | Setting
|
Key 3 | Table
|
Key 4 | ecollectionevents
|
Key 5 | Range Buckets
|
Key 6 | ColDateVisited
|
Value | 2000-01-01;2003-01-02;2006-01-01;2009-01-01
|
This Registry entry could be used to set the range buckets on the Latitude field in the Collection Events module:
Key | Setting |
---|---|
Key 1 | System
|
Key 2 | Setting
|
Key 3 | Table
|
Key 4 | ecollectionevents
|
Key 5 | Range Buckets
|
Key 6 | LatLatitude_tab
|
Value | 16:00:00:S;18:00:00:S;20:00:00:S;22:00:00:S
|