• Mehmet Emin INAC's avatar
    Do not replace methods of BatchLoader proxy objects · dc130b9c
    Mehmet Emin INAC authored
    When the `replace_methods` option of BatchLoader#batch method is not
    set as `false`, the gem is defining all the instance methods of loaded
    object for the proxy instance of BatchLoader which can actually be an
    order of magnitude slower than just falling back to `method_missing`.
    
    Here we are setting `replace_methods` as false to disable this odd
    behaviour.
    dc130b9c
occurrence.rb 9.71 KB