Subject Re: [firebird-support] what is better for index : varchar(15) or BIGINT
Author Ann W. Harrison
svanderclock wrote:
> hello,
>
> for a multi colum index, what is the best choice for one of the column: varchar(15) or BIGINT ? or doesn't really matter ?
>
> it's a lot of work to move our field from varchar(15) to BigInt, so i rather want to be sure before to do it that they will be some advantage ...

The only real difference is compression. All index keys are built so
they compare as octets - just bytes. Data type and collation don't
matter, except as they make keys bigger - and some collations have a
major effect on key size.


Good luck,

Ann