activerecord-postgis-adapter icon indicating copy to clipboard operation
activerecord-postgis-adapter copied to clipboard

Using the Adapter in Rails 7, Ruby 3.1.2, results in query times increasing 100%

Open cscherban opened this issue 1 year ago • 3 comments

We recently started using the postgis adapter in a high-usage environment.

We noticed a significant jump in query latencies for general queries (non-geo, read and write). Reverting back to the postgresql adapter fixed our latency.

Looking at the database level we saw that there was no change in db read and write latencies (using a cloud hosted Postgres database).

Any help would be much appreciated, I'm not sure how further investigate this.

cscherban avatar Dec 28 '23 21:12 cscherban

@cscherban I would use a tool to monitor where the performance hit is (e.g: in ruby? in the db?). If it is in production you could use a monitor like new relic. If you are lucky enough to reproduce the issue locally, it will be even easier to pinpoint the issue with a profiler such as stackprof. These bits of information will help us drastically giving you guidance :)

BuonOmo avatar Jan 07 '24 19:01 BuonOmo

@cscherban any chance you found the culprit ?

BuonOmo avatar Jan 27 '24 22:01 BuonOmo

This issue is stale. we should close it.

seuros avatar Mar 03 '24 19:03 seuros