Displaying 1 result from an estimated 1 matches for "b3578637".
Did you mean:
90578637
2006 Jul 15
2
find() with id array - can i preserve the ordering?
Sort of a newbie question - sorry if it''s been asked before and I missed it
in my search.
I have an id_array of Author ids, and I want to retrieve the associated
Author models as quickly as possible, but also preserve the ordering of the
id_array.
Using Author.find(id_array) returns the records, but not in the same order.
Is there some flag I can pass to find() to preserve the order? I