From c7688c92499fa2009a235cf2498f5582204ff7bf Mon Sep 17 00:00:00 2001 From: vladar Date: Wed, 14 Dec 2016 20:22:38 +0700 Subject: [PATCH] Added "since" entry to docs for N+1 problem and async support --- docs/data-fetching.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/data-fetching.md b/docs/data-fetching.md index e1bf6f4..1f21b3d 100644 --- a/docs/data-fetching.md +++ b/docs/data-fetching.md @@ -152,6 +152,8 @@ Keep in mind that **field resolver** has precedence over **default field resolve # Solving N+1 Problem +Since: 9.0 + One of the most annoying problems with data fetching is so-called [N+1 problem](https://secure.phabricator.com/book/phabcontrib/article/n_plus_one/). Consider following GraphQL query: @@ -217,6 +219,8 @@ In this example only one query will be executed for all story authors comparing in naive implementation. # Async PHP +Since: 9.0 + If your project runs in environment that supports async operations (like `HHVM`, `ReactPHP`, `Icicle.io`, `appserver.io` `PHP threads`, etc) you can leverage the power of your platform to resolve fields asynchronously.