From cdadc3dfe8a034bf5984236d373b639e4c5ba853 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 16 Sep 2020 02:20:40 -0700 Subject: [PATCH] ircd::m::homeserver: Skip head updates during bootstrap. --- matrix/homeserver_bootstrap.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/matrix/homeserver_bootstrap.cc b/matrix/homeserver_bootstrap.cc index 81b4f7dee..fbc7394e3 100644 --- a/matrix/homeserver_bootstrap.cc +++ b/matrix/homeserver_bootstrap.cc @@ -240,6 +240,10 @@ try vmopts.phase[vm::phase::INDEX] = true; vmopts.phase[vm::phase::WRITE] = true; + // Optimize the bootstrap by not updating room heads at every step. + vmopts.wopts.appendix[dbs::appendix::ROOM_HEAD] = false; + vmopts.wopts.appendix[dbs::appendix::ROOM_HEAD_RESOLVE] = false; + // Perform normal static-conformity checks; there's no reason to accept // inputs that wouldn't normally be accepted. While inputs are supposed // to be trusted and authentic, their correctness should still be checked;