Displaying 1 result from an estimated 1 matches for "082510d8".
Did you mean:
08250098
2006 Jun 26
2
How can I minimize SQL queries
I have users, who have friends that are also users in mysql database.
I have a foreign key for both users, so that I can reference their data
directly. My problem is displaying friends. My for statement would
look something like this:
for i in(0..@user.friends.length)
puts @user.friends[i].user.name
end
so @user is the user that i''m displaying friends for... .friends are the