Functional Indexes
A functional index is one in which all keys derive from the results of a function. If you have a column of pictures, for example, and a function to identify the predominant color, you can create an index on the result of the function. Such an index would enable you to quickly retrieve all pictures having the same predominant color, without re-executing the function.
A functional index uses the same B-tree structure as any other B-tree index. The only difference is that the determining function is applied during an insert or an update whenever the column that is the argument to the function changes. For more information on the nature of functional indexes, refer to your Informix® Performance Guide.
To create a functional index, use the CREATE FUNCTION and CREATE INDEX statements. For more information on these statements, refer to the Informix® Guide to SQL: Syntax.