From e5aa4537cf17581164d39c1302933878e8a8bed5 Mon Sep 17 00:00:00 2001 From: Dhghomon Date: Thu, 24 Oct 2024 12:34:13 +0900 Subject: [PATCH] Clarify PARALLEL keyword --- src/content/doc-surrealql/statements/create.mdx | 2 +- src/content/doc-surrealql/statements/relate.mdx | 2 +- src/content/doc-surrealql/statements/select.mdx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/content/doc-surrealql/statements/create.mdx b/src/content/doc-surrealql/statements/create.mdx index c9cc10c83..a377ab7ee 100644 --- a/src/content/doc-surrealql/statements/create.mdx +++ b/src/content/doc-surrealql/statements/create.mdx @@ -356,7 +356,7 @@ CREATE |person:500000| SET age = 46, username = "john-smith" TIMEOUT 500ms; ### Parallel -The `PARALLEL` keyword can be used to specify that the statement should be executed in parallel. Similar to the `TIMEOUT` clause this is useful for more control over how your queries should behave, if that is needed. +The `PARALLEL` keyword can be used to specify that the statement should be processed concurrently, rather than sequentially. Similar to the `TIMEOUT` clause this is useful for more control over how your queries should behave, if that is needed. ```surql CREATE person:26, CREATE person:27 PARALLEL; diff --git a/src/content/doc-surrealql/statements/relate.mdx b/src/content/doc-surrealql/statements/relate.mdx index 286123d49..a208cd40c 100644 --- a/src/content/doc-surrealql/statements/relate.mdx +++ b/src/content/doc-surrealql/statements/relate.mdx @@ -622,7 +622,7 @@ SELECT * FROM person WHERE ->knows->person->(knows WHERE influencer = true) TIME ## Using `PARALLEL` clause -When processing a large result set with many interconnected records, it is possible to use the `PARALLEL` keyword to signify that edges and remote records should be fetched and processed in parallel. This can be useful when you want to process a large result set in a short amount of time. +When processing a large result set with many interconnected records, it is possible to use the `PARALLEL` keyword to signify that edges and remote records should be fetched and processed concurrently, rather than sequentially. This can be useful when you want to process a large result set in a short amount of time. ```surql -- Fetch and process the person, purchased and product targets in parallel diff --git a/src/content/doc-surrealql/statements/select.mdx b/src/content/doc-surrealql/statements/select.mdx index 09a88989f..c402cc5c7 100644 --- a/src/content/doc-surrealql/statements/select.mdx +++ b/src/content/doc-surrealql/statements/select.mdx @@ -527,7 +527,7 @@ SELECT * FROM person WHERE ->knows->person->(knows WHERE influencer = true) TIME ## The `PARALLEL` clause -When processing a large result set with many interconnected records, it is possible to use the `PARALLEL` keyword to specify that the statement should be processed in parallel. This can significantly improve the performance of the statement, but it is important to note that the statement will not be processed in a transactional manner, and so the results may not be consistent. +When processing a large result set with many interconnected records, it is possible to use the `PARALLEL` keyword to specify that the statement should be processed concurrently, rather than sequentially. ```surql -- Fetch and process the person, purchased and product targets in parallel