In my recent project, I was working with scopes across various models, and I needed to apply a nested scope for more advanced querying. To achieve this with performant query I used different concepts, this blog is about the same!! Lets revise the basics!Firstly, lets start with what is query optimisation ? Optimising queries is key ... Continue reading Speed Up Queries with Nested Scopes in Rails