collect_statistics
- collect_statistics(
table_name: string,
column_names: string[],
options?: Record<string, string>,
callback?: GPUdbCallback,
): Promise<CollectStatisticsResponse>Parameters
- table_name: string
Name of a table, in [schema_name.]table_name format, using standard name resolution rules. Must be an existing table. A value of '' collects statistics on every user table the caller may read (excluding system schemas, views, and temporary tables); when used,
column_namesmust be ''. - column_names: string[]
List of one or more column names in
table_namefor which to collect statistics (cardinality, mean value, etc.). A single entry of ’*’ expands to every collectable column on the table (geometry, vector, JSON, and array columns are skipped). Optionaloptions: Record<string, string>Optional parameters.
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<CollectStatisticsResponse>
Promise<Types.CollectStatisticsResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:5356
- table_name: string
collect_statistics_request
- collect_statistics_request(
request: CollectStatisticsRequest,
callback?: GPUdbCallback,
): Promise<CollectStatisticsResponse>Collect statistics for a column(s) in a specified table.
Parameters
- request: CollectStatisticsRequest
Request object containing the parameters for the operation
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<CollectStatisticsResponse>
Promise<Types.CollectStatisticsResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:5324
- request: CollectStatisticsRequest
Collect statistics for a column(s) in a specified table.