You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To upgrade to an [HA cluster setup]({{< relref "#ha-cluster-setup-using-kubernetes" >}}):
332
+
To upgrade to an HA cluster setup:
333
333
334
334
1. Ensure that the shard replication setting is more than one and `zero.shardReplicaCount`. For example, set the shard replica flag on the Zero node group to 3,`zero.shardReplicaCount=3`.
335
335
2. Run the Helm upgrade command to restart the Zero node group:
Copy file name to clipboardExpand all lines: content/deploy/installation/production-checklist.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,7 @@ A Dgraph instance is run as a single process from a single static binary. It doe
105
105
106
106
A backup policy is a predefined, set schedule used to schedule backups of information from business applications. A backup policy helps to ensure data recoverability in the event of accidental data deletion, data corruption, or a system outage.
107
107
108
-
For Dgraph, backups are created using the [backups feature]({{< relref "/enterprise-features/binary-backups" >}}). You can also create full exports of your data and schema using [data exports]({{< relref "dgraph-administration.md#exporting-database" >}}).
108
+
For Dgraph, backups are created using the [backups feature]({{< relref "/enterprise-features/binary-backups" >}}). You can also create full exports of your data and schema using [data exports]({{< relref "dgraph-administration.md#export-database" >}}).
109
109
110
110
We **strongly** recommend that you have a backup policy in place before moving your application to the production phase, and we also suggest that you have a backup policy even for pre-production apps supported by Dgraph database instances running in development, staging, QA or pre-production clusters.
Copy file name to clipboardExpand all lines: content/design-concepts/relationships-concept.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ The first represents relations among entities (nodes in graph terminology) and t
22
22
Often, the optional `Label` is omitted, and therefore the N-Quad data is also referred to as "triples." When it is included, it represents which `Tenant` or `Namespace` the data lives in within Dgraph.
23
23
24
24
{{% notice "tip" %}}Dgraph can automatically generate a reverse relation. If the user wants to run
25
-
queries in that direction, they would need to define the [reverse relationship]({{< relref "dql-schema.md#reverse-edges" >}})
25
+
queries in that direction, they would need to define the [reverse relationship]({{< relref "dql-schema.md#reverse-predicates" >}})
26
26
{{% /notice %}}
27
27
28
28
For `Relationships`, the subject and object are represented as 64-bit numeric UIDs and the relationship name itself links them: <subjectUID> <relationshipName> <objectUID>.
Copy file name to clipboardExpand all lines: content/dgraph-glossary.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ A relationship is a named, directed link relating one [node](#node) to another.
67
67
Sharding is a database architecture pattern to achieve horizontal scale by distributing data among many servers. Dgraph shards data per relationship, so all data for one relationship form a single shard, and are stored on one (group of) servers, an approach referred to as 'predicate-based sharding'.
68
68
69
69
### Triple ###
70
-
Because RDF statements consist of three elements: <subject> <predicate> <object>, they are called triples. A triple represents a single atomic statement about a node. The object in an RDF triple can be a literal value or can point to another node. See [DQL RDF Syntax](/dql/dql-syntax/dql-rdf) for more details.
70
+
Because RDF statements consist of three elements: <subject> <predicate> <object>, they are called triples. A triple represents a single atomic statement about a node. The object in an RDF triple can be a literal value or can point to another node. See [DQL RDF Syntax]({{< relref "dql-rdf">}}) for more details.
71
71
- when we store that a node name is "Alice". The predicate is ``name`` and predicate value is the string "Alice". The string becomes a node property.
72
72
- when we store that Alice knows Bob, we may use a predicate ``knows`` with the node representing Alice. The value of this predicate would be the [uid](#uid) of the node representing Bob. In that case, ``knows`` is a [relationship](#relationship).
Copy file name to clipboardExpand all lines: content/dql/dql-schema.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ When you deploy a [GraphQL API schema]({{< relref "graphql">}}), Dgraph generate
62
62
Refer to [GraphQL and DQL schemas]({{< relref "graphql-dql-schema">}}) in the [GraphQL - DQL interoperability]({{< relref "graphql-dql">}}) section for use cases using both approaches.
63
63
{{% /notice %}}
64
64
65
-
For example, you can run the following mutation (using the [RDF](/dql/dql-syntax/dql-rdf/) notation):
65
+
For example, you can run the following mutation (using the [RDF]({{< relref "dql-rdf">}}) notation):
To use [upsert operations](/howto/upserts/) on a predicate, specify the `@upsert` directive in the schema.
230
+
To use [upsert operations]({{< relref "upserts" >}}) on a predicate, specify the `@upsert` directive in the schema.
231
231
232
232
When committing transactions involving predicates with the `@upsert` directive, Dgraph checks index keys for conflicts, helping to enforce uniqueness constraints when running concurrent upserts.
As well as implying a schema type for a first mutation, an RDF type can override a schema type for storage.
254
-
Dgraph supports a number of [RDF](/dql/dql-syntax/dql-rdf/) types.
254
+
Dgraph supports a number of [RDF]({{< relref "dql-rdf">}}) types.
255
255
256
256
If a predicate has a schema type and a mutation has an RDF type with a different underlying Dgraph type, the convertibility to schema type is checked, and an error is thrown if they are incompatible, but the value is stored in the RDF type's corresponding Dgraph type. Query results are always returned in schema type.
257
257
@@ -421,7 +421,7 @@ Node types are optional, but there are two use cases where actually knowing the
421
421
422
422
The Dgraph node types are used in those 2 use cases: when executing the `delete all predicates` mutation or the `expand all` query, Dgraph will check if the node has a ``dgraph.type`` predicate. If so, the engine is using the declared type to find the list of predicates and apply the delete or the expand on all of them.
423
423
424
-
When nodes have a type (i.e have a `dgraph.type` predicate), then you can use the function [type()](/dql/dql-syntax/dql-query/#node-criteria-used-by-root-function-or-by-filter) in queries.
424
+
When nodes have a type (i.e have a `dgraph.type` predicate), then you can use the function [type()]({{< relref "functions.md#type" >}}) in queries.
425
425
426
426
{{% notice "warning" %}}
427
427
`delete { <uid> * * . }` will only delete the predicates declared in the type. You may have added other predicates by running DQL mutation on this node: the node may still exist after the operation if it holds predicates not declared in the node type. `<>`
0 commit comments