4.9 is slow to sync and index repositories
We have new logic dueing repo indexing which looks for orphaned content units after sync and tries to delete them. However, this introduces a lot of slowness in syncs in env with a large number of content units.
We need to optimize this operation:
and possibly scope it by repo being synced or call this as an async task in finalize to not impact sync performance.
Please clone and make sure we have this flow downstream.