Instead of trying to apply the same story to multiple objects, or ask how to repeat the same story in a loop - write story which operates on a collection of objects.
In addition, that would frequently result in efficient database layer utilization and minimize possible N+1 queries.
Instead of trying to apply the same story to multiple objects, or ask how to repeat the same story in a loop - write story which operates on a collection of objects.
In addition, that would frequently result in efficient database layer utilization and minimize possible N+1 queries.