Collecting statistics for all other data sources
You can use the DVSYS.COLLECT_STATISTICS procedure to collect statistics for all virtualized objects except objects that are defined in object storage.
call DVSYS.COLLECT_STATISTICS('schema', 'table_name', 'list_of_columns_commonly_used_in_predicates', 1, null, ?);
This call collects table-level statistics and column-level statistics for the columns that are included in the list_of_columns_commonly_used_in_predicates argument. If the table has few columns, you can collect statistics for all columns in the table by specifying the null value instead of a column list. To avoid collecting column statistics, specify the empty string ('') instead.
The remote-catalog collection type is not supported for all data sources, and some data sources that support the remote-catalog collection type do not support all the key statistics that are used by Watson Query. In either case, it might be necessary to use the remote-query type of statistics collection. The following example is similar to the previous example, but uses the remote-query collection type instead.
call DVSYS.COLLECT_STATISTICS('schema', 'table_name', 'list_of_columns_commonly_used_in_predicates', 2, null, ?);
call DVSYS.COLLECT_STATISTICS('schema', 'table_name', 'list_of_columns_commonly_used_in_predicates', 2, 'TABLESAMPLE=25', ?);
Avoid scheduling many statistics collection jobs at the same time.