This is tricky and optional, some badges are very expensive to calculate pass in :backfill , :post_ids and :user_ids to all badge queries so they can do pre-filtering, if you do it after the sub-query it is too late