
Chapter 12. Tips to proactively prevent SQL performance problems 415
Figure 12-3 shows the selection of a specific row using the SQL scalar function RRN()
compared to using that row’s key.
Figure 12-3 Row selection by using the SQL scalar function RRN() compared to using a key
12.2.4 Avoid numeric data type conversion
When a column value and a host variable (or constant value) are being compared, try to
specify the same data types and attributes. A query that uses CQE does not use an index for
the named column if the host variable or constant value has a greater precision than the
precision of the column.
However, if you have different numeric ...