From: Paulo Carvalho Date: 2007-10-18T17:34:20+09:00 Subject: Re: sort_by Thank you all. Your hints were very helpfull to resolve my problem. Best regards John Joyce wrote: > On Oct 17, 2007, at 11:04 AM, Rob Biedenharn wrote: > >>>> >>> To order (ASC way): >>> Any idea of where is the problem? >> When @demandes.size is "small enough" it's not necessarily faster >> > Good Point! > For large tables, it will be faster to use the database's abilities, > so if the data set is large and you want the speed, go for DBI or > ActiveRecord or OG or something. > Many databases have optimized abilities for this. DESC is one of those. -- Posted via http://www.ruby-forum.com/.