3 ms·
` If Query Batching is enabled, Apollo will not issue requests immediately. Instead it will wait for up to 10 ms to see if more requests come in from other comp
by seanlaff 7y ago
` If Query Batching is enabled, Apollo will not issue requests immediately. Instead it will wait for up to 10 ms to see if more requests come in from other components. `
This has always felt pretty lame to me. GraphQL has the entire request as an AST, it should know how to batch without arbitrary "debounces" thrown everywhere which slow all requests.
The fact that GQL doesn't provide better constructs around batching/reducing seems like a major failure of its design.
- tpetry 7y agoGQL can‘t know how and when your application or framework is issuing requests. The idea is elegant and copied from the TCP Nagle algorithm which works the same way.