Never Query the Same Thing More Than Once
In a recent post, I talked about how I used Postgres DISTINCT ON to remove a pesky N 1 query. That was actually one of the final touches in immproving the Graphics.
Never Query the Same Thing More Than Once #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/never-query-the-same-thing-more-than-once