- update: i need the results to be associated with the variables, and obviously maintaining order.
Hi folks, i find myself doing some variant of this often.
Essentially, i am doing 3 db calls, but I would like to do it in one single database call (for obvious performance reasons)
user1=User.find(x)
user2=User.find(y)
user3=User.find(z)
I believe there should be a simple rails method to handle this
I am using mongoid, but activerecord centric answers appreciated as well