Re:How to use Query Objects to refactor Rails SQL-queries
by glennericksen on Wednesday January 08, 2020 @08:58AM
(#21991439)
A "when to" should be added to this "how to". This might be cohesive in a smaller code-base, but it is not pleasant as "query objects" multiply. There are other ways of handling complex queries closer to the model without this type of abstraction. If you reach for this pattern, be sure it's worth the added cost in complexity.
[ Parent
| on HN ]
There are no comments on this comment yet.