The query implemented in this diff works great on our dataset. It returns
immediately.
But, that currently fails on db storage tests. This relies on the
`object_counts` table which is not part of the storage per say (as far as i
understood it).
What would be a correct way to test this?
Note:
Related to T2120