Queries Referencing UNION ALL Views

To adjust performance for queries that reference UNION ALL views, set the JOIN_PREFERENCE option, which affects joins between UNION ALL views.

All partitions in a UNION ALL view must have a complete set of indexes defined for optimization to work. Queries with DISTINCT will tend to run more slowly using a UNION ALL view than a base table.

SAP Sybase IQ includes optimizations for UNION ALL views, including:

A UNION can be treated as a partitioned table only if it satisfies all of the following constraints: