1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
-- SQL CLI Configuration for Large Datasets
-- Use this config when working with large datasets where wide columns
-- may appear later in the data (e.g., FIX file selectors with 3k+ rows)
require.
-- Example use cases:
--
-- 1. FIX file selector with 3k rows:
-- With col_sample_rows = 0, it will scan all 3k rows to find the widest
-- tag values, preventing truncation with "..." in later rows.
--
-- 2. WEB CTE responses with variable-length fields:
-- Unlimited column width ensures full data visibility without truncation.
--
-- 3. Alternative balanced approach:
-- If scanning all rows is too slow, try:
-- max_col_width = 150 -- Reasonable limit
-- col_sample_rows = 1000 -- Sample first 1000 rows
--
-- Performance note:
-- - col_sample_rows = 0 (all rows) is slower but accurate
-- - col_sample_rows = 100 (default) is fast but may truncate late data
-- - Choose based on your dataset size and width distribution