In order to ensure good performance run auto gc during the notedb migration every new 10000 refs which are created during the migration of a project. Auto gc will do garbage collection by default if it finds more than 6700 loose objects or more than 50 pack files. This can be changed by setting options gc.auto (default 6700) and gc.autoPackLimit (default 50) [1]. [1] https://git-scm.com/docs/git-config#Documentation/git-config.txt-gcauto Change-Id: If56219a1d256d6f1c84e6788f46668b481ff4718