proofit404 / stories

Service objects designed with OOP in mind.
https://proofit404.github.io/stories/
BSD 2-Clause "Simplified" License
296 stars 21 forks source link

Prefer bulk operations. #648

Open proofit404 opened 3 years ago

proofit404 commented 3 years ago

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.