Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
cscherban opened this issue Dec 28, 2023 · 3 comments

Comments

@cscherban
Copy link

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.

@BuonOmo
Copy link
Member

BuonOmo commented Jan 7, 2024

@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
Copy link
Member

BuonOmo commented Jan 27, 2024

@cscherban any chance you found the culprit ?

@seuros
Copy link
Contributor

seuros commented Mar 3, 2024

This issue is stale. we should close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants