NASA-PDS / registry-sweepers

Scripts that run regularly on the registry database, to clean and consolidate information
Apache License 2.0
0 stars 1 forks source link

91 - improve performance when logging ancestry orphaned documents #105

Closed alexdunnjpl closed 5 months ago

alexdunnjpl commented 5 months ago

🗒️ 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