Bayesian Inference in Large-scale Problems