New Command Line and Configuration File Parameters

Replication Server 15.0.1 introduces new rs_subcmp parameters that support the use of the hash algorithm.

New Command Line Parameters for Hash Algorithm

Parameter

Description

-h

Perform faster comparison.

-H

Normalize data when using hash algorithm across different platforms or character sets.

New Configuration File Parameters for Hash Algorithm

Parameter

Description

FASTCMP

The same as command line parameter -h. The syntax is: FASTCMP = Y|N.

Values are:
  • Y – perform fast comparison using compressed data.
  • N (default) – perform normal comparison as before.

HASH_OPTION

The same as command line parameter -H. The syntax is: HASH_OPTION = lsb | msb | unicode | unicode_lsb | unicode_msb.

If this parameter does not exist in the configuration file, by default, rs_subcmp uses the native byte order and character set.

String Options for the H and HASH_OPTION Parameters

String options

Option

Description

lsb

All byte-order dependent data is normalized to lsb-first (little-endian) before data compression.

msb

All byte-order dependent data is normalized to msb-first (big-endian) byte order before data compression.

unicode

Character data is normalized to unicode (UTF-16) before data compression.

Note: UTF-16 string looks very much like an array of short integers and is byte- order dependent, thus Sybase suggests that you use lsb and msb with Unicode for platform independence. For example, use unicode_lsb or unicode_msb.

See Chapter 7, “Executable Programs” of the Replication Server Reference Manual, for more information about rs_subcmp and its parameters.