On Thu, Jan 15, 2009 at 8:09 PM, Ukrit Himakoon <rails-mailing-l...@andreas-s.net> wrote: > > I've a table with structure like this: > > id: int > field1: varchar(255) > field2: int(11) > field3: text > field4: text > field5: varchar(255) > field6: varchar(255) > > assume that this table contains massive contents on field 3 and 4 > So any way that I will be able to access this table quicker than my > current query? > > > And this is the way I'm access this table: > > Table.find(:all, :include=> "relate_table") > > please give me some hint (and I need all fields to display on page)
You can use :select in your calls to find to select specific fields to retrieve data for. Here is a quick writeup on it. * http://www.geekskillz.com/articles/11 Good luck! Cheers, Robby -- Robby Russell Chief Evangelist, Partner PLANET ARGON, LLC design // development // hosting w/Ruby on Rails http://www.planetargon.com/ http://www.robbyonrails.com/ aim: planetargon +1 503 445 2457 +1 877 55 ARGON [toll free] +1 815 642 4068 [fax] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---