BTSCANNER Configuration Parameter
Use the BTSCANNER configuration parameter to set the B-tree scanner. The B-tree scanner improves transaction processing for logged databases when rows are deleted from a table with indexes. The B-tree scanner threads remove deleted index entries and rebalance the index nodes. The B-tree scanner automatically determines which index items are to be deleted.
- onconfig.std value
- BTSCANNER num=1,threshold=5000,rangesize=-1,alice=6,compression=default
- range of values
- See the Usage section.
- separators
- Use a comma between each field.
- takes effect
- After you edit your onconfig file and restart the database server.
Usage
By default, the BTSCANNER configuration parameter starts one index cleaner thread, prioritizes cleaning indexes that have over 5000 deleted items, automatically adjusts the mode of index cleaning, and merges index pages at a level appropriate for indexes that have moderate growth and changes.
Field | Values |
---|---|
num | The threads value is a positive
integer that sets the number of B-tree scanner threads to start at
system startup. The default is 1 . |
threshold | The thresh_size value is the
minimum number of deleted items an index must encounter before an
index is prioritized for cleaning. The default is 5000 . |
rangesize | Specifies whether to allow leaf scans for small
indexes:
|
alice | The alice_mode value controls
index cleaning:
|
compression | The level at which two partially used index pages
are merged:
|
After all of the indexes above the threshold are cleaned, the indexes below the threshold are added to the prioritized list of indexes to be cleaned. Systems updated frequently should increase this value by a factor of 10 times or 100 times.