Closed microaaron closed 1 year ago
Any database operation (such as /ns erase /ns passwd) will not delete obsolete data, which makes ircd.db bigger and bigger.
ircd.db is a bunt database and it appears that ergo uses the default AutoShrinkPercentage value of 100
AutoShrinkMinSize is also relevant; no shrinking is expected until you reach 32 MB.
AutoShrinkMinSize
Thanks a lot. I found the key codes. https://github.com/ergochat/ergo/blob/378d88fee253961d3dfef76805875982f359a9a3/irc/database.go#L72-L73 https://github.com/tidwall/buntdb/blob/71088bcabfa9b2ab055f47523e7bd130d736afbf/buntdb.go#L148-L152
Any database operation (such as /ns erase /ns passwd) will not delete obsolete data, which makes ircd.db bigger and bigger.