We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The ordering on most SSP queries can be very slow.
The text was updated successfully, but these errors were encountered:
Use of a CTE query for sorting (https://www.postgresql.org/docs/current/static/queries-with.html) can improve performance substantially -- tested with a local dump of prod db. The postgres_ext (https://github.com/DockYard/postgres_ext/blob/master/docs/querying.md) gem adds this support, but it appears to have a conflict with squeel. Investigating.
postgres_ext
squeel
Sorry, something went wrong.
Perhaps of use: CTE support in ARel https://github.com/rails/arel#complex-joins ?
This is the query that was taking longer than 2 minutes to complete previously: https://transit.land/api/v1/schedule_stop_pairs?feed_onestop_id=f-drt8-nps~boha~ferries
After @irees 's index changes, it's nice and fast.
irees
No branches or pull requests
The ordering on most SSP queries can be very slow.
The text was updated successfully, but these errors were encountered: