Considerations for Indexing
You should evaluate the following considerations when assigning data types to index columns.
“Example 2” on page 193 and “Example 3” on page 193 under the topic “Hash-Related Functions” address this issue.
Greater space requirements for a column translate to fewer data rows per block, which results in slower full‑table scans.
Any time tables are joined on a column, whether indexed or not, the columns must have the same data type in both tables. If the types do not agree, one must be converted, which results in a performance hit. The same is true for comparisons made in WHERE clause predicates.