Automatically avoiding GraphQL N 1s | Aha!
18-May-2021 1624
Some people, when faced with an API problem, think “I’ll use GraphQL!” And now they have N 1 problems.N 1 problems occur when you want to find a deep tree of records and end up performing a SQL statement or API request for every record, instead of retrieving all records — or all records of a given type — at the same time.In Rails, N 1 problems are simple to solve using includes:.
Automatically avoiding GraphQL N 1s | Aha! #ruby #rubydeveloper #rubyonrails #Automatically #avoiding #GraphQL https://rubyonrails.ba/link/automatically-avoiding-graphql-n-1s-aha