diff options
author | Sean Griffin <sean@thoughtbot.com> | 2015-03-29 13:51:56 -0600 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2015-03-29 13:54:39 -0600 |
commit | 445c12f7dfa345b86e05dc610d665f9afde14c26 (patch) | |
tree | 132709696b9ab8666a8d10cb1eb6e4c73fb6ffc2 /activerecord/test/cases/base_test.rb | |
parent | e8a334a9ee87362e3a99a8a24eb7d28a6ad7ae04 (diff) | |
download | rails-445c12f7dfa345b86e05dc610d665f9afde14c26.tar.gz rails-445c12f7dfa345b86e05dc610d665f9afde14c26.tar.bz2 rails-445c12f7dfa345b86e05dc610d665f9afde14c26.zip |
Reduce memory usage when loading types in PG
We were never clearing the `PG::Result` object used to query the types
when the connection is first established. This would lead to a
potentially large amount of memory being retained for the life of the
connection.
Investigating this issue also revealed several low hanging fruit on the
performance of these methods, and the number of allocations has been
reduced by ~90%.
Fixes #19578
Diffstat (limited to 'activerecord/test/cases/base_test.rb')
0 files changed, 0 insertions, 0 deletions