search for: message_author

Displaying 1 result from an estimated 1 matches for "message_author".

Did you mean: message_auth
2011 May 03
2
Database performance for polymorphic associations under high load
...hic associations when you''ve got your database under really high query load? So for example, maybe I have a "message" model, a "user" model and an "administrator" model, without any subclassing or STI going on. Message has a polymorphic interface called "message_author", and both "User" and "Administrator" use it. Say there wind up being ~1 million messages in that message table. Assuming everything''s properly indexed, do polymorphic associations add any significant overhead to conducting database queries? Thanks guys, appreci...