Optimize StorageJanitor::findOrphanedItems

Use subqueries to optimize the find orphaned items.

Alternative to !298 (closed) faster but doesn't use the SqlBuidlder as this doesn't support subqueries

BUG: 451620 FIXED-IN: 6.6.0

Edited by Carl Schwan

Merge request reports

Loading