Commit bad0ce4
authored
chore(db): tune document autovacuum for connector sync churn (#7962)
* chore(db): tune document autovacuum for connector sync churn
Connector syncs update this table in bursts that outrun autovacuum at the
default 20% scale factor, which on a table of this size only triggers once dead
rows are already substantial. Sustained bloat stops index-only scans trusting
the visibility map, so the knowledge base listing's token aggregate degrades
into per-row heap fetches and can exceed its statement timeout.
The factors are less aggressive than 0357's on purpose. That one is a small
queue table, while this is one of the largest here and shares a small autovacuum
worker pool with many other large tables, so triggering too eagerly would risk
holding a worker continuously and starving its peers. Cost limit and cost delay
are left unset so the table stays inside cross-worker I/O balancing.
* chore(docs): keep production scale out of published text
Comments describing measured behaviour carried absolute production sizing —
index byte sizes, chunk and row totals — which the repo's publishing rules
exclude and which a public reader does not need. The measurements that justify
each decision stay; only the figures that size production are replaced.
The ship scrub missed these because its grep matched identities and IDs but
never numbers, and because code and migration comments do not feel like
publishing even though they are. It now states the distinction explicitly and
greps the diff for byte sizes, k/M-scale entity counts, and seven-figure totals,
while deliberately still allowing ordinary engineering numbers.1 parent fe1c91f commit bad0ce4
6 files changed
Lines changed: 27802 additions & 12 deletions
File tree
- .agents/skills/ship
- apps/sim/lib
- knowledge/search
- table
- packages/db/migrations
- meta
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
116 | 118 | | |
117 | 119 | | |
| 120 | + | |
118 | 121 | | |
| 122 | + | |
| 123 | + | |
119 | 124 | | |
120 | 125 | | |
| 126 | + | |
| 127 | + | |
121 | 128 | | |
122 | 129 | | |
123 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
911 | 912 | | |
912 | 913 | | |
913 | 914 | | |
914 | | - | |
915 | | - | |
916 | | - | |
917 | | - | |
918 | | - | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
919 | 920 | | |
920 | 921 | | |
921 | 922 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
77 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments