Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

CTIndex.SetKeyType

Syntax

void SetKeyType(KEY_TYPE Type)

Parameters

  • keytype [In] - The key type.

Description

SetKeyType() set the key type of an index. The key type can be one of the following values:

  • KEY_TYPE.FIXED_INDEX fixed-length key
  • KEY_TYPE.LEADING_INDEX leading-character compression
  • KEY_TYPE.PADDING_INDEX padding compression
  • KEY_TYPE.LEADPAD_INDEX leading/padding compression

Note: Key compression imposes a significant performance impact, especially when deleting records. Use this feature only when absolutely necessary to keep index space requirements to a minimum.

Return

None.

See Also

GetKeyType()

TOCIndex