It also depends how optimal your SQL ends up.
Blog: http://random8.zenunit.com/
Learn rails: http://sensei.zenunit.com/
On 01/04/2009, at 11:28 PM, Harold wrote:
>
> I think this is a common 'dilemma' that comes across every now and
> then. "Which model should I ask for this information"? I al
I think this is a common 'dilemma' that comes across every now and
then. "Which model should I ask for this information"? I also think
there's no right answer. But here's my two cents:
In your case, you want to know which a product was purchased by a
user, so the question could go both ways: Did
I think the problem lies in the ability for the DB to perform a join
across multiple tables which in fact breaks encapsulation!
Maybe I should break down my DB query that uses joins into smaller
queries. The code is obviously less efficient, but it's more
maintainable, as each model is only co
3 matches
Mail list logo