-- Supports GROUP BY (client, table_name, operation) in client_table_statistics rollups.
CREATE INDEX IF NOT EXISTS idx_gateway_operation_log_stats_dims ON gateway_operation_log (
    client,
    table_name,
    operation
)
WHERE
    client IS NOT NULL
    AND client <> ''
    AND table_name IS NOT NULL
    AND table_name <> ''
    AND operation IS NOT NULL
    AND operation <> '';
