These are chat archives for ManageIQ/manageiq/performance
I hasn't realized that the inverse_of made such an impact
yeah, you only see an impact when you navigate back and forth from the same association and build relations off of the duplicated objects
VALID_AUTOMATIC_INVERSE_MACROS = [:has_many, :has_one, :belongs_to] INVALID_AUTOMATIC_INVERSE_OPTIONS = [:conditions, :through, :polymorphic, :foreign_key]
automatic_inverse_ofmay also be relevant
User.reflections['taggings'].send(:automatic_inverse_of)sound like they might be answering that question
EmsCluster.reflections['hosts'].send(:automatic_inverse_of) => :ems_cluster
inverse_of- they don't look so good:
inverse_ofisn't defined doesn't mean rails won't figure it out...
classes that have no inverse_of defined
inverse_ofon a AR model, it's optional. What you're saying gives it another meaning... this is the inverse_of that you told me to use or what I figured out...