Feature #2629 : Ability to specify length for index segments to be indexed on char-based columns - #9132
Feature #2629 : Ability to specify length for index segments to be indexed on char-based columns#9132hvlad wants to merge 1 commit into
Conversation
…dexed on char-based columns
|
The questions for further consideration:
|
I think this is a dubious feature. How many people search BLOBs using BLOBs require slightly different indexes, such as inverted ones for FTS and the like.
Creating a unique index based on part of a key makes rather strange logical sense. |
With this feature it is possible to create index on long text columns specifying max count of leading characters of string that is included into index key.
The syntax for index segment definition:
<column> [(<length>)], wherecolumnis table column name andlengthis optional maximum count of characters included into index key.The
lengthcould be set for CHAR | VARCHAR | BINARY | VARBINARY types, blobs is not supported currently.ODS changes:
RDB$INDEX_SEGMENTS.RDB$CHARACTER_LENGTHirtd_lengthin index key descriptor, seestruct Ods::irtd