Database cache is not used, need to re-think structure
While looking at the stack traces of Goroutines of the server, I realized that we are currently not utilizing the Bbolt cache.
It gets initialized properly but afterwards we are calling db.SearchRedirects
(instead of db.GetRedirectLight
), which is directly forwarded to the sourceDB
(i.e. Postgres).
This clearly shows that the current design is flawed since it's too easy to by-pass the cache.