# spicedb


07/07/2022, 1:57 AM
We are trying to solve the problem that we have a huge dataset and also complex postgres queries for listing a filtering entities along with access control checks through custom roles. We are considering using spicedb to extract authorization logic because other microservices would want to use the same, but the solution poses a lot of challenges around filtering two big lists from two different sources. Neither post nor pre filtering would work. So we were thinking about synchronizing the permission bitmap into our postgres database so we can join that ti our existing queries. Is that a common scenario?