We’re overhauling Dgraph’s docs to make them clearer and more approachable. If you notice any issues during this transition or have suggestions, please let us know.
To understand how query execution works, look at an example.
Let’s assume we have 3 Alpha instances, and instance id=2 receives this query. These are the steps:
0x1::rel_A
, 0x1::rel_B
, and
0x1::rel_C
.
rel_B
are converted into queries
for id1::rel_B1
id2::rel_B1
, etc., and for id1::rel_B2
id2::rel_B2
,
etc.id::rel_C1
and id::rel_C2
.rel_C2_1
as well, and as deep as any
query requires.More complex queries may do filtering operations, or intersections and unions of
UIDs, but this recursive walk to execute a number of (often parallel) Tasks
to
retrieve UIDs characterizes Dgraph querying.
If the query was run via HTTP interface /query
, the resulting subgraph then
gets converted into JSON for replying back to the client. If the query was run
via gRPC interface using the language clients,
the subgraph gets converted to
protocol buffer format and
similarly returned to the client.
We’re overhauling Dgraph’s docs to make them clearer and more approachable. If you notice any issues during this transition or have suggestions, please let us know.
To understand how query execution works, look at an example.
Let’s assume we have 3 Alpha instances, and instance id=2 receives this query. These are the steps:
0x1::rel_A
, 0x1::rel_B
, and
0x1::rel_C
.
rel_B
are converted into queries
for id1::rel_B1
id2::rel_B1
, etc., and for id1::rel_B2
id2::rel_B2
,
etc.id::rel_C1
and id::rel_C2
.rel_C2_1
as well, and as deep as any
query requires.More complex queries may do filtering operations, or intersections and unions of
UIDs, but this recursive walk to execute a number of (often parallel) Tasks
to
retrieve UIDs characterizes Dgraph querying.
If the query was run via HTTP interface /query
, the resulting subgraph then
gets converted into JSON for replying back to the client. If the query was run
via gRPC interface using the language clients,
the subgraph gets converted to
protocol buffer format and
similarly returned to the client.