Hi, I have a user and address model.
In one of my view I am using "@user.address" 5 times.
My question is weather will it fire 5 different queries to the database?
Thanks, Tushar
Hi, I have a user and address model.
In one of my view I am using "@user.address" 5 times.
My question is weather will it fire 5 different queries to the database?
Thanks, Tushar
nope ![]()
why so? any reason behind it.
Thanks, Tushar
Hai!
can you try this way:
@user[0].address @user[1].address @user[2].address @user[3].address @user[4].address
bye ![]()