aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/relation
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2015-03-29 13:51:56 -0600
committerSean Griffin <sean@thoughtbot.com>2015-03-29 13:54:39 -0600
commit445c12f7dfa345b86e05dc610d665f9afde14c26 (patch)
tree132709696b9ab8666a8d10cb1eb6e4c73fb6ffc2 /activerecord/test/cases/relation
parente8a334a9ee87362e3a99a8a24eb7d28a6ad7ae04 (diff)
downloadrails-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/relation')
0 files changed, 0 insertions, 0 deletions