concept batching in category graphql

appears as: batching, batching
GraphQL in Action

This is an excerpt from Manning's book GraphQL in Action.

  • Batching: We can delay asking the database about a certain resource until we figure out the "IDs" of all the records that need to be resolved. Once these IDs are identified, we can use a single query that takes in a list of IDs and returns the list of records for them. This enables us to issue a SQL statement per table and that will reduce the SQL statements needed for the simple query in listing 7.2 to just 2, one for the azdev.tasks table and one for the azdev.users table.