Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ruby's external malloc problem (samsaffron.com)
2 points by pjungwir on June 15, 2018 | hide | past | favorite | 1 comment


I learned of this issue recently when someone corrected me on StackOverflow about using ActiveRecord::Base.connection.execute, which leaks memory, and pointed me to exec_query instead.[1] Here that behavior is why ActiveRecord can't lazy-allocate a result set. Sam is doing great work lately on ActiveRecord memory use; I've learned a lot reading his articles, and it sounds like he is really building up enough knowledge to implement some improvements.

[1] https://stackoverflow.com/questions/4483049/how-to-execute-a...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: