Hi all,

I have seen that at line 99 of:
https://github.com/tablatom/hobo/blob/master/hobo_fields/lib/hobo_fields/model.rb
the index created for a polymorphic association is in the order (type, id). 
However,
I believe that it would be more efficient to index first with the id, so 
that only a few records
would match. 
Is it some ActiveRecord voodoo that reorders them on the fly, or is there 
other considerations ?

Bests,
Yannick

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/hobousers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to