Refactor shared property
This MR refactors the calculation of the shared
property of resources.
- The neo4j repository is no longer queried when the provided set of ids is empty.
- The naming of involved methods has been updated to better communicate their intent.
- The neo4j query has been updated for better performance. Instead of over 400k (yes, with a k) db hits, it now only takes about 127 for a random set of 25 ids. The query now also works for other
Thing
nodes, not just for resources.
Edited by Marcel Konrad