Previously, orphaned ancestry documents would be enumerated and logged at all logging levels. This could take many minutes, where the sweepers run would otherwise take under one second.
When debug logging is not enabled, this enumeration will be replaced by a placeholder.
N.B. there is a little spaghetti (see new TODO). I will open a ticket to address this at a later date, but the RoI is not high enough to delay deployment of this improvement.
🗒️ Summary
Previously, orphaned ancestry documents would be enumerated and logged at all logging levels. This could take many minutes, where the sweepers run would otherwise take under one second.
When debug logging is not enabled, this enumeration will be replaced by a placeholder.
N.B. there is a little spaghetti (see new TODO). I will open a ticket to address this at a later date, but the RoI is not high enough to delay deployment of this improvement.
⚙️ Test Data and/or Report
Tests pass
♻️ Related Issues
Addresses #91 improves #100