When a CTE makes a Postgres query faster
What a WITH clause changes in the plan, measured on 2 million rows, and how to write the same queries in Rails.
3 posts
What a WITH clause changes in the plan, measured on 2 million rows, and how to write the same queries in Rails.
When you need to calculate rank and save it to a field in Postgres. This example uses Rails ActiveRecord but if you can execute the query you are...
Being an optimist I would say, Yes! Having worked on a large scale high visibility site I've personally seen it happen, so definitely Yes! When the budget was...