With the Ruby GC, I know what amount of heap_live_slots and heap_free_slots I max out with. Adding them totals 2.3 million. Does it make sense to set RUBY_GC_HEAP_INIT_SLOTS to that value and then don't allow more growing on the heap?
matthewd: All other queries runs very fast, so I don't know what the issue is.
matthewd: Had it been a too low connection pool wouldn't it also imply that I'd get a "couldn't get a database connection bla bla" ?
matthewd: I don't know, I am seeing this in newrelic, however in our own metrics I see an average of ~13 ms response times while on newrelic it says that I have a really high response time.
matthewd: Is it possible that newrelic reports the wrong metrics?