Tip: Put your Rails app on a SQL query diet | Software Engineer, Author, High Performance PostgreSQL for Rails
12-Jun-2025 33
Much of the time taken processing HTTP requests in web apps is SQL queries. To minimize that, we want to avoid unnecessary and duplicate queries, and generally perform as few queries as possible.
Think of the work that needs to happen for every query. The database engine parses it, creates a query execution plan, executes it, and then sends the response to the client.
When the response reaches the client, there’s even more work to do. The response is transformed into application objects in memory.
How do we see how many queries are being created for our app actions?.
Tip: Put your Rails app on a SQL query diet | Software Engineer, Author, High Performance PostgreSQL for Rails #ruby #rubydeveloper #rubyonrails #Rails #query #Software #Engineer, #Author, #Performance #PostgreSQL #Rails #engineer, #performance #sql https://rubyonrails.ba/link/tip-put-your-rails-app-on-a-sql-query-diet-software-engineer-author-high-performance-postgresql-for-rails