Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbGetIndexDistinctKeyCountFlag

Get the status of the distinct count flag for an index. To optimize some SQL queries, provides a better estimation of the duplicate index selectivity by determining how many distinct keys there are in an index allowing duplicates. The CTDBINDEX_DUPCNTFLAG index status value indicates that the index has distinct key count capability.

Declaration

CTBOOL ctdbGetIndexDistinctKeyCountFlag(CTHANDLE Handle);

Description

ctdbGetIndexDistinctKeyCountFlag() retrieves the setting of the distinct count flag for an index. Use ctdbSetIndexDistinctKeyCountFlag() to set the flag.

  • Handle [in] the index handle.

See also

ctdbSetIndexDistinctKeyCountFlag

TOCIndex