get all user_ids more efficiently