Overview
Related to https://issues.redhat.com/browse/ROX-31365
We're doing N+1 DB queries for each GetAllPolicies call, with N being the number of policies stored in the DB.
We should investigate whether we can get that down to some fewer queries. Initial investigation with AI show 3 queries are possible when we do some in-memory matching in central, 1 query when we bypass the query framework of central and send a raw join/aggregate.