instacart / makara

A Read-Write Proxy for Connections; Also provides an ActiveRecord adapter.

Home Page:http://tech.taskrabbit.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slow app when using postgis adapter

nienko opened this issue · comments

My app be very slow when using adapter: 'makara_postgis', and i didnt find the reason. I did some tests using adapter: 'makara_postgresql'` and it works ok, but using postgis it become slow and cpu got stuck at 100%.

*gem 'activerecord-postgis-adapter', '2.2.2'
*gem 'rails', 4.0.13'
*gem 'pg', '0.18.4'
*gem 'makara', '0.4.1'

someone can show me the way? 😅

We found the reason, we are using newrelic_rpm gem, that implements a middleware to do some checks of the system. And it was conflicting with makara, entering in a kind of loop and making system very slow.