0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

ircd:Ⓜ️:homeserver: Skip head updates during bootstrap.

This commit is contained in:
Jason Volk 2020-09-16 02:20:40 -07:00
parent d4677e2a29
commit cdadc3dfe8

View file

@ -240,6 +240,10 @@ try
vmopts.phase[vm::phase::INDEX] = true; vmopts.phase[vm::phase::INDEX] = true;
vmopts.phase[vm::phase::WRITE] = 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 // Perform normal static-conformity checks; there's no reason to accept
// inputs that wouldn't normally be accepted. While inputs are supposed // inputs that wouldn't normally be accepted. While inputs are supposed
// to be trusted and authentic, their correctness should still be checked; // to be trusted and authentic, their correctness should still be checked;