search for: team_number

Displaying 1 result from an estimated 1 matches for "team_number".

Did you mean: read_number
2006 Mar 13
4
Find and eager loading questions
...h associations and eager loading. (I''m currently using Locomotive on OS X and SQLite3.) I have two simple tables/models, set up properly: teams has_many :matches and matches belongs_to :teams. Matches has a match number and a team_id field (along with several other fields) and teams has a team_number field (again, along with several other fields.) I want to get a list of all the matches with only one piece of data from teams (there are about 360 rows in the matches table). I did this and it works, but is a little slow: @matches = Match.find(:all, :order => ''number'') and...