]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
searchidx: switch to accounting by message bytes
authorEric Wong <e@80x24.org>
Sun, 12 Feb 2017 09:04:54 +0000 (09:04 +0000)
committerEric Wong <e@80x24.org>
Tue, 14 Feb 2017 22:56:35 +0000 (22:56 +0000)
commiteb0267592377e116c7184d206bff48413ae202fe
tree9b6fbe64cc5867e99ef4c056e080f4b123b26420
parent60f38818f2dbc76e20041cf1b01e2baf3322a1f1
searchidx: switch to accounting by message bytes

Xapian memory usage is tied to the size of the indexed
text, so take the raw message size into account when
deciding when to flush Xapian data.

More importantly, we now flush Xapian before we have it
buffer beyond our maximum; and we do it unconditionally
to prevent even high priority processes from OOM-ing.
lib/PublicInbox/SearchIdx.pm