btcd/lnd devs database stuff is some of the worst ever written in #golang
Discussion
you should see how long IBD takes ... and i tried to get a PR merged that lets you configure runtime parameters that more than double the performance... another brick in the wall for me with trying to work with these assclowns