[Rails] Re: Re: Find distinct values in an array of database results

2010-04-26 Thread Marnen Laibow-Koser
Franz Strebel wrote: On Mon, Apr 26, 2010 at 10:42 PM, Marnen Laibow-Koser li...@ruby-forum.com wrote: [Please quote when replying, so we know what in particular you're responding to.] Vincent M. wrote: Sometimes you're not querying a database (for example a REST service that returns a

[Rails] Re: Re: Find distinct values in an array of database results

2010-04-15 Thread Marnen Laibow-Koser
Christophe Decaux wrote: If I may jump in, I'm interested in understanding why you would do this kind of database job with Ruby vs. an extra SQL query. I had the feeling that it would be wiser (and would execute faster) to delegate the job to the database engine I agree. This is a job for