From abb8bbe001e8f8690301370b6a631245ee085e0d Mon Sep 17 00:00:00 2001 From: Simran Spiller Date: Mon, 10 Oct 2022 12:50:13 +0200 Subject: [PATCH 01/18] The Pregel algorithm for running AIR programs is called "ppa" --- 3.10/graph-analytics-custom-pregel.md | 4 ++-- 3.11/graph-analytics-custom-pregel.md | 4 ++-- 3.8/graph-analytics-custom-pregel.md | 4 ++-- 3.9/graph-analytics-custom-pregel.md | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/3.10/graph-analytics-custom-pregel.md b/3.10/graph-analytics-custom-pregel.md index 79110e57cb..51cfd2092b 100644 --- a/3.10/graph-analytics-custom-pregel.md +++ b/3.10/graph-analytics-custom-pregel.md @@ -1290,7 +1290,7 @@ require the Pregel module in _arangosh_. ```js const pregel = require("@arangodb/pregel"); -return pregel.start("air", "", ""); +return pregel.start("ppa", "", ""); ``` Status of a PPA @@ -1300,7 +1300,7 @@ Executing a PPA using the `pregel.start()` method will deliver unique ID to the status of the algorithm execution. ```js -let pregelID = pregel.start("air", graphName, ""); +let pregelID = pregel.start("ppa", graphName, ""); var status = pregel.status(pregelID); ``` diff --git a/3.11/graph-analytics-custom-pregel.md b/3.11/graph-analytics-custom-pregel.md index 79110e57cb..51cfd2092b 100644 --- a/3.11/graph-analytics-custom-pregel.md +++ b/3.11/graph-analytics-custom-pregel.md @@ -1290,7 +1290,7 @@ require the Pregel module in _arangosh_. ```js const pregel = require("@arangodb/pregel"); -return pregel.start("air", "", ""); +return pregel.start("ppa", "", ""); ``` Status of a PPA @@ -1300,7 +1300,7 @@ Executing a PPA using the `pregel.start()` method will deliver unique ID to the status of the algorithm execution. ```js -let pregelID = pregel.start("air", graphName, ""); +let pregelID = pregel.start("ppa", graphName, ""); var status = pregel.status(pregelID); ``` diff --git a/3.8/graph-analytics-custom-pregel.md b/3.8/graph-analytics-custom-pregel.md index 79110e57cb..51cfd2092b 100644 --- a/3.8/graph-analytics-custom-pregel.md +++ b/3.8/graph-analytics-custom-pregel.md @@ -1290,7 +1290,7 @@ require the Pregel module in _arangosh_. ```js const pregel = require("@arangodb/pregel"); -return pregel.start("air", "", ""); +return pregel.start("ppa", "", ""); ``` Status of a PPA @@ -1300,7 +1300,7 @@ Executing a PPA using the `pregel.start()` method will deliver unique ID to the status of the algorithm execution. ```js -let pregelID = pregel.start("air", graphName, ""); +let pregelID = pregel.start("ppa", graphName, ""); var status = pregel.status(pregelID); ``` diff --git a/3.9/graph-analytics-custom-pregel.md b/3.9/graph-analytics-custom-pregel.md index 79110e57cb..51cfd2092b 100644 --- a/3.9/graph-analytics-custom-pregel.md +++ b/3.9/graph-analytics-custom-pregel.md @@ -1290,7 +1290,7 @@ require the Pregel module in _arangosh_. ```js const pregel = require("@arangodb/pregel"); -return pregel.start("air", "", ""); +return pregel.start("ppa", "", ""); ``` Status of a PPA @@ -1300,7 +1300,7 @@ Executing a PPA using the `pregel.start()` method will deliver unique ID to the status of the algorithm execution. ```js -let pregelID = pregel.start("air", graphName, ""); +let pregelID = pregel.start("ppa", graphName, ""); var status = pregel.status(pregelID); ``` From 396583d26e5dd7c7809124967eb08cbb2b6a8cd3 Mon Sep 17 00:00:00 2001 From: Simran Spiller Date: Tue, 11 Oct 2022 11:10:17 +0200 Subject: [PATCH 02/18] Features: skipInaccessibleCollections is an EE query option --- 3.10/features-enterprise-edition.md | 4 ++++ 3.11/features-enterprise-edition.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/3.10/features-enterprise-edition.md b/3.10/features-enterprise-edition.md index 524c0af629..9f23cd6271 100644 --- a/3.10/features-enterprise-edition.md +++ b/3.10/features-enterprise-edition.md @@ -77,6 +77,10 @@ features outlined below. For additional information, see fastText word embedding models. {% endcomment %} +- [**Skip inaccessible collections**](aql/invocation-with-arangosh.html#setting-options): + Let AQL queries like graph traversals pretend that collections are empty if + the user has no access to them instead of failing the query. + ## Security - [**DC2DC**](arangosync.html): diff --git a/3.11/features-enterprise-edition.md b/3.11/features-enterprise-edition.md index 524c0af629..9f23cd6271 100644 --- a/3.11/features-enterprise-edition.md +++ b/3.11/features-enterprise-edition.md @@ -77,6 +77,10 @@ features outlined below. For additional information, see fastText word embedding models. {% endcomment %} +- [**Skip inaccessible collections**](aql/invocation-with-arangosh.html#setting-options): + Let AQL queries like graph traversals pretend that collections are empty if + the user has no access to them instead of failing the query. + ## Security - [**DC2DC**](arangosync.html): From 94b71fa14fb10c7b7abf95f39092a1aca06012c0 Mon Sep 17 00:00:00 2001 From: Simran Spiller Date: Tue, 11 Oct 2022 11:12:07 +0200 Subject: [PATCH 03/18] Fix MINHASH_COUNT() AQL example and description --- 3.10/aql/functions-miscellaneous.md | 4 ++-- 3.10/aql/functions-string.md | 18 +++++++++--------- 3.11/aql/functions-miscellaneous.md | 4 ++-- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/3.10/aql/functions-miscellaneous.md b/3.10/aql/functions-miscellaneous.md index c4dfb2e3f9..fc281e42bb 100644 --- a/3.10/aql/functions-miscellaneous.md +++ b/3.10/aql/functions-miscellaneous.md @@ -478,7 +478,7 @@ The result can be used to approximate the Jaccard similarity of sets. Calculate the number of hashes (MinHash signature size) needed to not exceed the specified error amount. -- **error** (number): the probabilistic error you can tolerate in the range `[0, 1]` +- **error** (number): the probabilistic error you can tolerate in the range `[0, 1)` - returns **numHashes** (number): the required number of hashes to not exceed the specified error amount @@ -487,7 +487,7 @@ specified error amount. {% aqlexample examplevar="examplevar" type="type" query="query" bind="bind" result="result" %} @startDocuBlockInline aqlMinHashCount @EXAMPLE_AQL{aqlMinHashCount} - RETURN MINHASH_ERROR(0.05) + RETURN MINHASH_COUNT(0.05) @END_EXAMPLE_AQL @endDocuBlock aqlMinHashCount {% endaqlexample %} diff --git a/3.10/aql/functions-string.md b/3.10/aql/functions-string.md index 79457f035e..e7fad4c70b 100644 --- a/3.10/aql/functions-string.md +++ b/3.10/aql/functions-string.md @@ -1500,7 +1500,7 @@ SHA512() `SHA512(text) → hash` -Calculate the SHA512 checksum for `text` and returns it in a hexadecimal +Calculate the SHA512 checksum for `text` and return it in a hexadecimal string representation. - **text** (string): a string @@ -1508,14 +1508,14 @@ string representation. **Examples** -{% aqlexample examplevar="examplevar" type="type" query="query" bind="bind" result="result" %} -@startDocuBlockInline aqlSha512 -@EXAMPLE_AQL{aqlSha512} - RETURN SHA512("foobar") -@END_EXAMPLE_AQL -@endDocuBlock aqlSha512 -{% endaqlexample %} -{% include aqlexample.html id=examplevar type=type query=query bind=bind result=result %} + {% aqlexample examplevar="examplevar" type="type" query="query" bind="bind" result="result" %} + @startDocuBlockInline aqlSha512 + @EXAMPLE_AQL{aqlSha512} + RETURN SHA512("foobar") + @END_EXAMPLE_AQL + @endDocuBlock aqlSha512 + {% endaqlexample %} + {% include aqlexample.html id=examplevar type=type query=query bind=bind result=result %} SOUNDEX() --------- diff --git a/3.11/aql/functions-miscellaneous.md b/3.11/aql/functions-miscellaneous.md index c4dfb2e3f9..fc281e42bb 100644 --- a/3.11/aql/functions-miscellaneous.md +++ b/3.11/aql/functions-miscellaneous.md @@ -478,7 +478,7 @@ The result can be used to approximate the Jaccard similarity of sets. Calculate the number of hashes (MinHash signature size) needed to not exceed the specified error amount. -- **error** (number): the probabilistic error you can tolerate in the range `[0, 1]` +- **error** (number): the probabilistic error you can tolerate in the range `[0, 1)` - returns **numHashes** (number): the required number of hashes to not exceed the specified error amount @@ -487,7 +487,7 @@ specified error amount. {% aqlexample examplevar="examplevar" type="type" query="query" bind="bind" result="result" %} @startDocuBlockInline aqlMinHashCount @EXAMPLE_AQL{aqlMinHashCount} - RETURN MINHASH_ERROR(0.05) + RETURN MINHASH_COUNT(0.05) @END_EXAMPLE_AQL @endDocuBlock aqlMinHashCount {% endaqlexample %} From f99e906e40ac74d6601656e3fc80968b1c3d1703 Mon Sep 17 00:00:00 2001 From: Simran Spiller Date: Tue, 11 Oct 2022 11:13:06 +0200 Subject: [PATCH 04/18] JS API: Add missing collection and cursor properties --- ...cution-and-performance-query-statistics.md | 99 ++-- 3.10/aql/invocation-with-arangosh.md | 464 +++++++++--------- ...modeling-collections-collection-methods.md | 41 +- ...a-modeling-collections-database-methods.md | 21 +- ...cution-and-performance-query-statistics.md | 104 ++-- 3.11/aql/invocation-with-arangosh.md | 464 +++++++++--------- ...modeling-collections-collection-methods.md | 41 +- ...a-modeling-collections-database-methods.md | 21 +- 8 files changed, 676 insertions(+), 579 deletions(-) diff --git a/3.10/aql/execution-and-performance-query-statistics.md b/3.10/aql/execution-and-performance-query-statistics.md index 82ff9e1981..52fa7f4c1e 100644 --- a/3.10/aql/execution-and-performance-query-statistics.md +++ b/3.10/aql/execution-and-performance-query-statistics.md @@ -9,23 +9,23 @@ A query that has been executed will always return execution statistics. Executio can be retrieved by calling `getExtra()` on the cursor. The statistics are returned in the return value's `stats` attribute: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 06_workWithAQL_statementsExtra @EXAMPLE_ARANGOSH_OUTPUT{06_workWithAQL_statementsExtra} - |db._query(` + | db._query(` | FOR i IN 1..@count INSERT | { _key: CONCAT('anothertest', TO_STRING(i)) } | INTO mycollection`, - | {count: 100}, + | { count: 100 }, | {}, - | {fullCount: true} + | { fullCount: true } ).getExtra(); - |db._query({ - | "query": `FOR i IN 200..@count INSERT - | { _key: CONCAT('anothertest', TO_STRING(i)) } - | INTO mycollection`, - | "bindVars": {count: 300}, - | "options": { fullCount: true} + | db._query({ + | "query": `FOR i IN 200..@count INSERT + | { _key: CONCAT('anothertest', TO_STRING(i)) } + | INTO mycollection`, + | "bindVars": { count: 300 }, + | "options": { fullCount: true } }).getExtra(); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 06_workWithAQL_statementsExtra @@ -34,53 +34,64 @@ return value's `stats` attribute: The meaning of the statistics attributes is as follows: -- **writesExecuted**: the total number of data-modification operations successfully executed. - This is equivalent to the number of documents created, updated or removed by `INSERT`, - `UPDATE`, `REPLACE`, `REMOVE` or `UPSERT` operations. -- **writesIgnored**: the total number of data-modification operations that were unsuccessful, - but have been ignored because of query option `ignoreErrors`. -- **scannedFull**: the total number of documents iterated over when scanning a collection - without an index. Documents scanned by subqueries will be included in the result, but - operations triggered by built-in or user-defined AQL functions will not. -- **scannedIndex**: the total number of documents iterated over when scanning a collection using - an index. Documents scanned by subqueries will be included in the result, but operations - triggered by built-in or user-defined AQL functions will not. -- **cursorsCreated**: the total number of cursor objects created during query execution. Cursor +- **writesExecuted**: The total number of data-modification operations successfully executed. + This is equivalent to the number of documents created, updated, or removed by `INSERT`, + `UPDATE`, `REPLACE`, `REMOVE`, or `UPSERT` operations. +- **writesIgnored**: The total number of data-modification operations that were unsuccessful, + but have been ignored because of the `ignoreErrors` query option. +- **scannedFull**: The total number of documents iterated over when scanning a collection + without an index. Documents scanned by subqueries are included in the result, but + operations triggered by built-in or user-defined AQL functions are not. +- **scannedIndex**: The total number of documents iterated over when scanning a collection using + an index. Documents scanned by subqueries are included in the result, but operations + triggered by built-in or user-defined AQL functions are not. +- **cursorsCreated**: The total number of cursor objects created during query execution. Cursor objects are created for index lookups. -- **cursorsRearmed**: the total number of times an existing cursor object was repurposed. +- **cursorsRearmed**: The total number of times an existing cursor object was repurposed. Repurposing an existing cursor object is normally more efficient compared to destroying an existing cursor object and creating a new one from scratch. -- **cacheHits**: the total number of index entries read from in-memory caches for indexes - of type edge or persistent. This value will only be non-zero when reading from indexes +- **cacheHits**: The total number of index entries read from in-memory caches for indexes + of type edge or persistent. This value is only non-zero when reading from indexes that have an in-memory cache enabled, and when the query allows using the in-memory cache (i.e. using equality lookups on all index attributes). -- **cacheMisses**: the total number of cache read attempts for index entries that could not - be served from in-memory caches for indexes of type edge or persistent. This value will - only be non-zero when reading from indexes that have an in-memory cache enabled, the +- **cacheMisses**: The total number of cache read attempts for index entries that could not + be served from in-memory caches for indexes of type edge or persistent. This value + is only non-zero when reading from indexes that have an in-memory cache enabled, the query allows using the in-memory cache (i.e. using equality lookups on all index attributes) and the looked up values are not present in the cache. -- **filtered**: the total number of documents that were removed after executing a filter condition - in a `FilterNode` or another node that post-filters data. - Note that `IndexNode`s can also filter documents by selecting only the required index range +- **filtered**: The total number of documents removed after executing a filter condition + in a `FilterNode` or another node that post-filters data. Note that nodes of the + `IndexNode` type can also filter documents by selecting only the required index range from a collection, and the `filtered` value only indicates how much filtering was done by a - post filter in the `IndexNode` itself or following `FilterNode`s. - `EnumerateCollectionNode`s and `TraversalNode`s can also apply filter conditions and can - reported the number of filtered documents. -- **fullCount**: the total number of documents that matched the search condition if the query's - final top-level `LIMIT` statement were not present. + post-filter in the `IndexNode` itself or following `FilterNode` nodes. + Nodes of the `EnumerateCollectionNode` and `TraversalNode` types can also apply + filter conditions and can report the number of filtered documents. +- **httpRequests**: The total number of HTTP requests performed. +- **fullCount** (_optional_): The total number of documents that matched the search condition if the query's + final top-level `LIMIT` operation were not present. This attribute may only be returned if the `fullCount` option was set when starting the - query and will only contain a sensible value if the query contained a `LIMIT` operation on + query and only contains a sensible value if the query contains a `LIMIT` operation on the top level. -- **peakMemoryUsage**: the maximum memory usage of the query while it was running. In a cluster, +- **executionTime**: The query execution time (wall-clock time) in seconds. +- **peakMemoryUsage**: The maximum memory usage of the query while it was running. In a cluster, the memory accounting is done per shard, and the memory usage reported is the peak memory usage value from the individual shards. Note that to keep things light-weight, the per-query memory usage is tracked on a relatively high level, not including any memory allocator overhead nor any memory used for temporary results calculations (e.g. memory allocated/deallocated inside AQL expressions and function calls). -- **nodes**: _(optional)_ when the query was executed with the option `profile` set to at least `2`, - then this value contains runtime statistics per query execution node. This field contains the - node id (in `id`), the number of calls to this node `calls` and the number of items returned - by this node `items` (Items are the temporary results returned at this stage). You can correlate - this statistics with the `plan` returned in `extra`. For a human readable output you can execute - `db._profileQuery(, )` in the arangosh. +- **intermediateCommits** (_optional_): + The number of intermediate commits performed by the query. This is only non-zero + for write queries, and only for queries that reached either the `intermediateCommitSize` + or `intermediateCommitCount` thresholds. Note: in a cluster, intermediate + commits can happen on each participating DB-Server. +- **nodes** (_optional_): When the query was executed with the option `profile` set to at least `2`, + then this value contains runtime statistics per query execution node. + For a human readable output you can execute `db._profileQuery(, )` + in the arangosh. + - **id**: The execution node ID to correlate the statistics with the `plan` returned in + the `extra` attribute. + - **calls**: The number of calls to this node. + - **items**: The number of items returned by this node. Items are the temporary results + returned at this stage. + - **runtime**: The execution time of this node in seconds. diff --git a/3.10/aql/invocation-with-arangosh.md b/3.10/aql/invocation-with-arangosh.md index a0f67795df..8968821522 100644 --- a/3.10/aql/invocation-with-arangosh.md +++ b/3.10/aql/invocation-with-arangosh.md @@ -1,22 +1,23 @@ --- layout: default -description: Within the ArangoDB shell, the _query and _createStatement methods of the db object can be used to execute AQL queries +description: >- + In the ArangoDB shell, you can use the db._query() and db._createStatement() + methods to execute AQL queries. --- # Executing queries from _arangosh_ -Within the ArangoDB shell, the *_query* and *_createStatement* methods of the -*db* object can be used to execute AQL queries. This chapter also describes +In the ArangoDB shell, you can use the `db._query()` and `db._createStatement()` +methods to execute AQL queries. This chapter also describes how to use bind parameters, counting, statistics and cursors. -With db._query --------------- +## With `db._query()` -One can execute queries with the *_query* method of the *db* object. -This will run the specified query in the context of the currently -selected database and return the query results in a cursor. The results of the cursor -can be printed using its *toArray* method: +You can execute queries with the `_query()` method of the `db` object. +This runs the specified query in the context of the currently +selected database and returns the query results in a cursor. +You can print the results of the cursor using its `toArray()` method: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 01_workWithAQL_all @EXAMPLE_ARANGOSH_OUTPUT{01_workWithAQL_all} ~addIgnoreCollection("mycollection") @@ -25,167 +26,171 @@ can be printed using its *toArray* method: db._query('FOR my IN mycollection RETURN my._key').toArray() @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 01_workWithAQL_all -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} -### db._query Bind parameters +### `db._query()` bind parameters -To pass bind parameters into a query, they can be specified as second argument to the -*_query* method: +To pass bind parameters into a query, you can specify a second argument when +calling the `_query()` method: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 02_workWithAQL_bindValues @EXAMPLE_ARANGOSH_OUTPUT{02_workWithAQL_bindValues} - |db._query( - | 'FOR c IN @@collection FILTER c._key == @key RETURN c._key', { + | db._query('FOR c IN @@collection FILTER c._key == @key RETURN c._key', { | '@collection': 'mycollection', | 'key': 'testKey' - }).toArray(); + }).toArray(); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 02_workWithAQL_bindValues -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### ES6 template strings It is also possible to use ES6 template strings for generating AQL queries. There is -a template string generator function named *aql*; we call it once to demonstrate -its result, and once putting it directly into the query: - -```js -var key = 'testKey'; -aql`FOR c IN mycollection FILTER c._key == ${key} RETURN c._key`; -{ - "query" : "FOR c IN mycollection FILTER c._key == @value0 RETURN c._key", - "bindVars" : { - "value0" : "testKey" - } -} -``` - -{% arangoshexample examplevar="examplevar" script="script" result="result" %} +a template string generator function named `aql`. + +The following example demonstrates what the template string function generates: + + {% arangoshexample examplevar="examplevar" script="script" result="result" %} + @startDocuBlockInline 02_workWithAQL_aqlTemplateString + @EXAMPLE_ARANGOSH_OUTPUT{02_workWithAQL_aqlTemplateString} + var key = 'testKey'; + aql`FOR c IN mycollection FILTER c._key == ${key} RETURN c._key` + @END_EXAMPLE_ARANGOSH_OUTPUT + @endDocuBlock 02_workWithAQL_aqlTemplateString + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} + +The next example directly uses the generated result to execute a query: + + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 02_workWithAQL_aqlQuery @EXAMPLE_ARANGOSH_OUTPUT{02_workWithAQL_aqlQuery} var key = 'testKey'; - |db._query( - | aql`FOR c IN mycollection FILTER c._key == ${key} RETURN c._key` - ).toArray(); + | db._query( + | aql`FOR c IN mycollection FILTER c._key == ${key} RETURN c._key` + ).toArray(); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 02_workWithAQL_aqlQuery -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Arbitrary JavaScript expressions can be used in queries that are generated with the -*aql* template string generator. Collection objects are handled automatically: +`aql` template string generator. Collection objects are handled automatically: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 02_workWithAQL_aqlCollectionQuery @EXAMPLE_ARANGOSH_OUTPUT{02_workWithAQL_aqlCollectionQuery} var key = 'testKey'; - |db._query(aql`FOR doc IN ${ db.mycollection } RETURN doc` - ).toArray(); + db._query(aql`FOR doc IN ${ db.mycollection } RETURN doc`).toArray(); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 02_workWithAQL_aqlCollectionQuery -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} -Note: data-modification AQL queries normally do not return a result (unless the AQL query -contains an extra *RETURN* statement). When not using a *RETURN* statement in the query, the -*toArray* method will return an empty array. +Note: data-modification AQL queries normally do not return a result unless the +AQL query contains a `RETURN` operation at the top-level. Without a `RETURN` +operation, the `toArray()` method returns an empty array. ### Statistics and extra Information -It is always possible to retrieve statistics for a query with the *getExtra* method: +It is always possible to retrieve statistics for a query with the `getExtra()` method: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 03_workWithAQL_getExtra @EXAMPLE_ARANGOSH_OUTPUT{03_workWithAQL_getExtra} - |db._query(`FOR i IN 1..100 - | INSERT { _key: CONCAT('test', TO_STRING(i)) } - | INTO mycollection` + | db._query(`FOR i IN 1..100 + | INSERT { _key: CONCAT('test', TO_STRING(i)) } INTO mycollection` ).getExtra(); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 03_workWithAQL_getExtra {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} -The meaning of the statistics values is described in [Execution statistics](execution-and-performance-query-statistics.html). -You also will find warnings in here; If you're designing queries on the shell be sure to also look at it. +The meaning of the statistics values is described in +[Query statistics](execution-and-performance-query-statistics.html). + +Query warnings are also reported here. If you design queries on the shell, +be sure to check for warnings. ### Setting a memory limit -To set a memory limit for the query, pass *options* to the *_query* method. +To set a memory limit for the query, pass `options` to the `_query()` method. The memory limit specifies the maximum number of bytes that the query is allowed to use. When a single AQL query reaches the specified limit value, the query will be aborted with a *resource limit exceeded* exception. In a cluster, the memory accounting is done per shard, so the limit value is effectively a memory limit per query per shard. -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 02_workWithAQL_memoryLimit @EXAMPLE_ARANGOSH_OUTPUT{02_workWithAQL_memoryLimit} - |db._query( - | 'FOR i IN 1..100000 SORT i RETURN i', {}, { - | memoryLimit: 100000 - }).toArray(); // xpError(ERROR_RESOURCE_LIMIT) + | db._query( + | 'FOR i IN 1..100000 SORT i RETURN i', + | {}, + | { memoryLimit: 100000 } + ).toArray(); // xpError(ERROR_RESOURCE_LIMIT) @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 02_workWithAQL_memoryLimit {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} If no memory limit is specified, then the server default value (controlled by -startup option *--query.memory-limit* will be used for restricting the maximum amount -of memory the query can use. A memory limit value of *0* means that the maximum +the `--query.memory-limit` startup option) is used for restricting the maximum amount +of memory the query can use. A memory limit value of `0` means that the maximum amount of memory for the query is not restricted. ### Setting options -There are further options that can be passed in the *options* attribute of the *_query* method: +There are further options that you can pass in the `options` attribute of the `_query()` method: -- `fullCount`: if set to _true_ and the query contains a _LIMIT_ clause, then the - result will have an extra attribute with the sub-attributes _stats_ and _fullCount_, - `{ ... , "extra": { "stats": { "fullCount": 123 } } }`. The _fullCount_ attribute will - contain the number of documents in the result before the last top-level LIMIT in the +- `fullCount`: if set to `true` and if the query contains a `LIMIT` operation, then the + result has an extra attribute with the sub-attributes `stats` and `fullCount`, like + `{ ... , "extra": { "stats": { "fullCount": 123 } } }`. The `fullCount` attribute + contains the number of documents in the result before the last top-level `LIMIT` in the query was applied. It can be used to count the number of documents that match certain filter criteria, but only return a subset of them, in one go. It is thus similar to - MySQL's _SQL_CALC_FOUND_ROWS_ hint. Note that setting the option will disable a few - LIMIT optimizations and may lead to more documents being processed, and thus make - queries run longer. Note that the _fullCount_ attribute may only be present in the - result if the query has a top-level LIMIT clause and the LIMIT clause is actually - used in the query. - -- `failOnWarning`: when set to *true*, this will make the query throw an exception and - abort in case a warning occurs. This option should be used in development to catch - errors early. If set to *false*, warnings will not be propagated to exceptions and - will be returned with the query results. There is also a server configuration option - `--query.fail-on-warning` for setting the default value for *failOnWarning* so it does - not need to be set on a per-query level. - -- `cache`: if set to *true*, this will put the query result into the query result cache + MySQL's `SQL_CALC_FOUND_ROWS` hint. Note that setting the option disables a few + `LIMIT` optimizations and may lead to more documents being processed, and thus make + queries run longer. Note that the `fullCount` attribute may only be present in the + result if the query has a top-level `LIMIT` operation and the `LIMIT` operation + is actually used in the query. + +- `failOnWarning`: when set to `true`, this makes the query throw an exception and + abort in case a warning occurs. You should use this option in development to catch + errors early. If set to `false`, warnings don't propagate to exceptions and are + returned with the query results. There is also a `--query.fail-on-warning` + startup options for setting the default value for `failOnWarning`, so that you + don't need to set it on a per-query level. + +- `cache`: if set to `true`, this puts the query result into the query result cache if the query result is eligible for caching and the query cache is running in demand - mode. If set to *false*, the query result will not be inserted into the query result - cache. Note that query results will never be inserted into the query result cache if - the query result cache is disabled, and that they will be automatically inserted into - the query result cache when it is active in non-demand mode. + mode. If set to `false`, the query result is not inserted into the query result + cache. Note that query results are never inserted into the query result cache if + the query result cache is disabled, and that they are automatically inserted into + the query result cache if it is active in non-demand mode. -- `fillBlockCache`: if set to *true* or not specified, this will make the query store +- `fillBlockCache`: if set to `true` or not specified, this makes the query store the data it reads via the RocksDB storage engine in the RocksDB block cache. This is - usually the desired behavior. The option can be set to *false* for queries that are + usually the desired behavior. You can set the option to `false` for queries that are known to either read a lot of data that would thrash the block cache, or for queries that read data known to be outside of the hot set. By setting the option - to *false*, data read by the query will not make it into the RocksDB block cache if + to `false`, data read by the query does not make it into the RocksDB block cache if it is not already in there, thus leaving more room for the actual hot set. -- `profile`: if set to *true* or *1*, returns extra timing information for the query. The timing - information is accessible via the *getExtra* method of the query result. Set to *2* the query will - include execution stats per query plan node in sub-attribute *stats.nodes* of the *extra* return attribute. - Additionally the query plan is returned in the sub-attribute *extra.plan*. +- `profile`: if set to `true` or `1`, returns extra timing information for the query. + The timing information is accessible via the `getExtra()` method of the query + result. If set to `2`, the query includes execution statistics per query plan + execution node in `stats.nodes` sub-attribute of the `extra` return attribute. + Additionally, the query plan is returned in the `extra.plan` sub-attribute. - `maxWarningCount`: limits the number of warnings that are returned by the query if - *failOnWarning* is not set to *true*. The default value is *10*. + `failOnWarning` is not set to `true`. The default value is `10`. -- `maxNumberOfPlans`: limits the number of query execution plans the optimizer will - create at most. Reducing the number of query execution plans may speed up query plan +- `maxNumberOfPlans`: limits the number of query execution plans the optimizer + creates at most. Reducing the number of query execution plans may speed up query plan creation and optimization for complex queries, but normally there is no need to adjust this value. @@ -196,21 +201,21 @@ There are further options that can be passed in the *options* attribute of the * a rule, prefix its name with a `-`, to enable a rule, prefix it with a `+`. There is also a pseudo-rule `all`, which matches all optimizer rules. `-all` disables all rules. -- `stream`: Specify *true* and the query will be executed in a **streaming** fashion. The query result is - not stored on the server, but calculated on the fly. *Beware*: long-running queries will +- `stream`: Specify `true` and the query is executed in a **streaming** fashion. The query result is + not stored on the server, but calculated on the fly. **Warning**: long-running queries need to hold the collection locks for as long as the query cursor exists. It is advisable to *only* use this option on short-running queries *or* without exclusive locks. - When set to *false* the query will be executed right away in its entirety. - In that case query results are either returned right away (if the result set is small enough), - or stored on the arangod instance and accessible via the cursor API. + When set to `false`, the query is executed right away in its entirety. + In that case, the query results are either returned right away (if the result + set is small enough), or stored on the arangod instance and can be accessed + via the cursor API. - Please note that the query options `cache`, `count` and `fullCount` will not work on streaming - queries. Additionally query statistics, warnings and profiling data will only be available - after the query is finished. - The default value is *false* + Please note that the query options `cache`, `count` and `fullCount` don't work on streaming + queries. Additionally, query statistics, warnings, and profiling data is only + available after the query has finished. The default value is `false`. -- `maxRuntime`: The query has to be executed within the given runtime or it will be killed. - The value is specified in seconds. The default value is *0.0* (no timeout). +- `maxRuntime`: The query has to be executed within the given runtime or it is killed. + The value is specified in seconds. The default value is `0.0` (no timeout). - `maxNodesPerCallstack`: The number of execution nodes in the query plan after that stack splitting is performed to avoid a potential stack overflow. @@ -220,39 +225,38 @@ There are further options that can be passed in the *options* attribute of the * This option is only useful for testing and debugging and normally does not need any adjustment. -- `maxTransactionSize`: transaction size limit in bytes +- `maxTransactionSize`: The transaction size limit in bytes. -- `intermediateCommitSize`: maximum total size of operations after which an intermediate - commit is performed automatically +- `intermediateCommitSize`: The maximum total size of operations after which an intermediate + commit is performed automatically. -- `intermediateCommitCount`: maximum number of operations after which an intermediate - commit is performed automatically +- `intermediateCommitCount`: The maximum number of operations after which an intermediate + commit is performed automatically. -In the ArangoDB Enterprise Edition there is an additional parameter: +In the ArangoDB Enterprise Edition, there are additional parameters: -- `skipInaccessibleCollections`: AQL queries (especially graph traversals) will treat - collection to which a user has **no access** rights as if these collections were empty. - Instead of returning a *forbidden access* error, your queries will execute normally. +- `skipInaccessibleCollections`: Let AQL queries (especially graph traversals) treat + collection to which a user has **no access** rights for as if these collections are empty. + Instead of returning a *forbidden access* error, your queries execute normally. This is intended to help with certain use-cases: A graph contains several collections - and different users execute AQL queries on that graph. You can now naturally limit the + and different users execute AQL queries on that graph. You can naturally limit the accessible results by changing the access rights of users on collections. - `satelliteSyncWait`: This Enterprise Edition parameter allows to configure how long - a DB-Server will have time to bring the SatelliteCollections involved in the query - into sync. The default value is 60.0 (seconds). When the max time has been reached - the query will be stopped. + a DB-Server has time to bring the SatelliteCollections involved in the query + into sync. The default value is `60.0` seconds. When the maximal time is reached, + the query is stopped. -Additional parameters for spilling data from the query onto disk ------------------------------------------------------------------ +## Additional parameters for spilling data from the query onto disk Starting from ArangoDB 3.10, there are two additional parameters that allow spilling -intermediate data from a query onto a disk to descrease the memory usage. +intermediate data from a query onto a disk to decrease the memory usage. {% hint 'info' %} The option of spilling data from RAM onto disk is experimental and is turned off by default. This parameter currently only has effect for sorting - -for a query that uses the SORT keyword, but without LIMIT. -Also, the query results are still built up entirely in RAM on coordinators +for a query that uses the `SORT` operation but without `LIMIT`. +Also, the query results are still built up entirely in RAM on Coordinators and single servers for non-streaming queries. To avoid the buildup of the entire query result in RAM, a streaming query should be used. {% endhint %} @@ -265,82 +269,78 @@ the entire query result in RAM, a streaming query should be used. document and, in a query that iterates over temporary values (i.e. `FOR i IN 1..100`), each row is one of such temporary values. This parameter is experimental and is only taken into account if a path for a - directory to store the temporary data is provided with the [`--temp.intermediate-results-path` - server startup option](../programs-arangod-query.html#aql-query-with-spilling-input-data-to-disk). - Default value: 5000000 rows. - + directory to store the temporary data is provided with the + [`--temp.intermediate-results-path` startup option](../programs-arangod-query.html#aql-query-with-spilling-input-data-to-disk). + Default value: `5000000` rows. - `spillOverThresholdMemoryUsage`: This parameter allows for input data and intermediate results to be spilled onto disk for a query execution after the memory usage reaches the specified value (in bytes). This is used for decreasing the memory usage during the query execution. This parameter is experimental and is only taken into account if a path for a - directory to store the temporary data is provided with the [`--temp.intermediate-results-path` - server startup option](../programs-arangod-query.html#aql-query-with-spilling-input-data-to-disk). + directory to store the temporary data is provided with the + [`--temp.intermediate-results-path` startup option](../programs-arangod-query.html#aql-query-with-spilling-input-data-to-disk). Default value: 128MB. +## With `db._createStatement()` (ArangoStatement) -With _createStatement (ArangoStatement) ---------------------------------------- - -The *_query* method is a shorthand for creating an ArangoStatement object, +The `_query()` method is a shorthand for creating an `ArangoStatement` object, executing it and iterating over the resulting cursor. If more control over the result set iteration is needed, it is recommended to first create an -ArangoStatement object as follows: +`ArangoStatement` object as follows: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 04_workWithAQL_statements1 @EXAMPLE_ARANGOSH_OUTPUT{04_workWithAQL_statements1} - |stmt = db._createStatement( { - "query": "FOR i IN [ 1, 2 ] RETURN i * 2" } ); + stmt = db._createStatement( { "query": "FOR i IN [ 1, 2 ] RETURN i * 2" } ); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 04_workWithAQL_statements1 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} -To execute the query, use the *execute* method of the statement: +To execute the query, use the `execute()` method of the statement: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 05_workWithAQL_statements2 @EXAMPLE_ARANGOSH_OUTPUT{05_workWithAQL_statements2} - ~var stmt = db._createStatement( { "query": "FOR i IN [ 1, 2 ] RETURN i * 2" } ); - c = stmt.execute(); + ~ var stmt = db._createStatement( { "query": "FOR i IN [ 1, 2 ] RETURN i * 2" } ); + cursor = stmt.execute(); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 05_workWithAQL_statements2 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Cursors Once the query executed the query results are available in a cursor. -The cursor can return all its results at once using the *toArray* method. +The cursor can return all its results at once using the `toArray()` method. This is a short-cut that you can use if you want to access the full result set without iterating over it yourself. -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 05_workWithAQL_statements3 @EXAMPLE_ARANGOSH_OUTPUT{05_workWithAQL_statements3} - ~var stmt = db._createStatement( { "query": "FOR i IN [ 1, 2 ] RETURN i * 2" } ); - ~var c = stmt.execute(); - c.toArray(); + ~ var stmt = db._createStatement( { "query": "FOR i IN [ 1, 2 ] RETURN i * 2" } ); + ~ var cursor = stmt.execute(); + cursor.toArray(); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 05_workWithAQL_statements3 {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} Cursors can also be used to iterate over the result set document-by-document. -To do so, use the *hasNext* and *next* methods of the cursor: +To do so, use the `hasNext()` and `next()` methods of the cursor: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 05_workWithAQL_statements4 @EXAMPLE_ARANGOSH_OUTPUT{05_workWithAQL_statements4} - ~var stmt = db._createStatement( { "query": "FOR i IN [ 1, 2 ] RETURN i * 2" } ); - ~var c = stmt.execute(); - while (c.hasNext()) { require("@arangodb").print(c.next()); } + ~ var stmt = db._createStatement( { "query": "FOR i IN [ 1, 2 ] RETURN i * 2" } ); + ~ var c = stmt.execute(); + while (c.hasNext()) { require("@arangodb").print(c.next()); } @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 05_workWithAQL_statements4 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Please note that you can iterate over the results of a cursor only once, and that the cursor will be empty when you have fully iterated over it. To iterate over @@ -354,111 +354,110 @@ backwards iteration or random access to elements in a cursor. To execute an AQL query using bind parameters, you need to create a statement first and then bind the parameters to it before execution: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 05_workWithAQL_statements5 @EXAMPLE_ARANGOSH_OUTPUT{05_workWithAQL_statements5} - |var stmt = db._createStatement( { - "query": "FOR i IN [ @one, @two ] RETURN i * 2" } ); - stmt.bind("one", 1); - stmt.bind("two", 2); - c = stmt.execute(); + var stmt = db._createStatement( { "query": "FOR i IN [ @one, @two ] RETURN i * 2" } ); + stmt.bind("one", 1); + stmt.bind("two", 2); + cursor = stmt.execute(); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 05_workWithAQL_statements5 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} The cursor results can then be dumped or iterated over as usual, e.g.: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 05_workWithAQL_statements6 @EXAMPLE_ARANGOSH_OUTPUT{05_workWithAQL_statements6} - ~var stmt = db._createStatement( { "query": "FOR i IN [ @one, @two ] RETURN i * 2" } ); - ~stmt.bind("one", 1); - ~stmt.bind("two", 2); - ~var c = stmt.execute(); - c.toArray(); + ~ var stmt = db._createStatement( { "query": "FOR i IN [ @one, @two ] RETURN i * 2" } ); + ~ stmt.bind("one", 1); + ~ stmt.bind("two", 2); + ~ var cursor = stmt.execute(); + cursor.toArray(); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 05_workWithAQL_statements6 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} or -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 05_workWithAQL_statements7 @EXAMPLE_ARANGOSH_OUTPUT{05_workWithAQL_statements7} - ~var stmt = db._createStatement( { "query": "FOR i IN [ @one, @two ] RETURN i * 2" } ); - ~stmt.bind("one", 1); - ~stmt.bind("two", 2); - ~var c = stmt.execute(); - while (c.hasNext()) { require("@arangodb").print(c.next()); } + ~ var stmt = db._createStatement( { "query": "FOR i IN [ @one, @two ] RETURN i * 2" } ); + ~ stmt.bind("one", 1); + ~ stmt.bind("two", 2); + ~ var cursor = stmt.execute(); + while (cursor.hasNext()) { require("@arangodb").print(cursor.next()); } @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 05_workWithAQL_statements7 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} -Please note that bind parameters can also be passed into the *_createStatement* method directly, -making it a bit more convenient: +Please note that bind parameters can also be passed into the `_createStatement()` +method directly, making it a bit more convenient: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 05_workWithAQL_statements8 @EXAMPLE_ARANGOSH_OUTPUT{05_workWithAQL_statements8} - |stmt = db._createStatement( { - | "query": "FOR i IN [ @one, @two ] RETURN i * 2", - | "bindVars": { - | "one": 1, - | "two": 2 - | } - } ); + | stmt = db._createStatement( { + | "query": "FOR i IN [ @one, @two ] RETURN i * 2", + | "bindVars": { + | "one": 1, + | "two": 2 + | } + }); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 05_workWithAQL_statements8 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Counting with a cursor Cursors also optionally provide the total number of results. By default, they do not. -To make the server return the total number of results, you may set the *count* attribute to -*true* when creating a statement: +To make the server return the total number of results, you may set the `count` attribute to +`true` when creating a statement: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 05_workWithAQL_statements9 @EXAMPLE_ARANGOSH_OUTPUT{05_workWithAQL_statements9} - |stmt = db._createStatement( { - | "query": "FOR i IN [ 1, 2, 3, 4 ] RETURN i", - "count": true } ); + | stmt = db._createStatement( { + | "query": "FOR i IN [ 1, 2, 3, 4 ] RETURN i", + "count": true } ); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 05_workWithAQL_statements9 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} -After executing this query, you can use the *count* method of the cursor to get the +After executing this query, you can use the `count` method of the cursor to get the number of total results from the result set: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 05_workWithAQL_statements10 @EXAMPLE_ARANGOSH_OUTPUT{05_workWithAQL_statements10} - ~var stmt = db._createStatement( { "query": "FOR i IN [ 1, 2, 3, 4 ] RETURN i", "count": true } ); - var c = stmt.execute(); - c.count(); + ~ var stmt = db._createStatement( { "query": "FOR i IN [ 1, 2, 3, 4 ] RETURN i", "count": true } ); + var cursor = stmt.execute(); + cursor.count(); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 05_workWithAQL_statements10 {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} -Please note that the *count* method returns nothing if you did not specify the *count* +Please note that the `count` method returns nothing if you did not specify the `count` attribute when creating the query. This is intentional so that the server may apply optimizations when executing the query and construct the result set incrementally. Incremental creation of the result sets is no possible if all of the results need to be shipped to the client anyway. Therefore, the client -has the choice to specify *count* and retrieve the total number of results for a query (and +has the choice to specify `count` and retrieve the total number of results for a query (and disable potential incremental result set creation on the server), or to not retrieve the total number of results and allow the server to apply optimizations. Please note that at the moment the server will always create the full result set for each query so -specifying or omitting the *count* attribute currently does not have any impact on query execution. +specifying or omitting the `count` attribute currently does not have any impact on query execution. This may change in the future. Future versions of ArangoDB may create result sets incrementally on the server-side and may be able to apply optimizations if a result set is not fully fetched by a client. @@ -467,45 +466,44 @@ a client. Cursors can also optionally provide statistics of the internal execution phases. By default, they do not. To get to know how long parsing, optimization, instantiation and execution took, -make the server return that by setting the *profile* attribute to -*true* when creating a statement: +make the server return that by setting the `profile` attribute to +`true` when creating a statement: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 06_workWithAQL_statements11 @EXAMPLE_ARANGOSH_OUTPUT{06_workWithAQL_statements11} - |stmt = db._createStatement( { - | "query": "FOR i IN [ 1, 2, 3, 4 ] RETURN i", - options: {"profile": true}} ); + | stmt = db._createStatement( { + | "query": "FOR i IN [ 1, 2, 3, 4 ] RETURN i", + options: {"profile": true}} ); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 06_workWithAQL_statements11 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} -After executing this query, you can use the *getExtra()* method of the cursor to get the +After executing this query, you can use the `getExtra()` method of the cursor to get the produced statistics: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 06_workWithAQL_statements12 @EXAMPLE_ARANGOSH_OUTPUT{06_workWithAQL_statements12} - ~var stmt = db._createStatement( { "query": "FOR i IN [ 1, 2, 3, 4 ] RETURN i", options: {"profile": true}} ); - var c = stmt.execute(); - c.getExtra(); + ~ var stmt = db._createStatement( { "query": "FOR i IN [ 1, 2, 3, 4 ] RETURN i", options: {"profile": true}} ); + var cursor = stmt.execute(); + cursor.getExtra(); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 06_workWithAQL_statements12 {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} -Query validation ----------------- +## Query validation -The *_parse* method of the *db* object can be used to parse and validate a +The `_parse()` method of the `db` object can be used to parse and validate a query syntactically, without actually executing it. -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 06_workWithAQL_statements13 @EXAMPLE_ARANGOSH_OUTPUT{06_workWithAQL_statements13} - db._parse( "FOR i IN [ 1, 2 ] RETURN i" ); + db._parse( "FOR i IN [ 1, 2 ] RETURN i" ); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 06_workWithAQL_statements13 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} diff --git a/3.10/data-modeling-collections-collection-methods.md b/3.10/data-modeling-collections-collection-methods.md index a321f2928e..d1a1f5182d 100644 --- a/3.10/data-modeling-collections-collection-methods.md +++ b/3.10/data-modeling-collections-collection-methods.md @@ -131,9 +131,11 @@ Returns an object containing all collection properties. `false`, then the key generator is solely responsible for generating keys and supplying own key values in the `_key` attribute of documents is considered an error. - - `increment`: increment value for `autoincrement` key generator. + - `lastValue`: the current offset value of the `autoincrement` or `padded` + key generator. This an internal property for restoring dumps properly. + - `increment`: the increment value for `autoincrement` key generator. Not used for other key generator types. - - `offset`: initial offset value for `autoincrement` key generator. + - `offset`: the initial offset value for `autoincrement` key generator. Not used for other key generator types. - `schema` (optional, default: `null`): @@ -144,6 +146,21 @@ Returns an object containing all collection properties. - `computedValues` (optional, default: `null`): An array of objects, each representing a [Computed Value](data-modeling-documents-computed-values.html). +- `cacheEnabled`: Whether the in-memory hash cache for documents should be + enabled for this collection (default: `false`). Can be controlled globally + with the `--cache.size` startup option. The cache can speed up repeated reads + of the same documents via their document keys. If the same documents are not + fetched often or are modified frequently, then you may disable the cache to + avoid the maintenance costs. + +- `isSystem`: Whether the collection is a system collection. + +- `syncByRevision`: Whether the newer revision-based replication protocol is + enabled for this collection. This is an internal property. + +- `globallyUniqueId`: A unique identifier of the collection. + This is an internal property. + In a cluster setup, the result also contains the following attributes: - `numberOfShards`: the number of shards of the collection. @@ -166,9 +183,17 @@ In a cluster setup, the result also contains the following attributes: This attribute is only populated in cluster mode and is not populated in single-server mode. _(cluster only)_ +- `isSmart`: Whether the collection belongs to a SmartGraph or EnterpriseGraph + (Enterprise Edition only). This is an internal property. + +- `isDisjoint`: Whether the SmartGraph this collection belongs to is disjoint + (Enterprise Edition only). This is an internal property. + +--- + `collection.properties(properties)` -Changes the collection properties. `properties` must be an object with +Changes the collection properties. `properties` must be an object and can have one or more of the following attribute(s): - `waitForSync`: If `true`, creating a document only returns @@ -185,6 +210,16 @@ one or more of the following attribute(s): up-to-date copies succeed at the same time however. The value of `writeConcern` can not be larger than `replicationFactor`. _(cluster only)_ +- `computedValues`: An array of objects, each representing a + [Computed Value](data-modeling-documents-computed-values.html). + +- `schema`: An object that specifies the collection level document schema for + documents. The attribute keys `rule`, `level` and `message` must follow the rules + documented in [Document Schema Validation](document-schema-validation.html) + +- `cacheEnabled`: Whether the in-memory hash cache for documents should be + enabled for this collection. + {% hint 'info' %} Some other collection properties, such as `type`, `keyOptions`, `numberOfShards` or `shardingStrategy` cannot be changed once diff --git a/3.10/data-modeling-collections-database-methods.md b/3.10/data-modeling-collections-database-methods.md index d16efe7eaf..264402593f 100644 --- a/3.10/data-modeling-collections-database-methods.md +++ b/3.10/data-modeling-collections-database-methods.md @@ -132,6 +132,13 @@ to the [naming conventions](data-modeling-naming-conventions.html). - `computedValues` (optional, default: `null`): An array of objects, each representing a [Computed Value](data-modeling-documents-computed-values.html). +- `cacheEnabled`: Whether the in-memory hash cache for documents should be + enabled for this collection (default: `false`). Can be controlled globally + with the `--cache.size` startup option. The cache can speed up repeated reads + of the same documents via their document keys. If the same documents are not + fetched often or are modified frequently, then you may disable the cache to + avoid the maintenance costs. + - `numberOfShards` (optional, default `1`): in a cluster, this value determines the number of shards to create for the collection. In a single server setup, this option is meaningless. @@ -202,19 +209,19 @@ to the [naming conventions](data-modeling-naming-conventions.html). initial sharding algorithm. The available sharding strategies are: - - `community-compat`: default sharding used by ArangoDB + - `"community-compat"`: default sharding used by ArangoDB Community Edition before version 3.4 - - `enterprise-compat`: default sharding used by ArangoDB + - `"enterprise-compat"`: default sharding used by ArangoDB Enterprise Edition before version 3.4 - - `enterprise-smart-edge-compat`: default sharding used by smart edge + - `"enterprise-smart-edge-compat"`: default sharding used by smart edge collections in ArangoDB Enterprise Edition before version 3.4 - - `hash`: default sharding used for new collections starting from version 3.4 + - `"hash"`: default sharding used for new collections starting from version 3.4 (excluding smart edge collections) - - `enterprise-hash-smart-edge`: default sharding used for new + - `"enterprise-hash-smart-edge"`: default sharding used for new smart edge collections starting from version 3.4 - If no sharding strategy is specified, the default is `hash` for - all collections, and `enterprise-hash-smart-edge` for all smart edge + If no sharding strategy is specified, the default is `"hash"` for + all collections, and `"enterprise-hash-smart-edge"` for all smart edge collections (requires the *Enterprise Edition* of ArangoDB). Manually overriding the sharding strategy does not yet provide a benefit, but it may later in case other sharding strategies are added. diff --git a/3.11/aql/execution-and-performance-query-statistics.md b/3.11/aql/execution-and-performance-query-statistics.md index 9a0016d06f..52fa7f4c1e 100644 --- a/3.11/aql/execution-and-performance-query-statistics.md +++ b/3.11/aql/execution-and-performance-query-statistics.md @@ -9,23 +9,23 @@ A query that has been executed will always return execution statistics. Executio can be retrieved by calling `getExtra()` on the cursor. The statistics are returned in the return value's `stats` attribute: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 06_workWithAQL_statementsExtra @EXAMPLE_ARANGOSH_OUTPUT{06_workWithAQL_statementsExtra} - |db._query(` + | db._query(` | FOR i IN 1..@count INSERT | { _key: CONCAT('anothertest', TO_STRING(i)) } | INTO mycollection`, - | {count: 100}, + | { count: 100 }, | {}, - | {fullCount: true} + | { fullCount: true } ).getExtra(); - |db._query({ - | "query": `FOR i IN 200..@count INSERT - | { _key: CONCAT('anothertest', TO_STRING(i)) } - | INTO mycollection`, - | "bindVars": {count: 300}, - | "options": { fullCount: true} + | db._query({ + | "query": `FOR i IN 200..@count INSERT + | { _key: CONCAT('anothertest', TO_STRING(i)) } + | INTO mycollection`, + | "bindVars": { count: 300 }, + | "options": { fullCount: true } }).getExtra(); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 06_workWithAQL_statementsExtra @@ -34,58 +34,64 @@ return value's `stats` attribute: The meaning of the statistics attributes is as follows: -- **writesExecuted**: the total number of data-modification operations successfully executed. - This is equivalent to the number of documents created, updated or removed by `INSERT`, - `UPDATE`, `REPLACE`, `REMOVE` or `UPSERT` operations. -- **writesIgnored**: the total number of data-modification operations that were unsuccessful, - but have been ignored because of query option `ignoreErrors`. -- **scannedFull**: the total number of documents iterated over when scanning a collection - without an index. Documents scanned by subqueries will be included in the result, but - operations triggered by built-in or user-defined AQL functions will not. -- **scannedIndex**: the total number of documents iterated over when scanning a collection using - an index. Documents scanned by subqueries will be included in the result, but operations - triggered by built-in or user-defined AQL functions will not. -- **cursorsCreated**: the total number of cursor objects created during query execution. Cursor +- **writesExecuted**: The total number of data-modification operations successfully executed. + This is equivalent to the number of documents created, updated, or removed by `INSERT`, + `UPDATE`, `REPLACE`, `REMOVE`, or `UPSERT` operations. +- **writesIgnored**: The total number of data-modification operations that were unsuccessful, + but have been ignored because of the `ignoreErrors` query option. +- **scannedFull**: The total number of documents iterated over when scanning a collection + without an index. Documents scanned by subqueries are included in the result, but + operations triggered by built-in or user-defined AQL functions are not. +- **scannedIndex**: The total number of documents iterated over when scanning a collection using + an index. Documents scanned by subqueries are included in the result, but operations + triggered by built-in or user-defined AQL functions are not. +- **cursorsCreated**: The total number of cursor objects created during query execution. Cursor objects are created for index lookups. -- **cursorsRearmed**: the total number of times an existing cursor object was repurposed. +- **cursorsRearmed**: The total number of times an existing cursor object was repurposed. Repurposing an existing cursor object is normally more efficient compared to destroying an existing cursor object and creating a new one from scratch. -- **cacheHits**: the total number of index entries read from in-memory caches for indexes - of type edge or persistent. This value will only be non-zero when reading from indexes +- **cacheHits**: The total number of index entries read from in-memory caches for indexes + of type edge or persistent. This value is only non-zero when reading from indexes that have an in-memory cache enabled, and when the query allows using the in-memory cache (i.e. using equality lookups on all index attributes). -- **cacheMisses**: the total number of cache read attempts for index entries that could not - be served from in-memory caches for indexes of type edge or persistent. This value will - only be non-zero when reading from indexes that have an in-memory cache enabled, the +- **cacheMisses**: The total number of cache read attempts for index entries that could not + be served from in-memory caches for indexes of type edge or persistent. This value + is only non-zero when reading from indexes that have an in-memory cache enabled, the query allows using the in-memory cache (i.e. using equality lookups on all index attributes) and the looked up values are not present in the cache. -- **filtered**: the total number of documents that were removed after executing a filter condition - in a `FilterNode` or another node that post-filters data. - Note that `IndexNode`s can also filter documents by selecting only the required index range +- **filtered**: The total number of documents removed after executing a filter condition + in a `FilterNode` or another node that post-filters data. Note that nodes of the + `IndexNode` type can also filter documents by selecting only the required index range from a collection, and the `filtered` value only indicates how much filtering was done by a - post filter in the `IndexNode` itself or following `FilterNode`s. - `EnumerateCollectionNode`s and `TraversalNode`s can also apply filter conditions and can - reported the number of filtered documents. -- **fullCount**: the total number of documents that matched the search condition if the query's - final top-level `LIMIT` statement were not present. + post-filter in the `IndexNode` itself or following `FilterNode` nodes. + Nodes of the `EnumerateCollectionNode` and `TraversalNode` types can also apply + filter conditions and can report the number of filtered documents. +- **httpRequests**: The total number of HTTP requests performed. +- **fullCount** (_optional_): The total number of documents that matched the search condition if the query's + final top-level `LIMIT` operation were not present. This attribute may only be returned if the `fullCount` option was set when starting the - query and will only contain a sensible value if the query contained a `LIMIT` operation on + query and only contains a sensible value if the query contains a `LIMIT` operation on the top level. -- **peakMemoryUsage**: the maximum memory usage of the query while it was running. In a cluster, +- **executionTime**: The query execution time (wall-clock time) in seconds. +- **peakMemoryUsage**: The maximum memory usage of the query while it was running. In a cluster, the memory accounting is done per shard, and the memory usage reported is the peak memory usage value from the individual shards. Note that to keep things light-weight, the per-query memory usage is tracked on a relatively high level, not including any memory allocator overhead nor any memory used for temporary results calculations (e.g. memory allocated/deallocated inside AQL expressions and function calls). -- **intermediateCommits**: the total number of intermediate commits the query has performed. - This number can only be greater than zero for data-modification queries that perform modifications - beyond the `--rocksdb.intermediate-commit-count` or `--rocksdb.intermediate-commit-size` thresholds. - In a cluster, the intermediate commits are tracked per DB server that participates in the query - and are summed up in the end. -- **nodes**: _(optional)_ when the query was executed with the option `profile` set to at least `2`, - then this value contains runtime statistics per query execution node. This field contains the - node id (in `id`), the number of calls to this node `calls` and the number of items returned - by this node `items` (Items are the temporary results returned at this stage). You can correlate - this statistics with the `plan` returned in `extra`. For a human readable output you can execute - `db._profileQuery(, )` in the arangosh. +- **intermediateCommits** (_optional_): + The number of intermediate commits performed by the query. This is only non-zero + for write queries, and only for queries that reached either the `intermediateCommitSize` + or `intermediateCommitCount` thresholds. Note: in a cluster, intermediate + commits can happen on each participating DB-Server. +- **nodes** (_optional_): When the query was executed with the option `profile` set to at least `2`, + then this value contains runtime statistics per query execution node. + For a human readable output you can execute `db._profileQuery(, )` + in the arangosh. + - **id**: The execution node ID to correlate the statistics with the `plan` returned in + the `extra` attribute. + - **calls**: The number of calls to this node. + - **items**: The number of items returned by this node. Items are the temporary results + returned at this stage. + - **runtime**: The execution time of this node in seconds. diff --git a/3.11/aql/invocation-with-arangosh.md b/3.11/aql/invocation-with-arangosh.md index a0f67795df..8968821522 100644 --- a/3.11/aql/invocation-with-arangosh.md +++ b/3.11/aql/invocation-with-arangosh.md @@ -1,22 +1,23 @@ --- layout: default -description: Within the ArangoDB shell, the _query and _createStatement methods of the db object can be used to execute AQL queries +description: >- + In the ArangoDB shell, you can use the db._query() and db._createStatement() + methods to execute AQL queries. --- # Executing queries from _arangosh_ -Within the ArangoDB shell, the *_query* and *_createStatement* methods of the -*db* object can be used to execute AQL queries. This chapter also describes +In the ArangoDB shell, you can use the `db._query()` and `db._createStatement()` +methods to execute AQL queries. This chapter also describes how to use bind parameters, counting, statistics and cursors. -With db._query --------------- +## With `db._query()` -One can execute queries with the *_query* method of the *db* object. -This will run the specified query in the context of the currently -selected database and return the query results in a cursor. The results of the cursor -can be printed using its *toArray* method: +You can execute queries with the `_query()` method of the `db` object. +This runs the specified query in the context of the currently +selected database and returns the query results in a cursor. +You can print the results of the cursor using its `toArray()` method: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 01_workWithAQL_all @EXAMPLE_ARANGOSH_OUTPUT{01_workWithAQL_all} ~addIgnoreCollection("mycollection") @@ -25,167 +26,171 @@ can be printed using its *toArray* method: db._query('FOR my IN mycollection RETURN my._key').toArray() @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 01_workWithAQL_all -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} -### db._query Bind parameters +### `db._query()` bind parameters -To pass bind parameters into a query, they can be specified as second argument to the -*_query* method: +To pass bind parameters into a query, you can specify a second argument when +calling the `_query()` method: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 02_workWithAQL_bindValues @EXAMPLE_ARANGOSH_OUTPUT{02_workWithAQL_bindValues} - |db._query( - | 'FOR c IN @@collection FILTER c._key == @key RETURN c._key', { + | db._query('FOR c IN @@collection FILTER c._key == @key RETURN c._key', { | '@collection': 'mycollection', | 'key': 'testKey' - }).toArray(); + }).toArray(); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 02_workWithAQL_bindValues -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### ES6 template strings It is also possible to use ES6 template strings for generating AQL queries. There is -a template string generator function named *aql*; we call it once to demonstrate -its result, and once putting it directly into the query: - -```js -var key = 'testKey'; -aql`FOR c IN mycollection FILTER c._key == ${key} RETURN c._key`; -{ - "query" : "FOR c IN mycollection FILTER c._key == @value0 RETURN c._key", - "bindVars" : { - "value0" : "testKey" - } -} -``` - -{% arangoshexample examplevar="examplevar" script="script" result="result" %} +a template string generator function named `aql`. + +The following example demonstrates what the template string function generates: + + {% arangoshexample examplevar="examplevar" script="script" result="result" %} + @startDocuBlockInline 02_workWithAQL_aqlTemplateString + @EXAMPLE_ARANGOSH_OUTPUT{02_workWithAQL_aqlTemplateString} + var key = 'testKey'; + aql`FOR c IN mycollection FILTER c._key == ${key} RETURN c._key` + @END_EXAMPLE_ARANGOSH_OUTPUT + @endDocuBlock 02_workWithAQL_aqlTemplateString + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} + +The next example directly uses the generated result to execute a query: + + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 02_workWithAQL_aqlQuery @EXAMPLE_ARANGOSH_OUTPUT{02_workWithAQL_aqlQuery} var key = 'testKey'; - |db._query( - | aql`FOR c IN mycollection FILTER c._key == ${key} RETURN c._key` - ).toArray(); + | db._query( + | aql`FOR c IN mycollection FILTER c._key == ${key} RETURN c._key` + ).toArray(); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 02_workWithAQL_aqlQuery -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Arbitrary JavaScript expressions can be used in queries that are generated with the -*aql* template string generator. Collection objects are handled automatically: +`aql` template string generator. Collection objects are handled automatically: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 02_workWithAQL_aqlCollectionQuery @EXAMPLE_ARANGOSH_OUTPUT{02_workWithAQL_aqlCollectionQuery} var key = 'testKey'; - |db._query(aql`FOR doc IN ${ db.mycollection } RETURN doc` - ).toArray(); + db._query(aql`FOR doc IN ${ db.mycollection } RETURN doc`).toArray(); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 02_workWithAQL_aqlCollectionQuery -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} -Note: data-modification AQL queries normally do not return a result (unless the AQL query -contains an extra *RETURN* statement). When not using a *RETURN* statement in the query, the -*toArray* method will return an empty array. +Note: data-modification AQL queries normally do not return a result unless the +AQL query contains a `RETURN` operation at the top-level. Without a `RETURN` +operation, the `toArray()` method returns an empty array. ### Statistics and extra Information -It is always possible to retrieve statistics for a query with the *getExtra* method: +It is always possible to retrieve statistics for a query with the `getExtra()` method: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 03_workWithAQL_getExtra @EXAMPLE_ARANGOSH_OUTPUT{03_workWithAQL_getExtra} - |db._query(`FOR i IN 1..100 - | INSERT { _key: CONCAT('test', TO_STRING(i)) } - | INTO mycollection` + | db._query(`FOR i IN 1..100 + | INSERT { _key: CONCAT('test', TO_STRING(i)) } INTO mycollection` ).getExtra(); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 03_workWithAQL_getExtra {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} -The meaning of the statistics values is described in [Execution statistics](execution-and-performance-query-statistics.html). -You also will find warnings in here; If you're designing queries on the shell be sure to also look at it. +The meaning of the statistics values is described in +[Query statistics](execution-and-performance-query-statistics.html). + +Query warnings are also reported here. If you design queries on the shell, +be sure to check for warnings. ### Setting a memory limit -To set a memory limit for the query, pass *options* to the *_query* method. +To set a memory limit for the query, pass `options` to the `_query()` method. The memory limit specifies the maximum number of bytes that the query is allowed to use. When a single AQL query reaches the specified limit value, the query will be aborted with a *resource limit exceeded* exception. In a cluster, the memory accounting is done per shard, so the limit value is effectively a memory limit per query per shard. -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 02_workWithAQL_memoryLimit @EXAMPLE_ARANGOSH_OUTPUT{02_workWithAQL_memoryLimit} - |db._query( - | 'FOR i IN 1..100000 SORT i RETURN i', {}, { - | memoryLimit: 100000 - }).toArray(); // xpError(ERROR_RESOURCE_LIMIT) + | db._query( + | 'FOR i IN 1..100000 SORT i RETURN i', + | {}, + | { memoryLimit: 100000 } + ).toArray(); // xpError(ERROR_RESOURCE_LIMIT) @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 02_workWithAQL_memoryLimit {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} If no memory limit is specified, then the server default value (controlled by -startup option *--query.memory-limit* will be used for restricting the maximum amount -of memory the query can use. A memory limit value of *0* means that the maximum +the `--query.memory-limit` startup option) is used for restricting the maximum amount +of memory the query can use. A memory limit value of `0` means that the maximum amount of memory for the query is not restricted. ### Setting options -There are further options that can be passed in the *options* attribute of the *_query* method: +There are further options that you can pass in the `options` attribute of the `_query()` method: -- `fullCount`: if set to _true_ and the query contains a _LIMIT_ clause, then the - result will have an extra attribute with the sub-attributes _stats_ and _fullCount_, - `{ ... , "extra": { "stats": { "fullCount": 123 } } }`. The _fullCount_ attribute will - contain the number of documents in the result before the last top-level LIMIT in the +- `fullCount`: if set to `true` and if the query contains a `LIMIT` operation, then the + result has an extra attribute with the sub-attributes `stats` and `fullCount`, like + `{ ... , "extra": { "stats": { "fullCount": 123 } } }`. The `fullCount` attribute + contains the number of documents in the result before the last top-level `LIMIT` in the query was applied. It can be used to count the number of documents that match certain filter criteria, but only return a subset of them, in one go. It is thus similar to - MySQL's _SQL_CALC_FOUND_ROWS_ hint. Note that setting the option will disable a few - LIMIT optimizations and may lead to more documents being processed, and thus make - queries run longer. Note that the _fullCount_ attribute may only be present in the - result if the query has a top-level LIMIT clause and the LIMIT clause is actually - used in the query. - -- `failOnWarning`: when set to *true*, this will make the query throw an exception and - abort in case a warning occurs. This option should be used in development to catch - errors early. If set to *false*, warnings will not be propagated to exceptions and - will be returned with the query results. There is also a server configuration option - `--query.fail-on-warning` for setting the default value for *failOnWarning* so it does - not need to be set on a per-query level. - -- `cache`: if set to *true*, this will put the query result into the query result cache + MySQL's `SQL_CALC_FOUND_ROWS` hint. Note that setting the option disables a few + `LIMIT` optimizations and may lead to more documents being processed, and thus make + queries run longer. Note that the `fullCount` attribute may only be present in the + result if the query has a top-level `LIMIT` operation and the `LIMIT` operation + is actually used in the query. + +- `failOnWarning`: when set to `true`, this makes the query throw an exception and + abort in case a warning occurs. You should use this option in development to catch + errors early. If set to `false`, warnings don't propagate to exceptions and are + returned with the query results. There is also a `--query.fail-on-warning` + startup options for setting the default value for `failOnWarning`, so that you + don't need to set it on a per-query level. + +- `cache`: if set to `true`, this puts the query result into the query result cache if the query result is eligible for caching and the query cache is running in demand - mode. If set to *false*, the query result will not be inserted into the query result - cache. Note that query results will never be inserted into the query result cache if - the query result cache is disabled, and that they will be automatically inserted into - the query result cache when it is active in non-demand mode. + mode. If set to `false`, the query result is not inserted into the query result + cache. Note that query results are never inserted into the query result cache if + the query result cache is disabled, and that they are automatically inserted into + the query result cache if it is active in non-demand mode. -- `fillBlockCache`: if set to *true* or not specified, this will make the query store +- `fillBlockCache`: if set to `true` or not specified, this makes the query store the data it reads via the RocksDB storage engine in the RocksDB block cache. This is - usually the desired behavior. The option can be set to *false* for queries that are + usually the desired behavior. You can set the option to `false` for queries that are known to either read a lot of data that would thrash the block cache, or for queries that read data known to be outside of the hot set. By setting the option - to *false*, data read by the query will not make it into the RocksDB block cache if + to `false`, data read by the query does not make it into the RocksDB block cache if it is not already in there, thus leaving more room for the actual hot set. -- `profile`: if set to *true* or *1*, returns extra timing information for the query. The timing - information is accessible via the *getExtra* method of the query result. Set to *2* the query will - include execution stats per query plan node in sub-attribute *stats.nodes* of the *extra* return attribute. - Additionally the query plan is returned in the sub-attribute *extra.plan*. +- `profile`: if set to `true` or `1`, returns extra timing information for the query. + The timing information is accessible via the `getExtra()` method of the query + result. If set to `2`, the query includes execution statistics per query plan + execution node in `stats.nodes` sub-attribute of the `extra` return attribute. + Additionally, the query plan is returned in the `extra.plan` sub-attribute. - `maxWarningCount`: limits the number of warnings that are returned by the query if - *failOnWarning* is not set to *true*. The default value is *10*. + `failOnWarning` is not set to `true`. The default value is `10`. -- `maxNumberOfPlans`: limits the number of query execution plans the optimizer will - create at most. Reducing the number of query execution plans may speed up query plan +- `maxNumberOfPlans`: limits the number of query execution plans the optimizer + creates at most. Reducing the number of query execution plans may speed up query plan creation and optimization for complex queries, but normally there is no need to adjust this value. @@ -196,21 +201,21 @@ There are further options that can be passed in the *options* attribute of the * a rule, prefix its name with a `-`, to enable a rule, prefix it with a `+`. There is also a pseudo-rule `all`, which matches all optimizer rules. `-all` disables all rules. -- `stream`: Specify *true* and the query will be executed in a **streaming** fashion. The query result is - not stored on the server, but calculated on the fly. *Beware*: long-running queries will +- `stream`: Specify `true` and the query is executed in a **streaming** fashion. The query result is + not stored on the server, but calculated on the fly. **Warning**: long-running queries need to hold the collection locks for as long as the query cursor exists. It is advisable to *only* use this option on short-running queries *or* without exclusive locks. - When set to *false* the query will be executed right away in its entirety. - In that case query results are either returned right away (if the result set is small enough), - or stored on the arangod instance and accessible via the cursor API. + When set to `false`, the query is executed right away in its entirety. + In that case, the query results are either returned right away (if the result + set is small enough), or stored on the arangod instance and can be accessed + via the cursor API. - Please note that the query options `cache`, `count` and `fullCount` will not work on streaming - queries. Additionally query statistics, warnings and profiling data will only be available - after the query is finished. - The default value is *false* + Please note that the query options `cache`, `count` and `fullCount` don't work on streaming + queries. Additionally, query statistics, warnings, and profiling data is only + available after the query has finished. The default value is `false`. -- `maxRuntime`: The query has to be executed within the given runtime or it will be killed. - The value is specified in seconds. The default value is *0.0* (no timeout). +- `maxRuntime`: The query has to be executed within the given runtime or it is killed. + The value is specified in seconds. The default value is `0.0` (no timeout). - `maxNodesPerCallstack`: The number of execution nodes in the query plan after that stack splitting is performed to avoid a potential stack overflow. @@ -220,39 +225,38 @@ There are further options that can be passed in the *options* attribute of the * This option is only useful for testing and debugging and normally does not need any adjustment. -- `maxTransactionSize`: transaction size limit in bytes +- `maxTransactionSize`: The transaction size limit in bytes. -- `intermediateCommitSize`: maximum total size of operations after which an intermediate - commit is performed automatically +- `intermediateCommitSize`: The maximum total size of operations after which an intermediate + commit is performed automatically. -- `intermediateCommitCount`: maximum number of operations after which an intermediate - commit is performed automatically +- `intermediateCommitCount`: The maximum number of operations after which an intermediate + commit is performed automatically. -In the ArangoDB Enterprise Edition there is an additional parameter: +In the ArangoDB Enterprise Edition, there are additional parameters: -- `skipInaccessibleCollections`: AQL queries (especially graph traversals) will treat - collection to which a user has **no access** rights as if these collections were empty. - Instead of returning a *forbidden access* error, your queries will execute normally. +- `skipInaccessibleCollections`: Let AQL queries (especially graph traversals) treat + collection to which a user has **no access** rights for as if these collections are empty. + Instead of returning a *forbidden access* error, your queries execute normally. This is intended to help with certain use-cases: A graph contains several collections - and different users execute AQL queries on that graph. You can now naturally limit the + and different users execute AQL queries on that graph. You can naturally limit the accessible results by changing the access rights of users on collections. - `satelliteSyncWait`: This Enterprise Edition parameter allows to configure how long - a DB-Server will have time to bring the SatelliteCollections involved in the query - into sync. The default value is 60.0 (seconds). When the max time has been reached - the query will be stopped. + a DB-Server has time to bring the SatelliteCollections involved in the query + into sync. The default value is `60.0` seconds. When the maximal time is reached, + the query is stopped. -Additional parameters for spilling data from the query onto disk ------------------------------------------------------------------ +## Additional parameters for spilling data from the query onto disk Starting from ArangoDB 3.10, there are two additional parameters that allow spilling -intermediate data from a query onto a disk to descrease the memory usage. +intermediate data from a query onto a disk to decrease the memory usage. {% hint 'info' %} The option of spilling data from RAM onto disk is experimental and is turned off by default. This parameter currently only has effect for sorting - -for a query that uses the SORT keyword, but without LIMIT. -Also, the query results are still built up entirely in RAM on coordinators +for a query that uses the `SORT` operation but without `LIMIT`. +Also, the query results are still built up entirely in RAM on Coordinators and single servers for non-streaming queries. To avoid the buildup of the entire query result in RAM, a streaming query should be used. {% endhint %} @@ -265,82 +269,78 @@ the entire query result in RAM, a streaming query should be used. document and, in a query that iterates over temporary values (i.e. `FOR i IN 1..100`), each row is one of such temporary values. This parameter is experimental and is only taken into account if a path for a - directory to store the temporary data is provided with the [`--temp.intermediate-results-path` - server startup option](../programs-arangod-query.html#aql-query-with-spilling-input-data-to-disk). - Default value: 5000000 rows. - + directory to store the temporary data is provided with the + [`--temp.intermediate-results-path` startup option](../programs-arangod-query.html#aql-query-with-spilling-input-data-to-disk). + Default value: `5000000` rows. - `spillOverThresholdMemoryUsage`: This parameter allows for input data and intermediate results to be spilled onto disk for a query execution after the memory usage reaches the specified value (in bytes). This is used for decreasing the memory usage during the query execution. This parameter is experimental and is only taken into account if a path for a - directory to store the temporary data is provided with the [`--temp.intermediate-results-path` - server startup option](../programs-arangod-query.html#aql-query-with-spilling-input-data-to-disk). + directory to store the temporary data is provided with the + [`--temp.intermediate-results-path` startup option](../programs-arangod-query.html#aql-query-with-spilling-input-data-to-disk). Default value: 128MB. +## With `db._createStatement()` (ArangoStatement) -With _createStatement (ArangoStatement) ---------------------------------------- - -The *_query* method is a shorthand for creating an ArangoStatement object, +The `_query()` method is a shorthand for creating an `ArangoStatement` object, executing it and iterating over the resulting cursor. If more control over the result set iteration is needed, it is recommended to first create an -ArangoStatement object as follows: +`ArangoStatement` object as follows: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 04_workWithAQL_statements1 @EXAMPLE_ARANGOSH_OUTPUT{04_workWithAQL_statements1} - |stmt = db._createStatement( { - "query": "FOR i IN [ 1, 2 ] RETURN i * 2" } ); + stmt = db._createStatement( { "query": "FOR i IN [ 1, 2 ] RETURN i * 2" } ); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 04_workWithAQL_statements1 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} -To execute the query, use the *execute* method of the statement: +To execute the query, use the `execute()` method of the statement: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 05_workWithAQL_statements2 @EXAMPLE_ARANGOSH_OUTPUT{05_workWithAQL_statements2} - ~var stmt = db._createStatement( { "query": "FOR i IN [ 1, 2 ] RETURN i * 2" } ); - c = stmt.execute(); + ~ var stmt = db._createStatement( { "query": "FOR i IN [ 1, 2 ] RETURN i * 2" } ); + cursor = stmt.execute(); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 05_workWithAQL_statements2 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Cursors Once the query executed the query results are available in a cursor. -The cursor can return all its results at once using the *toArray* method. +The cursor can return all its results at once using the `toArray()` method. This is a short-cut that you can use if you want to access the full result set without iterating over it yourself. -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 05_workWithAQL_statements3 @EXAMPLE_ARANGOSH_OUTPUT{05_workWithAQL_statements3} - ~var stmt = db._createStatement( { "query": "FOR i IN [ 1, 2 ] RETURN i * 2" } ); - ~var c = stmt.execute(); - c.toArray(); + ~ var stmt = db._createStatement( { "query": "FOR i IN [ 1, 2 ] RETURN i * 2" } ); + ~ var cursor = stmt.execute(); + cursor.toArray(); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 05_workWithAQL_statements3 {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} Cursors can also be used to iterate over the result set document-by-document. -To do so, use the *hasNext* and *next* methods of the cursor: +To do so, use the `hasNext()` and `next()` methods of the cursor: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 05_workWithAQL_statements4 @EXAMPLE_ARANGOSH_OUTPUT{05_workWithAQL_statements4} - ~var stmt = db._createStatement( { "query": "FOR i IN [ 1, 2 ] RETURN i * 2" } ); - ~var c = stmt.execute(); - while (c.hasNext()) { require("@arangodb").print(c.next()); } + ~ var stmt = db._createStatement( { "query": "FOR i IN [ 1, 2 ] RETURN i * 2" } ); + ~ var c = stmt.execute(); + while (c.hasNext()) { require("@arangodb").print(c.next()); } @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 05_workWithAQL_statements4 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Please note that you can iterate over the results of a cursor only once, and that the cursor will be empty when you have fully iterated over it. To iterate over @@ -354,111 +354,110 @@ backwards iteration or random access to elements in a cursor. To execute an AQL query using bind parameters, you need to create a statement first and then bind the parameters to it before execution: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 05_workWithAQL_statements5 @EXAMPLE_ARANGOSH_OUTPUT{05_workWithAQL_statements5} - |var stmt = db._createStatement( { - "query": "FOR i IN [ @one, @two ] RETURN i * 2" } ); - stmt.bind("one", 1); - stmt.bind("two", 2); - c = stmt.execute(); + var stmt = db._createStatement( { "query": "FOR i IN [ @one, @two ] RETURN i * 2" } ); + stmt.bind("one", 1); + stmt.bind("two", 2); + cursor = stmt.execute(); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 05_workWithAQL_statements5 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} The cursor results can then be dumped or iterated over as usual, e.g.: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 05_workWithAQL_statements6 @EXAMPLE_ARANGOSH_OUTPUT{05_workWithAQL_statements6} - ~var stmt = db._createStatement( { "query": "FOR i IN [ @one, @two ] RETURN i * 2" } ); - ~stmt.bind("one", 1); - ~stmt.bind("two", 2); - ~var c = stmt.execute(); - c.toArray(); + ~ var stmt = db._createStatement( { "query": "FOR i IN [ @one, @two ] RETURN i * 2" } ); + ~ stmt.bind("one", 1); + ~ stmt.bind("two", 2); + ~ var cursor = stmt.execute(); + cursor.toArray(); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 05_workWithAQL_statements6 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} or -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 05_workWithAQL_statements7 @EXAMPLE_ARANGOSH_OUTPUT{05_workWithAQL_statements7} - ~var stmt = db._createStatement( { "query": "FOR i IN [ @one, @two ] RETURN i * 2" } ); - ~stmt.bind("one", 1); - ~stmt.bind("two", 2); - ~var c = stmt.execute(); - while (c.hasNext()) { require("@arangodb").print(c.next()); } + ~ var stmt = db._createStatement( { "query": "FOR i IN [ @one, @two ] RETURN i * 2" } ); + ~ stmt.bind("one", 1); + ~ stmt.bind("two", 2); + ~ var cursor = stmt.execute(); + while (cursor.hasNext()) { require("@arangodb").print(cursor.next()); } @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 05_workWithAQL_statements7 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} -Please note that bind parameters can also be passed into the *_createStatement* method directly, -making it a bit more convenient: +Please note that bind parameters can also be passed into the `_createStatement()` +method directly, making it a bit more convenient: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 05_workWithAQL_statements8 @EXAMPLE_ARANGOSH_OUTPUT{05_workWithAQL_statements8} - |stmt = db._createStatement( { - | "query": "FOR i IN [ @one, @two ] RETURN i * 2", - | "bindVars": { - | "one": 1, - | "two": 2 - | } - } ); + | stmt = db._createStatement( { + | "query": "FOR i IN [ @one, @two ] RETURN i * 2", + | "bindVars": { + | "one": 1, + | "two": 2 + | } + }); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 05_workWithAQL_statements8 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Counting with a cursor Cursors also optionally provide the total number of results. By default, they do not. -To make the server return the total number of results, you may set the *count* attribute to -*true* when creating a statement: +To make the server return the total number of results, you may set the `count` attribute to +`true` when creating a statement: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 05_workWithAQL_statements9 @EXAMPLE_ARANGOSH_OUTPUT{05_workWithAQL_statements9} - |stmt = db._createStatement( { - | "query": "FOR i IN [ 1, 2, 3, 4 ] RETURN i", - "count": true } ); + | stmt = db._createStatement( { + | "query": "FOR i IN [ 1, 2, 3, 4 ] RETURN i", + "count": true } ); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 05_workWithAQL_statements9 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} -After executing this query, you can use the *count* method of the cursor to get the +After executing this query, you can use the `count` method of the cursor to get the number of total results from the result set: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 05_workWithAQL_statements10 @EXAMPLE_ARANGOSH_OUTPUT{05_workWithAQL_statements10} - ~var stmt = db._createStatement( { "query": "FOR i IN [ 1, 2, 3, 4 ] RETURN i", "count": true } ); - var c = stmt.execute(); - c.count(); + ~ var stmt = db._createStatement( { "query": "FOR i IN [ 1, 2, 3, 4 ] RETURN i", "count": true } ); + var cursor = stmt.execute(); + cursor.count(); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 05_workWithAQL_statements10 {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} -Please note that the *count* method returns nothing if you did not specify the *count* +Please note that the `count` method returns nothing if you did not specify the `count` attribute when creating the query. This is intentional so that the server may apply optimizations when executing the query and construct the result set incrementally. Incremental creation of the result sets is no possible if all of the results need to be shipped to the client anyway. Therefore, the client -has the choice to specify *count* and retrieve the total number of results for a query (and +has the choice to specify `count` and retrieve the total number of results for a query (and disable potential incremental result set creation on the server), or to not retrieve the total number of results and allow the server to apply optimizations. Please note that at the moment the server will always create the full result set for each query so -specifying or omitting the *count* attribute currently does not have any impact on query execution. +specifying or omitting the `count` attribute currently does not have any impact on query execution. This may change in the future. Future versions of ArangoDB may create result sets incrementally on the server-side and may be able to apply optimizations if a result set is not fully fetched by a client. @@ -467,45 +466,44 @@ a client. Cursors can also optionally provide statistics of the internal execution phases. By default, they do not. To get to know how long parsing, optimization, instantiation and execution took, -make the server return that by setting the *profile* attribute to -*true* when creating a statement: +make the server return that by setting the `profile` attribute to +`true` when creating a statement: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 06_workWithAQL_statements11 @EXAMPLE_ARANGOSH_OUTPUT{06_workWithAQL_statements11} - |stmt = db._createStatement( { - | "query": "FOR i IN [ 1, 2, 3, 4 ] RETURN i", - options: {"profile": true}} ); + | stmt = db._createStatement( { + | "query": "FOR i IN [ 1, 2, 3, 4 ] RETURN i", + options: {"profile": true}} ); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 06_workWithAQL_statements11 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} -After executing this query, you can use the *getExtra()* method of the cursor to get the +After executing this query, you can use the `getExtra()` method of the cursor to get the produced statistics: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 06_workWithAQL_statements12 @EXAMPLE_ARANGOSH_OUTPUT{06_workWithAQL_statements12} - ~var stmt = db._createStatement( { "query": "FOR i IN [ 1, 2, 3, 4 ] RETURN i", options: {"profile": true}} ); - var c = stmt.execute(); - c.getExtra(); + ~ var stmt = db._createStatement( { "query": "FOR i IN [ 1, 2, 3, 4 ] RETURN i", options: {"profile": true}} ); + var cursor = stmt.execute(); + cursor.getExtra(); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 06_workWithAQL_statements12 {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} -Query validation ----------------- +## Query validation -The *_parse* method of the *db* object can be used to parse and validate a +The `_parse()` method of the `db` object can be used to parse and validate a query syntactically, without actually executing it. -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 06_workWithAQL_statements13 @EXAMPLE_ARANGOSH_OUTPUT{06_workWithAQL_statements13} - db._parse( "FOR i IN [ 1, 2 ] RETURN i" ); + db._parse( "FOR i IN [ 1, 2 ] RETURN i" ); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 06_workWithAQL_statements13 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} diff --git a/3.11/data-modeling-collections-collection-methods.md b/3.11/data-modeling-collections-collection-methods.md index a321f2928e..d1a1f5182d 100644 --- a/3.11/data-modeling-collections-collection-methods.md +++ b/3.11/data-modeling-collections-collection-methods.md @@ -131,9 +131,11 @@ Returns an object containing all collection properties. `false`, then the key generator is solely responsible for generating keys and supplying own key values in the `_key` attribute of documents is considered an error. - - `increment`: increment value for `autoincrement` key generator. + - `lastValue`: the current offset value of the `autoincrement` or `padded` + key generator. This an internal property for restoring dumps properly. + - `increment`: the increment value for `autoincrement` key generator. Not used for other key generator types. - - `offset`: initial offset value for `autoincrement` key generator. + - `offset`: the initial offset value for `autoincrement` key generator. Not used for other key generator types. - `schema` (optional, default: `null`): @@ -144,6 +146,21 @@ Returns an object containing all collection properties. - `computedValues` (optional, default: `null`): An array of objects, each representing a [Computed Value](data-modeling-documents-computed-values.html). +- `cacheEnabled`: Whether the in-memory hash cache for documents should be + enabled for this collection (default: `false`). Can be controlled globally + with the `--cache.size` startup option. The cache can speed up repeated reads + of the same documents via their document keys. If the same documents are not + fetched often or are modified frequently, then you may disable the cache to + avoid the maintenance costs. + +- `isSystem`: Whether the collection is a system collection. + +- `syncByRevision`: Whether the newer revision-based replication protocol is + enabled for this collection. This is an internal property. + +- `globallyUniqueId`: A unique identifier of the collection. + This is an internal property. + In a cluster setup, the result also contains the following attributes: - `numberOfShards`: the number of shards of the collection. @@ -166,9 +183,17 @@ In a cluster setup, the result also contains the following attributes: This attribute is only populated in cluster mode and is not populated in single-server mode. _(cluster only)_ +- `isSmart`: Whether the collection belongs to a SmartGraph or EnterpriseGraph + (Enterprise Edition only). This is an internal property. + +- `isDisjoint`: Whether the SmartGraph this collection belongs to is disjoint + (Enterprise Edition only). This is an internal property. + +--- + `collection.properties(properties)` -Changes the collection properties. `properties` must be an object with +Changes the collection properties. `properties` must be an object and can have one or more of the following attribute(s): - `waitForSync`: If `true`, creating a document only returns @@ -185,6 +210,16 @@ one or more of the following attribute(s): up-to-date copies succeed at the same time however. The value of `writeConcern` can not be larger than `replicationFactor`. _(cluster only)_ +- `computedValues`: An array of objects, each representing a + [Computed Value](data-modeling-documents-computed-values.html). + +- `schema`: An object that specifies the collection level document schema for + documents. The attribute keys `rule`, `level` and `message` must follow the rules + documented in [Document Schema Validation](document-schema-validation.html) + +- `cacheEnabled`: Whether the in-memory hash cache for documents should be + enabled for this collection. + {% hint 'info' %} Some other collection properties, such as `type`, `keyOptions`, `numberOfShards` or `shardingStrategy` cannot be changed once diff --git a/3.11/data-modeling-collections-database-methods.md b/3.11/data-modeling-collections-database-methods.md index d16efe7eaf..264402593f 100644 --- a/3.11/data-modeling-collections-database-methods.md +++ b/3.11/data-modeling-collections-database-methods.md @@ -132,6 +132,13 @@ to the [naming conventions](data-modeling-naming-conventions.html). - `computedValues` (optional, default: `null`): An array of objects, each representing a [Computed Value](data-modeling-documents-computed-values.html). +- `cacheEnabled`: Whether the in-memory hash cache for documents should be + enabled for this collection (default: `false`). Can be controlled globally + with the `--cache.size` startup option. The cache can speed up repeated reads + of the same documents via their document keys. If the same documents are not + fetched often or are modified frequently, then you may disable the cache to + avoid the maintenance costs. + - `numberOfShards` (optional, default `1`): in a cluster, this value determines the number of shards to create for the collection. In a single server setup, this option is meaningless. @@ -202,19 +209,19 @@ to the [naming conventions](data-modeling-naming-conventions.html). initial sharding algorithm. The available sharding strategies are: - - `community-compat`: default sharding used by ArangoDB + - `"community-compat"`: default sharding used by ArangoDB Community Edition before version 3.4 - - `enterprise-compat`: default sharding used by ArangoDB + - `"enterprise-compat"`: default sharding used by ArangoDB Enterprise Edition before version 3.4 - - `enterprise-smart-edge-compat`: default sharding used by smart edge + - `"enterprise-smart-edge-compat"`: default sharding used by smart edge collections in ArangoDB Enterprise Edition before version 3.4 - - `hash`: default sharding used for new collections starting from version 3.4 + - `"hash"`: default sharding used for new collections starting from version 3.4 (excluding smart edge collections) - - `enterprise-hash-smart-edge`: default sharding used for new + - `"enterprise-hash-smart-edge"`: default sharding used for new smart edge collections starting from version 3.4 - If no sharding strategy is specified, the default is `hash` for - all collections, and `enterprise-hash-smart-edge` for all smart edge + If no sharding strategy is specified, the default is `"hash"` for + all collections, and `"enterprise-hash-smart-edge"` for all smart edge collections (requires the *Enterprise Edition* of ArangoDB). Manually overriding the sharding strategy does not yet provide a benefit, but it may later in case other sharding strategies are added. From 2b3b9018461165096ccc18d540a5e084ee8a4416 Mon Sep 17 00:00:00 2001 From: Simran Spiller Date: Tue, 11 Oct 2022 12:23:30 +0200 Subject: [PATCH 05/18] Minor edits --- 3.10/aql/execution-and-performance-query-profiler.md | 12 ++++++------ .../execution-and-performance-query-statistics.md | 4 ++-- 3.11/aql/execution-and-performance-query-profiler.md | 12 ++++++------ .../execution-and-performance-query-statistics.md | 4 ++-- 3.8/aql/execution-and-performance-query-profiler.md | 12 ++++++------ 3.9/aql/execution-and-performance-query-profiler.md | 12 ++++++------ 6 files changed, 28 insertions(+), 28 deletions(-) diff --git a/3.10/aql/execution-and-performance-query-profiler.md b/3.10/aql/execution-and-performance-query-profiler.md index 17dcce1b15..cc77bfa200 100644 --- a/3.10/aql/execution-and-performance-query-profiler.md +++ b/3.10/aql/execution-and-performance-query-profiler.md @@ -59,7 +59,7 @@ each stage had to do. Without any indexes this query should have to perform the following operations: -1. Perfom a full collection scan via a _EnumerateCollectionNode_ and outputting +1. Perform a full collection scan via a _EnumerateCollectionNode_ and outputting a row containing the document in `doc`. 2. Calculate the boolean expression `LET #1 = doc.value < 10` from all inputs via a _CalculationNode_ @@ -128,7 +128,7 @@ The resulting query profile contains a _SubqueryNode_ which has the runtime of all its children combined. Actually, we cheated a little. The optimizer would have completely removed the -subquery if it had not been deactivated (`rules:["-all"]`). The optimimized +subquery if it had not been deactivated (`rules:["-all"]`). The optimized version would take longer in the "optimizing plan" stage, but should perform better with a lot of results. @@ -165,8 +165,8 @@ The following query gets us all age groups in buckets (0-9, 10-19, 20-29, ...): Without any indexes this query should have to perform the following operations: -1. Perfom a full collection scan via a _EnumerateCollectionNode_ and outputing - a row containg the document in `doc`. +1. Perform a full collection scan via a _EnumerateCollectionNode_ and outputting + a row containing the document in `doc`. 2. Compute the expression `LET #1 = FLOOR(u.age / 10) * 10` for all inputs via a _CalculationNode_ 3. Perform the aggregations via the _CollectNode_ @@ -212,10 +212,10 @@ Another mistake is to start a graph traversal from the wrong side Assume we have two vertex collections _users_ and _products_ as well as an edge collection _purchased_. The graph model looks like this: `(users) <--[purchased]--> (products)`, i.e. every user is connected with an -edge in _pruchased_ to zero or more _products_. +edge in _purchased_ to zero or more _products_. If we want to know all users that have purchased the product _playstation_ -as well as produts of `type` _legwarmer_ we could use this query: +as well as products of `type` _legwarmer_ we could use this query: ```aql FOR prod IN products diff --git a/3.10/aql/execution-and-performance-query-statistics.md b/3.10/aql/execution-and-performance-query-statistics.md index 52fa7f4c1e..f472e8624c 100644 --- a/3.10/aql/execution-and-performance-query-statistics.md +++ b/3.10/aql/execution-and-performance-query-statistics.md @@ -66,7 +66,7 @@ The meaning of the statistics attributes is as follows: post-filter in the `IndexNode` itself or following `FilterNode` nodes. Nodes of the `EnumerateCollectionNode` and `TraversalNode` types can also apply filter conditions and can report the number of filtered documents. -- **httpRequests**: The total number of HTTP requests performed. +- **httpRequests**: The total number of cluster-internal HTTP requests performed. - **fullCount** (_optional_): The total number of documents that matched the search condition if the query's final top-level `LIMIT` operation were not present. This attribute may only be returned if the `fullCount` option was set when starting the @@ -85,7 +85,7 @@ The meaning of the statistics attributes is as follows: for write queries, and only for queries that reached either the `intermediateCommitSize` or `intermediateCommitCount` thresholds. Note: in a cluster, intermediate commits can happen on each participating DB-Server. -- **nodes** (_optional_): When the query was executed with the option `profile` set to at least `2`, +- **nodes** (_optional_): When the query is executed with the option `profile` set to at least `2`, then this value contains runtime statistics per query execution node. For a human readable output you can execute `db._profileQuery(, )` in the arangosh. diff --git a/3.11/aql/execution-and-performance-query-profiler.md b/3.11/aql/execution-and-performance-query-profiler.md index 17dcce1b15..cc77bfa200 100644 --- a/3.11/aql/execution-and-performance-query-profiler.md +++ b/3.11/aql/execution-and-performance-query-profiler.md @@ -59,7 +59,7 @@ each stage had to do. Without any indexes this query should have to perform the following operations: -1. Perfom a full collection scan via a _EnumerateCollectionNode_ and outputting +1. Perform a full collection scan via a _EnumerateCollectionNode_ and outputting a row containing the document in `doc`. 2. Calculate the boolean expression `LET #1 = doc.value < 10` from all inputs via a _CalculationNode_ @@ -128,7 +128,7 @@ The resulting query profile contains a _SubqueryNode_ which has the runtime of all its children combined. Actually, we cheated a little. The optimizer would have completely removed the -subquery if it had not been deactivated (`rules:["-all"]`). The optimimized +subquery if it had not been deactivated (`rules:["-all"]`). The optimized version would take longer in the "optimizing plan" stage, but should perform better with a lot of results. @@ -165,8 +165,8 @@ The following query gets us all age groups in buckets (0-9, 10-19, 20-29, ...): Without any indexes this query should have to perform the following operations: -1. Perfom a full collection scan via a _EnumerateCollectionNode_ and outputing - a row containg the document in `doc`. +1. Perform a full collection scan via a _EnumerateCollectionNode_ and outputting + a row containing the document in `doc`. 2. Compute the expression `LET #1 = FLOOR(u.age / 10) * 10` for all inputs via a _CalculationNode_ 3. Perform the aggregations via the _CollectNode_ @@ -212,10 +212,10 @@ Another mistake is to start a graph traversal from the wrong side Assume we have two vertex collections _users_ and _products_ as well as an edge collection _purchased_. The graph model looks like this: `(users) <--[purchased]--> (products)`, i.e. every user is connected with an -edge in _pruchased_ to zero or more _products_. +edge in _purchased_ to zero or more _products_. If we want to know all users that have purchased the product _playstation_ -as well as produts of `type` _legwarmer_ we could use this query: +as well as products of `type` _legwarmer_ we could use this query: ```aql FOR prod IN products diff --git a/3.11/aql/execution-and-performance-query-statistics.md b/3.11/aql/execution-and-performance-query-statistics.md index 52fa7f4c1e..f472e8624c 100644 --- a/3.11/aql/execution-and-performance-query-statistics.md +++ b/3.11/aql/execution-and-performance-query-statistics.md @@ -66,7 +66,7 @@ The meaning of the statistics attributes is as follows: post-filter in the `IndexNode` itself or following `FilterNode` nodes. Nodes of the `EnumerateCollectionNode` and `TraversalNode` types can also apply filter conditions and can report the number of filtered documents. -- **httpRequests**: The total number of HTTP requests performed. +- **httpRequests**: The total number of cluster-internal HTTP requests performed. - **fullCount** (_optional_): The total number of documents that matched the search condition if the query's final top-level `LIMIT` operation were not present. This attribute may only be returned if the `fullCount` option was set when starting the @@ -85,7 +85,7 @@ The meaning of the statistics attributes is as follows: for write queries, and only for queries that reached either the `intermediateCommitSize` or `intermediateCommitCount` thresholds. Note: in a cluster, intermediate commits can happen on each participating DB-Server. -- **nodes** (_optional_): When the query was executed with the option `profile` set to at least `2`, +- **nodes** (_optional_): When the query is executed with the option `profile` set to at least `2`, then this value contains runtime statistics per query execution node. For a human readable output you can execute `db._profileQuery(, )` in the arangosh. diff --git a/3.8/aql/execution-and-performance-query-profiler.md b/3.8/aql/execution-and-performance-query-profiler.md index cfe508195b..c71fe93f03 100644 --- a/3.8/aql/execution-and-performance-query-profiler.md +++ b/3.8/aql/execution-and-performance-query-profiler.md @@ -58,7 +58,7 @@ each stage had to do. Without any indexes this query should have to perform the following operations: -1. Perfom a full collection scan via a _EnumerateCollectionNode_ and outputting +1. Perform a full collection scan via a _EnumerateCollectionNode_ and outputting a row containing the document in `doc`. 2. Calculate the boolean expression `LET #1 = doc.value < 10` from all inputs via a _CalculationNode_ @@ -127,7 +127,7 @@ The resulting query profile contains a _SubqueryNode_ which has the runtime of all its children combined. Actually, we cheated a little. The optimizer would have completely removed the -subquery if it had not been deactivated (`rules:["-all"]`). The optimimized +subquery if it had not been deactivated (`rules:["-all"]`). The optimized version would take longer in the "optimizing plan" stage, but should perform better with a lot of results. @@ -164,8 +164,8 @@ The following query gets us all age groups in buckets (0-9, 10-19, 20-29, ...): Without any indexes this query should have to perform the following operations: -1. Perfom a full collection scan via a _EnumerateCollectionNode_ and outputing - a row containg the document in `doc`. +1. Perform a full collection scan via a _EnumerateCollectionNode_ and outputting + a row containing the document in `doc`. 2. Compute the expression `LET #1 = FLOOR(u.age / 10) * 10` for all inputs via a _CalculationNode_ 3. Perform the aggregations via the _CollectNode_ @@ -211,10 +211,10 @@ Another mistake is to start a graph traversal from the wrong side Assume we have two vertex collections _users_ and _products_ as well as an edge collection _purchased_. The graph model looks like this: `(users) <--[purchased]--> (products)`, i.e. every user is connected with an -edge in _pruchased_ to zero or more _products_. +edge in _purchased_ to zero or more _products_. If we want to know all users that have purchased the product _playstation_ -as well as produts of `type` _legwarmer_ we could use this query: +as well as products of `type` _legwarmer_ we could use this query: ```js FOR prod IN products diff --git a/3.9/aql/execution-and-performance-query-profiler.md b/3.9/aql/execution-and-performance-query-profiler.md index f8a17e595a..dfaf32c83d 100644 --- a/3.9/aql/execution-and-performance-query-profiler.md +++ b/3.9/aql/execution-and-performance-query-profiler.md @@ -58,7 +58,7 @@ each stage had to do. Without any indexes this query should have to perform the following operations: -1. Perfom a full collection scan via a _EnumerateCollectionNode_ and outputting +1. Perform a full collection scan via a _EnumerateCollectionNode_ and outputting a row containing the document in `doc`. 2. Calculate the boolean expression `LET #1 = doc.value < 10` from all inputs via a _CalculationNode_ @@ -127,7 +127,7 @@ The resulting query profile contains a _SubqueryNode_ which has the runtime of all its children combined. Actually, we cheated a little. The optimizer would have completely removed the -subquery if it had not been deactivated (`rules:["-all"]`). The optimimized +subquery if it had not been deactivated (`rules:["-all"]`). The optimized version would take longer in the "optimizing plan" stage, but should perform better with a lot of results. @@ -164,8 +164,8 @@ The following query gets us all age groups in buckets (0-9, 10-19, 20-29, ...): Without any indexes this query should have to perform the following operations: -1. Perfom a full collection scan via a _EnumerateCollectionNode_ and outputing - a row containg the document in `doc`. +1. Perform a full collection scan via a _EnumerateCollectionNode_ and outputting + a row containing the document in `doc`. 2. Compute the expression `LET #1 = FLOOR(u.age / 10) * 10` for all inputs via a _CalculationNode_ 3. Perform the aggregations via the _CollectNode_ @@ -211,10 +211,10 @@ Another mistake is to start a graph traversal from the wrong side Assume we have two vertex collections _users_ and _products_ as well as an edge collection _purchased_. The graph model looks like this: `(users) <--[purchased]--> (products)`, i.e. every user is connected with an -edge in _pruchased_ to zero or more _products_. +edge in _purchased_ to zero or more _products_. If we want to know all users that have purchased the product _playstation_ -as well as produts of `type` _legwarmer_ we could use this query: +as well as products of `type` _legwarmer_ we could use this query: ```js FOR prod IN products From 69b9dcffc237fbf7b23ebf2882f761ae42b15c71 Mon Sep 17 00:00:00 2001 From: Simran Spiller Date: Wed, 12 Oct 2022 00:08:28 +0200 Subject: [PATCH 06/18] intermediateCommits cursor stats are 3.11 only, add missing coll/cursor props to 3.8 & 3.9 --- ...cution-and-performance-query-statistics.md | 5 ----- ...cution-and-performance-query-statistics.md | 12 +++++----- ...cution-and-performance-query-statistics.md | 2 ++ ...modeling-collections-collection-methods.md | 22 +++++++++++++++++++ ...cution-and-performance-query-statistics.md | 2 ++ ...modeling-collections-collection-methods.md | 22 +++++++++++++++++++ 6 files changed, 55 insertions(+), 10 deletions(-) diff --git a/3.10/aql/execution-and-performance-query-statistics.md b/3.10/aql/execution-and-performance-query-statistics.md index f472e8624c..b61f77ef8b 100644 --- a/3.10/aql/execution-and-performance-query-statistics.md +++ b/3.10/aql/execution-and-performance-query-statistics.md @@ -80,11 +80,6 @@ The meaning of the statistics attributes is as follows: high level, not including any memory allocator overhead nor any memory used for temporary results calculations (e.g. memory allocated/deallocated inside AQL expressions and function calls). -- **intermediateCommits** (_optional_): - The number of intermediate commits performed by the query. This is only non-zero - for write queries, and only for queries that reached either the `intermediateCommitSize` - or `intermediateCommitCount` thresholds. Note: in a cluster, intermediate - commits can happen on each participating DB-Server. - **nodes** (_optional_): When the query is executed with the option `profile` set to at least `2`, then this value contains runtime statistics per query execution node. For a human readable output you can execute `db._profileQuery(, )` diff --git a/3.11/aql/execution-and-performance-query-statistics.md b/3.11/aql/execution-and-performance-query-statistics.md index f472e8624c..6f0d3924a6 100644 --- a/3.11/aql/execution-and-performance-query-statistics.md +++ b/3.11/aql/execution-and-performance-query-statistics.md @@ -80,11 +80,13 @@ The meaning of the statistics attributes is as follows: high level, not including any memory allocator overhead nor any memory used for temporary results calculations (e.g. memory allocated/deallocated inside AQL expressions and function calls). -- **intermediateCommits** (_optional_): - The number of intermediate commits performed by the query. This is only non-zero - for write queries, and only for queries that reached either the `intermediateCommitSize` - or `intermediateCommitCount` thresholds. Note: in a cluster, intermediate - commits can happen on each participating DB-Server. +- **intermediateCommits**: + The total number of intermediate commits the query has performed. This number + can only be greater than zero for data-modification queries that perform + modifications beyond the `--rocksdb.intermediate-commit-count` or + `--rocksdb.intermediate-commit-size` thresholds. In a cluster, the + intermediate commits are tracked per DB-Server that participates in the query + and are summed up in the end. - **nodes** (_optional_): When the query is executed with the option `profile` set to at least `2`, then this value contains runtime statistics per query execution node. For a human readable output you can execute `db._profileQuery(, )` diff --git a/3.8/aql/execution-and-performance-query-statistics.md b/3.8/aql/execution-and-performance-query-statistics.md index a0e33581e0..c392260472 100644 --- a/3.8/aql/execution-and-performance-query-statistics.md +++ b/3.8/aql/execution-and-performance-query-statistics.md @@ -49,11 +49,13 @@ The meaning of the statistics attributes is as follows: in a `FilterNode`. Note that `IndexRangeNode`s can also filter documents by selecting only the required index range from a collection, and the `filtered` value only indicates how much filtering was done by `FilterNode`s. +* *httpRequests*: the total number of cluster-internal HTTP requests performed. * *fullCount*: the total number of documents that matched the search condition if the query's final top-level `LIMIT` statement were not present. This attribute may only be returned if the `fullCount` option was set when starting the query and will only contain a sensible value if the query contained a `LIMIT` operation on the top level. +* *executionTime*: the query execution time (wall-clock time) in seconds. * *peakMemoryUsage*: the maximum memory usage of the query while it was running. In a cluster, the memory accounting is done per shard, and the memory usage reported is the peak memory usage value from the individual shards. diff --git a/3.8/data-modeling-collections-collection-methods.md b/3.8/data-modeling-collections-collection-methods.md index 48dd5a47df..4f322b020f 100644 --- a/3.8/data-modeling-collections-collection-methods.md +++ b/3.8/data-modeling-collections-collection-methods.md @@ -124,6 +124,8 @@ Returns an object containing all collection properties. *false*, then the key generator will solely be responsible for generating keys and supplying own key values in the *_key* attribute of documents is considered an error. + * *lastValue*: the current offset value of the `autoincrement` or `padded` + key generator. This an internal property for restoring dumps properly. * *increment*: increment value for *autoincrement* key generator. Not used for other key generator types. * *offset*: initial offset value for *autoincrement* key generator. @@ -134,6 +136,14 @@ Returns an object containing all collection properties. The attribute keys `rule`, `level` and `message` must follow the rules documented in [Document Schema Validation](document-schema-validation.html) +* *isSystem*: Whether the collection is a system collection. + +* *syncByRevision*: Whether the newer revision-based replication protocol is + enabled for this collection. This is an internal property. + +* *globallyUniqueId*: A unique identifier of the collection. + This is an internal property. + In a cluster setup, the result will also contain the following attributes: * *numberOfShards*: the number of shards of the collection. @@ -156,6 +166,14 @@ In a cluster setup, the result will also contain the following attributes: This attribute will only be populated in cluster mode and is not populated in single-server mode. _(cluster only)_ +* *isSmart*: Whether the collection belongs to a SmartGraph + (Enterprise Edition only). This is an internal property. + +* *isDisjoint*: Whether the SmartGraph this collection belongs to is disjoint + (Enterprise Edition only). This is an internal property. + +--- + `collection.properties(properties)` Changes the collection properties. *properties* must be an object with @@ -175,6 +193,10 @@ one or more of the following attribute(s): up-to-date copies will succeed at the same time however. The value of *writeConcern* can not be larger than *replicationFactor*. _(cluster only)_ +* *schema*: An object that specifies the collection level document schema for + documents. The attribute keys `rule`, `level` and `message` must follow the rules + documented in [Document Schema Validation](document-schema-validation.html) + **Note**: some other collection properties, such as *type*, *keyOptions*, *numberOfShards* or *shardingStrategy* cannot be changed once the collection is created. diff --git a/3.9/aql/execution-and-performance-query-statistics.md b/3.9/aql/execution-and-performance-query-statistics.md index a0e33581e0..c392260472 100644 --- a/3.9/aql/execution-and-performance-query-statistics.md +++ b/3.9/aql/execution-and-performance-query-statistics.md @@ -49,11 +49,13 @@ The meaning of the statistics attributes is as follows: in a `FilterNode`. Note that `IndexRangeNode`s can also filter documents by selecting only the required index range from a collection, and the `filtered` value only indicates how much filtering was done by `FilterNode`s. +* *httpRequests*: the total number of cluster-internal HTTP requests performed. * *fullCount*: the total number of documents that matched the search condition if the query's final top-level `LIMIT` statement were not present. This attribute may only be returned if the `fullCount` option was set when starting the query and will only contain a sensible value if the query contained a `LIMIT` operation on the top level. +* *executionTime*: the query execution time (wall-clock time) in seconds. * *peakMemoryUsage*: the maximum memory usage of the query while it was running. In a cluster, the memory accounting is done per shard, and the memory usage reported is the peak memory usage value from the individual shards. diff --git a/3.9/data-modeling-collections-collection-methods.md b/3.9/data-modeling-collections-collection-methods.md index 48dd5a47df..4f322b020f 100644 --- a/3.9/data-modeling-collections-collection-methods.md +++ b/3.9/data-modeling-collections-collection-methods.md @@ -124,6 +124,8 @@ Returns an object containing all collection properties. *false*, then the key generator will solely be responsible for generating keys and supplying own key values in the *_key* attribute of documents is considered an error. + * *lastValue*: the current offset value of the `autoincrement` or `padded` + key generator. This an internal property for restoring dumps properly. * *increment*: increment value for *autoincrement* key generator. Not used for other key generator types. * *offset*: initial offset value for *autoincrement* key generator. @@ -134,6 +136,14 @@ Returns an object containing all collection properties. The attribute keys `rule`, `level` and `message` must follow the rules documented in [Document Schema Validation](document-schema-validation.html) +* *isSystem*: Whether the collection is a system collection. + +* *syncByRevision*: Whether the newer revision-based replication protocol is + enabled for this collection. This is an internal property. + +* *globallyUniqueId*: A unique identifier of the collection. + This is an internal property. + In a cluster setup, the result will also contain the following attributes: * *numberOfShards*: the number of shards of the collection. @@ -156,6 +166,14 @@ In a cluster setup, the result will also contain the following attributes: This attribute will only be populated in cluster mode and is not populated in single-server mode. _(cluster only)_ +* *isSmart*: Whether the collection belongs to a SmartGraph + (Enterprise Edition only). This is an internal property. + +* *isDisjoint*: Whether the SmartGraph this collection belongs to is disjoint + (Enterprise Edition only). This is an internal property. + +--- + `collection.properties(properties)` Changes the collection properties. *properties* must be an object with @@ -175,6 +193,10 @@ one or more of the following attribute(s): up-to-date copies will succeed at the same time however. The value of *writeConcern* can not be larger than *replicationFactor*. _(cluster only)_ +* *schema*: An object that specifies the collection level document schema for + documents. The attribute keys `rule`, `level` and `message` must follow the rules + documented in [Document Schema Validation](document-schema-validation.html) + **Note**: some other collection properties, such as *type*, *keyOptions*, *numberOfShards* or *shardingStrategy* cannot be changed once the collection is created. From 90088f582e722e8de9a18c760a3e7e988ee61875 Mon Sep 17 00:00:00 2001 From: Simran Spiller Date: Fri, 14 Oct 2022 02:30:34 +0200 Subject: [PATCH 07/18] Fix anchor links --- 3.10/appendix-references-dbobject.md | 2 +- 3.10/aql/invocation.md | 2 +- 3.11/appendix-references-dbobject.md | 2 +- 3.11/aql/invocation.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/3.10/appendix-references-dbobject.md b/3.10/appendix-references-dbobject.md index ab006a2e5f..731365d5e8 100644 --- a/3.10/appendix-references-dbobject.md +++ b/3.10/appendix-references-dbobject.md @@ -42,7 +42,7 @@ The following methods exist on the *_db* object: *AQL* -* [db._createStatement(query)](aql/invocation-with-arangosh.html#with-_createstatement-arangostatement) +* [db._createStatement(query)](aql/invocation-with-arangosh.html#with-db_createstatement-arangostatement) * [db._query(query)](aql/invocation-with-arangosh.html#with-db_query) * [db._explain(query)](release-notes-new-features28.html#miscellaneous-improvements) * [db._parse(query)](aql/invocation-with-arangosh.html#query-validation) diff --git a/3.10/aql/invocation.md b/3.10/aql/invocation.md index afef950a8e..524a94c5a1 100644 --- a/3.10/aql/invocation.md +++ b/3.10/aql/invocation.md @@ -19,7 +19,7 @@ The ArangoDB Web Interface has a [specific tab for AQL queries execution](invoca You can run [AQL queries from the ArangoDB Shell](invocation-with-arangosh.html) with the [_query](invocation-with-arangosh.html#with-db_query) and -[_createStatement](invocation-with-arangosh.html#with-_createstatement-arangostatement) methods +[_createStatement](invocation-with-arangosh.html#with-db_createstatement-arangostatement) methods of the [`db` object](../appendix-references-dbobject.html). This chapter also describes how to use bind parameters, statistics, counting and cursors with arangosh. diff --git a/3.11/appendix-references-dbobject.md b/3.11/appendix-references-dbobject.md index ab006a2e5f..731365d5e8 100644 --- a/3.11/appendix-references-dbobject.md +++ b/3.11/appendix-references-dbobject.md @@ -42,7 +42,7 @@ The following methods exist on the *_db* object: *AQL* -* [db._createStatement(query)](aql/invocation-with-arangosh.html#with-_createstatement-arangostatement) +* [db._createStatement(query)](aql/invocation-with-arangosh.html#with-db_createstatement-arangostatement) * [db._query(query)](aql/invocation-with-arangosh.html#with-db_query) * [db._explain(query)](release-notes-new-features28.html#miscellaneous-improvements) * [db._parse(query)](aql/invocation-with-arangosh.html#query-validation) diff --git a/3.11/aql/invocation.md b/3.11/aql/invocation.md index afef950a8e..524a94c5a1 100644 --- a/3.11/aql/invocation.md +++ b/3.11/aql/invocation.md @@ -19,7 +19,7 @@ The ArangoDB Web Interface has a [specific tab for AQL queries execution](invoca You can run [AQL queries from the ArangoDB Shell](invocation-with-arangosh.html) with the [_query](invocation-with-arangosh.html#with-db_query) and -[_createStatement](invocation-with-arangosh.html#with-_createstatement-arangostatement) methods +[_createStatement](invocation-with-arangosh.html#with-db_createstatement-arangostatement) methods of the [`db` object](../appendix-references-dbobject.html). This chapter also describes how to use bind parameters, statistics, counting and cursors with arangosh. From 31438aa7b4f9fa84ebec13b70f9df6755f703dc1 Mon Sep 17 00:00:00 2001 From: Simran Spiller Date: Sat, 15 Oct 2022 00:51:14 +0200 Subject: [PATCH 08/18] Sub-attributes called _id cannot be indexed, clarifications & formatting --- 3.10/http/indexes.md | 3 ++- 3.10/indexing-index-basics.md | 10 +++++----- 3.10/indexing-working-with-indexes.md | 16 ++++++++++------ 3.11/http/indexes.md | 3 ++- 3.11/indexing-index-basics.md | 10 +++++----- 3.11/indexing-working-with-indexes.md | 16 ++++++++++------ 3.8/http/indexes.md | 3 ++- 3.8/indexing-index-basics.md | 4 ++-- 3.8/indexing-working-with-indexes.md | 21 ++++++++++++++++++--- 3.9/http/indexes.md | 3 ++- 3.9/indexing-index-basics.md | 4 ++-- 3.9/indexing-working-with-indexes.md | 21 ++++++++++++++++++--- 12 files changed, 78 insertions(+), 36 deletions(-) diff --git a/3.10/http/indexes.md b/3.10/http/indexes.md index fe8dfbeb6d..c614f3598c 100644 --- a/3.10/http/indexes.md +++ b/3.10/http/indexes.md @@ -19,7 +19,8 @@ Indexes are used to allow fast access to documents. For each collection there is Most user-land indexes can be created by defining the names of the attributes which should be indexed. Some index types allow indexing just one attribute (e.g. ttl index) whereas other index types allow indexing multiple attributes. -Using the system attribute `_id` in user-defined indexes is not supported by any index type. +You cannot use the `_id` system attribute, nor sub-attributes with this name, in +user-defined indexes of any type. ### Index Handle diff --git a/3.10/indexing-index-basics.md b/3.10/indexing-index-basics.md index bf01c559e3..d8fec2189a 100644 --- a/3.10/indexing-index-basics.md +++ b/3.10/indexing-index-basics.md @@ -23,8 +23,8 @@ by ArangoDB, without the user being required to create extra indexes for them. `_id` and `_key` are covered by a collection's primary key, and `_from` and `_to` are covered by an edge collection's edge index automatically. -You cannot use the `_id` system attribute in user-defined indexes, but indexing -`_key`, `_rev`, `_from`, and `_to` is possible. +You cannot use the `_id` system attribute, nor sub-attributes with this name, in +user-defined indexes, but indexing `_key`, `_rev`, `_from`, and `_to` is possible. You cannot index fields that contain `.` in their attribute names because dots are interpreted as paths of nested attributes. For example, `fields: ["foo.bar"]` @@ -398,9 +398,9 @@ Indexing attributes and sub-attributes Top-level as well as nested attributes can be indexed. For attributes at the top level, the attribute names alone are required. To index a single field, pass an array with a -single element (string of the attribute key) to the *fields* parameter of the +single element (string of the attribute key) to the `fields` parameter of the [ensureIndex() method](indexing-working-with-indexes.html#creating-an-index). To create a -combined index over multiple fields, simply add more members to the *fields* array: +combined index over multiple fields, simply add more members to the `fields` array: ```js // { name: "Smith", age: 35 } @@ -484,7 +484,7 @@ FOR doc IN posts ``` If you store a document having the array which does contain elements not having -the subattributes this document will also be indexed with the value `null`, which +the sub-attributes this document will also be indexed with the value `null`, which in ArangoDB is equal to attribute not existing. ArangoDB supports creating array indexes with a single `[*]` operator per index diff --git a/3.10/indexing-working-with-indexes.md b/3.10/indexing-working-with-indexes.md index bb8bdbe0e8..dbfd2f0608 100644 --- a/3.10/indexing-working-with-indexes.md +++ b/3.10/indexing-working-with-indexes.md @@ -120,22 +120,22 @@ Ensures that an index exists: `collection.ensureIndex(index-description)` -Ensures that an index according to the *index-description* exists. A +Ensures that an index according to the `index-description` exists. A new index will be created if none exists with the given description. Calling this method returns an index object. Whether or not the index -object existed before the call is indicated in the return attribute -*isNewlyCreated*. +object existed before the call is indicated in the `isNewlyCreated` return +attribute. -The *index-description* input value must contain at least a *type* attribute. +The `index-description` input value must contain at least a `type` attribute. Other attributes may be necessary, depending on the index type. **type** can be one of the following values: -- `"persistent"`: persistent index +- `"persistent"`: persistent (array) index, including vertex-centric index - `"inverted"`: inverted index - `"ttl"`: time-to-live index - `"fulltext"`: fulltext index (deprecated from ArangoDB 3.10 onwards) -- `"geo"`: geo index, with _one_ or _two_ attributes +- `"geo"`: geo-spatial index, with _one_ or _two_ attributes - `"zkd"`: multi-dimensional index (experimental) **fields** is an array of attribute paths, containing the document attributes @@ -143,6 +143,10 @@ Other attributes may be necessary, depending on the index type. and others allow multiple. If multiple attributes are used, their order matters. +The `.` character denotes sub-attributes in attribute paths. Attributes with +literal `.` in their name cannot be indexed. Attributes with the name `_id` +cannot be indexed either, neither as a top-level attribute nor as a sub-attribute. + If an attribute path contains an `[*]` extension (e.g. `friends[*].id`), it means that the index attribute value is treated as an array and all array members are indexed separately. This is possible with `persistent` and `inverted` indexes. diff --git a/3.11/http/indexes.md b/3.11/http/indexes.md index fe8dfbeb6d..c614f3598c 100644 --- a/3.11/http/indexes.md +++ b/3.11/http/indexes.md @@ -19,7 +19,8 @@ Indexes are used to allow fast access to documents. For each collection there is Most user-land indexes can be created by defining the names of the attributes which should be indexed. Some index types allow indexing just one attribute (e.g. ttl index) whereas other index types allow indexing multiple attributes. -Using the system attribute `_id` in user-defined indexes is not supported by any index type. +You cannot use the `_id` system attribute, nor sub-attributes with this name, in +user-defined indexes of any type. ### Index Handle diff --git a/3.11/indexing-index-basics.md b/3.11/indexing-index-basics.md index bf01c559e3..d8fec2189a 100644 --- a/3.11/indexing-index-basics.md +++ b/3.11/indexing-index-basics.md @@ -23,8 +23,8 @@ by ArangoDB, without the user being required to create extra indexes for them. `_id` and `_key` are covered by a collection's primary key, and `_from` and `_to` are covered by an edge collection's edge index automatically. -You cannot use the `_id` system attribute in user-defined indexes, but indexing -`_key`, `_rev`, `_from`, and `_to` is possible. +You cannot use the `_id` system attribute, nor sub-attributes with this name, in +user-defined indexes, but indexing `_key`, `_rev`, `_from`, and `_to` is possible. You cannot index fields that contain `.` in their attribute names because dots are interpreted as paths of nested attributes. For example, `fields: ["foo.bar"]` @@ -398,9 +398,9 @@ Indexing attributes and sub-attributes Top-level as well as nested attributes can be indexed. For attributes at the top level, the attribute names alone are required. To index a single field, pass an array with a -single element (string of the attribute key) to the *fields* parameter of the +single element (string of the attribute key) to the `fields` parameter of the [ensureIndex() method](indexing-working-with-indexes.html#creating-an-index). To create a -combined index over multiple fields, simply add more members to the *fields* array: +combined index over multiple fields, simply add more members to the `fields` array: ```js // { name: "Smith", age: 35 } @@ -484,7 +484,7 @@ FOR doc IN posts ``` If you store a document having the array which does contain elements not having -the subattributes this document will also be indexed with the value `null`, which +the sub-attributes this document will also be indexed with the value `null`, which in ArangoDB is equal to attribute not existing. ArangoDB supports creating array indexes with a single `[*]` operator per index diff --git a/3.11/indexing-working-with-indexes.md b/3.11/indexing-working-with-indexes.md index bb8bdbe0e8..dbfd2f0608 100644 --- a/3.11/indexing-working-with-indexes.md +++ b/3.11/indexing-working-with-indexes.md @@ -120,22 +120,22 @@ Ensures that an index exists: `collection.ensureIndex(index-description)` -Ensures that an index according to the *index-description* exists. A +Ensures that an index according to the `index-description` exists. A new index will be created if none exists with the given description. Calling this method returns an index object. Whether or not the index -object existed before the call is indicated in the return attribute -*isNewlyCreated*. +object existed before the call is indicated in the `isNewlyCreated` return +attribute. -The *index-description* input value must contain at least a *type* attribute. +The `index-description` input value must contain at least a `type` attribute. Other attributes may be necessary, depending on the index type. **type** can be one of the following values: -- `"persistent"`: persistent index +- `"persistent"`: persistent (array) index, including vertex-centric index - `"inverted"`: inverted index - `"ttl"`: time-to-live index - `"fulltext"`: fulltext index (deprecated from ArangoDB 3.10 onwards) -- `"geo"`: geo index, with _one_ or _two_ attributes +- `"geo"`: geo-spatial index, with _one_ or _two_ attributes - `"zkd"`: multi-dimensional index (experimental) **fields** is an array of attribute paths, containing the document attributes @@ -143,6 +143,10 @@ Other attributes may be necessary, depending on the index type. and others allow multiple. If multiple attributes are used, their order matters. +The `.` character denotes sub-attributes in attribute paths. Attributes with +literal `.` in their name cannot be indexed. Attributes with the name `_id` +cannot be indexed either, neither as a top-level attribute nor as a sub-attribute. + If an attribute path contains an `[*]` extension (e.g. `friends[*].id`), it means that the index attribute value is treated as an array and all array members are indexed separately. This is possible with `persistent` and `inverted` indexes. diff --git a/3.8/http/indexes.md b/3.8/http/indexes.md index b1268acb48..2103d33e41 100644 --- a/3.8/http/indexes.md +++ b/3.8/http/indexes.md @@ -19,7 +19,8 @@ Indexes are used to allow fast access to documents. For each collection there is Most user-land indexes can be created by defining the names of the attributes which should be indexed. Some index types allow indexing just one attribute (e.g. fulltext index) whereas other index types allow indexing multiple attributes. -Using the system attribute `_id` in user-defined indexes is not supported by any index type. +You cannot use the `_id` system attribute, nor sub-attributes with this name, in +user-defined indexes of any type. ### Index Handle diff --git a/3.8/indexing-index-basics.md b/3.8/indexing-index-basics.md index 00e56b58b6..269662170b 100644 --- a/3.8/indexing-index-basics.md +++ b/3.8/indexing-index-basics.md @@ -23,8 +23,8 @@ by ArangoDB, without the user being required to create extra indexes for them. `_id` and `_key` are covered by a collection's primary key, and `_from` and `_to` are covered by an edge collection's edge index automatically. -You cannot use the `_id` system attribute in user-defined indexes, but indexing -`_key`, `_rev`, `_from`, and `_to` is possible. +You cannot use the `_id` system attribute, nor sub-attributes with this name, in +user-defined indexes, but indexing `_key`, `_rev`, `_from`, and `_to` is possible. You cannot index fields that contain `.` in their attribute names because dots are interpreted as paths of nested attributes. For example, `fields: ["foo.bar"]` diff --git a/3.8/indexing-working-with-indexes.md b/3.8/indexing-working-with-indexes.md index 900c14efcb..6885c25260 100644 --- a/3.8/indexing-working-with-indexes.md +++ b/3.8/indexing-working-with-indexes.md @@ -92,9 +92,24 @@ The *index-description* must contain at least a *type* attribute. Other attributes may be necessary, depending on the index type. **type** can be one of the following values: -- *persistent*: persistent index -- *fulltext*: fulltext index -- *geo*: geo index, with _one_ or _two_ attributes +- `"persistent"`: persistent (array) index, including vertex-centric index +- `"ttl"`: time-to-live index +- `"fulltext"`: fulltext index +- `"geo"`: geo-spatial index, with _one_ or _two_ attributes +- `"zkd"`: multi-dimensional index (experimental) + +**fields** is an array of attribute paths, containing the document attributes +(or sub-attributes) to be indexed. Some indexes allow using only a single path, +and others allow multiple. +If multiple attributes are used, their order matters. + +The `.` character denotes sub-attributes in attribute paths. Attributes with +literal `.` in their name cannot be indexed. Attributes with the name `_id` +cannot be indexed either, neither as a top-level attribute nor as a sub-attribute. + +If an attribute path contains an `[*]` extension (e.g. `friends[*].id`), it means +that the index attribute value is treated as an array and all array members are +indexed separately. This is possible with `persistent` and `inverted` indexes. **name** can be a string. Index names are subject to the same character restrictions as collection names. If omitted, a name will be auto-generated so diff --git a/3.9/http/indexes.md b/3.9/http/indexes.md index 833b460b1c..08529039bf 100644 --- a/3.9/http/indexes.md +++ b/3.9/http/indexes.md @@ -19,7 +19,8 @@ Indexes are used to allow fast access to documents. For each collection there is Most user-land indexes can be created by defining the names of the attributes which should be indexed. Some index types allow indexing just one attribute (e.g. fulltext index) whereas other index types allow indexing multiple attributes. -Using the system attribute `_id` in user-defined indexes is not supported by any index type. +You cannot use the `_id` system attribute, nor sub-attributes with this name, in +user-defined indexes of any type. ### Index Handle diff --git a/3.9/indexing-index-basics.md b/3.9/indexing-index-basics.md index 8ce0e9318c..ded519adb9 100644 --- a/3.9/indexing-index-basics.md +++ b/3.9/indexing-index-basics.md @@ -23,8 +23,8 @@ by ArangoDB, without the user being required to create extra indexes for them. `_id` and `_key` are covered by a collection's primary key, and `_from` and `_to` are covered by an edge collection's edge index automatically. -You cannot use the `_id` system attribute in user-defined indexes, but indexing -`_key`, `_rev`, `_from`, and `_to` is possible. +You cannot use the `_id` system attribute, nor sub-attributes with this name, in +user-defined indexes, but indexing `_key`, `_rev`, `_from`, and `_to` is possible. You cannot index fields that contain `.` in their attribute names because dots are interpreted as paths of nested attributes. For example, `fields: ["foo.bar"]` diff --git a/3.9/indexing-working-with-indexes.md b/3.9/indexing-working-with-indexes.md index a7f38d046b..24a102c87a 100644 --- a/3.9/indexing-working-with-indexes.md +++ b/3.9/indexing-working-with-indexes.md @@ -92,9 +92,24 @@ The *index-description* must contain at least a *type* attribute. Other attributes may be necessary, depending on the index type. **type** can be one of the following values: -- *persistent*: persistent index -- *fulltext*: fulltext index -- *geo*: geo index, with _one_ or _two_ attributes +- `"persistent"`: persistent (array) index, including vertex-centric index +- `"ttl"`: time-to-live index +- `"fulltext"`: fulltext index +- `"geo"`: geo-spatial index, with _one_ or _two_ attributes +- `"zkd"`: multi-dimensional index (experimental) + +**fields** is an array of attribute paths, containing the document attributes +(or sub-attributes) to be indexed. Some indexes allow using only a single path, +and others allow multiple. +If multiple attributes are used, their order matters. + +The `.` character denotes sub-attributes in attribute paths. Attributes with +literal `.` in their name cannot be indexed. Attributes with the name `_id` +cannot be indexed either, neither as a top-level attribute nor as a sub-attribute. + +If an attribute path contains an `[*]` extension (e.g. `friends[*].id`), it means +that the index attribute value is treated as an array and all array members are +indexed separately. This is possible with `persistent` and `inverted` indexes. **name** can be a string. Index names are subject to the same character restrictions as collection names. If omitted, a name will be auto-generated so From 988557bf14416ae22a222a00dd323366b85007d9 Mon Sep 17 00:00:00 2001 From: Simran Spiller Date: Tue, 18 Oct 2022 11:12:31 +0200 Subject: [PATCH 09/18] WIP --- .../data-modeling-collections-collection-methods.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/3.11/data-modeling-collections-collection-methods.md b/3.11/data-modeling-collections-collection-methods.md index d1a1f5182d..2310771569 100644 --- a/3.11/data-modeling-collections-collection-methods.md +++ b/3.11/data-modeling-collections-collection-methods.md @@ -119,8 +119,8 @@ Get or set the properties of a collection: Returns an object containing all collection properties. -- `waitForSync`: If `true`, creating a document only returns - after the data was synced to disk. +- `waitForSync`: If `true`, creating, changing, or removing documents waits + until the data has been synchronized to disk. - `keyOptions` (optional) additional options for key generation. This is a JSON object containing the following attributes (note: some of the @@ -139,7 +139,7 @@ Returns an object containing all collection properties. Not used for other key generator types. - `schema` (optional, default: `null`): - Object that specifies the collection level document schema for documents. + An object that specifies the collection-level document schema for documents. The attribute keys `rule`, `level` and `message` must follow the rules documented in [Document Schema Validation](document-schema-validation.html) @@ -154,6 +154,7 @@ Returns an object containing all collection properties. avoid the maintenance costs. - `isSystem`: Whether the collection is a system collection. + Collection names that starts with an underscore are usually system collections. - `syncByRevision`: Whether the newer revision-based replication protocol is enabled for this collection. This is an internal property. @@ -163,12 +164,12 @@ Returns an object containing all collection properties. In a cluster setup, the result also contains the following attributes: -- `numberOfShards`: the number of shards of the collection. +- `numberOfShards`: The number of shards of the collection. -- `shardKeys`: contains the names of document attributes that are used to +- `shardKeys`: Contains the names of document attributes that are used to determine the target shard for documents. -- `replicationFactor`: determines how many copies of each shard are kept +- `replicationFactor`: Determines how many copies of each shard are kept on different DB-Servers. Has to be in the range of 1-10 or the string `"satellite"` for a SatelliteCollection (Enterprise Edition only). _(cluster only)_ From 65e4c58980ea60752a44cf8f8a001aa419baaf2b Mon Sep 17 00:00:00 2001 From: Simran Spiller Date: Tue, 18 Oct 2022 14:44:00 +0200 Subject: [PATCH 10/18] Add missing collection properties, enterprise-hex-smart-vertex sharding strategy, improve some descriptions --- 3.10/administration-cluster.md | 9 +- ...modeling-collections-collection-methods.md | 121 +++++++++++------- ...a-modeling-collections-database-methods.md | 115 +++++++++++------ 3.11/administration-cluster.md | 9 +- ...modeling-collections-collection-methods.md | 114 ++++++++++------- ...a-modeling-collections-database-methods.md | 115 +++++++++++------ ...modeling-collections-collection-methods.md | 29 +++++ ...a-modeling-collections-database-methods.md | 56 ++++++-- ...modeling-collections-collection-methods.md | 29 +++++ ...a-modeling-collections-database-methods.md | 56 ++++++-- 10 files changed, 458 insertions(+), 195 deletions(-) diff --git a/3.10/administration-cluster.md b/3.10/administration-cluster.md index f7925b7e60..17768e0ea6 100644 --- a/3.10/administration-cluster.md +++ b/3.10/administration-cluster.md @@ -165,10 +165,13 @@ The available sharding strategies are: (excluding smart edge collections) - `enterprise-hash-smart-edge`: default sharding used for new smart edge collections starting from version 3.4 +- `enterprise-hex-smart-vertex`: sharding used for vertex collections of + EnterpriseGraphs -If no sharding strategy is specified, the default will be `hash` for -all collections, and `enterprise-hash-smart-edge` for all smart edge -collections (requires the *Enterprise Edition* of ArangoDB). +If no sharding strategy is specified, the default is `hash` for +all normal collections, `enterprise-hash-smart-edge` for all smart edge +collections, and `enterprise-hex-smart-vertex` for EnterpriseGraph +vertex collections (the latter two require the *Enterprise Edition* of ArangoDB). Manually overriding the sharding strategy does not yet provide a benefit, but it may later in case other sharding strategies are added. diff --git a/3.10/data-modeling-collections-collection-methods.md b/3.10/data-modeling-collections-collection-methods.md index d1a1f5182d..8aa7cf85af 100644 --- a/3.10/data-modeling-collections-collection-methods.md +++ b/3.10/data-modeling-collections-collection-methods.md @@ -119,75 +119,100 @@ Get or set the properties of a collection: Returns an object containing all collection properties. -- `waitForSync`: If `true`, creating a document only returns - after the data was synced to disk. - -- `keyOptions` (optional) additional options for key generation. This is - a JSON object containing the following attributes (note: some of the - attributes are optional): - - `type`: the type of the key generator used for the collection. - - `allowUserKeys`: if set to `true`, then it is allowed to supply - own key values in the `_key` attribute of a document. If set to +- `waitForSync` (boolean): If `true`, creating, changing, or removing documents waits + until the data has been synchronized to disk. + +- `keyOptions` (object): An object which contains key generation options. + - `type` (string): Specifies the type of the key generator. Possible values: + - `"traditional"` + - `"autoincrement"` + - `"uuid"` + - `"padded"` + - `allowUserKeys` (boolean): If set to `true`, then you are allowed to supply + own key values in the `_key` attribute of documents. If set to `false`, then the key generator is solely responsible for - generating keys and supplying own key values in the `_key` attribute - of documents is considered an error. - - `lastValue`: the current offset value of the `autoincrement` or `padded` - key generator. This an internal property for restoring dumps properly. - - `increment`: the increment value for `autoincrement` key generator. + generating keys and an error is raised if you supply own key values in the + `_key` attribute of documents. + - `increment` (number): The increment value for the `autoincrement` key generator. Not used for other key generator types. - - `offset`: the initial offset value for `autoincrement` key generator. + - `offset` (number): The initial offset value for the `autoincrement` key generator. Not used for other key generator types. + - `lastValue` (number): the current offset value of the `autoincrement` or `padded` + key generator. This an internal property for restoring dumps properly. -- `schema` (optional, default: `null`): - Object that specifies the collection level document schema for documents. +- `schema` (object\|null): + An object that specifies the collection-level document schema for documents. The attribute keys `rule`, `level` and `message` must follow the rules documented in [Document Schema Validation](document-schema-validation.html) -- `computedValues` (optional, default: `null`): An array of objects, +- `computedValues` (array\|null): An array of objects, each representing a [Computed Value](data-modeling-documents-computed-values.html). -- `cacheEnabled`: Whether the in-memory hash cache for documents should be - enabled for this collection (default: `false`). Can be controlled globally - with the `--cache.size` startup option. The cache can speed up repeated reads - of the same documents via their document keys. If the same documents are not - fetched often or are modified frequently, then you may disable the cache to - avoid the maintenance costs. +- `cacheEnabled` (boolean): Whether the in-memory hash cache for documents is + enabled for this collection (default: `false`). -- `isSystem`: Whether the collection is a system collection. +- `isSystem` (boolean): Whether the collection is a system collection. + Collection names that starts with an underscore are usually system collections. -- `syncByRevision`: Whether the newer revision-based replication protocol is - enabled for this collection. This is an internal property. +- `syncByRevision` (boolean): Whether the newer revision-based replication protocol + is enabled for this collection. This is an internal property. -- `globallyUniqueId`: A unique identifier of the collection. +- `globallyUniqueId` (string): A unique identifier of the collection. This is an internal property. In a cluster setup, the result also contains the following attributes: -- `numberOfShards`: the number of shards of the collection. +- `numberOfShards` (number): The number of shards of the collection. -- `shardKeys`: contains the names of document attributes that are used to +- `shardKeys` (array): Contains the names of document attributes that are used to determine the target shard for documents. -- `replicationFactor`: determines how many copies of each shard are kept +- `replicationFactor` (number\|string): Determines how many copies of each shard are kept on different DB-Servers. Has to be in the range of 1-10 or the string `"satellite"` for a SatelliteCollection (Enterprise Edition only). _(cluster only)_ -- `writeConcern`: determines how many copies of each shard are required to be +- `writeConcern` (number): Determines how many copies of each shard are required to be in sync on the different DB-Servers. If there are less then these many copies in the cluster, a shard refuses to write. Writes to shards with enough up-to-date copies succeed at the same time, however. The value of `writeConcern` can not be larger than `replicationFactor`. _(cluster only)_ -- `shardingStrategy`: the sharding strategy selected for the collection. - This attribute is only populated in cluster mode and is not populated - in single-server mode. _(cluster only)_ +- `shardingStrategy` (string): the sharding strategy selected for the collection. + _(cluster only)_ + + Possible values: + - `"community-compat"` + - `"enterprise-compat"` + - `"enterprise-smart-edge-compat"` + - `"hash"` + - `"enterprise-hash-smart-edge"` + - `"enterprise-hex-smart-vertex"` + +- `distributeShardsLike` (string): + The name of another collection. This collection uses the `replicationFactor`, + `numberOfShards` and `shardingStrategy` properties of the other collection and + the shards of this collection are distributed in the same way as the shards of + the other collection. + +- `isSmart` (boolean): Whether the collection is used in a SmartGraph or + EnterpriseGraph (Enterprise Edition only). This is an internal property. + +- `isDisjoint` (boolean): Whether the SmartGraph this collection belongs to is + disjoint (Enterprise Edition only). This is an internal property. + +- `smartGraphAttribute` (string): + The attribute that is used for sharding: vertices with the same value of + this attribute are placed in the same shard. All vertices are required to + have this attribute set and it has to be a string. Edges derive the + attribute from their connected vertices. -- `isSmart`: Whether the collection belongs to a SmartGraph or EnterpriseGraph - (Enterprise Edition only). This is an internal property. + This feature can only be used in the *Enterprise Edition*. -- `isDisjoint`: Whether the SmartGraph this collection belongs to is disjoint - (Enterprise Edition only). This is an internal property. +- `smartJoinAttribute` (string): + In an *Enterprise Edition* cluster, this attribute determines an attribute + of the collection that must contain the shard key value of the referred-to + SmartJoin collection. --- @@ -196,29 +221,33 @@ In a cluster setup, the result also contains the following attributes: Changes the collection properties. `properties` must be an object and can have one or more of the following attribute(s): -- `waitForSync`: If `true`, creating a document only returns +- `waitForSync` (boolean): If `true`, creating a document only returns after the data was synced to disk. -- `replicationFactor`: Change the number of shard copies kept on +- `replicationFactor` (number\|string): Change the number of shard copies kept on different DB-Servers. Valid values are integer numbers in the range of 1-10 or the string `"satellite"` for a SatelliteCollection (Enterprise Edition only). _(cluster only)_ -- `writeConcern`: change how many copies of each shard are required to be +- `writeConcern` (number): Change how many copies of each shard are required to be in sync on the different DB-Servers. If there are less then these many copies in the cluster, a shard refuses to write. Writes to shards with enough up-to-date copies succeed at the same time however. The value of `writeConcern` can not be larger than `replicationFactor`. _(cluster only)_ -- `computedValues`: An array of objects, each representing a +- `computedValues` (array\|null): An array of objects, each representing a [Computed Value](data-modeling-documents-computed-values.html). -- `schema`: An object that specifies the collection level document schema for +- `schema` (object\|null): An object that specifies the collection level document schema for documents. The attribute keys `rule`, `level` and `message` must follow the rules documented in [Document Schema Validation](document-schema-validation.html) -- `cacheEnabled`: Whether the in-memory hash cache for documents should be - enabled for this collection. +- `cacheEnabled` (boolean): Whether the in-memory hash cache for documents should be + enabled for this collection. Can be controlled globally + with the `--cache.size` startup option. The cache can speed up repeated reads + of the same documents via their document keys. If the same documents are not + fetched often or are modified frequently, then you may disable the cache to + avoid the maintenance costs. {% hint 'info' %} Some other collection properties, such as `type`, diff --git a/3.10/data-modeling-collections-database-methods.md b/3.10/data-modeling-collections-database-methods.md index 264402593f..a616868071 100644 --- a/3.10/data-modeling-collections-database-methods.md +++ b/3.10/data-modeling-collections-database-methods.md @@ -72,21 +72,15 @@ to the [naming conventions](data-modeling-naming-conventions.html). `properties` must be an object with the following attributes: -- `waitForSync` (optional, default `false`): If `true`, creating - a document only returns after the data is synced to disk. - -- `isSystem` (optional, default is `false`): If `true`, create a - system collection. In this case `collection-name` should start with - an underscore. End users should normally create non-system collections - only. API implementors may be required to create system collections in - very special occasions, but normally a regular collection is sufficient. - -- `keyOptions` (optional): additional options for key generation. If - specified, then `keyOptions` should be a JSON object containing the - following attributes (**note**: some of them are optional): - - `type`: specifies the type of the key generator. - The available generators are `traditional`, `autoincrement`, `uuid` and - `padded`. +- `waitForSync` (boolean, _optional_, default `false`): If `true`, creating, + changing, or removing a document waits until the data is synchronized to disk. + +- `keyOptions` (object, _optional_): The options for key generation. If + specified, then `keyOptions` should be an object containing the + following attributes: + - `type` (string): specifies the type of the key generator. + The available generators are `"traditional"` (default), `"autoincrement"`, + `"uuid"` and `"padded"`. - The `traditional` key generator generates numerical keys in ascending order. The sequence of keys is not guaranteed to be gap-free. - The `autoincrement` key generator generates numerical keys in ascending order, @@ -114,36 +108,46 @@ to the [naming conventions](data-modeling-naming-conventions.html). keys are generated on the leader DB-Server, which has full control over the key sequence. - - `allowUserKeys`: if set to `true`, then it is allowed to supply - own key values in the `_key` attribute of a document. If set to - `false`, then the key generator is solely responsible for - generating keys and supplying own key values in the `_key` attribute - of documents is considered an error. - - `increment`: increment value for `autoincrement` key generator. + - `allowUserKeys` (boolean, _optional_): If set to `true`, then you are allowed + to supply own key values in the `_key` attribute of documents. If set to + `false`, then the key generator is solely responsible for generating keys and + an error is raised if you supply own key values in the `_key` attribute + of documents. + - `increment`: The increment value for the `autoincrement` key generator. Not used for other key generator types. - - `offset`: initial offset value for `autoincrement` key generator. + - `offset`: The initial offset value for the `autoincrement` key generator. Not used for other key generator types. -- `schema` (optional, default: `null`): - Object that specifies the collection level document schema for documents. +- `schema` (object\|null, _optional_, default: `null`): + An object that specifies the collection-level document schema for documents. The attribute keys `rule`, `level` and `message` must follow the rules documented in [Document Schema Validation](document-schema-validation.html) -- `computedValues` (optional, default: `null`): An array of objects, +- `computedValues` (array\|null, _optional_, default: `null`): An array of objects, each representing a [Computed Value](data-modeling-documents-computed-values.html). -- `cacheEnabled`: Whether the in-memory hash cache for documents should be +- `cacheEnabled` (boolean): Whether the in-memory hash cache for documents should be enabled for this collection (default: `false`). Can be controlled globally with the `--cache.size` startup option. The cache can speed up repeated reads of the same documents via their document keys. If the same documents are not fetched often or are modified frequently, then you may disable the cache to avoid the maintenance costs. -- `numberOfShards` (optional, default `1`): in a cluster, this value +- `isSystem` (boolean, _optional_, default: `false`): If `true`, create a + system collection. In this case, the collection name should start with + an underscore. End-users should normally create non-system collections + only. API implementors may be required to create system collections in + very special occasions, but normally a regular collection is sufficient. + +- `syncByRevision` (boolean, _optional_, default: `true`): + Whether the newer revision-based replication protocol + is enabled for this collection. This is an internal property. + +- `numberOfShards` (number, _optional_, default `1`): In a cluster, this value determines the number of shards to create for the collection. In a single server setup, this option is meaningless. -- `shardKeys` (optional, default is `[ "_key" ]`): in a cluster, this +- `shardKeys` (array, _optional_, default: `["_key"]`): In a cluster, this attribute determines which document attributes are used to determine the target shard for documents. Documents are sent to shards based on the values they have in their shard key attributes. The values of all shard @@ -166,7 +170,7 @@ to the [naming conventions](data-modeling-naming-conventions.html). attribute and this can only be done efficiently if this is the only shard key by delegating to the individual shards. -- `replicationFactor` (optional, default `1`): in a cluster, this +- `replicationFactor` (number\|string, _optional_, default `1`): In a cluster, this attribute determines how many copies of each shard are kept on different DB-Servers. The value 1 means that only one copy (no synchronous replication) is kept. A value of k means that @@ -185,7 +189,7 @@ to the [naming conventions](data-modeling-naming-conventions.html). dramatically when using joins in AQL at the costs of reduced write performance on these collections. -- `writeConcern` (optional, default `1`): in a cluster, this +- `writeConcern` (number, _optional_, default `1`): In a cluster, this attribute determines how many copies of each shard are required to be in sync on the different DB-Servers. If there are less then these many copies in the cluster, a shard refuses to write. The value of @@ -194,11 +198,6 @@ to the [naming conventions](data-modeling-naming-conventions.html). not being possible until the failover is sorted out and might cause write slow downs in trade for data durability. -- `distributeShardsLike`: distribute the shards of this collection - cloning the shard distribution of another. If this value is set, - it copies the attributes `replicationFactor`, `numberOfShards` and - `shardingStrategy` from the other collection. - - `shardingStrategy` (optional): specifies the name of the sharding strategy to use for the collection. Since ArangoDB 3.4 there are different sharding strategies to select from when creating a new @@ -219,17 +218,51 @@ to the [naming conventions](data-modeling-naming-conventions.html). (excluding smart edge collections) - `"enterprise-hash-smart-edge"`: default sharding used for new smart edge collections starting from version 3.4 + - `enterprise-hex-smart-vertex`: sharding used for vertex collections of + EnterpriseGraphs - If no sharding strategy is specified, the default is `"hash"` for - all collections, and `"enterprise-hash-smart-edge"` for all smart edge - collections (requires the *Enterprise Edition* of ArangoDB). + If no sharding strategy is specified, the default is `hash` for + all normal collections, `enterprise-hash-smart-edge` for all smart edge + collections, and `enterprise-hex-smart-vertex` for EnterpriseGraph + vertex collections (the latter two require the *Enterprise Edition* of ArangoDB). Manually overriding the sharding strategy does not yet provide a benefit, but it may later in case other sharding strategies are added. In single-server mode, the `shardingStrategy` attribute is meaningless and is ignored. -- `smartJoinAttribute`: in an *Enterprise Edition* cluster, this attribute +- `distributeShardsLike` (string, _optional_, default: `""`): + The name of another collection. If this property is set in a cluster, the + collection copies the `replicationFactor`, `numberOfShards` and `shardingStrategy` + properties from the specified collection (referred to as the _prototype collection_) + and distributes the shards of this collection in the same way as the shards of + the other collection. In an Enterprise Edition cluster, this data co-location is + utilized to optimize queries. + + You need to use the same number of `shardKeys` as the prototype collection, but + you can use different attributes. + + **Note**: Using this parameter has consequences for the prototype + collection. It can no longer be dropped, before the sharding-imitating + collections are dropped. Equally, backups and restores of imitating + collections alone generate warnings (which can be overridden) + about a missing sharding prototype. + +- `isSmart` (boolean): Whether the collection is for a SmartGraph or + EnterpriseGraph (Enterprise Edition only). This is an internal property. + +- `isDisjoint` (boolean): Whether the collection is for a Disjoint SmartGraph + (Enterprise Edition only). This is an internal property. + +- `smartGraphAttribute` (string, _optional_): + The attribute that is used for sharding: vertices with the same value of + this attribute are placed in the same shard. All vertices are required to + have this attribute set and it has to be a string. Edges derive the + attribute from their connected vertices. + + This feature can only be used in the *Enterprise Edition*. + +- `smartJoinAttribute` (string, _optional_): In an *Enterprise Edition* cluster, this attribute determines an attribute of the collection that must contain the shard key value of the referred-to SmartJoin collection. Additionally, the sharding key for a document in this collection must contain the value of this attribute, @@ -243,12 +276,16 @@ to the [naming conventions](data-modeling-naming-conventions.html). A further restriction is that whenever documents are stored or updated in the collection, the value stored in the `smartJoinAttribute` must be a string. +--- + `db._create(collection-name, properties, type)` Specifies the optional `type` of the collection, it can either be `document` or `edge`. On default it is document. Instead of giving a type you can also use `db._createEdgeCollection()` or `db._createDocumentCollection()`. +--- + `db._create(collection-name, properties[, type], options)` As an optional third (if the `type` string is being omitted) or fourth diff --git a/3.11/administration-cluster.md b/3.11/administration-cluster.md index f7925b7e60..17768e0ea6 100644 --- a/3.11/administration-cluster.md +++ b/3.11/administration-cluster.md @@ -165,10 +165,13 @@ The available sharding strategies are: (excluding smart edge collections) - `enterprise-hash-smart-edge`: default sharding used for new smart edge collections starting from version 3.4 +- `enterprise-hex-smart-vertex`: sharding used for vertex collections of + EnterpriseGraphs -If no sharding strategy is specified, the default will be `hash` for -all collections, and `enterprise-hash-smart-edge` for all smart edge -collections (requires the *Enterprise Edition* of ArangoDB). +If no sharding strategy is specified, the default is `hash` for +all normal collections, `enterprise-hash-smart-edge` for all smart edge +collections, and `enterprise-hex-smart-vertex` for EnterpriseGraph +vertex collections (the latter two require the *Enterprise Edition* of ArangoDB). Manually overriding the sharding strategy does not yet provide a benefit, but it may later in case other sharding strategies are added. diff --git a/3.11/data-modeling-collections-collection-methods.md b/3.11/data-modeling-collections-collection-methods.md index 2310771569..8aa7cf85af 100644 --- a/3.11/data-modeling-collections-collection-methods.md +++ b/3.11/data-modeling-collections-collection-methods.md @@ -119,76 +119,100 @@ Get or set the properties of a collection: Returns an object containing all collection properties. -- `waitForSync`: If `true`, creating, changing, or removing documents waits +- `waitForSync` (boolean): If `true`, creating, changing, or removing documents waits until the data has been synchronized to disk. -- `keyOptions` (optional) additional options for key generation. This is - a JSON object containing the following attributes (note: some of the - attributes are optional): - - `type`: the type of the key generator used for the collection. - - `allowUserKeys`: if set to `true`, then it is allowed to supply - own key values in the `_key` attribute of a document. If set to +- `keyOptions` (object): An object which contains key generation options. + - `type` (string): Specifies the type of the key generator. Possible values: + - `"traditional"` + - `"autoincrement"` + - `"uuid"` + - `"padded"` + - `allowUserKeys` (boolean): If set to `true`, then you are allowed to supply + own key values in the `_key` attribute of documents. If set to `false`, then the key generator is solely responsible for - generating keys and supplying own key values in the `_key` attribute - of documents is considered an error. - - `lastValue`: the current offset value of the `autoincrement` or `padded` - key generator. This an internal property for restoring dumps properly. - - `increment`: the increment value for `autoincrement` key generator. + generating keys and an error is raised if you supply own key values in the + `_key` attribute of documents. + - `increment` (number): The increment value for the `autoincrement` key generator. Not used for other key generator types. - - `offset`: the initial offset value for `autoincrement` key generator. + - `offset` (number): The initial offset value for the `autoincrement` key generator. Not used for other key generator types. + - `lastValue` (number): the current offset value of the `autoincrement` or `padded` + key generator. This an internal property for restoring dumps properly. -- `schema` (optional, default: `null`): +- `schema` (object\|null): An object that specifies the collection-level document schema for documents. The attribute keys `rule`, `level` and `message` must follow the rules documented in [Document Schema Validation](document-schema-validation.html) -- `computedValues` (optional, default: `null`): An array of objects, +- `computedValues` (array\|null): An array of objects, each representing a [Computed Value](data-modeling-documents-computed-values.html). -- `cacheEnabled`: Whether the in-memory hash cache for documents should be - enabled for this collection (default: `false`). Can be controlled globally - with the `--cache.size` startup option. The cache can speed up repeated reads - of the same documents via their document keys. If the same documents are not - fetched often or are modified frequently, then you may disable the cache to - avoid the maintenance costs. +- `cacheEnabled` (boolean): Whether the in-memory hash cache for documents is + enabled for this collection (default: `false`). -- `isSystem`: Whether the collection is a system collection. +- `isSystem` (boolean): Whether the collection is a system collection. Collection names that starts with an underscore are usually system collections. -- `syncByRevision`: Whether the newer revision-based replication protocol is - enabled for this collection. This is an internal property. +- `syncByRevision` (boolean): Whether the newer revision-based replication protocol + is enabled for this collection. This is an internal property. -- `globallyUniqueId`: A unique identifier of the collection. +- `globallyUniqueId` (string): A unique identifier of the collection. This is an internal property. In a cluster setup, the result also contains the following attributes: -- `numberOfShards`: The number of shards of the collection. +- `numberOfShards` (number): The number of shards of the collection. -- `shardKeys`: Contains the names of document attributes that are used to +- `shardKeys` (array): Contains the names of document attributes that are used to determine the target shard for documents. -- `replicationFactor`: Determines how many copies of each shard are kept +- `replicationFactor` (number\|string): Determines how many copies of each shard are kept on different DB-Servers. Has to be in the range of 1-10 or the string `"satellite"` for a SatelliteCollection (Enterprise Edition only). _(cluster only)_ -- `writeConcern`: determines how many copies of each shard are required to be +- `writeConcern` (number): Determines how many copies of each shard are required to be in sync on the different DB-Servers. If there are less then these many copies in the cluster, a shard refuses to write. Writes to shards with enough up-to-date copies succeed at the same time, however. The value of `writeConcern` can not be larger than `replicationFactor`. _(cluster only)_ -- `shardingStrategy`: the sharding strategy selected for the collection. - This attribute is only populated in cluster mode and is not populated - in single-server mode. _(cluster only)_ +- `shardingStrategy` (string): the sharding strategy selected for the collection. + _(cluster only)_ + + Possible values: + - `"community-compat"` + - `"enterprise-compat"` + - `"enterprise-smart-edge-compat"` + - `"hash"` + - `"enterprise-hash-smart-edge"` + - `"enterprise-hex-smart-vertex"` -- `isSmart`: Whether the collection belongs to a SmartGraph or EnterpriseGraph - (Enterprise Edition only). This is an internal property. +- `distributeShardsLike` (string): + The name of another collection. This collection uses the `replicationFactor`, + `numberOfShards` and `shardingStrategy` properties of the other collection and + the shards of this collection are distributed in the same way as the shards of + the other collection. -- `isDisjoint`: Whether the SmartGraph this collection belongs to is disjoint - (Enterprise Edition only). This is an internal property. +- `isSmart` (boolean): Whether the collection is used in a SmartGraph or + EnterpriseGraph (Enterprise Edition only). This is an internal property. + +- `isDisjoint` (boolean): Whether the SmartGraph this collection belongs to is + disjoint (Enterprise Edition only). This is an internal property. + +- `smartGraphAttribute` (string): + The attribute that is used for sharding: vertices with the same value of + this attribute are placed in the same shard. All vertices are required to + have this attribute set and it has to be a string. Edges derive the + attribute from their connected vertices. + + This feature can only be used in the *Enterprise Edition*. + +- `smartJoinAttribute` (string): + In an *Enterprise Edition* cluster, this attribute determines an attribute + of the collection that must contain the shard key value of the referred-to + SmartJoin collection. --- @@ -197,29 +221,33 @@ In a cluster setup, the result also contains the following attributes: Changes the collection properties. `properties` must be an object and can have one or more of the following attribute(s): -- `waitForSync`: If `true`, creating a document only returns +- `waitForSync` (boolean): If `true`, creating a document only returns after the data was synced to disk. -- `replicationFactor`: Change the number of shard copies kept on +- `replicationFactor` (number\|string): Change the number of shard copies kept on different DB-Servers. Valid values are integer numbers in the range of 1-10 or the string `"satellite"` for a SatelliteCollection (Enterprise Edition only). _(cluster only)_ -- `writeConcern`: change how many copies of each shard are required to be +- `writeConcern` (number): Change how many copies of each shard are required to be in sync on the different DB-Servers. If there are less then these many copies in the cluster, a shard refuses to write. Writes to shards with enough up-to-date copies succeed at the same time however. The value of `writeConcern` can not be larger than `replicationFactor`. _(cluster only)_ -- `computedValues`: An array of objects, each representing a +- `computedValues` (array\|null): An array of objects, each representing a [Computed Value](data-modeling-documents-computed-values.html). -- `schema`: An object that specifies the collection level document schema for +- `schema` (object\|null): An object that specifies the collection level document schema for documents. The attribute keys `rule`, `level` and `message` must follow the rules documented in [Document Schema Validation](document-schema-validation.html) -- `cacheEnabled`: Whether the in-memory hash cache for documents should be - enabled for this collection. +- `cacheEnabled` (boolean): Whether the in-memory hash cache for documents should be + enabled for this collection. Can be controlled globally + with the `--cache.size` startup option. The cache can speed up repeated reads + of the same documents via their document keys. If the same documents are not + fetched often or are modified frequently, then you may disable the cache to + avoid the maintenance costs. {% hint 'info' %} Some other collection properties, such as `type`, diff --git a/3.11/data-modeling-collections-database-methods.md b/3.11/data-modeling-collections-database-methods.md index 264402593f..a616868071 100644 --- a/3.11/data-modeling-collections-database-methods.md +++ b/3.11/data-modeling-collections-database-methods.md @@ -72,21 +72,15 @@ to the [naming conventions](data-modeling-naming-conventions.html). `properties` must be an object with the following attributes: -- `waitForSync` (optional, default `false`): If `true`, creating - a document only returns after the data is synced to disk. - -- `isSystem` (optional, default is `false`): If `true`, create a - system collection. In this case `collection-name` should start with - an underscore. End users should normally create non-system collections - only. API implementors may be required to create system collections in - very special occasions, but normally a regular collection is sufficient. - -- `keyOptions` (optional): additional options for key generation. If - specified, then `keyOptions` should be a JSON object containing the - following attributes (**note**: some of them are optional): - - `type`: specifies the type of the key generator. - The available generators are `traditional`, `autoincrement`, `uuid` and - `padded`. +- `waitForSync` (boolean, _optional_, default `false`): If `true`, creating, + changing, or removing a document waits until the data is synchronized to disk. + +- `keyOptions` (object, _optional_): The options for key generation. If + specified, then `keyOptions` should be an object containing the + following attributes: + - `type` (string): specifies the type of the key generator. + The available generators are `"traditional"` (default), `"autoincrement"`, + `"uuid"` and `"padded"`. - The `traditional` key generator generates numerical keys in ascending order. The sequence of keys is not guaranteed to be gap-free. - The `autoincrement` key generator generates numerical keys in ascending order, @@ -114,36 +108,46 @@ to the [naming conventions](data-modeling-naming-conventions.html). keys are generated on the leader DB-Server, which has full control over the key sequence. - - `allowUserKeys`: if set to `true`, then it is allowed to supply - own key values in the `_key` attribute of a document. If set to - `false`, then the key generator is solely responsible for - generating keys and supplying own key values in the `_key` attribute - of documents is considered an error. - - `increment`: increment value for `autoincrement` key generator. + - `allowUserKeys` (boolean, _optional_): If set to `true`, then you are allowed + to supply own key values in the `_key` attribute of documents. If set to + `false`, then the key generator is solely responsible for generating keys and + an error is raised if you supply own key values in the `_key` attribute + of documents. + - `increment`: The increment value for the `autoincrement` key generator. Not used for other key generator types. - - `offset`: initial offset value for `autoincrement` key generator. + - `offset`: The initial offset value for the `autoincrement` key generator. Not used for other key generator types. -- `schema` (optional, default: `null`): - Object that specifies the collection level document schema for documents. +- `schema` (object\|null, _optional_, default: `null`): + An object that specifies the collection-level document schema for documents. The attribute keys `rule`, `level` and `message` must follow the rules documented in [Document Schema Validation](document-schema-validation.html) -- `computedValues` (optional, default: `null`): An array of objects, +- `computedValues` (array\|null, _optional_, default: `null`): An array of objects, each representing a [Computed Value](data-modeling-documents-computed-values.html). -- `cacheEnabled`: Whether the in-memory hash cache for documents should be +- `cacheEnabled` (boolean): Whether the in-memory hash cache for documents should be enabled for this collection (default: `false`). Can be controlled globally with the `--cache.size` startup option. The cache can speed up repeated reads of the same documents via their document keys. If the same documents are not fetched often or are modified frequently, then you may disable the cache to avoid the maintenance costs. -- `numberOfShards` (optional, default `1`): in a cluster, this value +- `isSystem` (boolean, _optional_, default: `false`): If `true`, create a + system collection. In this case, the collection name should start with + an underscore. End-users should normally create non-system collections + only. API implementors may be required to create system collections in + very special occasions, but normally a regular collection is sufficient. + +- `syncByRevision` (boolean, _optional_, default: `true`): + Whether the newer revision-based replication protocol + is enabled for this collection. This is an internal property. + +- `numberOfShards` (number, _optional_, default `1`): In a cluster, this value determines the number of shards to create for the collection. In a single server setup, this option is meaningless. -- `shardKeys` (optional, default is `[ "_key" ]`): in a cluster, this +- `shardKeys` (array, _optional_, default: `["_key"]`): In a cluster, this attribute determines which document attributes are used to determine the target shard for documents. Documents are sent to shards based on the values they have in their shard key attributes. The values of all shard @@ -166,7 +170,7 @@ to the [naming conventions](data-modeling-naming-conventions.html). attribute and this can only be done efficiently if this is the only shard key by delegating to the individual shards. -- `replicationFactor` (optional, default `1`): in a cluster, this +- `replicationFactor` (number\|string, _optional_, default `1`): In a cluster, this attribute determines how many copies of each shard are kept on different DB-Servers. The value 1 means that only one copy (no synchronous replication) is kept. A value of k means that @@ -185,7 +189,7 @@ to the [naming conventions](data-modeling-naming-conventions.html). dramatically when using joins in AQL at the costs of reduced write performance on these collections. -- `writeConcern` (optional, default `1`): in a cluster, this +- `writeConcern` (number, _optional_, default `1`): In a cluster, this attribute determines how many copies of each shard are required to be in sync on the different DB-Servers. If there are less then these many copies in the cluster, a shard refuses to write. The value of @@ -194,11 +198,6 @@ to the [naming conventions](data-modeling-naming-conventions.html). not being possible until the failover is sorted out and might cause write slow downs in trade for data durability. -- `distributeShardsLike`: distribute the shards of this collection - cloning the shard distribution of another. If this value is set, - it copies the attributes `replicationFactor`, `numberOfShards` and - `shardingStrategy` from the other collection. - - `shardingStrategy` (optional): specifies the name of the sharding strategy to use for the collection. Since ArangoDB 3.4 there are different sharding strategies to select from when creating a new @@ -219,17 +218,51 @@ to the [naming conventions](data-modeling-naming-conventions.html). (excluding smart edge collections) - `"enterprise-hash-smart-edge"`: default sharding used for new smart edge collections starting from version 3.4 + - `enterprise-hex-smart-vertex`: sharding used for vertex collections of + EnterpriseGraphs - If no sharding strategy is specified, the default is `"hash"` for - all collections, and `"enterprise-hash-smart-edge"` for all smart edge - collections (requires the *Enterprise Edition* of ArangoDB). + If no sharding strategy is specified, the default is `hash` for + all normal collections, `enterprise-hash-smart-edge` for all smart edge + collections, and `enterprise-hex-smart-vertex` for EnterpriseGraph + vertex collections (the latter two require the *Enterprise Edition* of ArangoDB). Manually overriding the sharding strategy does not yet provide a benefit, but it may later in case other sharding strategies are added. In single-server mode, the `shardingStrategy` attribute is meaningless and is ignored. -- `smartJoinAttribute`: in an *Enterprise Edition* cluster, this attribute +- `distributeShardsLike` (string, _optional_, default: `""`): + The name of another collection. If this property is set in a cluster, the + collection copies the `replicationFactor`, `numberOfShards` and `shardingStrategy` + properties from the specified collection (referred to as the _prototype collection_) + and distributes the shards of this collection in the same way as the shards of + the other collection. In an Enterprise Edition cluster, this data co-location is + utilized to optimize queries. + + You need to use the same number of `shardKeys` as the prototype collection, but + you can use different attributes. + + **Note**: Using this parameter has consequences for the prototype + collection. It can no longer be dropped, before the sharding-imitating + collections are dropped. Equally, backups and restores of imitating + collections alone generate warnings (which can be overridden) + about a missing sharding prototype. + +- `isSmart` (boolean): Whether the collection is for a SmartGraph or + EnterpriseGraph (Enterprise Edition only). This is an internal property. + +- `isDisjoint` (boolean): Whether the collection is for a Disjoint SmartGraph + (Enterprise Edition only). This is an internal property. + +- `smartGraphAttribute` (string, _optional_): + The attribute that is used for sharding: vertices with the same value of + this attribute are placed in the same shard. All vertices are required to + have this attribute set and it has to be a string. Edges derive the + attribute from their connected vertices. + + This feature can only be used in the *Enterprise Edition*. + +- `smartJoinAttribute` (string, _optional_): In an *Enterprise Edition* cluster, this attribute determines an attribute of the collection that must contain the shard key value of the referred-to SmartJoin collection. Additionally, the sharding key for a document in this collection must contain the value of this attribute, @@ -243,12 +276,16 @@ to the [naming conventions](data-modeling-naming-conventions.html). A further restriction is that whenever documents are stored or updated in the collection, the value stored in the `smartJoinAttribute` must be a string. +--- + `db._create(collection-name, properties, type)` Specifies the optional `type` of the collection, it can either be `document` or `edge`. On default it is document. Instead of giving a type you can also use `db._createEdgeCollection()` or `db._createDocumentCollection()`. +--- + `db._create(collection-name, properties[, type], options)` As an optional third (if the `type` string is being omitted) or fourth diff --git a/3.8/data-modeling-collections-collection-methods.md b/3.8/data-modeling-collections-collection-methods.md index 4f322b020f..7f74e75893 100644 --- a/3.8/data-modeling-collections-collection-methods.md +++ b/3.8/data-modeling-collections-collection-methods.md @@ -136,6 +136,9 @@ Returns an object containing all collection properties. The attribute keys `rule`, `level` and `message` must follow the rules documented in [Document Schema Validation](document-schema-validation.html) +* *cacheEnabled*: Whether the in-memory hash cache for documents is + enabled for this collection (default: `false`). + * *isSystem*: Whether the collection is a system collection. * *syncByRevision*: Whether the newer revision-based replication protocol is @@ -166,12 +169,31 @@ In a cluster setup, the result will also contain the following attributes: This attribute will only be populated in cluster mode and is not populated in single-server mode. _(cluster only)_ +* *distributeShardsLike*: + The name of another collection. This collection uses the `replicationFactor`, + `numberOfShards` and `shardingStrategy` properties of the other collection and + the shards of this collection are distributed in the same way as the shards of + the other collection. + * *isSmart*: Whether the collection belongs to a SmartGraph (Enterprise Edition only). This is an internal property. * *isDisjoint*: Whether the SmartGraph this collection belongs to is disjoint (Enterprise Edition only). This is an internal property. +- *smartGraphAttribute*: + The attribute that is used for sharding: vertices with the same value of + this attribute are placed in the same shard. All vertices are required to + have this attribute set and it has to be a string. Edges derive the + attribute from their connected vertices. + + This feature can only be used in the *Enterprise Edition*. + +- *smartJoinAttribute*: + In an *Enterprise Edition* cluster, this attribute determines an attribute + of the collection that must contain the shard key value of the referred-to + SmartJoin collection. + --- `collection.properties(properties)` @@ -197,6 +219,13 @@ one or more of the following attribute(s): documents. The attribute keys `rule`, `level` and `message` must follow the rules documented in [Document Schema Validation](document-schema-validation.html) +- *cacheEnabled*: Whether the in-memory hash cache for documents should be + enabled for this collection. Can be controlled globally + with the `--cache.size` startup option. The cache can speed up repeated reads + of the same documents via their document keys. If the same documents are not + fetched often or are modified frequently, then you may disable the cache to + avoid the maintenance costs. + **Note**: some other collection properties, such as *type*, *keyOptions*, *numberOfShards* or *shardingStrategy* cannot be changed once the collection is created. diff --git a/3.8/data-modeling-collections-database-methods.md b/3.8/data-modeling-collections-database-methods.md index 490206814b..19033420f5 100644 --- a/3.8/data-modeling-collections-database-methods.md +++ b/3.8/data-modeling-collections-database-methods.md @@ -77,12 +77,6 @@ to the [naming conventions](data-modeling-naming-conventions.html). - *waitForSync* (optional, default *false*): If *true* creating a document will only return after the data was synced to disk. -- *isSystem* (optional, default is *false*): If *true*, create a - system collection. In this case *collection-name* should start with - an underscore. End users should normally create non-system collections - only. API implementors may be required to create system collections in - very special occasions, but normally a regular collection will do. - - *keyOptions* (optional): additional options for key generation. If specified, then *keyOptions* should be a JSON object containing the following attributes (**note**: some of them are optional): @@ -125,6 +119,28 @@ to the [naming conventions](data-modeling-naming-conventions.html). - *offset*: initial offset value for *autoincrement* key generator. Not used for other key generator types. +- *schema*: + An object that specifies the collection-level document schema for documents. + The attribute keys `rule`, `level` and `message` must follow the rules + documented in [Document Schema Validation](document-schema-validation.html) + +- *cacheEnabled*: Whether the in-memory hash cache for documents should be + enabled for this collection (default: `false`). Can be controlled globally + with the `--cache.size` startup option. The cache can speed up repeated reads + of the same documents via their document keys. If the same documents are not + fetched often or are modified frequently, then you may disable the cache to + avoid the maintenance costs. + +- *isSystem* (optional, default is *false*): If *true*, create a + system collection. In this case *collection-name* should start with + an underscore. End users should normally create non-system collections + only. API implementors may be required to create system collections in + very special occasions, but normally a regular collection will do. + +- *syncByRevision*: + Whether the newer revision-based replication protocol + is enabled for this collection. This is an internal property. + - *numberOfShards* (optional, default is *1*): in a cluster, this value determines the number of shards to create for the collection. In a single server setup, this option is meaningless. @@ -180,11 +196,6 @@ to the [naming conventions](data-modeling-naming-conventions.html). not being possible until the failover is sorted out and might cause write slow downs in trade for data durability. -- *distributeShardsLike*: distribute the shards of this collection - cloning the shard distribution of another. If this value is set, - it will copy the attributes *replicationFactor*, *numberOfShards* and - *shardingStrategy* from the other collection. - - *shardingStrategy* (optional): specifies the name of the sharding strategy to use for the collection. Since ArangoDB 3.4 there are different sharding strategies to select from when creating a new @@ -215,6 +226,25 @@ to the [naming conventions](data-modeling-naming-conventions.html). In single-server mode, the *shardingStrategy* attribute is meaningless and will be ignored. +- *distributeShardsLike*: distribute the shards of this collection + cloning the shard distribution of another. If this value is set, + it will copy the attributes *replicationFactor*, *numberOfShards* and + *shardingStrategy* from the other collection. + +- *isSmart*: Whether the collection is for a SmartGraph + (Enterprise Edition only). This is an internal property. + +- *isDisjoint* (boolean): Whether the collection is for a Disjoint SmartGraph + (Enterprise Edition only). This is an internal property. + +- *smartGraphAttribute*: + The attribute that is used for sharding: vertices with the same value of + this attribute are placed in the same shard. All vertices are required to + have this attribute set and it has to be a string. Edges derive the + attribute from their connected vertices. + + This feature can only be used in the *Enterprise Edition*. + - *smartJoinAttribute: in an *Enterprise Edition* cluster, this attribute determines an attribute of the collection that must contain the shard key value of the referred-to SmartJoin collection. Additionally, the sharding key @@ -229,12 +259,16 @@ to the [naming conventions](data-modeling-naming-conventions.html). A further restriction is that whenever documents are stored or updated in the collection, the value stored in the *smartJoinAttribute* must be a string. +--- + `db._create(collection-name, properties, type)` Specifies the optional *type* of the collection, it can either be *document* or *edge*. On default it is document. Instead of giving a type you can also use *db._createEdgeCollection* or *db._createDocumentCollection*. +--- + `db._create(collection-name, properties[, type], options)` As an optional third (if the *type* string is being omitted) or fourth diff --git a/3.9/data-modeling-collections-collection-methods.md b/3.9/data-modeling-collections-collection-methods.md index 4f322b020f..7f74e75893 100644 --- a/3.9/data-modeling-collections-collection-methods.md +++ b/3.9/data-modeling-collections-collection-methods.md @@ -136,6 +136,9 @@ Returns an object containing all collection properties. The attribute keys `rule`, `level` and `message` must follow the rules documented in [Document Schema Validation](document-schema-validation.html) +* *cacheEnabled*: Whether the in-memory hash cache for documents is + enabled for this collection (default: `false`). + * *isSystem*: Whether the collection is a system collection. * *syncByRevision*: Whether the newer revision-based replication protocol is @@ -166,12 +169,31 @@ In a cluster setup, the result will also contain the following attributes: This attribute will only be populated in cluster mode and is not populated in single-server mode. _(cluster only)_ +* *distributeShardsLike*: + The name of another collection. This collection uses the `replicationFactor`, + `numberOfShards` and `shardingStrategy` properties of the other collection and + the shards of this collection are distributed in the same way as the shards of + the other collection. + * *isSmart*: Whether the collection belongs to a SmartGraph (Enterprise Edition only). This is an internal property. * *isDisjoint*: Whether the SmartGraph this collection belongs to is disjoint (Enterprise Edition only). This is an internal property. +- *smartGraphAttribute*: + The attribute that is used for sharding: vertices with the same value of + this attribute are placed in the same shard. All vertices are required to + have this attribute set and it has to be a string. Edges derive the + attribute from their connected vertices. + + This feature can only be used in the *Enterprise Edition*. + +- *smartJoinAttribute*: + In an *Enterprise Edition* cluster, this attribute determines an attribute + of the collection that must contain the shard key value of the referred-to + SmartJoin collection. + --- `collection.properties(properties)` @@ -197,6 +219,13 @@ one or more of the following attribute(s): documents. The attribute keys `rule`, `level` and `message` must follow the rules documented in [Document Schema Validation](document-schema-validation.html) +- *cacheEnabled*: Whether the in-memory hash cache for documents should be + enabled for this collection. Can be controlled globally + with the `--cache.size` startup option. The cache can speed up repeated reads + of the same documents via their document keys. If the same documents are not + fetched often or are modified frequently, then you may disable the cache to + avoid the maintenance costs. + **Note**: some other collection properties, such as *type*, *keyOptions*, *numberOfShards* or *shardingStrategy* cannot be changed once the collection is created. diff --git a/3.9/data-modeling-collections-database-methods.md b/3.9/data-modeling-collections-database-methods.md index 490206814b..19033420f5 100644 --- a/3.9/data-modeling-collections-database-methods.md +++ b/3.9/data-modeling-collections-database-methods.md @@ -77,12 +77,6 @@ to the [naming conventions](data-modeling-naming-conventions.html). - *waitForSync* (optional, default *false*): If *true* creating a document will only return after the data was synced to disk. -- *isSystem* (optional, default is *false*): If *true*, create a - system collection. In this case *collection-name* should start with - an underscore. End users should normally create non-system collections - only. API implementors may be required to create system collections in - very special occasions, but normally a regular collection will do. - - *keyOptions* (optional): additional options for key generation. If specified, then *keyOptions* should be a JSON object containing the following attributes (**note**: some of them are optional): @@ -125,6 +119,28 @@ to the [naming conventions](data-modeling-naming-conventions.html). - *offset*: initial offset value for *autoincrement* key generator. Not used for other key generator types. +- *schema*: + An object that specifies the collection-level document schema for documents. + The attribute keys `rule`, `level` and `message` must follow the rules + documented in [Document Schema Validation](document-schema-validation.html) + +- *cacheEnabled*: Whether the in-memory hash cache for documents should be + enabled for this collection (default: `false`). Can be controlled globally + with the `--cache.size` startup option. The cache can speed up repeated reads + of the same documents via their document keys. If the same documents are not + fetched often or are modified frequently, then you may disable the cache to + avoid the maintenance costs. + +- *isSystem* (optional, default is *false*): If *true*, create a + system collection. In this case *collection-name* should start with + an underscore. End users should normally create non-system collections + only. API implementors may be required to create system collections in + very special occasions, but normally a regular collection will do. + +- *syncByRevision*: + Whether the newer revision-based replication protocol + is enabled for this collection. This is an internal property. + - *numberOfShards* (optional, default is *1*): in a cluster, this value determines the number of shards to create for the collection. In a single server setup, this option is meaningless. @@ -180,11 +196,6 @@ to the [naming conventions](data-modeling-naming-conventions.html). not being possible until the failover is sorted out and might cause write slow downs in trade for data durability. -- *distributeShardsLike*: distribute the shards of this collection - cloning the shard distribution of another. If this value is set, - it will copy the attributes *replicationFactor*, *numberOfShards* and - *shardingStrategy* from the other collection. - - *shardingStrategy* (optional): specifies the name of the sharding strategy to use for the collection. Since ArangoDB 3.4 there are different sharding strategies to select from when creating a new @@ -215,6 +226,25 @@ to the [naming conventions](data-modeling-naming-conventions.html). In single-server mode, the *shardingStrategy* attribute is meaningless and will be ignored. +- *distributeShardsLike*: distribute the shards of this collection + cloning the shard distribution of another. If this value is set, + it will copy the attributes *replicationFactor*, *numberOfShards* and + *shardingStrategy* from the other collection. + +- *isSmart*: Whether the collection is for a SmartGraph + (Enterprise Edition only). This is an internal property. + +- *isDisjoint* (boolean): Whether the collection is for a Disjoint SmartGraph + (Enterprise Edition only). This is an internal property. + +- *smartGraphAttribute*: + The attribute that is used for sharding: vertices with the same value of + this attribute are placed in the same shard. All vertices are required to + have this attribute set and it has to be a string. Edges derive the + attribute from their connected vertices. + + This feature can only be used in the *Enterprise Edition*. + - *smartJoinAttribute: in an *Enterprise Edition* cluster, this attribute determines an attribute of the collection that must contain the shard key value of the referred-to SmartJoin collection. Additionally, the sharding key @@ -229,12 +259,16 @@ to the [naming conventions](data-modeling-naming-conventions.html). A further restriction is that whenever documents are stored or updated in the collection, the value stored in the *smartJoinAttribute* must be a string. +--- + `db._create(collection-name, properties, type)` Specifies the optional *type* of the collection, it can either be *document* or *edge*. On default it is document. Instead of giving a type you can also use *db._createEdgeCollection* or *db._createDocumentCollection*. +--- + `db._create(collection-name, properties[, type], options)` As an optional third (if the *type* string is being omitted) or fourth From e8aaf9f70bc6e1ad0e92d82fa3a7452f3d76219d Mon Sep 17 00:00:00 2001 From: Simran Spiller Date: Wed, 19 Oct 2022 11:09:41 +0200 Subject: [PATCH 11/18] Formatting, removing references to implementation source files --- ...modeling-collections-collection-methods.md | 22 - ...a-modeling-collections-database-methods.md | 32 +- 3.10/data-modeling-collections.md | 23 +- 3.10/data-modeling-databases-working-with.md | 120 ++-- 3.10/data-modeling-databases.md | 7 +- ...ata-modeling-documents-database-methods.md | 220 +++--- ...ata-modeling-documents-document-methods.md | 637 +++++++++--------- 3.10/data-modeling-documents.md | 2 +- 3.10/data-modeling-views-database-methods.md | 22 +- 3.10/data-modeling-views-view-methods.md | 24 +- ...modeling-collections-collection-methods.md | 22 - ...a-modeling-collections-database-methods.md | 32 +- 3.11/data-modeling-collections.md | 23 +- 3.11/data-modeling-databases-working-with.md | 120 ++-- 3.11/data-modeling-databases.md | 7 +- ...ata-modeling-documents-database-methods.md | 220 +++--- ...ata-modeling-documents-document-methods.md | 637 +++++++++--------- 3.11/data-modeling-documents.md | 2 +- 3.11/data-modeling-views-database-methods.md | 22 +- 3.11/data-modeling-views-view-methods.md | 24 +- 20 files changed, 1056 insertions(+), 1162 deletions(-) diff --git a/3.10/data-modeling-collections-collection-methods.md b/3.10/data-modeling-collections-collection-methods.md index 8aa7cf85af..5a15545a45 100644 --- a/3.10/data-modeling-collections-collection-methods.md +++ b/3.10/data-modeling-collections-collection-methods.md @@ -8,8 +8,6 @@ Collection Methods Drop ---- - - Drops a collection: `collection.drop(options)` @@ -59,8 +57,6 @@ Drop a system collection: Truncate -------- - - Truncate a collection: `collection.truncate()` @@ -90,8 +86,6 @@ Truncates a collection: Compact ------- - - Introduced in: v3.4.5 Compacts the data of a collection: @@ -286,8 +280,6 @@ Change a property: Figures ------- - - Return the figures of a collection: `collection.figures(details)` @@ -338,8 +330,6 @@ Get the detailed collection figures: GetResponsibleShard ------------------- - - Return the responsible shard for the given document: `collection.getResponsibleShard(document)` @@ -356,8 +346,6 @@ in clusters. Shards ------ - - Return the available shards for the collection: `collection.shards(details)` @@ -378,8 +366,6 @@ The `shards()` method can only be used on Coordinators in clusters. Load ---- - - Load a collection: `collection.load()` @@ -414,8 +400,6 @@ any need to load a collection with the RocksDB storage engine. Revision -------- - - Return the revision ID of a collection: `collection.revision()` @@ -435,8 +419,6 @@ as an opaque string, and only use it for equality/non-equality comparisons. Checksum -------- - - Calculate a checksum for the data in a collection: `collection.checksum(withRevisions, withData)` @@ -454,8 +436,6 @@ checksumming makes the calculation slower, but is more accurate. Unload ------ - - Unload a collection: `collection.unload()` @@ -491,8 +471,6 @@ any need to unload a collection with the RocksDB storage engine. Rename ------ - - Rename a collection: `collection.rename(new-name)` diff --git a/3.10/data-modeling-collections-database-methods.md b/3.10/data-modeling-collections-database-methods.md index a616868071..40a2d023c4 100644 --- a/3.10/data-modeling-collections-database-methods.md +++ b/3.10/data-modeling-collections-database-methods.md @@ -8,8 +8,6 @@ Database Methods Collection ---------- - - Return a single collection: `db._collection(collection-name)` @@ -17,6 +15,8 @@ Return a single collection: Returns the collection with the given name, or `null` if no such collection exists. +--- + `db._collection(collection-identifier)` Returns the collection with the given identifier or `null` if no such @@ -57,8 +57,6 @@ Unknown collection: Create ------ - - Create a new document or edge collection: `db._create(collection-name)` @@ -68,6 +66,8 @@ If the collection name already exists or if the name format is invalid, an error is thrown. For more information on valid collection names please refer to the [naming conventions](data-modeling-naming-conventions.html). +--- + `db._create(collection-name, properties)` `properties` must be an object with the following attributes: @@ -362,7 +362,7 @@ With a special key option: {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - +--- Create a new edge collection: @@ -372,6 +372,8 @@ Creates a new edge collection named `collection-name`. If the collection name already exists an error is thrown. The default value for `waitForSync` is `false`. +--- + `db._createEdgeCollection(collection-name, properties)` `properties` must be an object with the following attributes: @@ -379,7 +381,7 @@ for `waitForSync` is `false`. - `waitForSync` (optional, default: `false`): If `true`, creating a document only returns after the data is synced to disk. - +--- Create a new document collection: @@ -391,8 +393,6 @@ document name already exists and error is thrown. All Collections --------------- - - Return all collections: `db._collections()` @@ -415,8 +415,6 @@ Returns all collections of the given database. Collection Name --------------- - - Select a collection from the database: `db.collection-name` @@ -441,24 +439,28 @@ default properties. Drop ---- - - Drop a collection: `db._drop(collection)` Drops a `collection` and all its indexes and data. +--- + `db._drop(collection-identifier)` Drops a collection identified by `collection-identifier` with all its indexes and data. No error is thrown if there is no such collection. +--- + `db._drop(collection-name)` Drops a collection named `collection-name` and all its indexes. No error is thrown if there is no such collection. +--- + `db._drop(collection-name, options)` In order to drop a system collection, you must specify an `options` object @@ -518,8 +520,6 @@ Drops a system collection Truncate -------- - - Truncate a collection: `db._truncate(collection)` @@ -527,11 +527,15 @@ Truncate a collection: Truncates a `collection`, removing all documents but keeping all its indexes. +--- + `db._truncate(collection-identifier)` Truncates a collection identified by `collection-identified`. No error is thrown if there is no such collection. +--- + `db._truncate(collection-name)` Truncates a collection named `collection-name`. No error is thrown if diff --git a/3.10/data-modeling-collections.md b/3.10/data-modeling-collections.md index 82c0f4b997..6099794464 100644 --- a/3.10/data-modeling-collections.md +++ b/3.10/data-modeling-collections.md @@ -1,6 +1,6 @@ --- layout: default -description: This is an introduction to ArangoDB's interface for collections and how to handlecollections from the JavaScript shell arangosh +description: This is an introduction to ArangoDB's interface for collections and how to handle collections from the JavaScript shell arangosh --- JavaScript Interface to Collections =================================== @@ -25,33 +25,38 @@ perspective, the [collection name](appendix-glossary.html#collection-name) should be used, i.e.: ### Collection + `db._collection(collection-name)` A collection is created by a ["db._create"](data-modeling-collections-database-methods.html) call. -For example: Assume that the [collection identifier](appendix-glossary.html#collection-identifier) is *7254820* and the name is -*demo*, then the collection can be accessed as: +For example: Assume that the [collection identifier](appendix-glossary.html#collection-identifier) is `7254820` and the name is +`demo`, then the collection can be accessed as: - db._collection("demo") +```js +db._collection("demo") +``` -If no collection with such a name exists, then *null* is returned. +If no collection with such a name exists, then `null` is returned. There is a short-cut that can be used for non-system collections: ### Collection name + `db.collection-name` -This call will either return the collection named *db.collection-name* or create +This call will either return the collection named `db.collection-name` or create a new one with that name and a set of default properties. -**Note**: Creating a collection on the fly using *db.collection-name* is +**Note**: Creating a collection on the fly using `db.collection-name` is not recommend and does not work in _arangosh_. To create a new collection, please -use +use `db._create()`. ### Create + `db._create(collection-name)` -This call will create a new collection called *collection-name*. +This call will create a new collection called `collection-name`. This method is a database method and is documented in detail at [Database Methods](data-modeling-collections-database-methods.html#create) ### Synchronous replication diff --git a/3.10/data-modeling-databases-working-with.md b/3.10/data-modeling-databases-working-with.md index f4bbb23856..854f7d67ca 100644 --- a/3.10/data-modeling-databases-working-with.md +++ b/3.10/data-modeling-databases-working-with.md @@ -14,9 +14,8 @@ database only. ### Name - +Return the database name: -return the database name `db._name()` Returns the name of the current database as a string. @@ -34,9 +33,8 @@ Returns the name of the current database as a string. ### ID - +Return the database ID: -return the database id `db._id()` Returns the id of the current database as a string. @@ -54,9 +52,8 @@ Returns the id of the current database as a string. ### Path - +Return the path to database files: -return the path to database files `db._path()` Returns the filesystem path of the current database as a string. @@ -74,36 +71,34 @@ Returns the filesystem path of the current database as a string. ### isSystem - +Return the database type: -return the database type `db._isSystem()` -Returns whether the currently used database is the *_system* database. +Returns whether the currently used database is the `_system` database. The system database has some special privileges and properties, for example, database management operations such as create or drop can only be executed -from within this database. Additionally, the *_system* database itself +from within this database. Additionally, the `_system` database itself cannot be dropped. ### Properties - +Return the path to database files: -return the path to database files `db._properties()` Returns the properties of the current database as an object with the following attributes: -- *id*: the database id -- *name*: the database name -- *isSystem*: the database type -- *path*: the path to database files -- *sharding*: the sharding method to use for new collections *(Cluster only)* -- *replicationFactor*: default replication factor for new collections - *(Cluster only)* -- *writeConcern*: a shard will refuse to write if less than this amount - of copies are in sync *(Cluster only)* +- `id`: the database ID +- `name`: the database name +- `isSystem`: the database type +- `path`: the path to the database files (not used anymore, always `""`) +- `sharding`: the sharding method to use for new collections _(cluster only)_ +- `replicationFactor`: default replication factor for new collections + _(cluster only)_ +- `writeConcern`: a shard will refuse to write if less than this amount + of copies are in sync _(cluster only)_ **Examples** @@ -118,20 +113,19 @@ attributes: ### Use Database - +Change the current database: -change the current database `db._useDatabase(name)` -Changes the current database to the database specified by *name*. Note -that the database specified by *name* must already exist. +Changes the current database to the database specified by `name`. Note +that the database specified by `name` must already exist. Changing the database might be disallowed in some contexts, for example server-side actions (including Foxx). When performing this command from arangosh, the current credentials (username and password) will be re-used. These credentials might not be valid to -connect to the database specified by *name*. Additionally, the database +connect to the database specified by `name`. Additionally, the database only be accessed from certain endpoints only. In this case, switching the database might not work, and the connection / session should be closed and restarted with different username and password credentials and/or @@ -139,58 +133,56 @@ endpoint data. ### List Databases - +Return the list of all existing databases: -return the list of all existing databases `db._databases()` Returns the list of all databases. This method can only be used from within -the *_system* database. +the `_system` database. ### Create Database - +Create a new database: -create a new database `db._createDatabase(name, options, users)` -Creates a new database with the name specified by *name*. +Creates a new database with the name specified by `name`. There are restrictions for database names (see [DatabaseNames](data-modeling-naming-conventions-database-names.html)). Note that even if the database is created successfully, there will be no change into the current database to the new database. Changing the current database must explicitly be requested by using the -*db._useDatabase* method. +`db._useDatabase()` method. -The *options* attribute can be used to set defaults for collections that will -be created in the new database (*Cluster only*): +The `options` attribute can be used to set defaults for collections that will +be created in the new database (_cluster only_): -- *sharding*: The sharding method to use. Valid values are: `""` or `"single"`. +- `sharding`: The sharding method to use. Valid values are: `""` or `"single"`. Setting this option to `"single"` will enable the OneShard feature in the Enterprise Edition. -- *replicationFactor*: Default replication factor. Special values include +- `replicationFactor`: Default replication factor. Special values include `"satellite"`, which will replicate the collection to every DB-Server, and `1`, which disables replication. -- *writeConcern*: how many copies of each shard are required to be in sync on +- `writeConcern`: how many copies of each shard are required to be in sync on the different DB-Servers. If there are less then these many copies in the - cluster a shard will refuse to write. The value of *writeConcern* can not be - larger than *replicationFactor*. + cluster a shard will refuse to write. The value of `writeConcern` can not be + larger than `replicationFactor`. -The optional *users* attribute can be used to create initial users for +The optional `users` attribute can be used to create initial users for the new database. If specified, it must be a list of user objects. Each user object can contain the following attributes: -- *username*: the user name as a string. This attribute is mandatory. -- *passwd*: the user password as a string. If not specified, then it defaults +- `username`: the user name as a string. This attribute is mandatory. +- `passwd`: the user password as a string. If not specified, then it defaults to an empty string. -- *active*: a boolean flag indicating whether the user account should be - active or not. The default value is *true*. -- *extra*: an optional JSON object with extra user information. The data - contained in *extra* will be stored for the user but not be interpreted +- `active`: a boolean flag indicating whether the user account should be + active or not. The default value is `true`. +- `extra`: an optional JSON object with extra user information. The data + contained in `extra` will be stored for the user but not be interpreted further by ArangoDB. -If no initial users are specified, a default user *root* will be created +If no initial users are specified, a default user `root` will be created with an empty string password. This ensures that the new database will be accessible via HTTP after it is created. @@ -209,20 +201,19 @@ Alternatively, you can specify user data directly. For example: db._createDatabase("newDB", {}, [{ username: "newUser", passwd: "123456", active: true}]) ``` -Those methods can only be used from within the *_system* database. +Those methods can only be used from within the `_system` database. ### Drop Database - +Drop an existing database: -drop an existing database `db._dropDatabase(name)` -Drops the database specified by *name*. The database specified by -*name* must exist. +Drops the database specified by `name`. The database specified by +`name` must exist. -**Note**: Dropping databases is only possible from within the *_system* -database. The *_system* database itself cannot be dropped. +**Note**: Dropping databases is only possible from within the `_system` +database. The `_system` database itself cannot be dropped. Databases are dropped asynchronously, and will be physically removed if all clients have disconnected and references have been garbage-collected. @@ -231,19 +222,20 @@ all clients have disconnected and references have been garbage-collected. Introduced in: v3.5.6, v3.6.7, v3.7.3 -compact the entire data, for all databases +Compact the entire data, for all databases: + `db._compact(options)` This command can be used to reclaim disk space after substantial data deletions have taken place. It requires superuser access. -The optional *options* attribute can be used to get more control over the +The optional `options` attribute can be used to get more control over the compaction. The following attributes can be used in it: -- *changeLevel*: whether or not compacted data should be moved to the minimum - possible level. The default value is *false*. -- *compactBottomMostLevel*: whether or not to compact the bottommost level of - data. The default value is *false*. +- `changeLevel`: whether or not compacted data should be moved to the minimum + possible level. The default value is `false`. +- `compactBottomMostLevel`: whether or not to compact the bottommost level of + data. The default value is `false`. {% hint 'warning' %} This command can cause a full rewrite of all data in all databases, which may @@ -253,7 +245,8 @@ and only when additional I/O load can be tolerated for a prolonged time. ### Engine -retrieve the storage engine type used by the server +Retrieve the storage engine type used by the server: + `db._engine()` Returns the name of the storage engine in use (`rocksdb`), as well @@ -261,7 +254,8 @@ as a list of supported features such as types of indexes. ### Engine statistics -retrieve statistics related to the storage engine +Retrieve statistics related to the storage engine: + `db._engineStats()` Returns some statistics related to the storage engine activity, including figures diff --git a/3.10/data-modeling-databases.md b/3.10/data-modeling-databases.md index d233d2f0f1..057d745f03 100644 --- a/3.10/data-modeling-databases.md +++ b/3.10/data-modeling-databases.md @@ -9,20 +9,20 @@ This is an introduction to managing databases in ArangoDB from within JavaScript. When you have an established connection to ArangoDB, the current -database can be changed explicitly using the *db._useDatabase()* +database can be changed explicitly using the `db._useDatabase()` method. This will switch to the specified database (provided it exists and the user can connect to it). From this point on, any following action in the same shell or connection will use the specified database, unless otherwise specified. -*Note*: If the database is changed, client drivers need to store the +**Note**: If the database is changed, client drivers need to store the current database name on their side, too. This is because connections in ArangoDB do not contain any state information. All state information is contained in the HTTP request/response data. To connect to a specific database after arangosh has started use the command described above. It is also possible to specify a database name when invoking -arangosh. For this purpose, use the command-line parameter *--server.database*, +arangosh. For this purpose, use the command-line parameter `--server.database`, e.g. > arangosh --server.database test @@ -32,4 +32,3 @@ access multiple databases, even if they exist. The only intended and supported way in ArangoDB is to use one database at a time for a command, an action, a script or a query. Operations started in one database must not switch the database later and continue operating in another. - diff --git a/3.10/data-modeling-documents-database-methods.md b/3.10/data-modeling-documents-database-methods.md index 94beb4286c..bb6ab88677 100644 --- a/3.10/data-modeling-documents-database-methods.md +++ b/3.10/data-modeling-documents-database-methods.md @@ -8,36 +8,33 @@ Database Methods Document -------- - - - `db._document(object)` -The *_document* method finds a document given an object *object* -containing the *_id* attribute. The method returns +The `db._document()` method finds a document given an object `object` +containing the `_id` attribute. The method returns the document if it can be found. -An error is thrown if *_rev* is specified but the document found has a +An error is thrown if `_rev` is specified but the document found has a different revision already. An error is also thrown if no document exists -with the given *_id*. +with the given `_id`. Please note that if the method is executed on the arangod server (e.g. from inside a Foxx application), an immutable document object will be returned for performance reasons. It is not possible to change attributes of this immutable object. To update or patch the returned document, it needs to be cloned/copied into a regular JavaScript object first. This is not necessary -if the *_document* method is called from out of arangosh or from any other +if the `db._document()` method is called from out of arangosh or from any other client. +--- + `db._document(document-handle)` -As before. Instead of *object* a *document-handle* can be passed as +As before. Instead of `object` a `document-handle` can be passed as first argument. No revision can be specified in this case. - **Examples** - Returns the document: {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -52,95 +49,89 @@ Returns the document: {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - Exists ------ - - - `db._exists(object)` -The *_exists* method determines whether a document exists given an object -`object` containing the *_id* attribute. +The `db._exists()` method determines whether a document exists given an object +`object` containing the `_id` attribute. -An error is thrown if *_rev* is specified but the document found has a +An error is thrown if `_rev` is specified but the document found has a different revision already. Instead of returning the found document or an error, this method will -only return an object with the attributes *_id*, *_key* and *_rev*, or -*false* if no document with the given *_id* or *_key* exists. It can +only return an object with the attributes `_id`, `_key` and `_rev`, or +`false` if no document with the given `_id` or `_key` exists. It can thus be used for easy existence checks. This method will throw an error if used improperly, e.g. when called with a non-document handle, a non-document, or when a cross-collection request is performed. +--- + `db._exists(document-handle)` -As before. Instead of *object* a *document-handle* can be passed as +As before. Instead of `object` a `document-handle` can be passed as first argument. - Replace ------- - - - `db._replace(selector, data)` -Replaces an existing document described by the *selector*, which must -be an object containing the *_id* attribute. There must be -a document with that *_id* in the current database. This -document is then replaced with the *data* given as second argument. -Any attribute *_id*, *_key* or *_rev* in *data* is ignored. +Replaces an existing document described by the `selector`, which must +be an object containing the `_id` attribute. There must be +a document with that `_id` in the current database. This +document is then replaced with the `data` given as second argument. +Any attribute `_id`, `_key` or `_rev` in `data` is ignored. -The method returns a document with the attributes *_id*, *_key*, *_rev* -and *_oldRev*. The attribute *_id* contains the document handle of the -updated document, the attribute *_rev* contains the document revision of -the updated document, the attribute *_oldRev* contains the revision of +The method returns a document with the attributes `_id`, `_key`, `_rev` +and `_oldRev`. The attribute `_id` contains the document handle of the +updated document, the attribute `_rev` contains the document revision of +the updated document, the attribute `_oldRev` contains the revision of the old (now replaced) document. -If the selector contains a *_rev* attribute, the method first checks +If the selector contains a `_rev` attribute, the method first checks that the specified revision is the current revision of that document. If not, there is a conflict, and an error is thrown. `collection.replace(selector, data, options)` -As before, but *options* must be an object that can contain the following +As before, but `options` must be an object that can contain the following boolean attributes: - - *waitForSync*: One can force + - `waitForSync`: One can force synchronization of the document creation operation to disk even in - case that the *waitForSync* flag is been disabled for the entire - collection. Thus, the *waitForSync* option can be used to force + case that the `waitForSync` flag is been disabled for the entire + collection. Thus, the `waitForSync` option can be used to force synchronization of just specific operations. To use this, set the - *waitForSync* parameter to *true*. If the *waitForSync* parameter - is not specified or set to *false*, then the collection's default - *waitForSync* behavior is applied. The *waitForSync* parameter + `waitForSync` parameter to `true`. If the `waitForSync` parameter + is not specified or set to `false`, then the collection's default + `waitForSync` behavior is applied. The `waitForSync` parameter cannot be used to disable synchronization for collections that have - a default *waitForSync* value of *true*. - - *overwrite*: If this flag is set to *true*, a *_rev* attribute in + a default `waitForSync` value of `true`. + - `overwrite`: If this flag is set to `true`, a `_rev` attribute in the selector is ignored. - - *returnNew*: If this flag is set to *true*, the complete new document - is returned in the output under the attribute *new*. - - *returnOld*: If this flag is set to *true*, the complete previous + - `returnNew`: If this flag is set to `true`, the complete new document + is returned in the output under the attribute `new`. + - `returnOld`: If this flag is set to `true`, the complete previous revision of the document is returned in the output under the - attribute *old*. - - *silent*: If this flag is set to *true*, no output is returned. + attribute `old`. + - `silent`: If this flag is set to `true`, no output is returned. + +--- `db._replace(document-handle, data)` `db._replace(document-handle, data, options)` -As before. Instead of *selector* a *document-handle* can be passed as +As before. Instead of `selector` a `document-handle` can be passed as first argument. No revision precondition is tested. - **Examples** - Create and replace a document: {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -156,76 +147,74 @@ Create and replace a document: {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - Update ------ - - `db._update(selector, data)` -Updates an existing document described by the *selector*, which must -be an object containing the *_id* attribute. There must be -a document with that *_id* in the current database. This -document is then patched with the *data* given as second argument. -Any attribute *_id*, *_key* or *_rev* in *data* is ignored. +Updates an existing document described by the `selector`, which must +be an object containing the `_id` attribute. There must be +a document with that `_id` in the current database. This +document is then patched with the `data` given as second argument. +Any attribute `_id`, `_key` or `_rev` in `data` is ignored. -The method returns a document with the attributes *_id*, *_key*, *_rev* -and *_oldRev*. The attribute *_id* contains the document handle of the -updated document, the attribute *_rev* contains the document revision of -the updated document, the attribute *_oldRev* contains the revision of +The method returns a document with the attributes `_id`, `_key`, `_rev` +and `_oldRev`. The attribute `_id` contains the document handle of the +updated document, the attribute `_rev` contains the document revision of +the updated document, the attribute `_oldRev` contains the revision of the old (now updated) document. -If the selector contains a *_rev* attribute, the method first checks +If the selector contains a `_rev` attribute, the method first checks that the specified revision is the current revision of that document. If not, there is a conflict, and an error is thrown. +--- + `db._update(selector, data, options)` -As before, but *options* must be an object that can contain the following +As before, but `options` must be an object that can contain the following boolean attributes: - - *waitForSync*: One can force + - `waitForSync`: One can force synchronization of the document creation operation to disk even in - case that the *waitForSync* flag is been disabled for the entire - collection. Thus, the *waitForSync* option can be used to force + case that the `waitForSync` flag is been disabled for the entire + collection. Thus, the `waitForSync` option can be used to force synchronization of just specific operations. To use this, set the - *waitForSync* parameter to *true*. If the *waitForSync* parameter - is not specified or set to *false*, then the collection's default - *waitForSync* behavior is applied. The *waitForSync* parameter + `waitForSync` parameter to `true`. If the `waitForSync` parameter + is not specified or set to `false`, then the collection's default + `waitForSync` behavior is applied. The `waitForSync` parameter cannot be used to disable synchronization for collections that have - a default *waitForSync* value of *true*. - - *overwrite*: If this flag is set to *true*, a *_rev* attribute in + a default `waitForSync` value of `true`. + - `overwrite`: If this flag is set to `true`, a `_rev` attribute in the selector is ignored. - - *returnNew*: If this flag is set to *true*, the complete new document - is returned in the output under the attribute *new*. - - *returnOld*: If this flag is set to *true*, the complete previous + - `returnNew`: If this flag is set to `true`, the complete new document + is returned in the output under the attribute `new`. + - `returnOld`: If this flag is set to `true`, the complete previous revision of the document is returned in the output under the - attribute *old*. - - *silent*: If this flag is set to *true*, no output is returned. - - *keepNull*: The optional *keepNull* parameter can be used to modify - the behavior when handling *null* values. Normally, *null* values - are stored in the database. By setting the *keepNull* parameter to - *false*, this behavior can be changed so that all attributes in - *data* with *null* values will be removed from the target document. - - *mergeObjects*: Controls whether objects (not arrays) will be + attribute `old`. + - `silent`: If this flag is set to `true`, no output is returned. + - `keepNull`: The optional `keepNull` parameter can be used to modify + the behavior when handling `null` values. Normally, `null` values + are stored in the database. By setting the `keepNull` parameter to + `false`, this behavior can be changed so that all attributes in + `data` with `null` values will be removed from the target document. + - `mergeObjects`: Controls whether objects (not arrays) will be merged if present in both the existing and the patch document. If - set to *false*, the value in the patch document will overwrite the - existing document's value. If set to *true*, objects will be merged. - The default is *true*. + set to `false`, the value in the patch document will overwrite the + existing document's value. If set to `true`, objects will be merged. + The default is `true`. +--- `db._update(document-handle, data)` `db._update(document-handle, data, options)` -As before. Instead of *selector* a *document-handle* can be passed as +As before. Instead of `selector` a `document-handle` can be passed as first argument. No revision precondition is tested. - **Examples** - Create and update a document: {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -241,61 +230,60 @@ Create and update a document: {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - Remove ------ - - - `db._remove(selector)` -Removes a document described by the *selector*, which must be an object -containing the *_id* attribute. There must be a document with -that *_id* in the current database. This document is then +Removes a document described by the `selector`, which must be an object +containing the `_id` attribute. There must be a document with +that `_id` in the current database. This document is then removed. -The method returns a document with the attributes *_id*, *_key* and *_rev*. -The attribute *_id* contains the document handle of the -removed document, the attribute *_rev* contains the document revision of +The method returns a document with the attributes `_id`, `_key` and `_rev`. +The attribute `_id` contains the document handle of the +removed document, the attribute `_rev` contains the document revision of the removed document. -If the selector contains a *_rev* attribute, the method first checks +If the selector contains a `_rev` attribute, the method first checks that the specified revision is the current revision of that document. If not, there is a conflict, and an error is thrown. +--- + `db._remove(selector, options)` -As before, but *options* must be an object that can contain the following +As before, but `options` must be an object that can contain the following boolean attributes: - - *waitForSync*: One can force + - `waitForSync`: One can force synchronization of the document creation operation to disk even in - case that the *waitForSync* flag is been disabled for the entire - collection. Thus, the *waitForSync* option can be used to force + case that the `waitForSync` flag is been disabled for the entire + collection. Thus, the `waitForSync` option can be used to force synchronization of just specific operations. To use this, set the - *waitForSync* parameter to *true*. If the *waitForSync* parameter - is not specified or set to *false*, then the collection's default - *waitForSync* behavior is applied. The *waitForSync* parameter + `waitForSync` parameter to `true`. If the `waitForSync` parameter + is not specified or set to `false`, then the collection's default + `waitForSync` behavior is applied. The `waitForSync` parameter cannot be used to disable synchronization for collections that have - a default *waitForSync* value of *true*. - - *overwrite*: If this flag is set to *true*, a *_rev* attribute in + a default `waitForSync` value of `true`. + - `overwrite`: If this flag is set to `true`, a `_rev` attribute in the selector is ignored. - - *returnOld*: If this flag is set to *true*, the complete previous + - `returnOld`: If this flag is set to `true`, the complete previous revision of the document is returned in the output under the - attribute *old*. - - *silent*: If this flag is set to *true*, no output is returned. + attribute `old`. + - `silent`: If this flag is set to `true`, no output is returned. + +--- `db._remove(document-handle)` `db._remove(document-handle, options)` -As before. Instead of *selector* a *document-handle* can be passed as +As before. Instead of `selector` a `document-handle` can be passed as first argument. No revision check is performed. **Examples** - Remove a document: {% arangoshexample examplevar="examplevar" script="script" result="result" %} diff --git a/3.10/data-modeling-documents-document-methods.md b/3.10/data-modeling-documents-document-methods.md index 1a6f901ff9..79920f83a7 100644 --- a/3.10/data-modeling-documents-document-methods.md +++ b/3.10/data-modeling-documents-document-methods.md @@ -8,20 +8,15 @@ Collection Methods All --- - - - `collection.all()` Fetches all documents from a collection and returns a cursor. You can use -*toArray*, *next*, or *hasNext* to access the result. The result -can be limited using the *skip* and *limit* operator. - +`toArray()`, `next()`, or `hasNext()` to access the result. The result +can be limited using the `skip()` and `limit()` operator. **Examples** - -Use *toArray* to get all documents at once: +Use `toArray()` to get all documents at once: {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 001_collectionAll @@ -39,7 +34,7 @@ Use *toArray* to get all documents at once: {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} -Use *limit* to restrict the documents: +Use `limit()` to restrict the documents: {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 002_collectionAllNext @@ -57,23 +52,19 @@ Use *limit* to restrict the documents: {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - Query by example ---------------- - - - `collection.byExample(example)` Fetches all documents from a collection that match the specified example and returns a cursor. -You can use *toArray*, *next*, or *hasNext* to access the -result. The result can be limited using the *skip* and *limit* +You can use `toArray()`, `next()`, or `hasNext()` to access the +result. The result can be limited using the `skip()` and `limit()` operator. -An attribute name of the form *a.b* is interpreted as attribute path, +An attribute name of the form `a.b` is interpreted as attribute path, not as attribute. If you use ```json @@ -81,7 +72,7 @@ not as attribute. If you use ``` as example, then you will find all documents, such that the attribute -*a* contains a document of the form *{c : 1 }*. For example the document +`a` contains a document of the form `{ "c" : 1 }`. For example the document ```json { "a" : { "c" : 1 }, "b" : 1 } @@ -101,8 +92,8 @@ However, if you use { "a.c" : 1 } ``` -then you will find all documents, which contain a sub-document in *a* -that has an attribute *c* of value *1*. Both the following documents +then you will find all documents, which contain a sub-document in `a` +that has an attribute `c` of value `1`. Both the following documents ```json { "a" : { "c" : 1 }, "b" : 1 } @@ -124,7 +115,7 @@ As alternative you can supply an array of paths and values. **Examples** -Use *toArray* to get all documents at once: +Use `toArray()` to get all documents at once: {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 003_collectionByExample @@ -143,7 +134,7 @@ Use *toArray* to get all documents at once: {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} -Use *next* to loop over all documents: +Use `next()` to loop over all documents: {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 004_collectionByExampleNext @@ -163,21 +154,19 @@ Use *next* to loop over all documents: First Example ------------- - - - `collection.firstExample(example)` Returns some document of a collection that matches the specified -example. If no such document exists, *null* will be returned. +example. If no such document exists, `null` will be returned. The example has to be specified as paths and values. -See *byExample* for details. +See `byExample` for details. + +--- `collection.firstExample(path1, value1, ...)` As alternative you can supply an array of paths and values. - **Examples** {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -197,26 +186,19 @@ As alternative you can supply an array of paths and values. Any --- - - - `collection.any()` -Returns a random document from the collection or *null* if none exists. +Returns a random document from the collection or `null` if none exists. **Note**: this method is expensive when using the RocksDB storage engine. Count ----- - - - `collection.count()` Returns the number of living documents in the collection. - **Examples** {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -230,72 +212,70 @@ Returns the number of living documents in the collection. {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - toArray ------- - - - `collection.toArray()` Converts the collection into an array of documents. Never use this call in a production environment as it will basically create a copy of your collection in RAM which will use resources depending on the number and size -of the documents in your collecion. - +of the documents in your collection. Document -------- - - - `collection.document(object [, options])` -The *document* method finds a document given an object *object* -containing the *_id* or *_key* attribute. The method returns +The `document()` method finds a document given an object `object` +containing the `_id` or `_key` attribute. The method returns the document if it can be found. If both attributes are given, -the *_id* takes precedence, it is an error, if the collection part -of the *_id* does not match the *collection*. +the `_id` takes precedence, it is an error, if the collection part +of the `_id` does not match the `collection`. -An error is thrown if *_rev* is specified but the document found has a +An error is thrown if `_rev` is specified but the document found has a different revision already. An error is also thrown if no document exists -with the given *_id* or *_key* value. +with the given `_id` or `_key` value. Please note that if the method is executed on the arangod server (e.g. from inside a Foxx application), an immutable document object will be returned for performance reasons. It is not possible to change attributes of this immutable object. To update or patch the returned document, it needs to be cloned/copied into a regular JavaScript object first. This is not necessary -if the *document* method is called from out of arangosh or from any other +if the `document` method is called from out of arangosh or from any other client. -If you pass *options* as the second argument, it must be an object. If this +If you pass `options` as the second argument, it must be an object. If this object has the `allowDirtyReads` attribute set to `true`, then the Coordinator is allowed to read from any shard replica and not only from the leader. See [Read from Followers](http/document-address-and-etag.html#read-from-followers) for details. +--- + `collection.document(document-handle [, options])` -As before. Instead of *object* a *document-handle* can be passed as +As before. Instead of `object` a `document-handle` can be passed as first argument. No revision can be specified in this case. +--- + `collection.document(document-key [, options])` -As before. Instead of *object* a *document-key* can be passed as +As before. Instead of `object` a `document-key` can be passed as first argument. +--- + `collection.document(array [, options])` This variant allows to perform the operation on a whole array of arguments. -The behavior is exactly as if *document* would have been called on all members +The behavior is exactly as if `document` would have been called on all members of the array separately and all results are returned in an array. If an error occurs with any of the documents, no exception is risen! Instead of a document an error object is returned in the result array. -*Examples* +**Examples** Returns the document for a document-handle: @@ -381,73 +361,72 @@ An error is raised if the handle is invalid: {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - Exists ------ - - +Checks whether a document exists: -checks whether a document exists `collection.exists(object [, options])` -The *exists* method determines whether a document exists given an object -`object` containing the *_id* or *_key* attribute. If both attributes -are given, the *_id* takes precedence, it is an error, if the collection -part of the *_id* does not match the *collection*. +The `exists()` method determines whether a document exists given an object +`object` containing the `_id` or `_key` attribute. If both attributes +are given, the `_id` takes precedence, it is an error, if the collection +part of the `_id` does not match the `collection`. -An error is thrown if *_rev* is specified but the document found has a +An error is thrown if `_rev` is specified but the document found has a different revision already. Instead of returning the found document or an error, this method will -only return an object with the attributes *_id*, *_key* and *_rev*, or -*false* if no document with the given *_id* or *_key* exists. It can +only return an object with the attributes `_id`, `_key` and `_rev`, or +`false` if no document with the given `_id` or `_key` exists. It can thus be used for easy existence checks. This method will throw an error if used improperly, e.g. when called with a non-document handle, a non-document, or when a cross-collection request is performed. -If you pass *options* as the second argument, it must be an object. If this +If you pass `options` as the second argument, it must be an object. If this object has the `allowDirtyReads` attribute set to `true`, then the Coordinator is allowed to read from any shard replica and not only from the leader. See [Read from Followers](http/document-address-and-etag.html#read-from-followers) for details. +--- + `collection.exists(document-handle [, options])` -As before. Instead of *object* a *document-handle* can be passed as +As before. Instead of `object` a `document-handle` can be passed as first argument. +--- + `collection.exists(document-key [, options])` -As before. Instead of *object* a *document-key* can be passed as +As before. Instead of `object` a `document-key` can be passed as first argument. +--- + `collection.exists(array [, options])` This variant allows to perform the operation on a whole array of arguments. -The behavior is exactly as if *exists* would have been called on all +The behavior is exactly as if `exists()` would have been called on all members of the array separately and all results are returned in an array. If an error occurs with any of the documents, the operation stops immediately returning only an error object. - Lookup By Keys -------------- - - - `collection.documents(keys)` Looks up the documents in the specified collection using the array of keys provided. All documents for which a matching key was specified in -the *keys* array and that exist in the collection will be returned. Keys +the `keys` array and that exist in the collection will be returned. Keys for which no document can be found in the underlying collection are ignored, and no exception will be thrown for them. -This method is deprecated in favour of the array variant of *document*. +This method is deprecated in favor of the array variant of `document()`. **Examples** @@ -471,92 +450,94 @@ This method is deprecated in favour of the array variant of *document*. Insert / Save ------------- - - `collection.insert(data)`
`collection.save(data)` -Creates a new document in the *collection* from the given *data*. The -*data* must be an object. The attributes *_id* and *_rev* are ignored -and are automatically generated. A unique value for the attribute *_key* +Creates a new document in the `collection` from the given `data`. The +`data` must be an object. The attributes `_id` and `_rev` are ignored +and are automatically generated. A unique value for the attribute `_key` will be automatically generated if not specified. If specified, there -must not be a document with the given *_key* in the collection. +must not be a document with the given `_key` in the collection. -The method returns a document with the attributes *_id*, *_key* and -*_rev*. The attribute *_id* contains the document handle of the newly -created document, the attribute *_key* the document key and the -attribute *_rev* contains the document revision. +The method returns a document with the attributes `_id`, `_key` and +`_rev`. The attribute `_id` contains the document handle of the newly +created document, the attribute `_key` the document key and the +attribute `_rev` contains the document revision. + +--- `collection.insert(data, options)`
`collection.save(data, options)` -Creates a new document in the *collection* from the given *data* as -above. The optional *options* parameter must be an object and can be +Creates a new document in the `collection` from the given `data` as +above. The optional `options` parameter must be an object and can be used to specify the following options: - - *waitForSync*: One can force + - `waitForSync`: One can force synchronization of the document creation operation to disk even in - case that the *waitForSync* flag is been disabled for the entire - collection. Thus, the *waitForSync* option can be used to force + case that the `waitForSync` flag is been disabled for the entire + collection. Thus, the `waitForSync` option can be used to force synchronization of just specific operations. To use this, set the - *waitForSync* parameter to *true*. If the *waitForSync* parameter - is not specified or set to *false*, then the collection's default - *waitForSync* behavior is applied. The *waitForSync* parameter + `waitForSync` parameter to `true`. If the `waitForSync` parameter + is not specified or set to `false`, then the collection's default + `waitForSync` behavior is applied. The `waitForSync` parameter cannot be used to disable synchronization for collections that have - a default *waitForSync* value of *true*. - - *silent*: If this flag is set to *true*, the method does not return + a default `waitForSync` value of `true`. + - `silent`: If this flag is set to `true`, the method does not return any output. - - *returnNew*: If this flag is set to *true*, the complete new document - is returned in the output under the attribute *new*. - - *returnOld*: If this flag is set to *true*, the complete old document - is returned in the output under the attribute *old*. Only available - in combination with the *overwrite* option - - *overwrite*: If set to *true*, the insert becomes a replace-insert. - If a document with the same *_key* exists already the new document + - `returnNew`: If this flag is set to `true`, the complete new document + is returned in the output under the attribute `new`. + - `returnOld`: If this flag is set to `true`, the complete old document + is returned in the output under the attribute `old`. Only available + in combination with the `overwrite` option + - `overwrite`: If set to `true`, the insert becomes a replace-insert. + If a document with the same `_key` exists already the new document is not rejected with unique constraint violated but will replace the old document. Note that operations with `overwrite` parameter require a `_key` attribute in the request payload, therefore they can only be performed on collections sharded by `_key`. - - *overwriteMode*: this optional flag can have one of the following values: - - *ignore*: if a document with the specified *_key* value exists already, + - `overwriteMode`: this optional flag can have one of the following values: + - `ignore`: if a document with the specified `_key` value exists already, nothing will be done and no write operation will be carried out (introduced in v3.7.0). The insert operation will return success in this case. This mode does not - support returning the old document version using the *returnOld* - attribute. *returnNew* will only set the *new* attribute in the response + support returning the old document version using the `returnOld` + attribute. `returnNew` will only set the `new` attribute in the response if a new document was inserted. - - *replace*: if a document with the specified *_key* value exists already, + - `replace`: if a document with the specified `_key` value exists already, it will be overwritten with the specified document value. This mode will - also be used when no overwrite mode is specified but the *overwrite* - flag is set to *true*. - - *update*: if a document with the specified *_key* value exists already, + also be used when no overwrite mode is specified but the `overwrite` + flag is set to `true`. + - `update`: if a document with the specified `_key` value exists already, it will be patched (partially updated) with the specified document value (introduced in v3.7.0). - The overwrite mode can be further controlled via the *keepNull* and - *mergeObjects* parameters. - - *conflict*: if a document with the specified *_key* value exists already, + The overwrite mode can be further controlled via the `keepNull` and + `mergeObjects` parameters. + - `conflict`: if a document with the specified `_key` value exists already, return a unique constraint violation error so that the insert operation fails. This is also the default behavior in case the overwrite mode is - not set, and the *overwrite* flag is *false* or not set either. - - *keepNull*: The optional *keepNull* parameter can be used to modify - the behavior when handling *null* values. Normally, *null* values - are stored in the database. By setting the *keepNull* parameter to - *false*, this behavior can be changed so that all attributes in - *data* with *null* values will be removed from the target document. + not set, and the `overwrite` flag is `false` or not set either. + - `keepNull`: The optional `keepNull` parameter can be used to modify + the behavior when handling `null` values. Normally, `null` values + are stored in the database. By setting the `keepNull` parameter to + `false`, this behavior can be changed so that all attributes in + `data` with `null` values will be removed from the target document. This option controls the update-insert behavior only. - - *mergeObjects*: Controls whether objects (not arrays) will be + - `mergeObjects`: Controls whether objects (not arrays) will be merged if present in both the existing and the patch document. If - set to *false*, the value in the patch document will overwrite the - existing document's value. If set to *true*, objects will be merged. - The default is *true*. + set to `false`, the value in the patch document will overwrite the + existing document's value. If set to `true`, objects will be merged. + The default is `true`. This option controls the update-insert behavior only. +--- + `collection.insert(array)` `collection.insert(array, options)` These two variants allow to perform the operation on a whole array of -arguments. The behavior is exactly as if *insert* would have been called on all +arguments. The behavior is exactly as if `insert()` would have been called on all members of the array separately and all results are returned in an array. If an error occurs with any of the documents, no exception is risen! Instead of a document an error object is returned in the result array. The options behave @@ -603,72 +584,77 @@ exactly as before. Replace ------- - - - `collection.replace(selector, data)` -Replaces an existing document described by the *selector*, which must -be an object containing the *_id* or *_key* attribute. There must be -a document with that *_id* or *_key* in the current collection. This -document is then replaced with the *data* given as second argument. -Any attribute *_id*, *_key* or *_rev* in *data* is ignored. +Replaces an existing document described by the `selector`, which must +be an object containing the `_id` or `_key` attribute. There must be +a document with that `_id` or `_key` in the current collection. This +document is then replaced with the `data` given as second argument. +Any attribute `_id`, `_key` or `_rev` in `data` is ignored. -The method returns a document with the attributes *_id*, *_key*, *_rev* -and *_oldRev*. The attribute *_id* contains the document handle of the -updated document, the attribute *_rev* contains the document revision of -the updated document, the attribute *_oldRev* contains the revision of +The method returns a document with the attributes `_id`, `_key`, `_rev` +and `_oldRev`. The attribute `_id` contains the document handle of the +updated document, the attribute `_rev` contains the document revision of +the updated document, the attribute `_oldRev` contains the revision of the old (now replaced) document. -If the selector contains a *_rev* attribute, the method first checks +If the selector contains a `_rev` attribute, the method first checks that the specified revision is the current revision of that document. If not, there is a conflict, and an error is thrown. +--- + `collection.replace(selector, data, options)` -As before, but *options* must be an object that can contain the following +As before, but `options` must be an object that can contain the following boolean attributes: - - *waitForSync*: One can force + - `waitForSync`: One can force synchronization of the document creation operation to disk even in - case that the *waitForSync* flag is been disabled for the entire - collection. Thus, the *waitForSync* option can be used to force + case that the `waitForSync` flag is been disabled for the entire + collection. Thus, the `waitForSync` option can be used to force synchronization of just specific operations. To use this, set the - *waitForSync* parameter to *true*. If the *waitForSync* parameter - is not specified or set to *false*, then the collection's default - *waitForSync* behavior is applied. The *waitForSync* parameter + `waitForSync` parameter to `true`. If the `waitForSync` parameter + is not specified or set to `false`, then the collection's default + `waitForSync` behavior is applied. The `waitForSync` parameter cannot be used to disable synchronization for collections that have - a default *waitForSync* value of *true*. - - *overwrite*: If this flag is set to *true*, a *_rev* attribute in + a default `waitForSync` value of `true`. + - `overwrite`: If this flag is set to `true`, a `_rev` attribute in the selector is ignored. - - *returnNew*: If this flag is set to *true*, the complete new document - is returned in the output under the attribute *new*. - - *returnOld*: If this flag is set to *true*, the complete previous + - `returnNew`: If this flag is set to `true`, the complete new document + is returned in the output under the attribute `new`. + - `returnOld`: If this flag is set to `true`, the complete previous revision of the document is returned in the output under the - attribute *old*. - - *silent*: If this flag is set to *true*, no output is returned. + attribute `old`. + - `silent`: If this flag is set to `true`, no output is returned. + +--- `collection.replace(document-handle, data)` `collection.replace(document-handle, data, options)` -As before. Instead of *selector* a *document-handle* can be passed as +As before. Instead of `selector` a `document-handle` can be passed as first argument. No revision precondition is tested. +--- + `collection.replace(document-key, data)` `collection.replace(document-key, data, options)` -As before. Instead of *selector* a *document-key* can be passed as +As before. Instead of `selector` a `document-key` can be passed as first argument. No revision precondition is tested. -`collection.replace(selectorarray, dataarray)` +--- + +`collection.replace(selector-array, data-array)` -`collection.replace(selectorarray, dataarray, options)` +`collection.replace(selector-array, data-array, options)` These two variants allow to perform the operation on a whole array of -selector/data pairs. The two arrays given as *selectorarray* and *dataarray* -must have the same length. The behavior is exactly as if *replace* would have +selector/data pairs. The two arrays given as `selector-array` and `data-array` +must have the same length. The behavior is exactly as if `replace()` would have been called on all respective members of the two arrays and all results are returned in an array. If an error occurs with any of the documents, no exception is risen! Instead of a document an error object is returned in the @@ -676,7 +662,6 @@ result array. The options behave exactly as before. **Examples** - Create and update a document: {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -707,92 +692,96 @@ Use a document handle: {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - Update ------ - - `collection.update(selector, data)` -Updates an existing document described by the *selector*, which must -be an object containing the *_id* or *_key* attribute. There must be -a document with that *_id* or *_key* in the current collection. This -document is then patched with the *data* given as second argument. -Any attribute *_id*, *_key* or *_rev* in *data* is ignored. +Updates an existing document described by the `selector`, which must +be an object containing the `_id` or `_key` attribute. There must be +a document with that `_id` or `_key` in the current collection. This +document is then patched with the `data` given as second argument. +Any attribute `_id`, `_key` or `_rev` in `data` is ignored. -The method returns a document with the attributes *_id*, *_key*, *_rev* -and *_oldRev*. The attribute *_id* contains the document handle of the -updated document, the attribute *_rev* contains the document revision of -the updated document, the attribute *_oldRev* contains the revision of +The method returns a document with the attributes `_id`, `_key`, `_rev` +and `_oldRev`. The attribute `_id` contains the document handle of the +updated document, the attribute `_rev` contains the document revision of +the updated document, the attribute `_oldRev` contains the revision of the old (now updated) document. -If the selector contains a *_rev* attribute, the method first checks +If the selector contains a `_rev` attribute, the method first checks that the specified revision is the current revision of that document. If not, there is a conflict, and an error is thrown. +--- + `collection.update(selector, data, options)` -As before, but *options* must be an object that can contain the following +As before, but `options` must be an object that can contain the following boolean attributes: - - *waitForSync*: One can force + - `waitForSync`: One can force synchronization of the document creation operation to disk even in - case that the *waitForSync* flag is been disabled for the entire - collection. Thus, the *waitForSync* option can be used to force + case that the `waitForSync` flag is been disabled for the entire + collection. Thus, the `waitForSync` option can be used to force synchronization of just specific operations. To use this, set the - *waitForSync* parameter to *true*. If the *waitForSync* parameter - is not specified or set to *false*, then the collection's default - *waitForSync* behavior is applied. The *waitForSync* parameter + `waitForSync` parameter to `true`. If the `waitForSync` parameter + is not specified or set to `false`, then the collection's default + `waitForSync` behavior is applied. The `waitForSync` parameter cannot be used to disable synchronization for collections that have - a default *waitForSync* value of *true*. - - *overwrite*: If this flag is set to *true*, a *_rev* attribute in + a default `waitForSync` value of `true`. + - `overwrite`: If this flag is set to `true`, a `_rev` attribute in the selector is ignored. - - *returnNew*: If this flag is set to *true*, the complete new document - is returned in the output under the attribute *new*. - - *returnOld*: If this flag is set to *true*, the complete previous + - `returnNew`: If this flag is set to `true`, the complete new document + is returned in the output under the attribute `new`. + - `returnOld`: If this flag is set to `true`, the complete previous revision of the document is returned in the output under the - attribute *old*. - - *silent*: If this flag is set to *true*, no output is returned. - - *keepNull*: The optional *keepNull* parameter can be used to modify - the behavior when handling *null* values. Normally, *null* values - are stored in the database. By setting the *keepNull* parameter to - *false*, this behavior can be changed so that all attributes in - *data* with *null* values will be removed from the target document. - - *mergeObjects*: Controls whether objects (not arrays) will be + attribute `old`. + - `silent`: If this flag is set to `true`, no output is returned. + - `keepNull`: The optional `keepNull` parameter can be used to modify + the behavior when handling `null` values. Normally, `null` values + are stored in the database. By setting the `keepNull` parameter to + `false`, this behavior can be changed so that all attributes in + `data` with `null` values will be removed from the target document. + - `mergeObjects`: Controls whether objects (not arrays) will be merged if present in both the existing and the patch document. If - set to *false*, the value in the patch document will overwrite the - existing document's value. If set to *true*, objects will be merged. - The default is *true*. + set to `false`, the value in the patch document will overwrite the + existing document's value. If set to `true`, objects will be merged. + The default is `true`. +--- `collection.update(document-handle, data)` `collection.update(document-handle, data, options)` -As before. Instead of *selector* a *document-handle* can be passed as +As before. Instead of `selector` a `document-handle` can be passed as first argument. No revision precondition is tested. +--- + `collection.update(document-key, data)` `collection.update(document-key, data, options)` -As before. Instead of *selector* a *document-key* can be passed as +--- + +As before. Instead of `selector` a `document-key` can be passed as first argument. No revision precondition is tested. -`collection.update(selectorarray, dataarray)` +`collection.update(selector-array, data-array)` -`collection.update(selectorarray, dataarray, options)` +`collection.update(selector-array, data-array, options)` These two variants allow to perform the operation on a whole array of -selector/data pairs. The two arrays given as *selectorarray* and *dataarray* -must have the same length. The behavior is exactly as if *update* would have +selector/data pairs. The two arrays given as `selector-array` and `data-array` +must have the same length. The behavior is exactly as if `update()` would have been called on all respective members of the two arrays and all results are returned in an array. If an error occurs with any of the documents, no exception is risen! Instead of a document an error object is returned in the result array. The options behave exactly as before. -*Examples* +**Examples** Create and update a document: @@ -872,70 +861,75 @@ Patching array values: {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - Remove ------ - - `collection.remove(selector)` -Removes a document described by the *selector*, which must be an object -containing the *_id* or *_key* attribute. There must be a document with -that *_id* or *_key* in the current collection. This document is then +Removes a document described by the `selector`, which must be an object +containing the `_id` or `_key` attribute. There must be a document with +that `_id` or `_key` in the current collection. This document is then removed. -The method returns a document with the attributes *_id*, *_key* and *_rev*. -The attribute *_id* contains the document handle of the -removed document, the attribute *_rev* contains the document revision of +The method returns a document with the attributes `_id`, `_key` and `_rev`. +The attribute `_id` contains the document handle of the +removed document, the attribute `_rev` contains the document revision of the removed document. -If the selector contains a *_rev* attribute, the method first checks +If the selector contains a `_rev` attribute, the method first checks that the specified revision is the current revision of that document. If not, there is a conflict, and an error is thrown. +--- + `collection.remove(selector, options)` -As before, but *options* must be an object that can contain the following +As before, but `options` must be an object that can contain the following boolean attributes: - - *waitForSync*: One can force + - `waitForSync`: One can force synchronization of the document creation operation to disk even in - case that the *waitForSync* flag is been disabled for the entire - collection. Thus, the *waitForSync* option can be used to force + case that the `waitForSync` flag is been disabled for the entire + collection. Thus, the `waitForSync` option can be used to force synchronization of just specific operations. To use this, set the - *waitForSync* parameter to *true*. If the *waitForSync* parameter - is not specified or set to *false*, then the collection's default - *waitForSync* behavior is applied. The *waitForSync* parameter + `waitForSync` parameter to `true`. If the `waitForSync` parameter + is not specified or set to `false`, then the collection's default + `waitForSync` behavior is applied. The `waitForSync` parameter cannot be used to disable synchronization for collections that have - a default *waitForSync* value of *true*. - - *overwrite*: If this flag is set to *true*, a *_rev* attribute in + a default `waitForSync` value of `true`. + - `overwrite`: If this flag is set to `true`, a `_rev` attribute in the selector is ignored. - - *returnOld*: If this flag is set to *true*, the complete previous + - `returnOld`: If this flag is set to `true`, the complete previous revision of the document is returned in the output under the - attribute *old*. - - *silent*: If this flag is set to *true*, no output is returned. + attribute `old`. + - `silent`: If this flag is set to `true`, no output is returned. + +--- `collection.remove(document-handle)` `collection.remove(document-handle, options)` -As before. Instead of *selector* a *document-handle* can be passed as +As before. Instead of `selector` a `document-handle` can be passed as first argument. No revision check is performed. +--- + `collection.remove(document-key)` `collection.remove(document-handle, options)` -As before. Instead of *selector* a *document-handle* can be passed as +As before. Instead of `selector` a `document-handle` can be passed as first argument. No revision check is performed. -`collection.remove(selectorarray)` +--- + +`collection.remove(selector-array)` -`collection.remove(selectorarray,options)` +`collection.remove(selector-array, options)` These two variants allow to perform the operation on a whole array of -selectors. The behavior is exactly as if *remove* would have been called on all +selectors. The behavior is exactly as if `remove()` would have been called on all members of the array separately and all results are returned in an array. If an error occurs with any of the documents, no exception is risen! Instead of a document an error object is returned in the result array. The options behave @@ -943,7 +937,6 @@ exactly as before. **Examples** - Remove a document: {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -977,27 +970,22 @@ Remove a document with a conflict: {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - Remove By Keys -------------- - - - `collection.removeByKeys(keys)` - Looks up the documents in the specified collection using the array of keys provided, and removes all documents from the collection whose keys are -contained in the *keys* array. Keys for which no document can be found in +contained in the `keys` array. Keys for which no document can be found in the underlying collection are ignored, and no exception will be thrown for them. The method will return an object containing the number of removed documents -in the *removed* sub-attribute, and the number of not-removed/ignored -documents in the *ignored* sub-attribute. +in the `removed` sub-attribute, and the number of not-removed/ignored +documents in the `ignored` sub-attribute. -This method is deprecated in favour of the array variant of *remove*. +This method is deprecated in favor of the array variant of `remove()`. **Examples** @@ -1021,34 +1009,34 @@ This method is deprecated in favour of the array variant of *remove*. Remove By Example ----------------- - - - `collection.removeByExample(example)` Removes all documents matching an example. +--- + `collection.removeByExample(document, waitForSync)` -The optional *waitForSync* parameter can be used to force synchronization +The optional `waitForSync` parameter can be used to force synchronization of the document deletion operation to disk even in case that the -*waitForSync* flag had been disabled for the entire collection. Thus, -the *waitForSync* parameter can be used to force synchronization of just -specific operations. To use this, set the *waitForSync* parameter to -*true*. If the *waitForSync* parameter is not specified or set to -*false*, then the collection's default *waitForSync* behavior is -applied. The *waitForSync* parameter cannot be used to disable -synchronization for collections that have a default *waitForSync* value -of *true*. +`waitForSync` flag had been disabled for the entire collection. Thus, +the `waitForSync` parameter can be used to force synchronization of just +specific operations. To use this, set the `waitForSync` parameter to +`true`. If the `waitForSync` parameter is not specified or set to +`false`, then the collection's default `waitForSync` behavior is +applied. The `waitForSync` parameter cannot be used to disable +synchronization for collections that have a default `waitForSync` value +of `true`. + +--- `collection.removeByExample(document, waitForSync, limit)` -The optional *limit* parameter can be used to restrict the number of -removals to the specified value. If *limit* is specified but less than the +The optional `limit` parameter can be used to restrict the number of +removals to the specified value. If `limit` is specified but less than the number of documents in the collection, it is undefined which documents are removed. - **Examples** {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -1066,37 +1054,37 @@ removed. Replace By Example ------------------ - - - `collection.replaceByExample(example, newValue)` Replaces all documents matching an example with a new document body. -The entire document body of each document matching the *example* will be -replaced with *newValue*. The document meta-attributes *_id*, *_key* and -*_rev* will not be replaced. +The entire document body of each document matching the `example` will be +replaced with `newValue`. The document meta-attributes `_id`, `_key` and +`_rev` will not be replaced. + +--- `collection.replaceByExample(document, newValue, waitForSync)` -The optional *waitForSync* parameter can be used to force synchronization +The optional `waitForSync` parameter can be used to force synchronization of the document replacement operation to disk even in case that the -*waitForSync* flag had been disabled for the entire collection. Thus, -the *waitForSync* parameter can be used to force synchronization of just -specific operations. To use this, set the *waitForSync* parameter to -*true*. If the *waitForSync* parameter is not specified or set to -*false*, then the collection's default *waitForSync* behavior is -applied. The *waitForSync* parameter cannot be used to disable -synchronization for collections that have a default *waitForSync* value -of *true*. +`waitForSync` flag had been disabled for the entire collection. Thus, +the `waitForSync` parameter can be used to force synchronization of just +specific operations. To use this, set the `waitForSync` parameter to +`true`. If the `waitForSync` parameter is not specified or set to +`false`, then the collection's default `waitForSync` behavior is +applied. The `waitForSync` parameter cannot be used to disable +synchronization for collections that have a default `waitForSync` value +of `true`. + +--- `collection.replaceByExample(document, newValue, waitForSync, limit)` -The optional *limit* parameter can be used to restrict the number of -replacements to the specified value. If *limit* is specified but less than +The optional `limit` parameter can be used to restrict the number of +replacements to the specified value. If `limit` is specified but less than the number of documents in the collection, it is undefined which documents are replaced. - **Examples** {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -1114,55 +1102,57 @@ replaced. Update By Example ----------------- - - - `collection.updateByExample(example, newValue)` Partially updates all documents matching an example with a new document body. Specific attributes in the document body of each document matching the -*example* will be updated with the values from *newValue*. -The document meta-attributes *_id*, *_key* and *_rev* cannot be updated. +`example` will be updated with the values from `newValue`. +The document meta-attributes `_id`, `_key` and `_rev` cannot be updated. Partial update could also be used to append new fields, if there were no old field with same name. +--- + `collection.updateByExample(document, newValue, keepNull, waitForSync)` -The optional *keepNull* parameter can be used to modify the behavior when -handling *null* values. Normally, *null* values are stored in the -database. By setting the *keepNull* parameter to *false*, this behavior -can be changed so that all attributes in *data* with *null* values will +The optional `keepNull` parameter can be used to modify the behavior when +handling `null` values. Normally, `null` values are stored in the +database. By setting the `keepNull` parameter to `false`, this behavior +can be changed so that all attributes in `data` with `null` values will be removed from the target document. -The optional *waitForSync* parameter can be used to force synchronization +The optional `waitForSync` parameter can be used to force synchronization of the document replacement operation to disk even in case that the -*waitForSync* flag had been disabled for the entire collection. Thus, -the *waitForSync* parameter can be used to force synchronization of just -specific operations. To use this, set the *waitForSync* parameter to -*true*. If the *waitForSync* parameter is not specified or set to -*false*, then the collection's default *waitForSync* behavior is -applied. The *waitForSync* parameter cannot be used to disable -synchronization for collections that have a default *waitForSync* value -of *true*. +`waitForSync` flag had been disabled for the entire collection. Thus, +the `waitForSync` parameter can be used to force synchronization of just +specific operations. To use this, set the `waitForSync` parameter to +`true`. If the `waitForSync` parameter is not specified or set to +`false`, then the collection's default `waitForSync` behavior is +applied. The `waitForSync` parameter cannot be used to disable +synchronization for collections that have a default `waitForSync` value +of `true`. + +--- `collection.updateByExample(document, newValue, keepNull, waitForSync, limit)` -The optional *limit* parameter can be used to restrict the number of -updates to the specified value. If *limit* is specified but less than +The optional `limit` parameter can be used to restrict the number of +updates to the specified value. If `limit` is specified but less than the number of documents in the collection, it is undefined which documents are updated. +--- + `collection.updateByExample(document, newValue, options)` Using this variant, the options for the operation can be passed using an object with the following sub-attributes: - - *keepNull* - - *waitForSync* - - *limit* - - *mergeObjects* - + - `keepNull` + - `waitForSync` + - `limit` + - `mergeObjects` **Examples** @@ -1185,15 +1175,12 @@ Collection type `collection.type()` Returns the type of a collection. Possible values are: -- 2: document collection -- 3: edge collection - +- `2`: document collection +- `3`: edge collection Convert a document key to a document id --------------------------------------- - - `collection.documentId(documentKey)` Qualifies the given document key with this collection's name to derive a @@ -1202,7 +1189,6 @@ valid document id. Throws if the document key is invalid. Note that this method does not check whether the document already exists in this collection. - Edges ----- @@ -1212,13 +1198,15 @@ edges. The following methods, however, are specific to edges. `edge-collection.edges(vertex)` -The *edges* operator finds all edges starting from (outbound) or ending -in (inbound) *vertex*. +The `edges()` operator finds all edges starting from (outbound) or ending +in (inbound) `vertex`. + +--- `edge-collection.edges(vertices)` -The *edges* operator finds all edges starting from (outbound) or ending -in (inbound) a document from *vertices*, which must be a list of documents +The `edges` operator finds all edges starting from (outbound) or ending +in (inbound) a document from `vertices`, which must be a list of documents or document handles. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -1240,14 +1228,18 @@ or document handles. {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} +--- + `edge-collection.inEdges(vertex)` -The *edges* operator finds all edges ending in (inbound) *vertex*. +The `inEdges()` operator finds all edges ending in (inbound) `vertex`. + +--- `edge-collection.inEdges(vertices)` -The *edges* operator finds all edges ending in (inbound) a document from -*vertices*, which must a list of documents or document handles. +The `inEdges()` operator finds all edges ending in (inbound) a document from +`vertices`, which must a list of documents or document handles. **Examples** @@ -1271,16 +1263,19 @@ The *edges* operator finds all edges ending in (inbound) a document from {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} +--- + `edge-collection.outEdges(vertex)` -The *edges* operator finds all edges starting from (outbound) -*vertices*. +The `outEdges()` operator finds all edges starting from (outbound) +`vertices`. -`edge-collection.outEdges(vertices)` +--- -The *edges* operator finds all edges starting from (outbound) a document -from *vertices*, which must a list of documents or document handles. +`edge-collection.outEdges(vertices)` +The `outEdges()` operator finds all edges starting from (outbound) a document +from `vertices`, which must a list of documents or document handles. **Examples** @@ -1310,16 +1305,16 @@ Misc `collection.iterate(iterator, options)` Iterates over some elements of the collection and apply the function -*iterator* to the elements. The function will be called with the +`iterator` to the elements. The function will be called with the document as first argument and the current number (starting with 0) as second argument. -*options* must be an object with the following attributes: +`options` must be an object with the following attributes: - - *limit* (optional, default none): use at most *limit* documents. + - `limit` (optional, default none): use at most `limit` documents. - - *probability* (optional, default all): a number between *0* and - *1*. Documents are chosen with this probability. + - `probability` (optional, default all): a number between `0` and + `1`. Documents are chosen with this probability. **Examples** diff --git a/3.10/data-modeling-documents.md b/3.10/data-modeling-documents.md index 540fe22958..9aaffc0b0e 100644 --- a/3.10/data-modeling-documents.md +++ b/3.10/data-modeling-documents.md @@ -1,6 +1,6 @@ --- layout: default -description: This is an introduction to ArangoDB's interface for working withdocuments from the JavaScript shell arangosh or in JavaScript code inthe server +description: This is an introduction to ArangoDB's interface for working with documents from the JavaScript shell arangosh or in JavaScript code in the server --- Documents ========= diff --git a/3.10/data-modeling-views-database-methods.md b/3.10/data-modeling-views-database-methods.md index 517294a6e4..b4e26ac1ea 100644 --- a/3.10/data-modeling-views-database-methods.md +++ b/3.10/data-modeling-views-database-methods.md @@ -9,8 +9,6 @@ Database Methods View ---- - - `db._view(view-name)` Returns the view with the given name or null if no such view exists. @@ -28,6 +26,8 @@ Returns the view with the given name or null if no such view exists. {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} +--- + `db._view(view-identifier)` Returns the view with the given identifier or null if no such view exists. @@ -61,20 +61,18 @@ Unknown View: Create ------ - - `db._createView(name, type, properties)` Creates a new View. -*name* is a string and the name of the View. No View or collection with the +`name` is a string and the name of the View. No View or collection with the same name may already exist in the current database. For more information on valid View names please refer to the [naming conventions](data-modeling-naming-conventions.html). -*type* must be the string `"arangosearch"`, as it is currently the only +`type` must be the string `"arangosearch"`, as it is currently the only supported View type. -*properties* is an optional object containing View configuration specific +`properties` is an optional object containing View configuration specific to each View-type. - [`arangosearch` View definition](arangosearch-views.html#view-definitionmodification) - [`search-alias` View definition](arangosearch-views-search-alias.html#view-definition) @@ -95,8 +93,6 @@ to each View-type. All Views --------- - - `db._views()` Returns all views of the given database. @@ -119,16 +115,16 @@ List all views: Drop ---- - - `db._dropView(name)` -Drops a view named *name* and all its data. No error is thrown if there is +Drops a view named `name` and all its data. No error is thrown if there is no such view. +--- + `db._dropView(view-identifier)` -Drops a view identified by *view-identifier* with all its data. No error is +Drops a view identified by `view-identifier` with all its data. No error is thrown if there is no such view. **Examples** diff --git a/3.10/data-modeling-views-view-methods.md b/3.10/data-modeling-views-view-methods.md index 6747fd998c..05dccb2430 100644 --- a/3.10/data-modeling-views-view-methods.md +++ b/3.10/data-modeling-views-view-methods.md @@ -9,8 +9,6 @@ View Methods Drop ---- - - `view.drop()` Drops a View and all its data. @@ -35,8 +33,6 @@ Drop a View: Query Name ---------- - - `view.name()` Returns the name of the View. @@ -58,12 +54,10 @@ Get View name: Rename ------ - - `view.rename(new-name)` -Renames a view using the *new-name*. The *new-name* must not already be used by -a different view or collection in the same database. *new-name* must also be a +Renames a view using the `new-name`. The `new-name` must not already be used by +a different view or collection in the same database. `new-name` must also be a valid view name. For more information on valid view names please refer to the [naming conventions](data-modeling-naming-conventions.html). @@ -91,8 +85,6 @@ The rename method is not available in clusters. Query Type ---------- - - `view.type()` Returns the type of the View. @@ -114,8 +106,6 @@ Get View type: Query Properties ---------------- - - `view.properties()` Returns the properties of the View. The format of the result is specific to @@ -138,16 +128,14 @@ Get View properties: Modify Properties ----------------- - - `view.properties(new-properties, partialUpdate)` -Modifies the properties of the *view*. The format of the result is specific to +Modifies the properties of the `view`. The format of the result is specific to each of the supported [View Types](data-modeling-views.html). -*partialUpdate* is an optional Boolean parameter (`true` by default) that -determines how the *new-properties* object is merged with current View properties -(adds or updates *new-properties* properties to current if `true` replaces all +`partialUpdate` is an optional Boolean parameter (`true` by default) that +determines how the `new-properties` object is merged with current View properties +(adds or updates `new-properties` properties to current if `true` replaces all properties if `false`). For the available properties of the supported View types, see: diff --git a/3.11/data-modeling-collections-collection-methods.md b/3.11/data-modeling-collections-collection-methods.md index 8aa7cf85af..5a15545a45 100644 --- a/3.11/data-modeling-collections-collection-methods.md +++ b/3.11/data-modeling-collections-collection-methods.md @@ -8,8 +8,6 @@ Collection Methods Drop ---- - - Drops a collection: `collection.drop(options)` @@ -59,8 +57,6 @@ Drop a system collection: Truncate -------- - - Truncate a collection: `collection.truncate()` @@ -90,8 +86,6 @@ Truncates a collection: Compact ------- - - Introduced in: v3.4.5 Compacts the data of a collection: @@ -286,8 +280,6 @@ Change a property: Figures ------- - - Return the figures of a collection: `collection.figures(details)` @@ -338,8 +330,6 @@ Get the detailed collection figures: GetResponsibleShard ------------------- - - Return the responsible shard for the given document: `collection.getResponsibleShard(document)` @@ -356,8 +346,6 @@ in clusters. Shards ------ - - Return the available shards for the collection: `collection.shards(details)` @@ -378,8 +366,6 @@ The `shards()` method can only be used on Coordinators in clusters. Load ---- - - Load a collection: `collection.load()` @@ -414,8 +400,6 @@ any need to load a collection with the RocksDB storage engine. Revision -------- - - Return the revision ID of a collection: `collection.revision()` @@ -435,8 +419,6 @@ as an opaque string, and only use it for equality/non-equality comparisons. Checksum -------- - - Calculate a checksum for the data in a collection: `collection.checksum(withRevisions, withData)` @@ -454,8 +436,6 @@ checksumming makes the calculation slower, but is more accurate. Unload ------ - - Unload a collection: `collection.unload()` @@ -491,8 +471,6 @@ any need to unload a collection with the RocksDB storage engine. Rename ------ - - Rename a collection: `collection.rename(new-name)` diff --git a/3.11/data-modeling-collections-database-methods.md b/3.11/data-modeling-collections-database-methods.md index a616868071..40a2d023c4 100644 --- a/3.11/data-modeling-collections-database-methods.md +++ b/3.11/data-modeling-collections-database-methods.md @@ -8,8 +8,6 @@ Database Methods Collection ---------- - - Return a single collection: `db._collection(collection-name)` @@ -17,6 +15,8 @@ Return a single collection: Returns the collection with the given name, or `null` if no such collection exists. +--- + `db._collection(collection-identifier)` Returns the collection with the given identifier or `null` if no such @@ -57,8 +57,6 @@ Unknown collection: Create ------ - - Create a new document or edge collection: `db._create(collection-name)` @@ -68,6 +66,8 @@ If the collection name already exists or if the name format is invalid, an error is thrown. For more information on valid collection names please refer to the [naming conventions](data-modeling-naming-conventions.html). +--- + `db._create(collection-name, properties)` `properties` must be an object with the following attributes: @@ -362,7 +362,7 @@ With a special key option: {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - +--- Create a new edge collection: @@ -372,6 +372,8 @@ Creates a new edge collection named `collection-name`. If the collection name already exists an error is thrown. The default value for `waitForSync` is `false`. +--- + `db._createEdgeCollection(collection-name, properties)` `properties` must be an object with the following attributes: @@ -379,7 +381,7 @@ for `waitForSync` is `false`. - `waitForSync` (optional, default: `false`): If `true`, creating a document only returns after the data is synced to disk. - +--- Create a new document collection: @@ -391,8 +393,6 @@ document name already exists and error is thrown. All Collections --------------- - - Return all collections: `db._collections()` @@ -415,8 +415,6 @@ Returns all collections of the given database. Collection Name --------------- - - Select a collection from the database: `db.collection-name` @@ -441,24 +439,28 @@ default properties. Drop ---- - - Drop a collection: `db._drop(collection)` Drops a `collection` and all its indexes and data. +--- + `db._drop(collection-identifier)` Drops a collection identified by `collection-identifier` with all its indexes and data. No error is thrown if there is no such collection. +--- + `db._drop(collection-name)` Drops a collection named `collection-name` and all its indexes. No error is thrown if there is no such collection. +--- + `db._drop(collection-name, options)` In order to drop a system collection, you must specify an `options` object @@ -518,8 +520,6 @@ Drops a system collection Truncate -------- - - Truncate a collection: `db._truncate(collection)` @@ -527,11 +527,15 @@ Truncate a collection: Truncates a `collection`, removing all documents but keeping all its indexes. +--- + `db._truncate(collection-identifier)` Truncates a collection identified by `collection-identified`. No error is thrown if there is no such collection. +--- + `db._truncate(collection-name)` Truncates a collection named `collection-name`. No error is thrown if diff --git a/3.11/data-modeling-collections.md b/3.11/data-modeling-collections.md index 82c0f4b997..6099794464 100644 --- a/3.11/data-modeling-collections.md +++ b/3.11/data-modeling-collections.md @@ -1,6 +1,6 @@ --- layout: default -description: This is an introduction to ArangoDB's interface for collections and how to handlecollections from the JavaScript shell arangosh +description: This is an introduction to ArangoDB's interface for collections and how to handle collections from the JavaScript shell arangosh --- JavaScript Interface to Collections =================================== @@ -25,33 +25,38 @@ perspective, the [collection name](appendix-glossary.html#collection-name) should be used, i.e.: ### Collection + `db._collection(collection-name)` A collection is created by a ["db._create"](data-modeling-collections-database-methods.html) call. -For example: Assume that the [collection identifier](appendix-glossary.html#collection-identifier) is *7254820* and the name is -*demo*, then the collection can be accessed as: +For example: Assume that the [collection identifier](appendix-glossary.html#collection-identifier) is `7254820` and the name is +`demo`, then the collection can be accessed as: - db._collection("demo") +```js +db._collection("demo") +``` -If no collection with such a name exists, then *null* is returned. +If no collection with such a name exists, then `null` is returned. There is a short-cut that can be used for non-system collections: ### Collection name + `db.collection-name` -This call will either return the collection named *db.collection-name* or create +This call will either return the collection named `db.collection-name` or create a new one with that name and a set of default properties. -**Note**: Creating a collection on the fly using *db.collection-name* is +**Note**: Creating a collection on the fly using `db.collection-name` is not recommend and does not work in _arangosh_. To create a new collection, please -use +use `db._create()`. ### Create + `db._create(collection-name)` -This call will create a new collection called *collection-name*. +This call will create a new collection called `collection-name`. This method is a database method and is documented in detail at [Database Methods](data-modeling-collections-database-methods.html#create) ### Synchronous replication diff --git a/3.11/data-modeling-databases-working-with.md b/3.11/data-modeling-databases-working-with.md index f4bbb23856..854f7d67ca 100644 --- a/3.11/data-modeling-databases-working-with.md +++ b/3.11/data-modeling-databases-working-with.md @@ -14,9 +14,8 @@ database only. ### Name - +Return the database name: -return the database name `db._name()` Returns the name of the current database as a string. @@ -34,9 +33,8 @@ Returns the name of the current database as a string. ### ID - +Return the database ID: -return the database id `db._id()` Returns the id of the current database as a string. @@ -54,9 +52,8 @@ Returns the id of the current database as a string. ### Path - +Return the path to database files: -return the path to database files `db._path()` Returns the filesystem path of the current database as a string. @@ -74,36 +71,34 @@ Returns the filesystem path of the current database as a string. ### isSystem - +Return the database type: -return the database type `db._isSystem()` -Returns whether the currently used database is the *_system* database. +Returns whether the currently used database is the `_system` database. The system database has some special privileges and properties, for example, database management operations such as create or drop can only be executed -from within this database. Additionally, the *_system* database itself +from within this database. Additionally, the `_system` database itself cannot be dropped. ### Properties - +Return the path to database files: -return the path to database files `db._properties()` Returns the properties of the current database as an object with the following attributes: -- *id*: the database id -- *name*: the database name -- *isSystem*: the database type -- *path*: the path to database files -- *sharding*: the sharding method to use for new collections *(Cluster only)* -- *replicationFactor*: default replication factor for new collections - *(Cluster only)* -- *writeConcern*: a shard will refuse to write if less than this amount - of copies are in sync *(Cluster only)* +- `id`: the database ID +- `name`: the database name +- `isSystem`: the database type +- `path`: the path to the database files (not used anymore, always `""`) +- `sharding`: the sharding method to use for new collections _(cluster only)_ +- `replicationFactor`: default replication factor for new collections + _(cluster only)_ +- `writeConcern`: a shard will refuse to write if less than this amount + of copies are in sync _(cluster only)_ **Examples** @@ -118,20 +113,19 @@ attributes: ### Use Database - +Change the current database: -change the current database `db._useDatabase(name)` -Changes the current database to the database specified by *name*. Note -that the database specified by *name* must already exist. +Changes the current database to the database specified by `name`. Note +that the database specified by `name` must already exist. Changing the database might be disallowed in some contexts, for example server-side actions (including Foxx). When performing this command from arangosh, the current credentials (username and password) will be re-used. These credentials might not be valid to -connect to the database specified by *name*. Additionally, the database +connect to the database specified by `name`. Additionally, the database only be accessed from certain endpoints only. In this case, switching the database might not work, and the connection / session should be closed and restarted with different username and password credentials and/or @@ -139,58 +133,56 @@ endpoint data. ### List Databases - +Return the list of all existing databases: -return the list of all existing databases `db._databases()` Returns the list of all databases. This method can only be used from within -the *_system* database. +the `_system` database. ### Create Database - +Create a new database: -create a new database `db._createDatabase(name, options, users)` -Creates a new database with the name specified by *name*. +Creates a new database with the name specified by `name`. There are restrictions for database names (see [DatabaseNames](data-modeling-naming-conventions-database-names.html)). Note that even if the database is created successfully, there will be no change into the current database to the new database. Changing the current database must explicitly be requested by using the -*db._useDatabase* method. +`db._useDatabase()` method. -The *options* attribute can be used to set defaults for collections that will -be created in the new database (*Cluster only*): +The `options` attribute can be used to set defaults for collections that will +be created in the new database (_cluster only_): -- *sharding*: The sharding method to use. Valid values are: `""` or `"single"`. +- `sharding`: The sharding method to use. Valid values are: `""` or `"single"`. Setting this option to `"single"` will enable the OneShard feature in the Enterprise Edition. -- *replicationFactor*: Default replication factor. Special values include +- `replicationFactor`: Default replication factor. Special values include `"satellite"`, which will replicate the collection to every DB-Server, and `1`, which disables replication. -- *writeConcern*: how many copies of each shard are required to be in sync on +- `writeConcern`: how many copies of each shard are required to be in sync on the different DB-Servers. If there are less then these many copies in the - cluster a shard will refuse to write. The value of *writeConcern* can not be - larger than *replicationFactor*. + cluster a shard will refuse to write. The value of `writeConcern` can not be + larger than `replicationFactor`. -The optional *users* attribute can be used to create initial users for +The optional `users` attribute can be used to create initial users for the new database. If specified, it must be a list of user objects. Each user object can contain the following attributes: -- *username*: the user name as a string. This attribute is mandatory. -- *passwd*: the user password as a string. If not specified, then it defaults +- `username`: the user name as a string. This attribute is mandatory. +- `passwd`: the user password as a string. If not specified, then it defaults to an empty string. -- *active*: a boolean flag indicating whether the user account should be - active or not. The default value is *true*. -- *extra*: an optional JSON object with extra user information. The data - contained in *extra* will be stored for the user but not be interpreted +- `active`: a boolean flag indicating whether the user account should be + active or not. The default value is `true`. +- `extra`: an optional JSON object with extra user information. The data + contained in `extra` will be stored for the user but not be interpreted further by ArangoDB. -If no initial users are specified, a default user *root* will be created +If no initial users are specified, a default user `root` will be created with an empty string password. This ensures that the new database will be accessible via HTTP after it is created. @@ -209,20 +201,19 @@ Alternatively, you can specify user data directly. For example: db._createDatabase("newDB", {}, [{ username: "newUser", passwd: "123456", active: true}]) ``` -Those methods can only be used from within the *_system* database. +Those methods can only be used from within the `_system` database. ### Drop Database - +Drop an existing database: -drop an existing database `db._dropDatabase(name)` -Drops the database specified by *name*. The database specified by -*name* must exist. +Drops the database specified by `name`. The database specified by +`name` must exist. -**Note**: Dropping databases is only possible from within the *_system* -database. The *_system* database itself cannot be dropped. +**Note**: Dropping databases is only possible from within the `_system` +database. The `_system` database itself cannot be dropped. Databases are dropped asynchronously, and will be physically removed if all clients have disconnected and references have been garbage-collected. @@ -231,19 +222,20 @@ all clients have disconnected and references have been garbage-collected. Introduced in: v3.5.6, v3.6.7, v3.7.3 -compact the entire data, for all databases +Compact the entire data, for all databases: + `db._compact(options)` This command can be used to reclaim disk space after substantial data deletions have taken place. It requires superuser access. -The optional *options* attribute can be used to get more control over the +The optional `options` attribute can be used to get more control over the compaction. The following attributes can be used in it: -- *changeLevel*: whether or not compacted data should be moved to the minimum - possible level. The default value is *false*. -- *compactBottomMostLevel*: whether or not to compact the bottommost level of - data. The default value is *false*. +- `changeLevel`: whether or not compacted data should be moved to the minimum + possible level. The default value is `false`. +- `compactBottomMostLevel`: whether or not to compact the bottommost level of + data. The default value is `false`. {% hint 'warning' %} This command can cause a full rewrite of all data in all databases, which may @@ -253,7 +245,8 @@ and only when additional I/O load can be tolerated for a prolonged time. ### Engine -retrieve the storage engine type used by the server +Retrieve the storage engine type used by the server: + `db._engine()` Returns the name of the storage engine in use (`rocksdb`), as well @@ -261,7 +254,8 @@ as a list of supported features such as types of indexes. ### Engine statistics -retrieve statistics related to the storage engine +Retrieve statistics related to the storage engine: + `db._engineStats()` Returns some statistics related to the storage engine activity, including figures diff --git a/3.11/data-modeling-databases.md b/3.11/data-modeling-databases.md index d233d2f0f1..057d745f03 100644 --- a/3.11/data-modeling-databases.md +++ b/3.11/data-modeling-databases.md @@ -9,20 +9,20 @@ This is an introduction to managing databases in ArangoDB from within JavaScript. When you have an established connection to ArangoDB, the current -database can be changed explicitly using the *db._useDatabase()* +database can be changed explicitly using the `db._useDatabase()` method. This will switch to the specified database (provided it exists and the user can connect to it). From this point on, any following action in the same shell or connection will use the specified database, unless otherwise specified. -*Note*: If the database is changed, client drivers need to store the +**Note**: If the database is changed, client drivers need to store the current database name on their side, too. This is because connections in ArangoDB do not contain any state information. All state information is contained in the HTTP request/response data. To connect to a specific database after arangosh has started use the command described above. It is also possible to specify a database name when invoking -arangosh. For this purpose, use the command-line parameter *--server.database*, +arangosh. For this purpose, use the command-line parameter `--server.database`, e.g. > arangosh --server.database test @@ -32,4 +32,3 @@ access multiple databases, even if they exist. The only intended and supported way in ArangoDB is to use one database at a time for a command, an action, a script or a query. Operations started in one database must not switch the database later and continue operating in another. - diff --git a/3.11/data-modeling-documents-database-methods.md b/3.11/data-modeling-documents-database-methods.md index 94beb4286c..bb6ab88677 100644 --- a/3.11/data-modeling-documents-database-methods.md +++ b/3.11/data-modeling-documents-database-methods.md @@ -8,36 +8,33 @@ Database Methods Document -------- - - - `db._document(object)` -The *_document* method finds a document given an object *object* -containing the *_id* attribute. The method returns +The `db._document()` method finds a document given an object `object` +containing the `_id` attribute. The method returns the document if it can be found. -An error is thrown if *_rev* is specified but the document found has a +An error is thrown if `_rev` is specified but the document found has a different revision already. An error is also thrown if no document exists -with the given *_id*. +with the given `_id`. Please note that if the method is executed on the arangod server (e.g. from inside a Foxx application), an immutable document object will be returned for performance reasons. It is not possible to change attributes of this immutable object. To update or patch the returned document, it needs to be cloned/copied into a regular JavaScript object first. This is not necessary -if the *_document* method is called from out of arangosh or from any other +if the `db._document()` method is called from out of arangosh or from any other client. +--- + `db._document(document-handle)` -As before. Instead of *object* a *document-handle* can be passed as +As before. Instead of `object` a `document-handle` can be passed as first argument. No revision can be specified in this case. - **Examples** - Returns the document: {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -52,95 +49,89 @@ Returns the document: {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - Exists ------ - - - `db._exists(object)` -The *_exists* method determines whether a document exists given an object -`object` containing the *_id* attribute. +The `db._exists()` method determines whether a document exists given an object +`object` containing the `_id` attribute. -An error is thrown if *_rev* is specified but the document found has a +An error is thrown if `_rev` is specified but the document found has a different revision already. Instead of returning the found document or an error, this method will -only return an object with the attributes *_id*, *_key* and *_rev*, or -*false* if no document with the given *_id* or *_key* exists. It can +only return an object with the attributes `_id`, `_key` and `_rev`, or +`false` if no document with the given `_id` or `_key` exists. It can thus be used for easy existence checks. This method will throw an error if used improperly, e.g. when called with a non-document handle, a non-document, or when a cross-collection request is performed. +--- + `db._exists(document-handle)` -As before. Instead of *object* a *document-handle* can be passed as +As before. Instead of `object` a `document-handle` can be passed as first argument. - Replace ------- - - - `db._replace(selector, data)` -Replaces an existing document described by the *selector*, which must -be an object containing the *_id* attribute. There must be -a document with that *_id* in the current database. This -document is then replaced with the *data* given as second argument. -Any attribute *_id*, *_key* or *_rev* in *data* is ignored. +Replaces an existing document described by the `selector`, which must +be an object containing the `_id` attribute. There must be +a document with that `_id` in the current database. This +document is then replaced with the `data` given as second argument. +Any attribute `_id`, `_key` or `_rev` in `data` is ignored. -The method returns a document with the attributes *_id*, *_key*, *_rev* -and *_oldRev*. The attribute *_id* contains the document handle of the -updated document, the attribute *_rev* contains the document revision of -the updated document, the attribute *_oldRev* contains the revision of +The method returns a document with the attributes `_id`, `_key`, `_rev` +and `_oldRev`. The attribute `_id` contains the document handle of the +updated document, the attribute `_rev` contains the document revision of +the updated document, the attribute `_oldRev` contains the revision of the old (now replaced) document. -If the selector contains a *_rev* attribute, the method first checks +If the selector contains a `_rev` attribute, the method first checks that the specified revision is the current revision of that document. If not, there is a conflict, and an error is thrown. `collection.replace(selector, data, options)` -As before, but *options* must be an object that can contain the following +As before, but `options` must be an object that can contain the following boolean attributes: - - *waitForSync*: One can force + - `waitForSync`: One can force synchronization of the document creation operation to disk even in - case that the *waitForSync* flag is been disabled for the entire - collection. Thus, the *waitForSync* option can be used to force + case that the `waitForSync` flag is been disabled for the entire + collection. Thus, the `waitForSync` option can be used to force synchronization of just specific operations. To use this, set the - *waitForSync* parameter to *true*. If the *waitForSync* parameter - is not specified or set to *false*, then the collection's default - *waitForSync* behavior is applied. The *waitForSync* parameter + `waitForSync` parameter to `true`. If the `waitForSync` parameter + is not specified or set to `false`, then the collection's default + `waitForSync` behavior is applied. The `waitForSync` parameter cannot be used to disable synchronization for collections that have - a default *waitForSync* value of *true*. - - *overwrite*: If this flag is set to *true*, a *_rev* attribute in + a default `waitForSync` value of `true`. + - `overwrite`: If this flag is set to `true`, a `_rev` attribute in the selector is ignored. - - *returnNew*: If this flag is set to *true*, the complete new document - is returned in the output under the attribute *new*. - - *returnOld*: If this flag is set to *true*, the complete previous + - `returnNew`: If this flag is set to `true`, the complete new document + is returned in the output under the attribute `new`. + - `returnOld`: If this flag is set to `true`, the complete previous revision of the document is returned in the output under the - attribute *old*. - - *silent*: If this flag is set to *true*, no output is returned. + attribute `old`. + - `silent`: If this flag is set to `true`, no output is returned. + +--- `db._replace(document-handle, data)` `db._replace(document-handle, data, options)` -As before. Instead of *selector* a *document-handle* can be passed as +As before. Instead of `selector` a `document-handle` can be passed as first argument. No revision precondition is tested. - **Examples** - Create and replace a document: {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -156,76 +147,74 @@ Create and replace a document: {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - Update ------ - - `db._update(selector, data)` -Updates an existing document described by the *selector*, which must -be an object containing the *_id* attribute. There must be -a document with that *_id* in the current database. This -document is then patched with the *data* given as second argument. -Any attribute *_id*, *_key* or *_rev* in *data* is ignored. +Updates an existing document described by the `selector`, which must +be an object containing the `_id` attribute. There must be +a document with that `_id` in the current database. This +document is then patched with the `data` given as second argument. +Any attribute `_id`, `_key` or `_rev` in `data` is ignored. -The method returns a document with the attributes *_id*, *_key*, *_rev* -and *_oldRev*. The attribute *_id* contains the document handle of the -updated document, the attribute *_rev* contains the document revision of -the updated document, the attribute *_oldRev* contains the revision of +The method returns a document with the attributes `_id`, `_key`, `_rev` +and `_oldRev`. The attribute `_id` contains the document handle of the +updated document, the attribute `_rev` contains the document revision of +the updated document, the attribute `_oldRev` contains the revision of the old (now updated) document. -If the selector contains a *_rev* attribute, the method first checks +If the selector contains a `_rev` attribute, the method first checks that the specified revision is the current revision of that document. If not, there is a conflict, and an error is thrown. +--- + `db._update(selector, data, options)` -As before, but *options* must be an object that can contain the following +As before, but `options` must be an object that can contain the following boolean attributes: - - *waitForSync*: One can force + - `waitForSync`: One can force synchronization of the document creation operation to disk even in - case that the *waitForSync* flag is been disabled for the entire - collection. Thus, the *waitForSync* option can be used to force + case that the `waitForSync` flag is been disabled for the entire + collection. Thus, the `waitForSync` option can be used to force synchronization of just specific operations. To use this, set the - *waitForSync* parameter to *true*. If the *waitForSync* parameter - is not specified or set to *false*, then the collection's default - *waitForSync* behavior is applied. The *waitForSync* parameter + `waitForSync` parameter to `true`. If the `waitForSync` parameter + is not specified or set to `false`, then the collection's default + `waitForSync` behavior is applied. The `waitForSync` parameter cannot be used to disable synchronization for collections that have - a default *waitForSync* value of *true*. - - *overwrite*: If this flag is set to *true*, a *_rev* attribute in + a default `waitForSync` value of `true`. + - `overwrite`: If this flag is set to `true`, a `_rev` attribute in the selector is ignored. - - *returnNew*: If this flag is set to *true*, the complete new document - is returned in the output under the attribute *new*. - - *returnOld*: If this flag is set to *true*, the complete previous + - `returnNew`: If this flag is set to `true`, the complete new document + is returned in the output under the attribute `new`. + - `returnOld`: If this flag is set to `true`, the complete previous revision of the document is returned in the output under the - attribute *old*. - - *silent*: If this flag is set to *true*, no output is returned. - - *keepNull*: The optional *keepNull* parameter can be used to modify - the behavior when handling *null* values. Normally, *null* values - are stored in the database. By setting the *keepNull* parameter to - *false*, this behavior can be changed so that all attributes in - *data* with *null* values will be removed from the target document. - - *mergeObjects*: Controls whether objects (not arrays) will be + attribute `old`. + - `silent`: If this flag is set to `true`, no output is returned. + - `keepNull`: The optional `keepNull` parameter can be used to modify + the behavior when handling `null` values. Normally, `null` values + are stored in the database. By setting the `keepNull` parameter to + `false`, this behavior can be changed so that all attributes in + `data` with `null` values will be removed from the target document. + - `mergeObjects`: Controls whether objects (not arrays) will be merged if present in both the existing and the patch document. If - set to *false*, the value in the patch document will overwrite the - existing document's value. If set to *true*, objects will be merged. - The default is *true*. + set to `false`, the value in the patch document will overwrite the + existing document's value. If set to `true`, objects will be merged. + The default is `true`. +--- `db._update(document-handle, data)` `db._update(document-handle, data, options)` -As before. Instead of *selector* a *document-handle* can be passed as +As before. Instead of `selector` a `document-handle` can be passed as first argument. No revision precondition is tested. - **Examples** - Create and update a document: {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -241,61 +230,60 @@ Create and update a document: {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - Remove ------ - - - `db._remove(selector)` -Removes a document described by the *selector*, which must be an object -containing the *_id* attribute. There must be a document with -that *_id* in the current database. This document is then +Removes a document described by the `selector`, which must be an object +containing the `_id` attribute. There must be a document with +that `_id` in the current database. This document is then removed. -The method returns a document with the attributes *_id*, *_key* and *_rev*. -The attribute *_id* contains the document handle of the -removed document, the attribute *_rev* contains the document revision of +The method returns a document with the attributes `_id`, `_key` and `_rev`. +The attribute `_id` contains the document handle of the +removed document, the attribute `_rev` contains the document revision of the removed document. -If the selector contains a *_rev* attribute, the method first checks +If the selector contains a `_rev` attribute, the method first checks that the specified revision is the current revision of that document. If not, there is a conflict, and an error is thrown. +--- + `db._remove(selector, options)` -As before, but *options* must be an object that can contain the following +As before, but `options` must be an object that can contain the following boolean attributes: - - *waitForSync*: One can force + - `waitForSync`: One can force synchronization of the document creation operation to disk even in - case that the *waitForSync* flag is been disabled for the entire - collection. Thus, the *waitForSync* option can be used to force + case that the `waitForSync` flag is been disabled for the entire + collection. Thus, the `waitForSync` option can be used to force synchronization of just specific operations. To use this, set the - *waitForSync* parameter to *true*. If the *waitForSync* parameter - is not specified or set to *false*, then the collection's default - *waitForSync* behavior is applied. The *waitForSync* parameter + `waitForSync` parameter to `true`. If the `waitForSync` parameter + is not specified or set to `false`, then the collection's default + `waitForSync` behavior is applied. The `waitForSync` parameter cannot be used to disable synchronization for collections that have - a default *waitForSync* value of *true*. - - *overwrite*: If this flag is set to *true*, a *_rev* attribute in + a default `waitForSync` value of `true`. + - `overwrite`: If this flag is set to `true`, a `_rev` attribute in the selector is ignored. - - *returnOld*: If this flag is set to *true*, the complete previous + - `returnOld`: If this flag is set to `true`, the complete previous revision of the document is returned in the output under the - attribute *old*. - - *silent*: If this flag is set to *true*, no output is returned. + attribute `old`. + - `silent`: If this flag is set to `true`, no output is returned. + +--- `db._remove(document-handle)` `db._remove(document-handle, options)` -As before. Instead of *selector* a *document-handle* can be passed as +As before. Instead of `selector` a `document-handle` can be passed as first argument. No revision check is performed. **Examples** - Remove a document: {% arangoshexample examplevar="examplevar" script="script" result="result" %} diff --git a/3.11/data-modeling-documents-document-methods.md b/3.11/data-modeling-documents-document-methods.md index 1a6f901ff9..79920f83a7 100644 --- a/3.11/data-modeling-documents-document-methods.md +++ b/3.11/data-modeling-documents-document-methods.md @@ -8,20 +8,15 @@ Collection Methods All --- - - - `collection.all()` Fetches all documents from a collection and returns a cursor. You can use -*toArray*, *next*, or *hasNext* to access the result. The result -can be limited using the *skip* and *limit* operator. - +`toArray()`, `next()`, or `hasNext()` to access the result. The result +can be limited using the `skip()` and `limit()` operator. **Examples** - -Use *toArray* to get all documents at once: +Use `toArray()` to get all documents at once: {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 001_collectionAll @@ -39,7 +34,7 @@ Use *toArray* to get all documents at once: {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} -Use *limit* to restrict the documents: +Use `limit()` to restrict the documents: {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 002_collectionAllNext @@ -57,23 +52,19 @@ Use *limit* to restrict the documents: {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - Query by example ---------------- - - - `collection.byExample(example)` Fetches all documents from a collection that match the specified example and returns a cursor. -You can use *toArray*, *next*, or *hasNext* to access the -result. The result can be limited using the *skip* and *limit* +You can use `toArray()`, `next()`, or `hasNext()` to access the +result. The result can be limited using the `skip()` and `limit()` operator. -An attribute name of the form *a.b* is interpreted as attribute path, +An attribute name of the form `a.b` is interpreted as attribute path, not as attribute. If you use ```json @@ -81,7 +72,7 @@ not as attribute. If you use ``` as example, then you will find all documents, such that the attribute -*a* contains a document of the form *{c : 1 }*. For example the document +`a` contains a document of the form `{ "c" : 1 }`. For example the document ```json { "a" : { "c" : 1 }, "b" : 1 } @@ -101,8 +92,8 @@ However, if you use { "a.c" : 1 } ``` -then you will find all documents, which contain a sub-document in *a* -that has an attribute *c* of value *1*. Both the following documents +then you will find all documents, which contain a sub-document in `a` +that has an attribute `c` of value `1`. Both the following documents ```json { "a" : { "c" : 1 }, "b" : 1 } @@ -124,7 +115,7 @@ As alternative you can supply an array of paths and values. **Examples** -Use *toArray* to get all documents at once: +Use `toArray()` to get all documents at once: {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 003_collectionByExample @@ -143,7 +134,7 @@ Use *toArray* to get all documents at once: {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} -Use *next* to loop over all documents: +Use `next()` to loop over all documents: {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 004_collectionByExampleNext @@ -163,21 +154,19 @@ Use *next* to loop over all documents: First Example ------------- - - - `collection.firstExample(example)` Returns some document of a collection that matches the specified -example. If no such document exists, *null* will be returned. +example. If no such document exists, `null` will be returned. The example has to be specified as paths and values. -See *byExample* for details. +See `byExample` for details. + +--- `collection.firstExample(path1, value1, ...)` As alternative you can supply an array of paths and values. - **Examples** {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -197,26 +186,19 @@ As alternative you can supply an array of paths and values. Any --- - - - `collection.any()` -Returns a random document from the collection or *null* if none exists. +Returns a random document from the collection or `null` if none exists. **Note**: this method is expensive when using the RocksDB storage engine. Count ----- - - - `collection.count()` Returns the number of living documents in the collection. - **Examples** {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -230,72 +212,70 @@ Returns the number of living documents in the collection. {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - toArray ------- - - - `collection.toArray()` Converts the collection into an array of documents. Never use this call in a production environment as it will basically create a copy of your collection in RAM which will use resources depending on the number and size -of the documents in your collecion. - +of the documents in your collection. Document -------- - - - `collection.document(object [, options])` -The *document* method finds a document given an object *object* -containing the *_id* or *_key* attribute. The method returns +The `document()` method finds a document given an object `object` +containing the `_id` or `_key` attribute. The method returns the document if it can be found. If both attributes are given, -the *_id* takes precedence, it is an error, if the collection part -of the *_id* does not match the *collection*. +the `_id` takes precedence, it is an error, if the collection part +of the `_id` does not match the `collection`. -An error is thrown if *_rev* is specified but the document found has a +An error is thrown if `_rev` is specified but the document found has a different revision already. An error is also thrown if no document exists -with the given *_id* or *_key* value. +with the given `_id` or `_key` value. Please note that if the method is executed on the arangod server (e.g. from inside a Foxx application), an immutable document object will be returned for performance reasons. It is not possible to change attributes of this immutable object. To update or patch the returned document, it needs to be cloned/copied into a regular JavaScript object first. This is not necessary -if the *document* method is called from out of arangosh or from any other +if the `document` method is called from out of arangosh or from any other client. -If you pass *options* as the second argument, it must be an object. If this +If you pass `options` as the second argument, it must be an object. If this object has the `allowDirtyReads` attribute set to `true`, then the Coordinator is allowed to read from any shard replica and not only from the leader. See [Read from Followers](http/document-address-and-etag.html#read-from-followers) for details. +--- + `collection.document(document-handle [, options])` -As before. Instead of *object* a *document-handle* can be passed as +As before. Instead of `object` a `document-handle` can be passed as first argument. No revision can be specified in this case. +--- + `collection.document(document-key [, options])` -As before. Instead of *object* a *document-key* can be passed as +As before. Instead of `object` a `document-key` can be passed as first argument. +--- + `collection.document(array [, options])` This variant allows to perform the operation on a whole array of arguments. -The behavior is exactly as if *document* would have been called on all members +The behavior is exactly as if `document` would have been called on all members of the array separately and all results are returned in an array. If an error occurs with any of the documents, no exception is risen! Instead of a document an error object is returned in the result array. -*Examples* +**Examples** Returns the document for a document-handle: @@ -381,73 +361,72 @@ An error is raised if the handle is invalid: {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - Exists ------ - - +Checks whether a document exists: -checks whether a document exists `collection.exists(object [, options])` -The *exists* method determines whether a document exists given an object -`object` containing the *_id* or *_key* attribute. If both attributes -are given, the *_id* takes precedence, it is an error, if the collection -part of the *_id* does not match the *collection*. +The `exists()` method determines whether a document exists given an object +`object` containing the `_id` or `_key` attribute. If both attributes +are given, the `_id` takes precedence, it is an error, if the collection +part of the `_id` does not match the `collection`. -An error is thrown if *_rev* is specified but the document found has a +An error is thrown if `_rev` is specified but the document found has a different revision already. Instead of returning the found document or an error, this method will -only return an object with the attributes *_id*, *_key* and *_rev*, or -*false* if no document with the given *_id* or *_key* exists. It can +only return an object with the attributes `_id`, `_key` and `_rev`, or +`false` if no document with the given `_id` or `_key` exists. It can thus be used for easy existence checks. This method will throw an error if used improperly, e.g. when called with a non-document handle, a non-document, or when a cross-collection request is performed. -If you pass *options* as the second argument, it must be an object. If this +If you pass `options` as the second argument, it must be an object. If this object has the `allowDirtyReads` attribute set to `true`, then the Coordinator is allowed to read from any shard replica and not only from the leader. See [Read from Followers](http/document-address-and-etag.html#read-from-followers) for details. +--- + `collection.exists(document-handle [, options])` -As before. Instead of *object* a *document-handle* can be passed as +As before. Instead of `object` a `document-handle` can be passed as first argument. +--- + `collection.exists(document-key [, options])` -As before. Instead of *object* a *document-key* can be passed as +As before. Instead of `object` a `document-key` can be passed as first argument. +--- + `collection.exists(array [, options])` This variant allows to perform the operation on a whole array of arguments. -The behavior is exactly as if *exists* would have been called on all +The behavior is exactly as if `exists()` would have been called on all members of the array separately and all results are returned in an array. If an error occurs with any of the documents, the operation stops immediately returning only an error object. - Lookup By Keys -------------- - - - `collection.documents(keys)` Looks up the documents in the specified collection using the array of keys provided. All documents for which a matching key was specified in -the *keys* array and that exist in the collection will be returned. Keys +the `keys` array and that exist in the collection will be returned. Keys for which no document can be found in the underlying collection are ignored, and no exception will be thrown for them. -This method is deprecated in favour of the array variant of *document*. +This method is deprecated in favor of the array variant of `document()`. **Examples** @@ -471,92 +450,94 @@ This method is deprecated in favour of the array variant of *document*. Insert / Save ------------- - - `collection.insert(data)`
`collection.save(data)` -Creates a new document in the *collection* from the given *data*. The -*data* must be an object. The attributes *_id* and *_rev* are ignored -and are automatically generated. A unique value for the attribute *_key* +Creates a new document in the `collection` from the given `data`. The +`data` must be an object. The attributes `_id` and `_rev` are ignored +and are automatically generated. A unique value for the attribute `_key` will be automatically generated if not specified. If specified, there -must not be a document with the given *_key* in the collection. +must not be a document with the given `_key` in the collection. -The method returns a document with the attributes *_id*, *_key* and -*_rev*. The attribute *_id* contains the document handle of the newly -created document, the attribute *_key* the document key and the -attribute *_rev* contains the document revision. +The method returns a document with the attributes `_id`, `_key` and +`_rev`. The attribute `_id` contains the document handle of the newly +created document, the attribute `_key` the document key and the +attribute `_rev` contains the document revision. + +--- `collection.insert(data, options)`
`collection.save(data, options)` -Creates a new document in the *collection* from the given *data* as -above. The optional *options* parameter must be an object and can be +Creates a new document in the `collection` from the given `data` as +above. The optional `options` parameter must be an object and can be used to specify the following options: - - *waitForSync*: One can force + - `waitForSync`: One can force synchronization of the document creation operation to disk even in - case that the *waitForSync* flag is been disabled for the entire - collection. Thus, the *waitForSync* option can be used to force + case that the `waitForSync` flag is been disabled for the entire + collection. Thus, the `waitForSync` option can be used to force synchronization of just specific operations. To use this, set the - *waitForSync* parameter to *true*. If the *waitForSync* parameter - is not specified or set to *false*, then the collection's default - *waitForSync* behavior is applied. The *waitForSync* parameter + `waitForSync` parameter to `true`. If the `waitForSync` parameter + is not specified or set to `false`, then the collection's default + `waitForSync` behavior is applied. The `waitForSync` parameter cannot be used to disable synchronization for collections that have - a default *waitForSync* value of *true*. - - *silent*: If this flag is set to *true*, the method does not return + a default `waitForSync` value of `true`. + - `silent`: If this flag is set to `true`, the method does not return any output. - - *returnNew*: If this flag is set to *true*, the complete new document - is returned in the output under the attribute *new*. - - *returnOld*: If this flag is set to *true*, the complete old document - is returned in the output under the attribute *old*. Only available - in combination with the *overwrite* option - - *overwrite*: If set to *true*, the insert becomes a replace-insert. - If a document with the same *_key* exists already the new document + - `returnNew`: If this flag is set to `true`, the complete new document + is returned in the output under the attribute `new`. + - `returnOld`: If this flag is set to `true`, the complete old document + is returned in the output under the attribute `old`. Only available + in combination with the `overwrite` option + - `overwrite`: If set to `true`, the insert becomes a replace-insert. + If a document with the same `_key` exists already the new document is not rejected with unique constraint violated but will replace the old document. Note that operations with `overwrite` parameter require a `_key` attribute in the request payload, therefore they can only be performed on collections sharded by `_key`. - - *overwriteMode*: this optional flag can have one of the following values: - - *ignore*: if a document with the specified *_key* value exists already, + - `overwriteMode`: this optional flag can have one of the following values: + - `ignore`: if a document with the specified `_key` value exists already, nothing will be done and no write operation will be carried out (introduced in v3.7.0). The insert operation will return success in this case. This mode does not - support returning the old document version using the *returnOld* - attribute. *returnNew* will only set the *new* attribute in the response + support returning the old document version using the `returnOld` + attribute. `returnNew` will only set the `new` attribute in the response if a new document was inserted. - - *replace*: if a document with the specified *_key* value exists already, + - `replace`: if a document with the specified `_key` value exists already, it will be overwritten with the specified document value. This mode will - also be used when no overwrite mode is specified but the *overwrite* - flag is set to *true*. - - *update*: if a document with the specified *_key* value exists already, + also be used when no overwrite mode is specified but the `overwrite` + flag is set to `true`. + - `update`: if a document with the specified `_key` value exists already, it will be patched (partially updated) with the specified document value (introduced in v3.7.0). - The overwrite mode can be further controlled via the *keepNull* and - *mergeObjects* parameters. - - *conflict*: if a document with the specified *_key* value exists already, + The overwrite mode can be further controlled via the `keepNull` and + `mergeObjects` parameters. + - `conflict`: if a document with the specified `_key` value exists already, return a unique constraint violation error so that the insert operation fails. This is also the default behavior in case the overwrite mode is - not set, and the *overwrite* flag is *false* or not set either. - - *keepNull*: The optional *keepNull* parameter can be used to modify - the behavior when handling *null* values. Normally, *null* values - are stored in the database. By setting the *keepNull* parameter to - *false*, this behavior can be changed so that all attributes in - *data* with *null* values will be removed from the target document. + not set, and the `overwrite` flag is `false` or not set either. + - `keepNull`: The optional `keepNull` parameter can be used to modify + the behavior when handling `null` values. Normally, `null` values + are stored in the database. By setting the `keepNull` parameter to + `false`, this behavior can be changed so that all attributes in + `data` with `null` values will be removed from the target document. This option controls the update-insert behavior only. - - *mergeObjects*: Controls whether objects (not arrays) will be + - `mergeObjects`: Controls whether objects (not arrays) will be merged if present in both the existing and the patch document. If - set to *false*, the value in the patch document will overwrite the - existing document's value. If set to *true*, objects will be merged. - The default is *true*. + set to `false`, the value in the patch document will overwrite the + existing document's value. If set to `true`, objects will be merged. + The default is `true`. This option controls the update-insert behavior only. +--- + `collection.insert(array)` `collection.insert(array, options)` These two variants allow to perform the operation on a whole array of -arguments. The behavior is exactly as if *insert* would have been called on all +arguments. The behavior is exactly as if `insert()` would have been called on all members of the array separately and all results are returned in an array. If an error occurs with any of the documents, no exception is risen! Instead of a document an error object is returned in the result array. The options behave @@ -603,72 +584,77 @@ exactly as before. Replace ------- - - - `collection.replace(selector, data)` -Replaces an existing document described by the *selector*, which must -be an object containing the *_id* or *_key* attribute. There must be -a document with that *_id* or *_key* in the current collection. This -document is then replaced with the *data* given as second argument. -Any attribute *_id*, *_key* or *_rev* in *data* is ignored. +Replaces an existing document described by the `selector`, which must +be an object containing the `_id` or `_key` attribute. There must be +a document with that `_id` or `_key` in the current collection. This +document is then replaced with the `data` given as second argument. +Any attribute `_id`, `_key` or `_rev` in `data` is ignored. -The method returns a document with the attributes *_id*, *_key*, *_rev* -and *_oldRev*. The attribute *_id* contains the document handle of the -updated document, the attribute *_rev* contains the document revision of -the updated document, the attribute *_oldRev* contains the revision of +The method returns a document with the attributes `_id`, `_key`, `_rev` +and `_oldRev`. The attribute `_id` contains the document handle of the +updated document, the attribute `_rev` contains the document revision of +the updated document, the attribute `_oldRev` contains the revision of the old (now replaced) document. -If the selector contains a *_rev* attribute, the method first checks +If the selector contains a `_rev` attribute, the method first checks that the specified revision is the current revision of that document. If not, there is a conflict, and an error is thrown. +--- + `collection.replace(selector, data, options)` -As before, but *options* must be an object that can contain the following +As before, but `options` must be an object that can contain the following boolean attributes: - - *waitForSync*: One can force + - `waitForSync`: One can force synchronization of the document creation operation to disk even in - case that the *waitForSync* flag is been disabled for the entire - collection. Thus, the *waitForSync* option can be used to force + case that the `waitForSync` flag is been disabled for the entire + collection. Thus, the `waitForSync` option can be used to force synchronization of just specific operations. To use this, set the - *waitForSync* parameter to *true*. If the *waitForSync* parameter - is not specified or set to *false*, then the collection's default - *waitForSync* behavior is applied. The *waitForSync* parameter + `waitForSync` parameter to `true`. If the `waitForSync` parameter + is not specified or set to `false`, then the collection's default + `waitForSync` behavior is applied. The `waitForSync` parameter cannot be used to disable synchronization for collections that have - a default *waitForSync* value of *true*. - - *overwrite*: If this flag is set to *true*, a *_rev* attribute in + a default `waitForSync` value of `true`. + - `overwrite`: If this flag is set to `true`, a `_rev` attribute in the selector is ignored. - - *returnNew*: If this flag is set to *true*, the complete new document - is returned in the output under the attribute *new*. - - *returnOld*: If this flag is set to *true*, the complete previous + - `returnNew`: If this flag is set to `true`, the complete new document + is returned in the output under the attribute `new`. + - `returnOld`: If this flag is set to `true`, the complete previous revision of the document is returned in the output under the - attribute *old*. - - *silent*: If this flag is set to *true*, no output is returned. + attribute `old`. + - `silent`: If this flag is set to `true`, no output is returned. + +--- `collection.replace(document-handle, data)` `collection.replace(document-handle, data, options)` -As before. Instead of *selector* a *document-handle* can be passed as +As before. Instead of `selector` a `document-handle` can be passed as first argument. No revision precondition is tested. +--- + `collection.replace(document-key, data)` `collection.replace(document-key, data, options)` -As before. Instead of *selector* a *document-key* can be passed as +As before. Instead of `selector` a `document-key` can be passed as first argument. No revision precondition is tested. -`collection.replace(selectorarray, dataarray)` +--- + +`collection.replace(selector-array, data-array)` -`collection.replace(selectorarray, dataarray, options)` +`collection.replace(selector-array, data-array, options)` These two variants allow to perform the operation on a whole array of -selector/data pairs. The two arrays given as *selectorarray* and *dataarray* -must have the same length. The behavior is exactly as if *replace* would have +selector/data pairs. The two arrays given as `selector-array` and `data-array` +must have the same length. The behavior is exactly as if `replace()` would have been called on all respective members of the two arrays and all results are returned in an array. If an error occurs with any of the documents, no exception is risen! Instead of a document an error object is returned in the @@ -676,7 +662,6 @@ result array. The options behave exactly as before. **Examples** - Create and update a document: {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -707,92 +692,96 @@ Use a document handle: {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - Update ------ - - `collection.update(selector, data)` -Updates an existing document described by the *selector*, which must -be an object containing the *_id* or *_key* attribute. There must be -a document with that *_id* or *_key* in the current collection. This -document is then patched with the *data* given as second argument. -Any attribute *_id*, *_key* or *_rev* in *data* is ignored. +Updates an existing document described by the `selector`, which must +be an object containing the `_id` or `_key` attribute. There must be +a document with that `_id` or `_key` in the current collection. This +document is then patched with the `data` given as second argument. +Any attribute `_id`, `_key` or `_rev` in `data` is ignored. -The method returns a document with the attributes *_id*, *_key*, *_rev* -and *_oldRev*. The attribute *_id* contains the document handle of the -updated document, the attribute *_rev* contains the document revision of -the updated document, the attribute *_oldRev* contains the revision of +The method returns a document with the attributes `_id`, `_key`, `_rev` +and `_oldRev`. The attribute `_id` contains the document handle of the +updated document, the attribute `_rev` contains the document revision of +the updated document, the attribute `_oldRev` contains the revision of the old (now updated) document. -If the selector contains a *_rev* attribute, the method first checks +If the selector contains a `_rev` attribute, the method first checks that the specified revision is the current revision of that document. If not, there is a conflict, and an error is thrown. +--- + `collection.update(selector, data, options)` -As before, but *options* must be an object that can contain the following +As before, but `options` must be an object that can contain the following boolean attributes: - - *waitForSync*: One can force + - `waitForSync`: One can force synchronization of the document creation operation to disk even in - case that the *waitForSync* flag is been disabled for the entire - collection. Thus, the *waitForSync* option can be used to force + case that the `waitForSync` flag is been disabled for the entire + collection. Thus, the `waitForSync` option can be used to force synchronization of just specific operations. To use this, set the - *waitForSync* parameter to *true*. If the *waitForSync* parameter - is not specified or set to *false*, then the collection's default - *waitForSync* behavior is applied. The *waitForSync* parameter + `waitForSync` parameter to `true`. If the `waitForSync` parameter + is not specified or set to `false`, then the collection's default + `waitForSync` behavior is applied. The `waitForSync` parameter cannot be used to disable synchronization for collections that have - a default *waitForSync* value of *true*. - - *overwrite*: If this flag is set to *true*, a *_rev* attribute in + a default `waitForSync` value of `true`. + - `overwrite`: If this flag is set to `true`, a `_rev` attribute in the selector is ignored. - - *returnNew*: If this flag is set to *true*, the complete new document - is returned in the output under the attribute *new*. - - *returnOld*: If this flag is set to *true*, the complete previous + - `returnNew`: If this flag is set to `true`, the complete new document + is returned in the output under the attribute `new`. + - `returnOld`: If this flag is set to `true`, the complete previous revision of the document is returned in the output under the - attribute *old*. - - *silent*: If this flag is set to *true*, no output is returned. - - *keepNull*: The optional *keepNull* parameter can be used to modify - the behavior when handling *null* values. Normally, *null* values - are stored in the database. By setting the *keepNull* parameter to - *false*, this behavior can be changed so that all attributes in - *data* with *null* values will be removed from the target document. - - *mergeObjects*: Controls whether objects (not arrays) will be + attribute `old`. + - `silent`: If this flag is set to `true`, no output is returned. + - `keepNull`: The optional `keepNull` parameter can be used to modify + the behavior when handling `null` values. Normally, `null` values + are stored in the database. By setting the `keepNull` parameter to + `false`, this behavior can be changed so that all attributes in + `data` with `null` values will be removed from the target document. + - `mergeObjects`: Controls whether objects (not arrays) will be merged if present in both the existing and the patch document. If - set to *false*, the value in the patch document will overwrite the - existing document's value. If set to *true*, objects will be merged. - The default is *true*. + set to `false`, the value in the patch document will overwrite the + existing document's value. If set to `true`, objects will be merged. + The default is `true`. +--- `collection.update(document-handle, data)` `collection.update(document-handle, data, options)` -As before. Instead of *selector* a *document-handle* can be passed as +As before. Instead of `selector` a `document-handle` can be passed as first argument. No revision precondition is tested. +--- + `collection.update(document-key, data)` `collection.update(document-key, data, options)` -As before. Instead of *selector* a *document-key* can be passed as +--- + +As before. Instead of `selector` a `document-key` can be passed as first argument. No revision precondition is tested. -`collection.update(selectorarray, dataarray)` +`collection.update(selector-array, data-array)` -`collection.update(selectorarray, dataarray, options)` +`collection.update(selector-array, data-array, options)` These two variants allow to perform the operation on a whole array of -selector/data pairs. The two arrays given as *selectorarray* and *dataarray* -must have the same length. The behavior is exactly as if *update* would have +selector/data pairs. The two arrays given as `selector-array` and `data-array` +must have the same length. The behavior is exactly as if `update()` would have been called on all respective members of the two arrays and all results are returned in an array. If an error occurs with any of the documents, no exception is risen! Instead of a document an error object is returned in the result array. The options behave exactly as before. -*Examples* +**Examples** Create and update a document: @@ -872,70 +861,75 @@ Patching array values: {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - Remove ------ - - `collection.remove(selector)` -Removes a document described by the *selector*, which must be an object -containing the *_id* or *_key* attribute. There must be a document with -that *_id* or *_key* in the current collection. This document is then +Removes a document described by the `selector`, which must be an object +containing the `_id` or `_key` attribute. There must be a document with +that `_id` or `_key` in the current collection. This document is then removed. -The method returns a document with the attributes *_id*, *_key* and *_rev*. -The attribute *_id* contains the document handle of the -removed document, the attribute *_rev* contains the document revision of +The method returns a document with the attributes `_id`, `_key` and `_rev`. +The attribute `_id` contains the document handle of the +removed document, the attribute `_rev` contains the document revision of the removed document. -If the selector contains a *_rev* attribute, the method first checks +If the selector contains a `_rev` attribute, the method first checks that the specified revision is the current revision of that document. If not, there is a conflict, and an error is thrown. +--- + `collection.remove(selector, options)` -As before, but *options* must be an object that can contain the following +As before, but `options` must be an object that can contain the following boolean attributes: - - *waitForSync*: One can force + - `waitForSync`: One can force synchronization of the document creation operation to disk even in - case that the *waitForSync* flag is been disabled for the entire - collection. Thus, the *waitForSync* option can be used to force + case that the `waitForSync` flag is been disabled for the entire + collection. Thus, the `waitForSync` option can be used to force synchronization of just specific operations. To use this, set the - *waitForSync* parameter to *true*. If the *waitForSync* parameter - is not specified or set to *false*, then the collection's default - *waitForSync* behavior is applied. The *waitForSync* parameter + `waitForSync` parameter to `true`. If the `waitForSync` parameter + is not specified or set to `false`, then the collection's default + `waitForSync` behavior is applied. The `waitForSync` parameter cannot be used to disable synchronization for collections that have - a default *waitForSync* value of *true*. - - *overwrite*: If this flag is set to *true*, a *_rev* attribute in + a default `waitForSync` value of `true`. + - `overwrite`: If this flag is set to `true`, a `_rev` attribute in the selector is ignored. - - *returnOld*: If this flag is set to *true*, the complete previous + - `returnOld`: If this flag is set to `true`, the complete previous revision of the document is returned in the output under the - attribute *old*. - - *silent*: If this flag is set to *true*, no output is returned. + attribute `old`. + - `silent`: If this flag is set to `true`, no output is returned. + +--- `collection.remove(document-handle)` `collection.remove(document-handle, options)` -As before. Instead of *selector* a *document-handle* can be passed as +As before. Instead of `selector` a `document-handle` can be passed as first argument. No revision check is performed. +--- + `collection.remove(document-key)` `collection.remove(document-handle, options)` -As before. Instead of *selector* a *document-handle* can be passed as +As before. Instead of `selector` a `document-handle` can be passed as first argument. No revision check is performed. -`collection.remove(selectorarray)` +--- + +`collection.remove(selector-array)` -`collection.remove(selectorarray,options)` +`collection.remove(selector-array, options)` These two variants allow to perform the operation on a whole array of -selectors. The behavior is exactly as if *remove* would have been called on all +selectors. The behavior is exactly as if `remove()` would have been called on all members of the array separately and all results are returned in an array. If an error occurs with any of the documents, no exception is risen! Instead of a document an error object is returned in the result array. The options behave @@ -943,7 +937,6 @@ exactly as before. **Examples** - Remove a document: {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -977,27 +970,22 @@ Remove a document with a conflict: {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - Remove By Keys -------------- - - - `collection.removeByKeys(keys)` - Looks up the documents in the specified collection using the array of keys provided, and removes all documents from the collection whose keys are -contained in the *keys* array. Keys for which no document can be found in +contained in the `keys` array. Keys for which no document can be found in the underlying collection are ignored, and no exception will be thrown for them. The method will return an object containing the number of removed documents -in the *removed* sub-attribute, and the number of not-removed/ignored -documents in the *ignored* sub-attribute. +in the `removed` sub-attribute, and the number of not-removed/ignored +documents in the `ignored` sub-attribute. -This method is deprecated in favour of the array variant of *remove*. +This method is deprecated in favor of the array variant of `remove()`. **Examples** @@ -1021,34 +1009,34 @@ This method is deprecated in favour of the array variant of *remove*. Remove By Example ----------------- - - - `collection.removeByExample(example)` Removes all documents matching an example. +--- + `collection.removeByExample(document, waitForSync)` -The optional *waitForSync* parameter can be used to force synchronization +The optional `waitForSync` parameter can be used to force synchronization of the document deletion operation to disk even in case that the -*waitForSync* flag had been disabled for the entire collection. Thus, -the *waitForSync* parameter can be used to force synchronization of just -specific operations. To use this, set the *waitForSync* parameter to -*true*. If the *waitForSync* parameter is not specified or set to -*false*, then the collection's default *waitForSync* behavior is -applied. The *waitForSync* parameter cannot be used to disable -synchronization for collections that have a default *waitForSync* value -of *true*. +`waitForSync` flag had been disabled for the entire collection. Thus, +the `waitForSync` parameter can be used to force synchronization of just +specific operations. To use this, set the `waitForSync` parameter to +`true`. If the `waitForSync` parameter is not specified or set to +`false`, then the collection's default `waitForSync` behavior is +applied. The `waitForSync` parameter cannot be used to disable +synchronization for collections that have a default `waitForSync` value +of `true`. + +--- `collection.removeByExample(document, waitForSync, limit)` -The optional *limit* parameter can be used to restrict the number of -removals to the specified value. If *limit* is specified but less than the +The optional `limit` parameter can be used to restrict the number of +removals to the specified value. If `limit` is specified but less than the number of documents in the collection, it is undefined which documents are removed. - **Examples** {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -1066,37 +1054,37 @@ removed. Replace By Example ------------------ - - - `collection.replaceByExample(example, newValue)` Replaces all documents matching an example with a new document body. -The entire document body of each document matching the *example* will be -replaced with *newValue*. The document meta-attributes *_id*, *_key* and -*_rev* will not be replaced. +The entire document body of each document matching the `example` will be +replaced with `newValue`. The document meta-attributes `_id`, `_key` and +`_rev` will not be replaced. + +--- `collection.replaceByExample(document, newValue, waitForSync)` -The optional *waitForSync* parameter can be used to force synchronization +The optional `waitForSync` parameter can be used to force synchronization of the document replacement operation to disk even in case that the -*waitForSync* flag had been disabled for the entire collection. Thus, -the *waitForSync* parameter can be used to force synchronization of just -specific operations. To use this, set the *waitForSync* parameter to -*true*. If the *waitForSync* parameter is not specified or set to -*false*, then the collection's default *waitForSync* behavior is -applied. The *waitForSync* parameter cannot be used to disable -synchronization for collections that have a default *waitForSync* value -of *true*. +`waitForSync` flag had been disabled for the entire collection. Thus, +the `waitForSync` parameter can be used to force synchronization of just +specific operations. To use this, set the `waitForSync` parameter to +`true`. If the `waitForSync` parameter is not specified or set to +`false`, then the collection's default `waitForSync` behavior is +applied. The `waitForSync` parameter cannot be used to disable +synchronization for collections that have a default `waitForSync` value +of `true`. + +--- `collection.replaceByExample(document, newValue, waitForSync, limit)` -The optional *limit* parameter can be used to restrict the number of -replacements to the specified value. If *limit* is specified but less than +The optional `limit` parameter can be used to restrict the number of +replacements to the specified value. If `limit` is specified but less than the number of documents in the collection, it is undefined which documents are replaced. - **Examples** {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -1114,55 +1102,57 @@ replaced. Update By Example ----------------- - - - `collection.updateByExample(example, newValue)` Partially updates all documents matching an example with a new document body. Specific attributes in the document body of each document matching the -*example* will be updated with the values from *newValue*. -The document meta-attributes *_id*, *_key* and *_rev* cannot be updated. +`example` will be updated with the values from `newValue`. +The document meta-attributes `_id`, `_key` and `_rev` cannot be updated. Partial update could also be used to append new fields, if there were no old field with same name. +--- + `collection.updateByExample(document, newValue, keepNull, waitForSync)` -The optional *keepNull* parameter can be used to modify the behavior when -handling *null* values. Normally, *null* values are stored in the -database. By setting the *keepNull* parameter to *false*, this behavior -can be changed so that all attributes in *data* with *null* values will +The optional `keepNull` parameter can be used to modify the behavior when +handling `null` values. Normally, `null` values are stored in the +database. By setting the `keepNull` parameter to `false`, this behavior +can be changed so that all attributes in `data` with `null` values will be removed from the target document. -The optional *waitForSync* parameter can be used to force synchronization +The optional `waitForSync` parameter can be used to force synchronization of the document replacement operation to disk even in case that the -*waitForSync* flag had been disabled for the entire collection. Thus, -the *waitForSync* parameter can be used to force synchronization of just -specific operations. To use this, set the *waitForSync* parameter to -*true*. If the *waitForSync* parameter is not specified or set to -*false*, then the collection's default *waitForSync* behavior is -applied. The *waitForSync* parameter cannot be used to disable -synchronization for collections that have a default *waitForSync* value -of *true*. +`waitForSync` flag had been disabled for the entire collection. Thus, +the `waitForSync` parameter can be used to force synchronization of just +specific operations. To use this, set the `waitForSync` parameter to +`true`. If the `waitForSync` parameter is not specified or set to +`false`, then the collection's default `waitForSync` behavior is +applied. The `waitForSync` parameter cannot be used to disable +synchronization for collections that have a default `waitForSync` value +of `true`. + +--- `collection.updateByExample(document, newValue, keepNull, waitForSync, limit)` -The optional *limit* parameter can be used to restrict the number of -updates to the specified value. If *limit* is specified but less than +The optional `limit` parameter can be used to restrict the number of +updates to the specified value. If `limit` is specified but less than the number of documents in the collection, it is undefined which documents are updated. +--- + `collection.updateByExample(document, newValue, options)` Using this variant, the options for the operation can be passed using an object with the following sub-attributes: - - *keepNull* - - *waitForSync* - - *limit* - - *mergeObjects* - + - `keepNull` + - `waitForSync` + - `limit` + - `mergeObjects` **Examples** @@ -1185,15 +1175,12 @@ Collection type `collection.type()` Returns the type of a collection. Possible values are: -- 2: document collection -- 3: edge collection - +- `2`: document collection +- `3`: edge collection Convert a document key to a document id --------------------------------------- - - `collection.documentId(documentKey)` Qualifies the given document key with this collection's name to derive a @@ -1202,7 +1189,6 @@ valid document id. Throws if the document key is invalid. Note that this method does not check whether the document already exists in this collection. - Edges ----- @@ -1212,13 +1198,15 @@ edges. The following methods, however, are specific to edges. `edge-collection.edges(vertex)` -The *edges* operator finds all edges starting from (outbound) or ending -in (inbound) *vertex*. +The `edges()` operator finds all edges starting from (outbound) or ending +in (inbound) `vertex`. + +--- `edge-collection.edges(vertices)` -The *edges* operator finds all edges starting from (outbound) or ending -in (inbound) a document from *vertices*, which must be a list of documents +The `edges` operator finds all edges starting from (outbound) or ending +in (inbound) a document from `vertices`, which must be a list of documents or document handles. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -1240,14 +1228,18 @@ or document handles. {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} +--- + `edge-collection.inEdges(vertex)` -The *edges* operator finds all edges ending in (inbound) *vertex*. +The `inEdges()` operator finds all edges ending in (inbound) `vertex`. + +--- `edge-collection.inEdges(vertices)` -The *edges* operator finds all edges ending in (inbound) a document from -*vertices*, which must a list of documents or document handles. +The `inEdges()` operator finds all edges ending in (inbound) a document from +`vertices`, which must a list of documents or document handles. **Examples** @@ -1271,16 +1263,19 @@ The *edges* operator finds all edges ending in (inbound) a document from {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} +--- + `edge-collection.outEdges(vertex)` -The *edges* operator finds all edges starting from (outbound) -*vertices*. +The `outEdges()` operator finds all edges starting from (outbound) +`vertices`. -`edge-collection.outEdges(vertices)` +--- -The *edges* operator finds all edges starting from (outbound) a document -from *vertices*, which must a list of documents or document handles. +`edge-collection.outEdges(vertices)` +The `outEdges()` operator finds all edges starting from (outbound) a document +from `vertices`, which must a list of documents or document handles. **Examples** @@ -1310,16 +1305,16 @@ Misc `collection.iterate(iterator, options)` Iterates over some elements of the collection and apply the function -*iterator* to the elements. The function will be called with the +`iterator` to the elements. The function will be called with the document as first argument and the current number (starting with 0) as second argument. -*options* must be an object with the following attributes: +`options` must be an object with the following attributes: - - *limit* (optional, default none): use at most *limit* documents. + - `limit` (optional, default none): use at most `limit` documents. - - *probability* (optional, default all): a number between *0* and - *1*. Documents are chosen with this probability. + - `probability` (optional, default all): a number between `0` and + `1`. Documents are chosen with this probability. **Examples** diff --git a/3.11/data-modeling-documents.md b/3.11/data-modeling-documents.md index 540fe22958..9aaffc0b0e 100644 --- a/3.11/data-modeling-documents.md +++ b/3.11/data-modeling-documents.md @@ -1,6 +1,6 @@ --- layout: default -description: This is an introduction to ArangoDB's interface for working withdocuments from the JavaScript shell arangosh or in JavaScript code inthe server +description: This is an introduction to ArangoDB's interface for working with documents from the JavaScript shell arangosh or in JavaScript code in the server --- Documents ========= diff --git a/3.11/data-modeling-views-database-methods.md b/3.11/data-modeling-views-database-methods.md index 517294a6e4..b4e26ac1ea 100644 --- a/3.11/data-modeling-views-database-methods.md +++ b/3.11/data-modeling-views-database-methods.md @@ -9,8 +9,6 @@ Database Methods View ---- - - `db._view(view-name)` Returns the view with the given name or null if no such view exists. @@ -28,6 +26,8 @@ Returns the view with the given name or null if no such view exists. {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} +--- + `db._view(view-identifier)` Returns the view with the given identifier or null if no such view exists. @@ -61,20 +61,18 @@ Unknown View: Create ------ - - `db._createView(name, type, properties)` Creates a new View. -*name* is a string and the name of the View. No View or collection with the +`name` is a string and the name of the View. No View or collection with the same name may already exist in the current database. For more information on valid View names please refer to the [naming conventions](data-modeling-naming-conventions.html). -*type* must be the string `"arangosearch"`, as it is currently the only +`type` must be the string `"arangosearch"`, as it is currently the only supported View type. -*properties* is an optional object containing View configuration specific +`properties` is an optional object containing View configuration specific to each View-type. - [`arangosearch` View definition](arangosearch-views.html#view-definitionmodification) - [`search-alias` View definition](arangosearch-views-search-alias.html#view-definition) @@ -95,8 +93,6 @@ to each View-type. All Views --------- - - `db._views()` Returns all views of the given database. @@ -119,16 +115,16 @@ List all views: Drop ---- - - `db._dropView(name)` -Drops a view named *name* and all its data. No error is thrown if there is +Drops a view named `name` and all its data. No error is thrown if there is no such view. +--- + `db._dropView(view-identifier)` -Drops a view identified by *view-identifier* with all its data. No error is +Drops a view identified by `view-identifier` with all its data. No error is thrown if there is no such view. **Examples** diff --git a/3.11/data-modeling-views-view-methods.md b/3.11/data-modeling-views-view-methods.md index 6747fd998c..05dccb2430 100644 --- a/3.11/data-modeling-views-view-methods.md +++ b/3.11/data-modeling-views-view-methods.md @@ -9,8 +9,6 @@ View Methods Drop ---- - - `view.drop()` Drops a View and all its data. @@ -35,8 +33,6 @@ Drop a View: Query Name ---------- - - `view.name()` Returns the name of the View. @@ -58,12 +54,10 @@ Get View name: Rename ------ - - `view.rename(new-name)` -Renames a view using the *new-name*. The *new-name* must not already be used by -a different view or collection in the same database. *new-name* must also be a +Renames a view using the `new-name`. The `new-name` must not already be used by +a different view or collection in the same database. `new-name` must also be a valid view name. For more information on valid view names please refer to the [naming conventions](data-modeling-naming-conventions.html). @@ -91,8 +85,6 @@ The rename method is not available in clusters. Query Type ---------- - - `view.type()` Returns the type of the View. @@ -114,8 +106,6 @@ Get View type: Query Properties ---------------- - - `view.properties()` Returns the properties of the View. The format of the result is specific to @@ -138,16 +128,14 @@ Get View properties: Modify Properties ----------------- - - `view.properties(new-properties, partialUpdate)` -Modifies the properties of the *view*. The format of the result is specific to +Modifies the properties of the `view`. The format of the result is specific to each of the supported [View Types](data-modeling-views.html). -*partialUpdate* is an optional Boolean parameter (`true` by default) that -determines how the *new-properties* object is merged with current View properties -(adds or updates *new-properties* properties to current if `true` replaces all +`partialUpdate` is an optional Boolean parameter (`true` by default) that +determines how the `new-properties` object is merged with current View properties +(adds or updates `new-properties` properties to current if `true` replaces all properties if `false`). For the available properties of the supported View types, see: From 5d95ad4f06306de309526a4a92fd222981f2e7c5 Mon Sep 17 00:00:00 2001 From: Simran Spiller Date: Wed, 19 Oct 2022 12:27:53 +0200 Subject: [PATCH 12/18] More formatting --- 3.10/appendix-references-dbobject.md | 2 +- 3.10/graphs-edges.md | 14 +- 3.10/graphs-general-graphs-functions.md | 287 ++++++--------------- 3.10/graphs-general-graphs-management.md | 40 +-- 3.10/graphs-pregel-algorithms.md | 34 ++- 3.10/graphs-smart-graphs.md | 76 ++++-- 3.10/graphs-traversals-example-data.md | 4 +- 3.10/graphs-traversals.md | 17 +- 3.10/graphs.md | 14 +- 3.10/indexing-fulltext.md | 14 +- 3.10/indexing-geo.md | 23 +- 3.10/indexing-index-basics.md | 16 +- 3.10/indexing-index-utilization.md | 108 ++++---- 3.10/indexing-persistent.md | 30 ++- 3.10/indexing-ttl.md | 23 +- 3.10/indexing-vertex-centric.md | 2 +- 3.10/indexing-working-with-indexes.md | 219 ++++++++-------- 3.10/release-notes-api-changes310.md | 8 - 3.10/release-notes-upgrading-changes310.md | 16 +- 3.11/appendix-references-dbobject.md | 2 +- 3.11/graphs-edges.md | 14 +- 3.11/graphs-general-graphs-functions.md | 287 ++++++--------------- 3.11/graphs-general-graphs-management.md | 40 +-- 3.11/graphs-pregel-algorithms.md | 34 ++- 3.11/graphs-smart-graphs.md | 76 ++++-- 3.11/graphs-traversals-example-data.md | 4 +- 3.11/graphs-traversals.md | 17 +- 3.11/graphs.md | 14 +- 3.11/indexing-fulltext.md | 14 +- 3.11/indexing-geo.md | 23 +- 3.11/indexing-index-basics.md | 16 +- 3.11/indexing-index-utilization.md | 108 ++++---- 3.11/indexing-persistent.md | 30 ++- 3.11/indexing-ttl.md | 23 +- 3.11/indexing-vertex-centric.md | 2 +- 3.11/indexing-working-with-indexes.md | 219 ++++++++-------- 3.8/appendix-references-dbobject.md | 2 +- 3.9/appendix-references-dbobject.md | 2 +- 38 files changed, 872 insertions(+), 1002 deletions(-) diff --git a/3.10/appendix-references-dbobject.md b/3.10/appendix-references-dbobject.md index 731365d5e8..8f2405e6a1 100644 --- a/3.10/appendix-references-dbobject.md +++ b/3.10/appendix-references-dbobject.md @@ -44,7 +44,7 @@ The following methods exist on the *_db* object: * [db._createStatement(query)](aql/invocation-with-arangosh.html#with-db_createstatement-arangostatement) * [db._query(query)](aql/invocation-with-arangosh.html#with-db_query) -* [db._explain(query)](release-notes-new-features28.html#miscellaneous-improvements) +* [db._explain(query)](aql/execution-and-performance-explaining-queries.html) * [db._parse(query)](aql/invocation-with-arangosh.html#query-validation) *Document* diff --git a/3.10/graphs-edges.md b/3.10/graphs-edges.md index 9a5f705445..34f0fd9c78 100644 --- a/3.10/graphs-edges.md +++ b/3.10/graphs-edges.md @@ -15,16 +15,16 @@ nodes in the graphs are stored in an "edges collection", the nodes in the graph are stored in documents in regular collections. Edges in ArangoDB are special documents. In addition to the system -attributes *_key*, *_id* and *_rev*, they have the attributes *_from* and *_to*, +attributes `_key`, `_id` and `_rev`, they have the attributes `_from` and `_to`, which contain [document handles](appendix-glossary.html#document-handle), namely the start-point and the end-point of the edge. -*Example*: +**Example** -- the "edge" collection stores the information that a company's reception is sub-unit to the services unit and the services unit is sub-unit to the - CEO. You would express this relationship with the *_from* and *_to* attributes -- the "normal" collection stores all the properties about the reception, e.g. that 20 people are working there and the room number etc -- *_from* is the [document handle](appendix-glossary.html#document-handle) of the linked vertex (incoming relation) -- *_to* is the document handle of the linked vertex (outgoing relation) +- The "edge" collection stores the information that a company's reception is sub-unit to the services unit and the services unit is sub-unit to the + CEO. You would express this relationship with the `_from` and `_to` attributes +- The "normal" collection stores all the properties about the reception, e.g. that 20 people are working there and the room number etc +- `_from` is the [document handle](appendix-glossary.html#document-handle) of the linked vertex (incoming relation) +- `_to` is the document handle of the linked vertex (outgoing relation) [Edge collections](appendix-glossary.html#edge-collection) are special collections that store edge documents. Edge documents are connection documents that reference other documents. The type of a collection diff --git a/3.10/graphs-general-graphs-functions.md b/3.10/graphs-general-graphs-functions.md index ed33ad5a21..a262f2f5e7 100644 --- a/3.10/graphs-general-graphs-functions.md +++ b/3.10/graphs-general-graphs-functions.md @@ -8,12 +8,10 @@ Graph Functions This chapter describes [various functions on a graph](graphs.html). A lot of these accept a vertex (or edge) example as parameter as defined in the next section. - Examples will explain the API on the [the city graph](graphs.html#the-city-graph): ![Social Example Graph](images/cities_graph.png) - Definition of examples ---------------------- @@ -21,30 +19,23 @@ For many of the following functions *examples* can be passed in as a parameter. *Examples* are used to filter the result set for objects that match the conditions. These *examples* can have the following values: -- *null*, there is no matching executed all found results are valid. -- A *string*, only results are returned, which *_id* equal the value of the string +- `null`, there is no matching executed all found results are valid. +- A *string*, only results are returned, which `_id` equal the value of the string - An example *object*, defining a set of attributes. Only results having these attributes are matched. - A *list* containing example *objects* and/or *strings*. All results matching at least one of the elements in the list are returned. -Get vertices from edges. ------------------------- - -### Get vertex *from* of an edge - +Get vertices from edges +----------------------- - -Get the source vertex of an edge +### Get the source vertex of an edge `graph._fromVertex(edgeId)` -Returns the vertex defined with the attribute *_from* of the edge with *edgeId* as its *_id*. - - -**Parameters** - * edgeId (required) *_id* attribute of the edge +Returns the vertex defined with the attribute `_from` of the edge with `edgeId` as its `_id`. +- `edgeId` (required): `_id` attribute of the edge **Examples** @@ -61,23 +52,13 @@ Returns the vertex defined with the attribute *_from* of the edge with *edgeId* {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - -### Get vertex *to* of an edge - - - -Get the target vertex of an edge +### Get the target vertex of an edge `graph._toVertex(edgeId)` -Returns the vertex defined with the attribute *_to* of the edge with *edgeId* as its *_id*. - - -**Parameters** - - - * edgeId (required) *_id* attribute of the edge +Returns the vertex defined with the attribute `_to` of the edge with `edgeId` as its `_id`. +- `edgeId` (required): `_id` attribute of the edge **Examples** @@ -94,13 +75,10 @@ Returns the vertex defined with the attribute *_to* of the edge with *edgeId* as {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _neighbors ---------- - - -Get all neighbors of the vertices defined by the example +Get all neighbors of the vertices defined by the example. `graph._neighbors(vertexExample, options)` @@ -110,25 +88,20 @@ The complexity of this method is **O(n\*m^x)** with *n* being the vertices defin parameter vertexExamplex, *m* the average amount of neighbors and *x* the maximal depths. Hence the default call would have a complexity of **O(n\*m)**; - -**Parameters** - -- vertexExample (optional) See [Definition of examples](#definition-of-examples) -- options (optional) An object defining further options. Can have the following values: - - *direction*: The direction of the edges. Possible values are *outbound*, *inbound* and *any* (default). - - *edgeExamples*: Filter the edges, see [Definition of examples](#definition-of-examples) - - *neighborExamples*: Filter the neighbor vertices, see [Definition of examples](#definition-of-examples) - - *edgeCollectionRestriction* : One or a list of edge-collection names that should be +- `vertexExample` (optional): See [Definition of examples](#definition-of-examples) +- `options` (optional): An object defining further options. Can have the following values: + - `direction`: The direction of the edges. Possible values are `"outbound"`, `"inbound"`, and `"any"` (default). + - `edgeExamples`: Filter the edges, see [Definition of examples](#definition-of-examples) + - `neighborExamples`: Filter the neighbor vertices, see [Definition of examples](#definition-of-examples) + - `edgeCollectionRestriction` : One or a list of edge-collection names that should be considered to be on the path. - - *vertexCollectionRestriction* : One or a list of vertex-collection names that should be + - `vertexCollectionRestriction` : One or a list of vertex-collection names that should be considered on the intermediate vertex steps. - - *minDepth*: Defines the minimal number of intermediate steps to neighbors (default is 1). - - *maxDepth*: Defines the maximal number of intermediate steps to neighbors (default is 1). - + - `minDepth`: Defines the minimal number of intermediate steps to neighbors (default is 1). + - `maxDepth`: Defines the maximal number of intermediate steps to neighbors (default is 1). **Examples** - A route planner example, all neighbors of capitals. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -157,18 +130,15 @@ A route planner example, all outbound neighbors of Hamburg. {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _commonNeighbors ---------------- - - Get all common neighbors of the vertices defined by the examples. `graph._commonNeighbors(vertex1Example, vertex2Examples, optionsVertex1, optionsVertex2)` -This function returns the intersection of *graph_module._neighbors(vertex1Example, optionsVertex1)* -and *graph_module._neighbors(vertex2Example, optionsVertex2)*. +This function returns the intersection of `graph_module._neighbors(vertex1Example, optionsVertex1)` +and `graph_module._neighbors(vertex2Example, optionsVertex2)`. For parameter documentation see [_neighbors](#_neighbors). The complexity of this method is **O(n\*m^x)** with *n* being the maximal amount of vertices @@ -176,10 +146,8 @@ defined by the parameters vertexExamples, *m* the average amount of neighbors an maximal depths. Hence the default call would have a complexity of **O(n\*m)**; - **Examples** - A route planner example, all common neighbors of capitals. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -213,22 +181,17 @@ which have a maximal depth of 2 : {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _countCommonNeighbors --------------------- - - Get the amount of common neighbors of the vertices defined by the examples. `graph._countCommonNeighbors(vertex1Example, vertex2Examples, optionsVertex1, optionsVertex2)` Similar to [_commonNeighbors](#_commonneighbors) but returns count instead of the elements. - **Examples** - A route planner example, all common neighbors of capitals. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -261,12 +224,9 @@ which have a maximal depth of 2 : {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _commonProperties ----------------- - - Get the vertices of the graph that share common properties. `graph._commonProperties(vertex1Example, vertex2Examples, options)` @@ -277,24 +237,18 @@ example as parameter for vertex1Example and vertex2Example. The complexity of this method is **O(n)** with *n* being the maximal amount of vertices defined by the parameters vertexExamples. +- `vertex1Examples` (optional): Filter the set of source vertices, see [Definition of examples](#definition-of-examples) -**Parameters** - - -* vertex1Examples (optional) Filter the set of source vertices, see [Definition of examples](#definition-of-examples) - -- vertex2Examples (optional) Filter the set of vertices compared to, see [Definition of examples](#definition-of-examples) +- `vertex2Examples` (optional): Filter the set of vertices compared to, see [Definition of examples](#definition-of-examples) - options (optional) An object defining further options. Can have the following values: - - *vertex1CollectionRestriction* : One or a list of vertex-collection names that should be + - `vertex1CollectionRestriction` : One or a list of vertex-collection names that should be searched for source vertices. - - *vertex2CollectionRestriction* : One or a list of vertex-collection names that should be + - `vertex2CollectionRestriction` : One or a list of vertex-collection names that should be searched for compare vertices. - - *ignoreProperties* : One or a list of attribute names of a document that should be ignored. - + - `ignoreProperties` : One or a list of attribute names of a document that should be ignored. **Examples** - A route planner example, all locations with the same properties: {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -323,12 +277,9 @@ A route planner example, all cities which share same properties except for popul {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _countCommonProperties ---------------------- - - Get the amount of vertices of the graph that share common properties. `graph._countCommonProperties(vertex1Example, vertex2Examples, options)` @@ -336,10 +287,8 @@ Get the amount of vertices of the graph that share common properties. Similar to [_commonProperties](#_commonproperties) but returns count instead of the objects. - **Examples** - A route planner example, all locations with the same properties: {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -369,12 +318,9 @@ A route planner example, all German cities which share same properties except fo {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _paths ------ - - The _paths function returns all paths of a graph. `graph._paths(options)` @@ -384,24 +330,18 @@ This function determines all available paths in a graph. The complexity of this method is **O(n\*n\*m)** with *n* being the amount of vertices in the graph and *m* the average amount of connected edges; - -**Parameters** - - -- options (optional) An object containing options, see below: - - *direction*: The direction of the edges. Possible values are *any*, - *inbound* and *outbound* (default). - - *followCycles* (optional): If set to *true* the query follows cycles in the graph, +- `options` (optional): An object containing options, see below: + - `direction`: The direction of the edges. Possible values are `"any"`, + `"inbound"`, and `"outbound"` (default). + - `followCycles` (optional): If set to `true` the query follows cycles in the graph, default is false. - - *minLength* (optional): Defines the minimal length a path must + - `minLength` (optional): Defines the minimal length a path must have to be returned (default is 0). - - *maxLength* (optional): Defines the maximal length a path must + - `maxLength` (optional): Defines the maximal length a path must have to be returned (default is 10). - **Examples** - Return all paths of the graph "social": {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -434,8 +374,6 @@ length of 1 and a minimal length of 2: _shortestPath ------------- - - The _shortestPath function returns all shortest paths of a graph. `graph._shortestPath(startVertexExample, endVertexExample, options)` @@ -448,35 +386,29 @@ The length of a path is by default the amount of edges from one start vertex to an end vertex. The option weight allows the user to define an edge attribute representing the length. - -**Parameters** - - -- startVertexExample (optional) An example for the desired start Vertices (see [Definition of examples](#definition-of-examples)). -- endVertexExample (optional) An example for the desired end Vertices (see [Definition of examples](#definition-of-examples)). -- options (optional) An object containing options, see below: - - *direction*: The direction of the edges as a string. - Possible values are *outbound*, *inbound* and *any* (default). - - *edgeCollectionRestriction*: One or multiple edge +- `startVertexExample` (optional): An example for the desired start Vertices (see [Definition of examples](#definition-of-examples)). +- `endVertexExample` (optional): An example for the desired end Vertices (see [Definition of examples](#definition-of-examples)). +- `options` (optional): An object containing options, see below: + - `direction`: The direction of the edges as a string. + Possible values are `"outbound"`, `"inbound"`, and `"any"` (default). + - `edgeCollectionRestriction`: One or multiple edge collection names. Only edges from these collections will be considered for the path. - - *startVertexCollectionRestriction*: One or multiple vertex + - `startVertexCollectionRestriction`: One or multiple vertex collection names. Only vertices from these collections will be considered as start vertex of a path. - - *endVertexCollectionRestriction*: One or multiple vertex + - `endVertexCollectionRestriction`: One or multiple vertex collection names. Only vertices from these collections will be considered as end vertex of a path. - - *weight*: The name of the attribute of + - `weight`: The name of the attribute of the edges containing the length as a string. - - *defaultWeight*: Only used with the option *weight*. - If an edge does not have the attribute named as defined in option *weight* this default + - `defaultWeight`: Only used with the option `weight`. + If an edge does not have the attribute named as defined in option `weight` this default is used as length. If no default is supplied the default would be positive Infinity so the path could not be calculated. - **Examples** - A route planner example, shortest path from all german to all french cities: {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -507,12 +439,9 @@ A route planner example, shortest path from Hamburg and Cologne to Lyon: {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _distanceTo ----------- - - The _distanceTo function returns all paths and there distance within a graph. `graph._distanceTo(startVertexExample, endVertexExample, options)` @@ -520,10 +449,8 @@ The _distanceTo function returns all paths and there distance within a graph. This function is a wrapper of [graph._shortestPath](#_shortestpath). It does not return the actual path but only the distance between two vertices. - **Examples** - A route planner example, shortest distance from all german to all french cities: {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -554,12 +481,9 @@ A route planner example, shortest distance from Hamburg and Cologne to Lyon: {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _absoluteEccentricity --------------------- - - Get the [eccentricity](http://en.wikipedia.org/wiki/Distance_%28graph_theory%29){:target="_blank"} of the vertices defined by the examples. @@ -569,29 +493,24 @@ of the vertices defined by the examples. The function accepts an id, an example, a list of examples or even an empty example as parameter for vertexExample. - -**Parameters** - -- vertexExample (optional) Filter the vertices, see [Definition of examples](#definition-of-examples) -- options (optional) An object defining further options. Can have the following values: - - *direction*: The direction of the edges. Possible values are *outbound*, *inbound* and *any* (default). - - *edgeCollectionRestriction* : One or a list of edge-collection names that should be +- `vertexExample` (optional): Filter the vertices, see [Definition of examples](#definition-of-examples) +- `options` (optional): An object defining further options. Can have the following values: + - `direction`: The direction of the edges. Possible values are `"outbound"`, `"inbound"`, and `"any"` (default). + - `edgeCollectionRestriction` : One or a list of edge-collection names that should be considered to be on the path. - - *startVertexCollectionRestriction* : One or a list of vertex-collection names that should be + - `startVertexCollectionRestriction` : One or a list of vertex-collection names that should be considered for source vertices. - - *endVertexCollectionRestriction* : One or a list of vertex-collection names that should be + - `endVertexCollectionRestriction` : One or a list of vertex-collection names that should be considered for target vertices. - - *weight*: The name of the attribute of the edges containing the weight. - - *defaultWeight*: Only used with the option *weight*. - If an edge does not have the attribute named as defined in option *weight* this default + - `weight`: The name of the attribute of the edges containing the weight. + - `defaultWeight`: Only used with the option `weight`. + If an edge does not have the attribute named as defined in option `weight` this default is used as weight. If no default is supplied the default would be positive infinity so the path and hence the eccentricity can not be calculated. - **Examples** - A route planner example, the absolute eccentricity of all locations. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -637,12 +556,9 @@ outbound paths. {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _eccentricity ------------- - - Get the normalized [eccentricity](http://en.wikipedia.org/wiki/Distance_%28graph_theory%29){:target="_blank"} of the vertices defined by the examples. @@ -651,10 +567,8 @@ of the vertices defined by the examples. Similar to [_absoluteEccentricity](#_absoluteeccentricity) but returns a normalized result. - **Examples** - A route planner example, the eccentricity of all locations. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -683,12 +597,9 @@ A route planner example, the weighted eccentricity. {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _absoluteCloseness ------------------ - - Get the [closeness](http://en.wikipedia.org/wiki/Centrality#Closeness_centrality){:target="_blank"} of the vertices defined by the examples. @@ -696,30 +607,26 @@ of the vertices defined by the examples. `graph._absoluteCloseness(vertexExample, options)` The function accepts an id, an example, a list of examples or even an empty -example as parameter for *vertexExample*. +example as parameter for `vertexExample`. -**Parameters** - -- vertexExample (optional) Filter the vertices, see [Definition of examples](#definition-of-examples) +- `vertexExample` (optional): Filter the vertices, see [Definition of examples](#definition-of-examples) - options (optional) An object defining further options. Can have the following values: - - *direction*: The direction of the edges. Possible values are *outbound*, *inbound* and *any* (default). - - *edgeCollectionRestriction* : One or a list of edge-collection names that should be + - `direction`: The direction of the edges. Possible values are `"outbound"`, `"inbound"`, and `"any"` (default). + - `edgeCollectionRestriction` : One or a list of edge-collection names that should be considered to be on the path. - - *startVertexCollectionRestriction* : One or a list of vertex-collection names that should be + - `startVertexCollectionRestriction` : One or a list of vertex-collection names that should be considered for source vertices. - - *endVertexCollectionRestriction* : One or a list of vertex-collection names that should be + - `endVertexCollectionRestriction` : One or a list of vertex-collection names that should be considered for target vertices. - - *weight*: The name of the attribute of the edges containing the weight. - - *defaultWeight*: Only used with the option *weight*. - If an edge does not have the attribute named as defined in option *weight* this default + - `weight`: The name of the attribute of the edges containing the weight. + - `defaultWeight`: Only used with the option `weight`. + If an edge does not have the attribute named as defined in option `weight` this default is used as weight. If no default is supplied the default would be positive infinity so the path and hence the closeness can not be calculated. - **Examples** - A route planner example, the absolute closeness of all locations. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -765,12 +672,9 @@ outbound paths. {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _closeness ---------- - - Get the normalized [closeness](http://en.wikipedia.org/wiki/Centrality#Closeness_centrality){:target="_blank"} of graphs vertices. @@ -779,10 +683,8 @@ of graphs vertices. Similar to [_absoluteCloseness](#_absolutecloseness) but returns a normalized value. - **Examples** - A route planner example, the normalized closeness of all locations. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -827,35 +729,27 @@ outbound paths. {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _absoluteBetweenness -------------------- - - Get the [betweenness](http://en.wikipedia.org/wiki/Betweenness_centrality){:target="_blank"} of all vertices in the graph. `graph._absoluteBetweenness(vertexExample, options)` - -**Parameters** - -- vertexExample (optional) Filter the vertices, see [Definition of examples](#definition-of-examples) -- options (optional) An object defining further options. Can have the following values: - - *direction*: The direction of the edges. Possible values are *outbound*, *inbound* and *any* (default). - - *weight*: The name of the attribute of the edges containing the weight. - - *defaultWeight*: Only used with the option *weight*. - If an edge does not have the attribute named as defined in option *weight* this default +- `vertexExample` (optional): Filter the vertices, see [Definition of examples](#definition-of-examples) +- `options` (optional): An object defining further options. Can have the following values: + - `direction`: The direction of the edges. Possible values are `"outbound"`, `"inbound"`, and `"any"` (default). + - `weight`: The name of the attribute of the edges containing the weight. + - `defaultWeight`: Only used with the option `weight`. + If an edge does not have the attribute named as defined in option `weight` this default is used as weight. If no default is supplied the default would be positive infinity so the path and hence the betweenness can not be calculated. - **Examples** - A route planner example, the absolute betweenness of all locations. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -900,12 +794,9 @@ outbound paths. {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _betweenness ------------ - - Get the normalized [betweenness](http://en.wikipedia.org/wiki/Betweenness_centrality){:target="_blank"} of graphs vertices. @@ -914,10 +805,8 @@ of graphs vertices. Similar to [_absoluteBetweenness](#_absolutebetweenness) but returns normalized values. - **Examples** - A route planner example, the betweenness of all locations. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -962,34 +851,24 @@ outbound paths. {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _radius ------- - - Get the [radius](http://en.wikipedia.org/wiki/Eccentricity_%28graph_theory%29){:target="_blank"} of a graph. -` - - -**Parameters** - -- options (optional) An object defining further options. Can have the following values: - - *direction*: The direction of the edges. Possible values are *outbound*, *inbound* and *any* (default). - - *weight*: The name of the attribute of the edges containing the weight. - - *defaultWeight*: Only used with the option *weight*. - If an edge does not have the attribute named as defined in option *weight* this default +- `options` (optional): An object defining further options. Can have the following values: + - `direction`: The direction of the edges. Possible values are `"outbound"`, `"inbound"`, and `"any"` (default). + - `weight`: The name of the attribute of the edges containing the weight. + - `defaultWeight`: Only used with the option `weight`. + If an edge does not have the attribute named as defined in option `weight` this default is used as weight. If no default is supplied the default would be positive infinity so the path and hence the radius can not be calculated. - **Examples** - A route planner example, the radius of the graph. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -1034,34 +913,26 @@ outbound paths. {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _diameter --------- - - Get the [diameter](http://en.wikipedia.org/wiki/Eccentricity_%28graph_theory%29){:target="_blank"} of a graph. `graph._diameter(graphName, options)` - -**Parameters** - -- options (optional) An object defining further options. Can have the following values: - - *direction*: The direction of the edges. Possible values are *outbound*, *inbound* and *any* (default). - - *weight*: The name of the attribute of the edges containing the weight. - - *defaultWeight*: Only used with the option *weight*. - If an edge does not have the attribute named as defined in option *weight* this default +- `options` (optional): An object defining further options. Can have the following values: + - `direction`: The direction of the edges. Possible values are `"outbound"`, `"inbound"`, and `"any"` (default). + - `weight`: The name of the attribute of the edges containing the weight. + - `defaultWeight`: Only used with the option `weight`. + If an edge does not have the attribute named as defined in option `weight` this default is used as weight. If no default is supplied the default would be positive infinity so the path and hence the radius can not be calculated. - **Examples** - A route planner example, the diameter of the graph. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -1104,4 +975,4 @@ outbound paths. @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphModuleDiameter3 {% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} \ No newline at end of file +{% include arangoshexample.html id=examplevar script=script result=result %} diff --git a/3.10/graphs-general-graphs-management.md b/3.10/graphs-general-graphs-management.md index be9ff0562e..6bce6a6688 100644 --- a/3.10/graphs-general-graphs-management.md +++ b/3.10/graphs-general-graphs-management.md @@ -89,12 +89,12 @@ Define a directed relation: have to be stored in these collections. Collections will be created if they do not exist. -The *relationName* defines the name of this relation and references to the -underlying edge collection. The *fromVertexCollections* is an Array of document -collections holding the start vertices. The *toVertexCollections* is an array +The `relationName` defines the name of this relation and references to the +underlying edge collection. The `fromVertexCollections` is an Array of document +collections holding the start vertices. The `toVertexCollections` is an array of document collections holding the target vertices. Relations are only allowed -in the direction from any collection in *fromVertexCollections* to any -collection in *toVertexCollections*. +in the direction from any collection in `fromVertexCollections` to any +collection in `toVertexCollections`. **Examples** @@ -303,7 +303,7 @@ Drop a Graph by its name: This can drop all collections contained in the graph as long as they are not used within other graphs. To drop the collections only belonging to this graph, -the optional parameter *drop-collections* has to be set to *true*. +the optional parameter `drop-collections` has to be set to `true`. **Examples** @@ -364,7 +364,7 @@ Add another edge definition to the graph: Extends the edge definitions of a graph. If an orphan collection is used in this edge definition, it will be removed from the orphanage. If the edge collection of the edge definition to add is already used in the graph or used in a different -graph with different *from* and/or *to* collections an error is thrown. +graph with different `from` and/or `to` collections an error is thrown. **Examples** @@ -391,7 +391,7 @@ Modify a relation definition: - `edgeDefinition` (object): The edge definition to replace the existing edge definition with the same - attribute *collection*. + attribute `collection`. - `options` (object): Additional options related to the edge definition itself. See [Edge Definition Options](#edge-definition-options). @@ -585,7 +585,7 @@ Manipulating Vertices ### Save a Vertex -Create a new vertex in *vertexCollectionName*: +Create a new vertex in `vertexCollectionName`: `graph.vertexCollectionName.save(data)` @@ -608,7 +608,7 @@ Create a new vertex in *vertexCollectionName*: ### Replace a Vertex -Replaces the data of a vertex in collection *vertexCollectionName*: +Replaces the data of a vertex in collection `vertexCollectionName`: `graph.vertexCollectionName.replace(vertexId, data, options)` @@ -636,12 +636,12 @@ Replaces the data of a vertex in collection *vertexCollectionName*: ### Update a Vertex -Updates the data of a vertex in collection *vertexCollectionName* +Updates the data of a vertex in collection `vertexCollectionName` `graph.vertexCollectionName.update(vertexId, data, options)` - `vertexId` (string): - *_id* attribute of the vertex + `_id` attribute of the vertex - `data` (object): JSON data of vertex. - `options` (object, _optional_): @@ -664,12 +664,12 @@ Updates the data of a vertex in collection *vertexCollectionName* ### Remove a Vertex -Removes a vertex in collection *vertexCollectionName* +Removes a vertex in collection `vertexCollectionName` `graph.vertexCollectionName.remove(vertexId, options)` - `vertexId` (string): - *_id* attribute of the vertex + `_id` attribute of the vertex - `options` (object, _optional_): See [collection documentation](data-modeling-documents-document-methods.html) @@ -727,7 +727,7 @@ Creates an edge from vertex `data._from` to vertex `data._to` in collection {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} -If the collections of *from* and *to* are not defined in an edge definition +If the collections of `from` and `to` are not defined in an edge definition of the graph, the edge will not be stored. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -747,13 +747,13 @@ of the graph, the edge will not be stored. ### Replace an Edge -Replaces the data of an edge in collection *edgeCollectionName*. +Replaces the data of an edge in collection `edgeCollectionName`. Note that `_from` and `_to` are mandatory. `graph.edgeCollectionName.replace(edgeId, data, options)` - `edgeId` (string): - *_id* attribute of the edge + `_id` attribute of the edge - `data` (object, _optional_): JSON data of the edge - `options` (object, _optional_): @@ -776,12 +776,12 @@ Note that `_from` and `_to` are mandatory. ### Update an Edge -Updates the data of an edge in collection *edgeCollectionName* +Updates the data of an edge in collection `edgeCollectionName` `graph.edgeCollectionName.update(edgeId, data, options)` - `edgeId` (string): - *_id* attribute of the edge + `_id` attribute of the edge - `data` (object, _optional_): JSON data of the edge - `options` (object, _optional_): @@ -809,7 +809,7 @@ Removes an edge in collection edgeCollectionName `graph.edgeCollectionName.remove(edgeId, options)` - `edgeId` (string): - *_id* attribute of the edge + `_id` attribute of the edge - `options` (object, _optional_): See [collection documentation](data-modeling-documents-document-methods.html) diff --git a/3.10/graphs-pregel-algorithms.md b/3.10/graphs-pregel-algorithms.md index 3ad95e4d69..a2c5c1467c 100644 --- a/3.10/graphs-pregel-algorithms.md +++ b/3.10/graphs-pregel-algorithms.md @@ -24,13 +24,27 @@ Pregel algorithms in ArangoDB. ### PageRank -PageRank is a well known algorithm to rank vertices in a graph: the more important a vertex, the higher rank it gets. It goes back to L. Page and S. Brin's [paper](http://infolab.stanford.edu/pub/papers/google.pdf) and is used to rank pages in in search engines (hence the name). The algorithm runs until the execution converges. To specify a custom threshold, use the `threshold` parameter; to run for a fixed number of iterations, use the `maxGSS` parameter. - -The rank of a vertex is a positive real number. The algorithm starts with every vertex having the same rank (one divided by the number of vertices) and sends its rank to its out-neighbors. The computation proceeds in iterations. In each iteration, the new rank is computed according to the formula "(0.15/total number of vertices) + (0.85 * the sum of all incoming ranks)". The value sent to each of the out-neighbors is the new rank divided by the number of those neighbors, thus every out-neighbor gets the same part of the new rank. +PageRank is a well known algorithm to rank vertices in a graph: the more +important a vertex, the higher rank it gets. It goes back to L. Page and S. Brin's +[paper](http://infolab.stanford.edu/pub/papers/google.pdf){:target="_blank"} and +is used to rank pages in in search engines (hence the name). The algorithm runs +until the execution converges. To specify a custom threshold, use the `threshold` +parameter; to run for a fixed number of iterations, use the `maxGSS` parameter. + +The rank of a vertex is a positive real number. The algorithm starts with every +vertex having the same rank (one divided by the number of vertices) and sends its +rank to its out-neighbors. The computation proceeds in iterations. In each iteration, +the new rank is computed according to the formula +`(0.15/total number of vertices) + (0.85 * the sum of all incoming ranks)`. +The value sent to each of the out-neighbors is the new rank divided by the number +of those neighbors, thus every out-neighbor gets the same part of the new rank. The algorithm stops when at least one of the two conditions is satisfied: -- The maximum number of iterations is reached. This is the same `maxGSS` parameter as for the other algorithms. -- Every vertex changes its rank in the last iteration by less than a certain threshold. The default threshold is 0.00001, a custom value can be set with the `threshold` parameter. +- The maximum number of iterations is reached. This is the same `maxGSS` + parameter as for the other algorithms. +- Every vertex changes its rank in the last iteration by less than a certain + threshold. The default threshold is 0.00001, a custom value can be set with + the `threshold` parameter. ```js var pregel = require("@arangodb/pregel"); @@ -52,14 +66,18 @@ pregel.start("pagerank", "graphname", { maxGSS: 20, threshold: 0.00000001, sourc ### Single-Source Shortest Path -Calculates the distances, that is, the lengths of shortest paths from the given source to all other vertices, called _targets_. The result is written to the specified property of the respective target. +Calculates the distances, that is, the lengths of shortest paths from the +given source to all other vertices, called _targets_. The result is written +to the specified property of the respective target. The distance to the source vertex itself is returned as `0` and a length above -`9007199254740991` (max safe integer) means that there is no path from the source to the vertex in the graph. +`9007199254740991` (max safe integer) means that there is no path from the +source to the vertex in the graph. The algorithm runs until all distances are computed. The number of iterations is bounded by the diameter of your graph (the longest distance between two vertices). -A call of the algorithm requires the `source` parameter whose value is the document ID of the source vertex. The result field needs to be +A call of the algorithm requires the `source` parameter whose value is the +document ID of the source vertex. The result field needs to be specified in `_resultField` (note the underscore). ```js diff --git a/3.10/graphs-smart-graphs.md b/3.10/graphs-smart-graphs.md index 2107cbe023..7b801222b6 100644 --- a/3.10/graphs-smart-graphs.md +++ b/3.10/graphs-smart-graphs.md @@ -8,22 +8,30 @@ SmartGraphs {% include hint-ee-oasis.md feature="SmartGraphs" plural=true %} -SmartGraphs are specifically targeted at graphs that need scalability and high performance. The way SmartGraphs use the ArangoDB cluster sharding makes it extremely useful for distributing data across multiple servers with minimal network latency. +SmartGraphs are specifically targeted at graphs that need scalability and +high performance. The way SmartGraphs use the ArangoDB cluster sharding makes it +extremely useful for distributing data across multiple servers with minimal +network latency. -Most graphs have one feature - a value that is stored in every vertex - that divides the entire graph into several smaller subgraphs. These subgraphs have a large amount of edges that only connect vertices in the same subgraph and only have few edges connecting vertices from other subgraphs. If this feature is known, SmartGraphs can make use if it. +Most graphs have one feature - a value that is stored in every vertex - that +divides the entire graph into several smaller subgraphs. These subgraphs have a +large amount of edges that only connect vertices in the same subgraph and only +have few edges connecting vertices from other subgraphs. If this feature is +known, SmartGraphs can make use if it. Examples for such graphs are: - **Social Networks**
- Typically the feature here is the region/country users live in. Every user has more contacts in the same - region/country than in other regions/countries. + Typically the feature here is the region/country users live in. Every user has + more contacts in the same region/country than in other regions/countries. - **Transport Systems**
- For transport systems, the common feature is the region/country. There are many local connections, but only a - few go across countries. + For transport systems, the common feature is the region/country. There are + many local connections, but only a few go across countries. - **E-Commerce**
- In this case, the category of products is a good feature. Products of the same category are often bought together. + In this case, the category of products is a good feature. Products of the same + category are often bought together. In terms of querying there is no difference between SmartGraphs and General Graphs. For graph querying please refer to [AQL Graph Operations](aql/graphs.html) @@ -37,29 +45,49 @@ to learn more. ## How SmartGraphs work? -Typically, when you shard your data with ArangoDB the goal is to have an even distribution of data across multiple servers. This approach allows you to scale out your data at a rather high speed in most cases. However, since one of the best features of ArangoDB is fast graph traversals, this sort of distribution can start causing problems if your data grows exponentially. +Typically, when you shard your data with ArangoDB the goal is to have an even +distribution of data across multiple servers. This approach allows you to scale +out your data at a rather high speed in most cases. However, since one of the +best features of ArangoDB is fast graph traversals, this sort of distribution +can start causing problems if your data grows exponentially. -Instead of traveling across every server before returning data, SmartGraphs use a clever and optimized way of moving data through the cluster so that you retain the scalability as well as the performance of graph traversals in ArangoDB. +Instead of traveling across every server before returning data, SmartGraphs use +a clever and optimized way of moving data through the cluster so that you retain +the scalability as well as the performance of graph traversals in ArangoDB. -The examples below illustrate the difference in how data is sharded in the cluster for both scenarios. Let's take a closer look at it. +The examples below illustrate the difference in how data is sharded in the +cluster for both scenarios. Let's take a closer look at it. ### Random data distribution -The natural distribution of data for graphs that handle large datasets involves a series of highly interconnected nodes with many edges running between them. +The natural distribution of data for graphs that handle large datasets involves +a series of highly interconnected nodes with many edges running between them. ![Random data distribution](images/SmartGraphs_random_distribution.png) _The orange line indicates an example graph traversal. Notice how it touches nodes on every server._ -Once you start connecting the nodes to each other, it becomes clear that the graph traversal might need to travel across every server before returning results. This sort of distribution results in many network hops between DB-Servers and Coordinators. +Once you start connecting the nodes to each other, it becomes clear that the +graph traversal might need to travel across every server before returning +results. This sort of distribution results in many network hops between +DB-Servers and Coordinators. ### Smart data distribution -By optimizing the distribution of data, SmartGraphs reduce the number of network hops traversals require. +By optimizing the distribution of data, SmartGraphs reduce the number of network +hops traversals require. -SmartGraphs come with a concept of a `smartGraphAttribute` that is used to inform the database how exactly to shard data. When defining this attribute, think of it as a value that is stored in every vertex. For instance, in social network datasets, this attribute can be the ID or the region/country of the users. +SmartGraphs come with a concept of a `smartGraphAttribute` that is used to +inform the database how exactly to shard data. When defining this attribute, +think of it as a value that is stored in every vertex. For instance, in +social network datasets, this attribute can be the ID or the region/country of +the users. -The graph will than be automatically sharded in such a way that all vertices with the same value are stored on the same physical machine, all edges connecting vertices with identical `smartGraphAttribute` values are stored on this machine as well. Sharding with this attribute means that the relevant data is now co-located on servers, whenever possible. +The graph will than be automatically sharded in such a way that all vertices +with the same value are stored on the same physical machine, all edges +connecting vertices with identical `smartGraphAttribute` values are stored on +this machine as well. Sharding with this attribute means that the relevant data +is now co-located on servers, whenever possible. ![SmartGraphs data distribution](images/SmartGraphs_distribution.png) @@ -67,11 +95,12 @@ _The outcome of moving the data like this is that you retain the scalability as ## SmartGraphs using SatelliteCollections -These SmartGraphs are capable of using [SatelliteCollections](satellites.html) within their graph definition. Therefore, edge definitions defined between SmartCollections and -SatelliteCollections can be created. As SatelliteCollections (and the edge -collections between SmartGraph collections and SatelliteCollections) are -globally replicated to each participating DB-Server, -(weighted) graph traversal and (k-)shortest path(s) query can partially be executed locally on each DB-Server. +These SmartGraphs are capable of using [SatelliteCollections](satellites.html) +within their graph definition. Therefore, edge definitions defined between +SmartCollections and SatelliteCollections can be created. As SatelliteCollections +(and the edge collections between SmartGraph collections and SatelliteCollections) +are globally replicated to each participating DB-Server, (weighted) graph traversal, +and (k-)shortest path(s) query can partially be executed locally on each DB-Server. This means a larger part of the query can be executed fully local whenever data from the SatelliteCollections is required. @@ -79,9 +108,10 @@ whenever data from the SatelliteCollections is required. ## Disjoint SmartGraphs -Disjoint SmartGraphs are are useful for use cases which have to deal with a large forest of graphs, -when you have clearly separated subgraphs in your graph dataset. -Disjoint SmartGraphs enable the automatic sharding of these subgraphs and prohibit edges connecting them. +Disjoint SmartGraphs are are useful for use cases which have to deal with a +large forest of graphs, when you have clearly separated subgraphs in your +graph dataset. Disjoint SmartGraphs enable the automatic sharding of these +subgraphs and prohibit edges connecting them. ![Disjoint SmartGraphs](images/SmartGraphs-Disjoint.png) diff --git a/3.10/graphs-traversals-example-data.md b/3.10/graphs-traversals-example-data.md index 2d52a4f963..67b16091a0 100644 --- a/3.10/graphs-traversals-example-data.md +++ b/3.10/graphs-traversals-example-data.md @@ -5,8 +5,8 @@ description: The following examples all use a vertex collection v and an edge co Example Data ============ -The following examples all use a vertex collection *v* and an [edge collection](appendix-glossary.html#edge-collection) *e*. The vertex -collection *v* contains continents, countries, and capitals. The edge collection *e* +The following examples all use a vertex collection `v` and an [edge collection](appendix-glossary.html#edge-collection) `e`. The vertex +collection `v` contains continents, countries, and capitals. The edge collection `e` contains connections between continents and countries, and between countries and capitals. To set up the collections and populate them with initial data, the following script was used: diff --git a/3.10/graphs-traversals.md b/3.10/graphs-traversals.md index 5c8dd8f6bc..a8ed6330c1 100644 --- a/3.10/graphs-traversals.md +++ b/3.10/graphs-traversals.md @@ -7,7 +7,7 @@ Traversals ========== ArangoDB provides [several ways to query graph data](graphs.html). -Very simple operations can be composed with the low-level edge methods *edges*, *inEdges*, and *outEdges* for +Very simple operations can be composed with the low-level edge methods `edges()`, `inEdges()`, and `outEdges()` for [edge collections](graphs-edges.html). These work on named and anonymous graphs. For more complex operations, ArangoDB provides predefined traversal objects. @@ -17,7 +17,7 @@ Most of the traversal cases are covered by AQL and will be executed in an optimi Only if the logic for your is too complex to be defined using AQL filters you can use the traversal object defined here which gives you complete programmatic access to the data. -For any of the following examples, we'll be using the example collections *v* and *e*, +For any of the following examples, we'll be using the example collections `v` and `e`, populated with continents, countries and capitals data listed below (see [Example Data](graphs-traversals-example-data.html)). To learn more about graphs in ArangoDB take the free @@ -26,12 +26,12 @@ To learn more about graphs in ArangoDB take the free Starting from Scratch --------------------- -ArangoDB provides the *edges*, *inEdges*, and *outEdges* methods for edge collections. +ArangoDB provides the `edges()`, `inEdges()`, and `outEdges()` methods for edge collections. These methods can be used to quickly determine if a vertex is connected to other vertices, and which. This functionality can be exploited to write very simple graph queries in JavaScript. -For example, to determine which edges are linked to the *world* vertex, we can use *inEdges*: +For example, to determine which edges are linked to the `world` vertex, we can use `inEdges()`: ```js db.e.inEdges('v/world').forEach(function(edge) { @@ -39,7 +39,7 @@ db.e.inEdges('v/world').forEach(function(edge) { }); ``` -*inEdges* will give us all ingoing edges for the specified vertex *v/world*. The result +`inEdges()` will give us all ingoing edges for the specified vertex `v/world`. The result is a JavaScript array that we can iterate over and print the results: ```js @@ -51,8 +51,8 @@ v/continent-europe -> is-in -> v/world v/continent-north-america -> is-in -> v/world ``` -**Note**: *edges*, *inEdges*, and *outEdges* return an array of edges. If we want to retrieve -the linked vertices, we can use each edges' *_from* and *_to* attributes as follows: +**Note**: `edges()`, `inEdges()`, and `outEdges()` return an array of edges. If we want to retrieve +the linked vertices, we can use each edges' `_from` and `_to` attributes as follows: ```js db.e.inEdges('v/world').forEach(function(edge) { @@ -60,8 +60,7 @@ db.e.inEdges('v/world').forEach(function(edge) { }); ``` -We are using the *document* method from the *db* object to retrieve the connected vertices now. +We are using the `document()` method from the `db` object to retrieve the connected vertices now. While this may be sufficient for one-level graph operations, writing a traversal by hand may become too complex for multi-level traversals. - diff --git a/3.10/graphs.md b/3.10/graphs.md index 04cef7c9ae..4fb27eac81 100644 --- a/3.10/graphs.md +++ b/3.10/graphs.md @@ -8,11 +8,15 @@ ArangoDB Graphs First Steps with Graphs ----------------------- -A Graph consists of *vertices* and *edges*. Edges are stored as documents in *edge collections*. -A vertex can be a document of a *document collection* or of an *edge collection* (so *edges* can be used as *vertices*). -Which collections are used within a named graph is defined via *edge definitions*. -A named graph can contain more than one *edge definition*, at least one is needed. -Graphs allow you to structure your models in line with your domain and group them logically in collections and giving you the power to query them in the same graph queries. +A Graph consists of **vertices** and **edges**. Edges are stored as documents in +**edge collections**. A vertex can be a document of a **document collection** or +of an **edge collection** (so edges can be used as vertices). + +Which collections are used within a named graph is defined via **edge definitions**. +A named graph can contain more than one edge definition, at least one is needed. +Graphs allow you to structure your models in line with your domain and group +them logically in collections and giving you the power to query them in the same +graph queries. {% hint 'info' %} New to graphs? [**Take our free graph course for freshers**](https://www.arangodb.com/arangodb-graph-course/){:target="_blank"} diff --git a/3.10/indexing-fulltext.md b/3.10/indexing-fulltext.md index 29c76d3d3b..b04bfd3555 100644 --- a/3.10/indexing-fulltext.md +++ b/3.10/indexing-fulltext.md @@ -35,7 +35,7 @@ two documents, and searching for `prefix:Fox` would return all three documents: ``` Note that deeper nested objects are ignored. For example, a fulltext index on -*translations* would index *Fuchs*, but not *fox*, given the following document +`translations` would index `Fuchs`, but not `fox`, given the following document structure: ```js @@ -57,24 +57,22 @@ Other data types are ignored and not indexed. Accessing Fulltext Indexes from the Shell ----------------------------------------- - - Ensures that a fulltext index exists: `collection.ensureIndex({ type: "fulltext", fields: [ "field" ], minLength: minLength })` -Creates a fulltext index on all documents on attribute *field*. +Creates a fulltext index on all documents on attribute `field`. Fulltext indexes are implicitly sparse: all documents which do not have -the specified *field* attribute or that have a non-qualifying value in their -*field* attribute will be ignored for indexing. +the specified `field` attribute or that have a non-qualifying value in their +`field` attribute will be ignored for indexing. Only a single attribute can be indexed. Specifying multiple attributes is unsupported. The minimum length of words that are indexed can be specified via the -*minLength* parameter. Words shorter than minLength characters will -not be indexed. *minLength* has a default value of 2, but this value might +`minLength` parameter. Words shorter than minLength characters will +not be indexed. `minLength` has a default value of 2, but this value might be changed in future versions of ArangoDB. It is thus recommended to explicitly specify this value. diff --git a/3.10/indexing-geo.md b/3.10/indexing-geo.md index 03535f88d7..081cd0d7a4 100644 --- a/3.10/indexing-geo.md +++ b/3.10/indexing-geo.md @@ -66,9 +66,9 @@ the index can be created on one or two fields. The following examples will work in the _arangosh_ command shell. -To create a geo-spatial index on all documents using *latitude* and -*longitude* as separate attribute paths, two paths need to be specified -in the *fields* array: +To create a geo-spatial index on all documents using `latitude` and +`longitude` as separate attribute paths, two paths need to be specified +in the `fields` array: `collection.ensureIndex({ type: "geo", fields: [ "latitude", "longitude" ] })` @@ -79,7 +79,7 @@ Alternatively you can specify only one field: `collection.ensureIndex({ type: "geo", fields: [ "location" ], geoJson:false })` -It creates a geospatial index on all documents using *location* as the path to the +It creates a geospatial index on all documents using `location` as the path to the coordinates. The value of the attribute has to be an array with at least two numeric values. The array must contain the latitude (first value) and the longitude (second value). @@ -606,12 +606,11 @@ Example with two polygons, the second one with a hole: _arangosh_ Examples ------------------- - +Ensures that a geo index exists: -ensures that a geo index exists `collection.ensureIndex({ type: "geo", fields: [ "location" ] })` -Creates a geospatial index on all documents using *location* as the path to the +Creates a geospatial index on all documents using `location` as the path to the coordinates. The value of the attribute has to be an array with at least two numeric values. The array must contain the latitude (first value) and the longitude (second value). @@ -635,14 +634,18 @@ coordinates supported by a geo index. In case that the index was successfully created, an object with the index details, including the index-identifier, is returned. +--- + To create a geo index on an array attribute that contains longitude first, set -the *geoJson* attribute to `true`. This corresponds to the format described in +the `geoJson` attribute to `true`. This corresponds to the format described in [RFC 7946 Position](https://tools.ietf.org/html/rfc7946#section-3.1.1){:target="_blank"} `collection.ensureIndex({ type: "geo", fields: [ "location" ], geoJson: true })` -To create a geo-spatial index on all documents using *latitude* and *longitude* -as separate attribute paths, two paths need to be specified in the *fields* +--- + +To create a geo-spatial index on all documents using `latitude` and `longitude` +as separate attribute paths, two paths need to be specified in the `fields` array: `collection.ensureIndex({ type: "geo", fields: [ "latitude", "longitude" ] })` diff --git a/3.10/indexing-index-basics.md b/3.10/indexing-index-basics.md index d8fec2189a..7907e63dcf 100644 --- a/3.10/indexing-index-basics.md +++ b/3.10/indexing-index-basics.md @@ -12,7 +12,7 @@ of documents. User-defined indexes can be created on collection level. Most user-defined indexes can be created by specifying the names of the index attributes. -Some index types allow indexing just one attribute (e.g. *ttl* index) whereas +Some index types allow indexing just one attribute (e.g. a `ttl` index) whereas other index types allow indexing multiple attributes at the same time. Learn how to use different indexes efficiently by going through the @@ -574,9 +574,9 @@ Ensuring uniqueness of relations in edge collections You can create a combined index over the edge attributes `_from` and `_to` with the unique option enabled to prevent duplicate relations from being created. -For example, a document collection *users* might contain vertices with the document +For example, a document collection `users` might contain vertices with the document handles `user/A`, `user/B` and `user/C`. Relations between these documents can -be stored in an edge collection *knows*, for instance. You may want to make sure +be stored in an edge collection `knows`, for instance. You may want to make sure that the vertex `user/A` is never linked to `user/B` by an edge more than once. This can be achieved by adding a unique, non-sparse persistent index for the fields `_from` and `_to`: @@ -585,7 +585,7 @@ fields `_from` and `_to`: db.knows.ensureIndex({ type: "persistent", fields: [ "_from", "_to" ], unique: true }); ``` -Creating an edge `{ _from: "user/A", _to: "user/B" }` in *knows* will be accepted, +Creating an edge `{ _from: "user/A", _to: "user/B" }` in `knows` will be accepted, but only once. Another attempt to store an edge with the relation **A** → **B** will be rejected by the server with a *unique constraint violated* error. This includes updates to the `_from` and `_to` fields. @@ -607,7 +607,7 @@ if you have to perform it on a live system without a dedicated maintenance windo Indexes can also be created in "background", not using an exclusive lock during the entire index creation. The collection remains basically available, so that other CRUD operations can run on the collection while the index is being created. -This can be achieved by setting the *inBackground* attribute when creating an index. +This can be achieved by setting the `inBackground` attribute when creating an index. To create an index in the background in *arangosh* just specify `inBackground: true`, like in the following examples: @@ -626,11 +626,11 @@ db.collection.ensureIndex({ type: "fulltext", fields: [ "text" ], minLength: 4, ### Behavior Indexes that are still in the build process will not be visible via the ArangoDB APIs. -Nevertheless it is not possible to create the same index twice via the *ensureIndex* API +Nevertheless it is not possible to create the same index twice via the `ensureIndex()` method while an index is still begin created. AQL queries also will not use these indexes until -the index reports back as fully created. Note that the initial *ensureIndex* call or HTTP +the index reports back as fully created. Note that the initial `ensureIndex()` call or HTTP request will still block until the index is completely ready. Existing single-threaded -client programs can thus safely set the *inBackground* option to *true* and continue to +client programs can thus safely set the `inBackground` option to `true` and continue to work as before. {% hint 'info' %} diff --git a/3.10/indexing-index-utilization.md b/3.10/indexing-index-utilization.md index 6b88449dfb..5e097abb15 100644 --- a/3.10/indexing-index-utilization.md +++ b/3.10/indexing-index-utilization.md @@ -6,13 +6,13 @@ Index Utilization ================= In most cases ArangoDB will use a single index per collection in a given query. AQL queries can -use more than one index per collection when multiple FILTER conditions are combined with a +use more than one index per collection when multiple `FILTER` conditions are combined with a logical `OR` and these can be covered by indexes. AQL queries will use a single index per -collection when FILTER conditions are combined with logical `AND`. +collection when `FILTER` conditions are combined with logical `AND`. Creating multiple indexes on different attributes of the same collection may give the query optimizer more choices when picking an index. Creating multiple indexes on different attributes -can also help in speeding up different queries, with FILTER conditions on different attributes. +can also help in speeding up different queries, with `FILTER` conditions on different attributes. It is often beneficial to create an index on more than just one attribute. By adding more attributes to an index, an index can become more selective and thus reduce the number of documents that @@ -30,8 +30,8 @@ the highest estimated selectivity. Sparse indexes may or may not be picked by the optimizer in a query. As sparse indexes do not contain `null` values, they will not be used for queries if the optimizer cannot safely determine whether a -FILTER condition includes `null` values for the index attributes. The optimizer policy is to produce -correct results, regardless of whether or which index is used to satisfy FILTER conditions. If it is +`FILTER` condition includes `null` values for the index attributes. The optimizer policy is to produce +correct results, regardless of whether or which index is used to satisfy `FILTER` conditions. If it is unsure about whether using an index will violate the policy, it will not make use of the index. @@ -39,7 +39,7 @@ Troubleshooting --------------- When in doubt about whether and which indexes will be used for executing a given AQL query, -click the *Explain* button in the web interface in the *Queries* view or use +click the **Explain** button in the web interface in the **Queries** view or use the `explain()` method for the statement as follows (from the ArangoShell): ```js @@ -59,75 +59,93 @@ db._explain(query); If any of the explain methods shows that a query is not using indexes, the following steps may help: -* check if the attribute names in the query are correctly spelled. In a schema-free database, documents +- Check if the attribute names in the query are correctly spelled. In a schema-free database, documents in the same collection can have varying structures. There is no such thing as a *non-existing attribute* error. A query that refers to attribute names not present in any of the documents will not return an error, and obviously will not benefit from indexes. -* check the return value of the `indexes()` method for the collections used in the query and validate +- Check the return value of the `indexes()` method for the collections used in the query and validate that indexes are actually present on the attributes used in the query's filter conditions. -* if indexes are present but not used by the query, the query's FILTER condition may not be adequate: +- If indexes are present but not used by the query, the query's `FILTER` condition may not be adequate: an index will be used only for comparison operators `==`, `<`, `<=`, `>`, `>=` and `IN`. -* using indexed attributes as function parameters or in arbitrary expressions will likely lead to the index +- Using indexed attributes as function parameters or in arbitrary expressions will likely lead to the index on the attribute not being used. For example, the following queries will not use an index on `value`: - FOR doc IN collection FILTER TO_NUMBER(doc.value) == 42 RETURN doc - FOR doc IN collection FILTER doc.value - 1 == 42 RETURN doc + ```aql + FOR doc IN collection FILTER TO_NUMBER(doc.value) == 42 RETURN doc + ``` + + ```aql + FOR doc IN collection FILTER doc.value - 1 == 42 RETURN doc + ``` In these cases the queries should be rewritten so that only the index attribute is present on one side of the operator, or additional filters and indexes should be used to restrict the amount of documents otherwise. -* certain AQL functions such as `WITHIN()` or `FULLTEXT()` do utilize indexes internally, but their use is +- Certain AQL functions such as `WITHIN()` or `FULLTEXT()` do utilize indexes internally, but their use is not mentioned in the query explanation for functions in general. These functions will raise query errors (at runtime) if no suitable index is present for the collection in question. -* the query optimizer will generally pick one index per collection in a query. It can pick more than - one index per collection if the FILTER condition contains multiple branches combined with logical `OR`. +- The query optimizer will generally pick one index per collection in a query. It can pick more than + one index per collection if the `FILTER` condition contains multiple branches combined with logical `OR`. For example, the following queries can use indexes: - FOR doc IN collection FILTER doc.value1 == 42 || doc.value1 == 23 RETURN doc - FOR doc IN collection FILTER doc.value1 == 42 || doc.value2 == 23 RETURN doc - FOR doc IN collection FILTER doc.value1 < 42 || doc.value2 > 23 RETURN doc + ```aql + FOR doc IN collection FILTER doc.value1 == 42 || doc.value1 == 23 RETURN doc + ``` + + ```aql + FOR doc IN collection FILTER doc.value1 == 42 || doc.value2 == 23 RETURN doc + ``` + + ```aql + FOR doc IN collection FILTER doc.value1 < 42 || doc.value2 > 23 RETURN doc + ``` The two `OR`s in the first query will be converted to an `IN` lookup, and if there is a suitable index on `value1`, it will be used. The second query requires two separate indexes on `value1` and `value2` and will use them if present. The third query can use the indexes on `value1` and `value2` when they are sorted. -* for indexes on multiple attributes (combined indexes), the index attribute order is also important. +- For indexes on multiple attributes (combined indexes), the index attribute order is also important. For example, when creating an index on `["value1", "value2"]` (in this order), the index can be - used to satisfy the following FILTER conditions: - - FILTER doc.value1 == ... - FILTER doc.value1 > ... - FILTER doc.value1 >= ... - FILTER doc.value1 < ... - FILTER doc.value1 <= ... - FILTER doc.value1 > ... && doc.value1 < ... - FILTER doc.value1 >= ... && doc.value1 < ... - FILTER doc.value1 > ... && doc.value1 <= ... - FILTER doc.value1 >= ... && doc.value1 <= ... - FILTER doc.value1 IN ... - - FILTER doc.value1 == ... && doc.value2 == ... - FILTER doc.value1 == ... && doc.value2 > ... - FILTER doc.value1 == ... && doc.value2 >= ... - FILTER doc.value1 == ... && doc.value2 < ... - FILTER doc.value1 == ... && doc.value2 <= ... - FILTER doc.value1 == ... && doc.value2 > ... && doc.value2 < ... - FILTER doc.value1 == ... && doc.value2 >= ... && doc.value2 < ... - FILTER doc.value1 == ... && doc.value2 > ... && doc.value2 <= ... - FILTER doc.value1 == ... && doc.value2 >= ... && doc.value2 <= ... - FILTER doc.value1 == ... && doc.value2 IN ... + used to satisfy the following `FILTER` conditions: + + ```aql + FILTER doc.value1 == ... + FILTER doc.value1 > ... + FILTER doc.value1 >= ... + FILTER doc.value1 < ... + FILTER doc.value1 <= ... + FILTER doc.value1 > ... && doc.value1 < ... + FILTER doc.value1 >= ... && doc.value1 < ... + FILTER doc.value1 > ... && doc.value1 <= ... + FILTER doc.value1 >= ... && doc.value1 <= ... + FILTER doc.value1 IN ... + ``` + + ```aql + FILTER doc.value1 == ... && doc.value2 == ... + FILTER doc.value1 == ... && doc.value2 > ... + FILTER doc.value1 == ... && doc.value2 >= ... + FILTER doc.value1 == ... && doc.value2 < ... + FILTER doc.value1 == ... && doc.value2 <= ... + FILTER doc.value1 == ... && doc.value2 > ... && doc.value2 < ... + FILTER doc.value1 == ... && doc.value2 >= ... && doc.value2 < ... + FILTER doc.value1 == ... && doc.value2 > ... && doc.value2 <= ... + FILTER doc.value1 == ... && doc.value2 >= ... && doc.value2 <= ... + FILTER doc.value1 == ... && doc.value2 IN ... + ``` The index cannot be used to satisfy FILTER conditions on `value2` alone. For a combined index to be used in a query, the following algorithm is applied: - - the index attributes are checked in order, from left to right (e.g. `value1`, `value2`). - - if there is a FILTER condition on an index attribute, the index is considered a valid candidate + + - The index attributes are checked in order, from left to right (e.g. `value1`, `value2`). + - If there is a `FILTER` condition on an index attribute, the index is considered a valid candidate for the query. - - if the FILTER condition on the current attribute does not use `==` or `IN`, the following index + - If the `FILTER` condition on the current attribute does not use `==` or `IN`, the following index attributes are not considered anymore. Otherwise, they will be considered and the algorithm will check the next index attribute. diff --git a/3.10/indexing-persistent.md b/3.10/indexing-persistent.md index 3fb01e89e2..7e7d5c2dfe 100644 --- a/3.10/indexing-persistent.md +++ b/3.10/indexing-persistent.md @@ -157,7 +157,7 @@ Ensures that a unique persistent index exists: `collection.ensureIndex({ type: "persistent", fields: [ "field1", ..., "fieldn" ], unique: true })` -Creates a unique persistent index on all documents using *field1*, ... *fieldn* +Creates a unique persistent index on all documents using `field1`, ... `fieldn` as attribute paths. At least one attribute path has to be given. The index will be non-sparse by default. @@ -165,7 +165,9 @@ All documents in the collection must differ in terms of the indexed attributes. Creating a new document or updating an existing document will will fail if the attribute uniqueness is violated. -To create a sparse unique index, set the *sparse* attribute to `true`: +--- + +To create a sparse unique index, set the `sparse` attribute to `true`: `collection.ensureIndex({ type: "persistent", fields: [ "field1", ..., "fieldn" ], unique: true, sparse: true })` @@ -181,6 +183,8 @@ account for uniqueness checks. In case that the index was successfully created, an object with the index details, including the index-identifier, is returned. +***Examples** + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline ensureUniquePersistentSingle @EXAMPLE_ARANGOSH_OUTPUT{ensureUniquePersistentSingle} @@ -211,19 +215,17 @@ details, including the index-identifier, is returned. {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - - - +--- Ensures that a non-unique persistent index exists: `collection.ensureIndex({ type: "persistent", fields: [ "field1", ..., "fieldn" ] })` -Creates a non-unique persistent index on all documents using *field1*, ... -*fieldn* as attribute paths. At least one attribute path has to be given. +Creates a non-unique persistent index on all documents using `field1`, ... +`fieldn` as attribute paths. At least one attribute path has to be given. The index will be non-sparse by default. -To create a sparse unique index, set the *sparse* attribute to `true`. +To create a sparse unique index, set the `sparse` attribute to `true`. In case that the index was successfully created, an object with the index details, including the index-identifier, is returned. @@ -253,11 +255,11 @@ Constructs a query-by-example using a persistent index: Selects all documents from the collection that match the specified example and returns a cursor. A persistent index will be used if present. -You can use *toArray*, *next*, or *hasNext* to access the -result. The result can be limited using the *skip* and *limit* +You can use `toArray()`, `next()`, or `hasNext()` to access the +result. The result can be limited using the `skip()` and `limit()` operator. -An attribute name of the form *a.b* is interpreted as attribute path, +An attribute name of the form `a.b` is interpreted as attribute path, not as attribute. If you use ```json @@ -265,7 +267,7 @@ not as attribute. If you use ``` as example, then you will find all documents, such that the attribute -*a* contains a document of the form *{c : 1 }*. For example the document +`a` contains a document of the form `{ "c" : 1 }`. For example the document ```json { "a" : { "c" : 1 }, "b" : 1 } @@ -285,8 +287,8 @@ However, if you use { "a.c" : 1 }, ``` -then you will find all documents, which contain a sub-document in *a* -that has an attribute *c* of value *1*. Both the following documents +then you will find all documents, which contain a sub-document in `a` +that has an attribute `c` of value `1`. Both the following documents ```json { "a" : { "c" : 1 }, "b" : 1 } diff --git a/3.10/indexing-ttl.md b/3.10/indexing-ttl.md index 5400170b42..eeef4e36d3 100644 --- a/3.10/indexing-ttl.md +++ b/3.10/indexing-ttl.md @@ -32,11 +32,15 @@ with an attribute that contains the documents' creation or last-updated time. Let's assume the index attribute is set to "creationDate", and the `expireAfter` attribute of the index was set to 600 seconds (10 minutes). - db.collection.ensureIndex({ type: "ttl", fields: ["creationDate"], expireAfter: 600 }); +```js +db.collection.ensureIndex({ type: "ttl", fields: ["creationDate"], expireAfter: 600 }); +``` Let's further assume the following document now gets inserted into the collection: - { "creationDate" : 1550165973 } +```json +{ "creationDate" : 1550165973 } +``` This document will be indexed with a reference point in time value of `1550165973`, which translates to the human-readable date/time `2019-02-14T17:39:33.000Z`. The document @@ -58,7 +62,9 @@ date strings without a timezone offset will be interpreted as UTC dates. The above example document using a date string attribute value would be - { "creationDate" : "2019-02-14T17:39:33.000Z" } +```json +{ "creationDate" : "2019-02-14T17:39:33.000Z" } +``` Now any data-modification access to the document could update the value in the document's `creationDate` attribute to the current date/time, which would prolong the existence @@ -78,12 +84,16 @@ Let's assume the index attribute is set to "expireDate", and the `expireAfter` attribute of the index was set to 0 seconds (immediately when wall clock time reaches the value specified in `expireDate`). - db.collection.ensureIndex({ type: "ttl", fields: ["expireDate"], expireAfter: 0 }); +```js +db.collection.ensureIndex({ type: "ttl", fields: ["expireDate"], expireAfter: 0 }); +``` When storing the following document in the collection, it will expire at the point in time specified in the document itself: - { "expireDate" : "2019-03-28T01:06:00Z" } +```json +{ "expireDate" : "2019-03-28T01:06:00Z" } +``` As `expireAfter` was set to 0, the document will count as expired when wall clock time has reached the timeout. @@ -168,14 +178,13 @@ behind with its removal operations. It should eventually catch up in case the nu of to-be-removed documents per invocation is not higher than the background thread's configured threshold values. - Accessing TTL Indexes from the Shell ------------------------------------- Ensures that a TTL index exists: `collection.ensureIndex({ type: "ttl", fields: [ "field" ], expireAfter: 600 })` -Creates a TTL index on all documents using *field* as attribute path. Exactly +Creates a TTL index on all documents using `field` as attribute path. Exactly one attribute path has to be given. The index will be sparse in all cases. In case that the index was successfully created, an object with the index diff --git a/3.10/indexing-vertex-centric.md b/3.10/indexing-vertex-centric.md index 8bbfabe4cf..7490ee4e61 100644 --- a/3.10/indexing-vertex-centric.md +++ b/3.10/indexing-vertex-centric.md @@ -1,6 +1,6 @@ --- layout: default -description: In ArangoDB there are special indices designed to speed up graph operations,especially if the graph contains supernodes (vertices that have an exceptionallyhigh amount of connected edges) +description: In ArangoDB there are special indices designed to speed up graph operations, especially if the graph contains supernodes (vertices that have an exceptionally high amount of connected edges) --- Vertex Centric Indexes ====================== diff --git a/3.10/indexing-working-with-indexes.md b/3.10/indexing-working-with-indexes.md index dbfd2f0608..7ae0f5499a 100644 --- a/3.10/indexing-working-with-indexes.md +++ b/3.10/indexing-working-with-indexes.md @@ -11,12 +11,12 @@ Learn how to use different indexes efficiently by going through the Index Identifiers and Handles ----------------------------- -An *index handle* uniquely identifies an index in the database. It is a string and -consists of the collection name and an *index identifier* separated by a `/`. The +An _index handle_ uniquely identifies an index in the database. It is a string and +consists of the collection name and an _index identifier_ separated by a `/`. The index identifier part is a numeric value that is auto-generated by ArangoDB. -A specific index of a collection can be accessed using its *index handle* or -*index identifier* as follows: +A specific index of a collection can be accessed using its _index handle_ or +_index identifier_ as follows: ```js db.collection.index(""); @@ -33,7 +33,7 @@ db.demo.index("demo/362549736"); ``` Because the index handle is unique within the database, you can leave out the -*collection* and use the shortcut: +`collection` and use the shortcut: ```js db._index("demo/362549736"); @@ -53,8 +53,6 @@ Collection Methods ### Listing all indexes of a collection - - `collection.getIndexes(withStats, withHidden)` `collection.indexes(withStats, withHidden)` @@ -63,16 +61,15 @@ Returns an array of all indexes defined for the collection. You can set the following parameters: -- **withStats** (boolean, _optional_): whether to include index figures and +- `withStats` (boolean, _optional_): whether to include index figures and estimates in the result. Default: `false` -- **withHidden** (boolean, _optional_): whether to include hidden indexes in the +- `withHidden` (boolean, _optional_): whether to include hidden indexes in the result. Default: `false` The `indexes()` method is an alias for `getIndexes()`. Note that `_key` implicitly has an index assigned to it. - **Examples** Get the index definitions for a collection: @@ -114,8 +111,6 @@ Get the index definitions for a collection, including figures and hidden indexes ### Creating an index - - Ensures that an index exists: `collection.ensureIndex(index-description)` @@ -130,93 +125,93 @@ attribute. The `index-description` input value must contain at least a `type` attribute. Other attributes may be necessary, depending on the index type. -**type** can be one of the following values: -- `"persistent"`: persistent (array) index, including vertex-centric index -- `"inverted"`: inverted index -- `"ttl"`: time-to-live index -- `"fulltext"`: fulltext index (deprecated from ArangoDB 3.10 onwards) -- `"geo"`: geo-spatial index, with _one_ or _two_ attributes -- `"zkd"`: multi-dimensional index (experimental) - -**fields** is an array of attribute paths, containing the document attributes -(or sub-attributes) to be indexed. Some indexes allow using only a single path, -and others allow multiple. -If multiple attributes are used, their order matters. - -The `.` character denotes sub-attributes in attribute paths. Attributes with -literal `.` in their name cannot be indexed. Attributes with the name `_id` -cannot be indexed either, neither as a top-level attribute nor as a sub-attribute. - -If an attribute path contains an `[*]` extension (e.g. `friends[*].id`), it means -that the index attribute value is treated as an array and all array members are -indexed separately. This is possible with `persistent` and `inverted` indexes. - -**storedValues**: in indexes of type `persistent` and `inverted`, additional -attributes can be stored in the index. These additional attributes cannot be used for -index lookups or for sorting, but they can be used for projections. This allows an -index to fully cover more queries and avoid extra document lookups. -Non-existing attributes are stored as **null** values inside **storedValues**. -The maximum number of attributes in **storedValues** is 32. -It is not possible to create multiple indexes with the same **fields** attributes -and uniqueness but different **storedValues** attributes. That means the value of -**storedValues** is not considered in index creation calls when checking if an -index is already present or needs to be created. -In unique indexes, only the attributes in **fields** are checked for uniqueness, -but the attributes in **storedValues** are not checked for their uniqueness. - -**name** can be a string. Index names are subject to the same character -restrictions as collection names. If omitted, a name will be auto-generated so -that it is unique with respect to the collection, e.g. `idx_832910498`. - -The purpose of user-defined index names is have easy-to-remember names to -use in index hints in AQL queries. -If no index hints are used, going with the auto-generated index names is fine. - -**sparse** can be `true` or `false`. -You can control the sparsity for `persistent` indexes. The `inverted`, `fulltext`, -and `geo` index types are [sparse](indexing-which-index.html) by definition. - -**unique** can be `true` or `false` and is supported by `persistent` indexes. -By default, all user-defined indexes are non-unique. -Only the attributes in **fields** are checked for uniqueness. Any attributes in -from **storedValues** are not checked for their uniqueness. - -**deduplicate** can be `true` or `false` and is supported by array indexes of -type `persistent`. It controls whether inserting duplicate index values -from the same document into a unique array index will lead to a unique constraint -error or not. The default value is `true`, so only a single instance of each -non-unique index value will be inserted into the index per document. Trying to -insert a value into the index that already exists in the index will always fail, -regardless of the value of this attribute. - -**estimates** can be `true` or `false` and is supported by indexes of type -`persistent`. This attribute controls whether index selectivity estimates are -maintained for the index. Not maintaining index selectivity estimates can have -a slightly positive impact on write performance. -The downside of turning off index selectivity estimates will be that -the query optimizer will not be able to determine the usefulness of different -competing indexes in AQL queries when there are multiple candidate indexes to -choose from. -The **estimates** attribute is optional and defaults to `true` if not set. It will -have no effect on indexes other than `persistent` (with `hash` and `skiplist` -being mere aliases for the `persistent` index type nowadays). - -**cacheEnabled** can be `true` or `false` and is supported by indexes of type -`persistent`. The attribute controls whether an extra in-memory hash cache is -created for the index. The hash cache can be used to speed up index lookups. -The cache can only be used for queries that look up all index attributes via -an equality lookup (`==`). The hash cache cannot be used for range scans, -partial lookups or sorting. -The cache will be populated lazily upon reading data from the index. Writing data -into the collection or updating existing data will invalidate entries in the -cache. The cache may have a negative effect on performance in case index values -are updated more often than they are read. -The maximum size of cache entries that can be stored is currently 4 MB, i.e. -the cumulated size of all index entries for any index lookup value must be -less than 4 MB. This limitation is there to avoid storing the index entries -of "super nodes" in the cache. -**cacheEnabled** defaults to `false` and should only be used for indexes that -are known to benefit from an extra layer of caching. +- `type`: can be one of the following values: + - `"persistent"`: persistent (array) index, including vertex-centric index + - `"inverted"`: inverted index + - `"ttl"`: time-to-live index + - `"fulltext"`: full-text index (deprecated from ArangoDB 3.10 onwards) + - `"geo"`: geo-spatial index, with _one_ or _two_ attributes + - `"zkd"`: multi-dimensional index (experimental) + +- `fields`: an array of attribute paths, containing the document attributes + (or sub-attributes) to be indexed. Some indexes allow using only a single path, + and others allow multiple. + If multiple attributes are used, their order matters. + + The `.` character denotes sub-attributes in attribute paths. Attributes with + literal `.` in their name cannot be indexed. Attributes with the name `_id` + cannot be indexed either, neither as a top-level attribute nor as a sub-attribute. + + If an attribute path contains an `[*]` extension (e.g. `friends[*].id`), it means + that the index attribute value is treated as an array and all array members are + indexed separately. This is possible with `persistent` and `inverted` indexes. + +- `storedValues`: in indexes of type `persistent` and `inverted`, additional + attributes can be stored in the index. These additional attributes cannot be used for + index lookups or for sorting, but they can be used for projections. This allows an + index to fully cover more queries and avoid extra document lookups. + Non-existing attributes are stored as `null` values inside `storedValues`. + The maximum number of attributes in `storedValues` is 32. + It is not possible to create multiple indexes with the same `fields` attributes + and uniqueness but different `storedValues` attributes. That means the value of + `storedValues` is not considered in index creation calls when checking if an + index is already present or needs to be created. + In unique indexes, only the attributes in `fields` are checked for uniqueness, + but the attributes in `storedValues` are not checked for their uniqueness. + +- `name`: can be a string. Index names are subject to the same character + restrictions as collection names. If omitted, a name will be auto-generated so + that it is unique with respect to the collection, e.g. `idx_832910498`. + + The purpose of user-defined index names is have easy-to-remember names to + use in index hints in AQL queries. + If no index hints are used, going with the auto-generated index names is fine. + +- `sparse`: can be `true` or `false`. + You can control the sparsity for `persistent` indexes. The `inverted`, `fulltext`, + and `geo` index types are [sparse](indexing-which-index.html) by definition. + +- `unique`: can be `true` or `false` and is supported by `persistent` indexes. + By default, all user-defined indexes are non-unique. + Only the attributes in `fields` are checked for uniqueness. Any attributes in + from `storedValues` are not checked for their uniqueness. + +- `deduplicate`: can be `true` or `false` and is supported by array indexes of + type `persistent`. It controls whether inserting duplicate index values + from the same document into a unique array index will lead to a unique constraint + error or not. The default value is `true`, so only a single instance of each + non-unique index value will be inserted into the index per document. Trying to + insert a value into the index that already exists in the index will always fail, + regardless of the value of this attribute. + +- `estimates`: can be `true` or `false` and is supported by indexes of type + `persistent`. This attribute controls whether index selectivity estimates are + maintained for the index. Not maintaining index selectivity estimates can have + a slightly positive impact on write performance. + The downside of turning off index selectivity estimates will be that + the query optimizer will not be able to determine the usefulness of different + competing indexes in AQL queries when there are multiple candidate indexes to + choose from. + The `estimates` attribute is optional and defaults to `true` if not set. It will + have no effect on indexes other than `persistent` (with `hash` and `skiplist` + being mere aliases for the `persistent` index type nowadays). + +- `cacheEnabled`: can be `true` or `false` and is supported by indexes of type + `persistent`. The attribute controls whether an extra in-memory hash cache is + created for the index. The hash cache can be used to speed up index lookups. + The cache can only be used for queries that look up all index attributes via + an equality lookup (`==`). The hash cache cannot be used for range scans, + partial lookups or sorting. + The cache will be populated lazily upon reading data from the index. Writing data + into the collection or updating existing data will invalidate entries in the + cache. The cache may have a negative effect on performance in case index values + are updated more often than they are read. + The maximum size of cache entries that can be stored is currently 4 MB, i.e. + the cumulated size of all index entries for any index lookup value must be + less than 4 MB. This limitation is there to avoid storing the index entries + of "super nodes" in the cache. + `cacheEnabled` defaults to `false` and should only be used for indexes that + are known to benefit from an extra layer of caching. Also check the documentation of the specific index type for additional options. @@ -237,17 +232,17 @@ Also check the documentation of the specific index type for additional options. ### Dropping an index via a collection handle - - Drops an index: `collection.dropIndex(index)` -Drops the index. If the index does not exist, then *false* is -returned. If the index existed and was dropped, then *true* is +Drops the index. If the index does not exist, then `false` is +returned. If the index existed and was dropped, then `true` is returned. Note that you cannot drop some special indexes (e.g. the primary index of a collection or the edge index of an edge collection). +--- + `collection.dropIndex(index-handle)` Same as above. Instead of an index an index handle can be given. @@ -270,8 +265,6 @@ Same as above. Instead of an index an index handle can be given. ### Load Indexes into Memory - - Loads all indexes of this collection into memory: `collection.loadIndexesIntoMemory()` @@ -308,13 +301,11 @@ Database Methods ### Fetching an index by handle - - Finds an index: `db._index(index-handle)` -Returns the index with *index-handle* or null if no such index exists. +Returns the index with `index-handle` or null if no such index exists. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline IndexHandle @@ -333,19 +324,19 @@ Returns the index with *index-handle* or null if no such index exists. ### Dropping an index via a database handle - - Drops an index: `db._dropIndex(index)` -Drops the *index*. If the index does not exist, then *false* is -returned. If the index existed and was dropped, then *true* is +Drops the `index`. If the index does not exist, then `false` is +returned. If the index existed and was dropped, then `true` is returned. +--- + `db._dropIndex(index-handle)` -Drops the index with *index-handle*. +Drops the index with `index-handle`. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline dropIndex @@ -365,8 +356,6 @@ Drops the index with *index-handle*. ### Revalidating whether an index is used - - So you've created an index, and since its maintenance isn't for free, you definitely want to know whether your query can utilize it. diff --git a/3.10/release-notes-api-changes310.md b/3.10/release-notes-api-changes310.md index 85724fe02a..754b3d8d5b 100644 --- a/3.10/release-notes-api-changes310.md +++ b/3.10/release-notes-api-changes310.md @@ -32,8 +32,6 @@ The following APIs can reply early with an HTTP 200 status: See [Responding to Liveliness Probes](http/general.html#responding-to-liveliness-probes) for more details. -### Privilege changes - ### Endpoint return value changes Since ArangoDB 3.8, there have been two APIs for retrieving the metrics in two @@ -471,12 +469,6 @@ Both endpoints return a new `detail` attribute with additional Pregel run detail For a detailed description of the attributes, see [Pregel HTTP API](http/pregel.html#get-pregel-job-execution-status). -### Endpoints moved - -### Endpoints deprecated - -### Endpoints removed - ## JavaScript API The Computed Values feature extends the collection properties with a new diff --git a/3.10/release-notes-upgrading-changes310.md b/3.10/release-notes-upgrading-changes310.md index 2a4cdd2bba..3c8d1ec71a 100644 --- a/3.10/release-notes-upgrading-changes310.md +++ b/3.10/release-notes-upgrading-changes310.md @@ -41,10 +41,6 @@ one in arangosh. Any Foxx app or script that ran in the server console which used `db._version(true)` must now be changed to use `db._version(true).details` instead. -AQL ---- - - Indexes ------- @@ -231,13 +227,13 @@ eventually be updated to use the new option name, however. ### ArangoDB Starter -_ArangoDB Starter_ comes with the following usability improvements: +The _ArangoDB Starter_ comes with the following usability improvements: - Headers are now added to generated command files, indicating the purpose of -the file. + the file. - The process output is now shown when errors occur during process startup. - When passing through other database options, explicit hints are now displayed -to indicate how to pass those options. + to indicate how to pass those options. - The Starter now returns exit code `1` if it encounters any errors while -starting. Previously, the exit code was `0`. Note that this change can affect -any custom scripts that check for startup errors or invalid command line options. -These scripts can be adjusted so that they check for a non-zero exit code. + starting. Previously, the exit code was `0`. Note that this change can affect + any custom scripts that check for startup errors or invalid command line options. + These scripts can be adjusted so that they check for a non-zero exit code. diff --git a/3.11/appendix-references-dbobject.md b/3.11/appendix-references-dbobject.md index 731365d5e8..8f2405e6a1 100644 --- a/3.11/appendix-references-dbobject.md +++ b/3.11/appendix-references-dbobject.md @@ -44,7 +44,7 @@ The following methods exist on the *_db* object: * [db._createStatement(query)](aql/invocation-with-arangosh.html#with-db_createstatement-arangostatement) * [db._query(query)](aql/invocation-with-arangosh.html#with-db_query) -* [db._explain(query)](release-notes-new-features28.html#miscellaneous-improvements) +* [db._explain(query)](aql/execution-and-performance-explaining-queries.html) * [db._parse(query)](aql/invocation-with-arangosh.html#query-validation) *Document* diff --git a/3.11/graphs-edges.md b/3.11/graphs-edges.md index 9a5f705445..34f0fd9c78 100644 --- a/3.11/graphs-edges.md +++ b/3.11/graphs-edges.md @@ -15,16 +15,16 @@ nodes in the graphs are stored in an "edges collection", the nodes in the graph are stored in documents in regular collections. Edges in ArangoDB are special documents. In addition to the system -attributes *_key*, *_id* and *_rev*, they have the attributes *_from* and *_to*, +attributes `_key`, `_id` and `_rev`, they have the attributes `_from` and `_to`, which contain [document handles](appendix-glossary.html#document-handle), namely the start-point and the end-point of the edge. -*Example*: +**Example** -- the "edge" collection stores the information that a company's reception is sub-unit to the services unit and the services unit is sub-unit to the - CEO. You would express this relationship with the *_from* and *_to* attributes -- the "normal" collection stores all the properties about the reception, e.g. that 20 people are working there and the room number etc -- *_from* is the [document handle](appendix-glossary.html#document-handle) of the linked vertex (incoming relation) -- *_to* is the document handle of the linked vertex (outgoing relation) +- The "edge" collection stores the information that a company's reception is sub-unit to the services unit and the services unit is sub-unit to the + CEO. You would express this relationship with the `_from` and `_to` attributes +- The "normal" collection stores all the properties about the reception, e.g. that 20 people are working there and the room number etc +- `_from` is the [document handle](appendix-glossary.html#document-handle) of the linked vertex (incoming relation) +- `_to` is the document handle of the linked vertex (outgoing relation) [Edge collections](appendix-glossary.html#edge-collection) are special collections that store edge documents. Edge documents are connection documents that reference other documents. The type of a collection diff --git a/3.11/graphs-general-graphs-functions.md b/3.11/graphs-general-graphs-functions.md index ed33ad5a21..a262f2f5e7 100644 --- a/3.11/graphs-general-graphs-functions.md +++ b/3.11/graphs-general-graphs-functions.md @@ -8,12 +8,10 @@ Graph Functions This chapter describes [various functions on a graph](graphs.html). A lot of these accept a vertex (or edge) example as parameter as defined in the next section. - Examples will explain the API on the [the city graph](graphs.html#the-city-graph): ![Social Example Graph](images/cities_graph.png) - Definition of examples ---------------------- @@ -21,30 +19,23 @@ For many of the following functions *examples* can be passed in as a parameter. *Examples* are used to filter the result set for objects that match the conditions. These *examples* can have the following values: -- *null*, there is no matching executed all found results are valid. -- A *string*, only results are returned, which *_id* equal the value of the string +- `null`, there is no matching executed all found results are valid. +- A *string*, only results are returned, which `_id` equal the value of the string - An example *object*, defining a set of attributes. Only results having these attributes are matched. - A *list* containing example *objects* and/or *strings*. All results matching at least one of the elements in the list are returned. -Get vertices from edges. ------------------------- - -### Get vertex *from* of an edge - +Get vertices from edges +----------------------- - -Get the source vertex of an edge +### Get the source vertex of an edge `graph._fromVertex(edgeId)` -Returns the vertex defined with the attribute *_from* of the edge with *edgeId* as its *_id*. - - -**Parameters** - * edgeId (required) *_id* attribute of the edge +Returns the vertex defined with the attribute `_from` of the edge with `edgeId` as its `_id`. +- `edgeId` (required): `_id` attribute of the edge **Examples** @@ -61,23 +52,13 @@ Returns the vertex defined with the attribute *_from* of the edge with *edgeId* {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - -### Get vertex *to* of an edge - - - -Get the target vertex of an edge +### Get the target vertex of an edge `graph._toVertex(edgeId)` -Returns the vertex defined with the attribute *_to* of the edge with *edgeId* as its *_id*. - - -**Parameters** - - - * edgeId (required) *_id* attribute of the edge +Returns the vertex defined with the attribute `_to` of the edge with `edgeId` as its `_id`. +- `edgeId` (required): `_id` attribute of the edge **Examples** @@ -94,13 +75,10 @@ Returns the vertex defined with the attribute *_to* of the edge with *edgeId* as {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _neighbors ---------- - - -Get all neighbors of the vertices defined by the example +Get all neighbors of the vertices defined by the example. `graph._neighbors(vertexExample, options)` @@ -110,25 +88,20 @@ The complexity of this method is **O(n\*m^x)** with *n* being the vertices defin parameter vertexExamplex, *m* the average amount of neighbors and *x* the maximal depths. Hence the default call would have a complexity of **O(n\*m)**; - -**Parameters** - -- vertexExample (optional) See [Definition of examples](#definition-of-examples) -- options (optional) An object defining further options. Can have the following values: - - *direction*: The direction of the edges. Possible values are *outbound*, *inbound* and *any* (default). - - *edgeExamples*: Filter the edges, see [Definition of examples](#definition-of-examples) - - *neighborExamples*: Filter the neighbor vertices, see [Definition of examples](#definition-of-examples) - - *edgeCollectionRestriction* : One or a list of edge-collection names that should be +- `vertexExample` (optional): See [Definition of examples](#definition-of-examples) +- `options` (optional): An object defining further options. Can have the following values: + - `direction`: The direction of the edges. Possible values are `"outbound"`, `"inbound"`, and `"any"` (default). + - `edgeExamples`: Filter the edges, see [Definition of examples](#definition-of-examples) + - `neighborExamples`: Filter the neighbor vertices, see [Definition of examples](#definition-of-examples) + - `edgeCollectionRestriction` : One or a list of edge-collection names that should be considered to be on the path. - - *vertexCollectionRestriction* : One or a list of vertex-collection names that should be + - `vertexCollectionRestriction` : One or a list of vertex-collection names that should be considered on the intermediate vertex steps. - - *minDepth*: Defines the minimal number of intermediate steps to neighbors (default is 1). - - *maxDepth*: Defines the maximal number of intermediate steps to neighbors (default is 1). - + - `minDepth`: Defines the minimal number of intermediate steps to neighbors (default is 1). + - `maxDepth`: Defines the maximal number of intermediate steps to neighbors (default is 1). **Examples** - A route planner example, all neighbors of capitals. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -157,18 +130,15 @@ A route planner example, all outbound neighbors of Hamburg. {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _commonNeighbors ---------------- - - Get all common neighbors of the vertices defined by the examples. `graph._commonNeighbors(vertex1Example, vertex2Examples, optionsVertex1, optionsVertex2)` -This function returns the intersection of *graph_module._neighbors(vertex1Example, optionsVertex1)* -and *graph_module._neighbors(vertex2Example, optionsVertex2)*. +This function returns the intersection of `graph_module._neighbors(vertex1Example, optionsVertex1)` +and `graph_module._neighbors(vertex2Example, optionsVertex2)`. For parameter documentation see [_neighbors](#_neighbors). The complexity of this method is **O(n\*m^x)** with *n* being the maximal amount of vertices @@ -176,10 +146,8 @@ defined by the parameters vertexExamples, *m* the average amount of neighbors an maximal depths. Hence the default call would have a complexity of **O(n\*m)**; - **Examples** - A route planner example, all common neighbors of capitals. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -213,22 +181,17 @@ which have a maximal depth of 2 : {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _countCommonNeighbors --------------------- - - Get the amount of common neighbors of the vertices defined by the examples. `graph._countCommonNeighbors(vertex1Example, vertex2Examples, optionsVertex1, optionsVertex2)` Similar to [_commonNeighbors](#_commonneighbors) but returns count instead of the elements. - **Examples** - A route planner example, all common neighbors of capitals. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -261,12 +224,9 @@ which have a maximal depth of 2 : {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _commonProperties ----------------- - - Get the vertices of the graph that share common properties. `graph._commonProperties(vertex1Example, vertex2Examples, options)` @@ -277,24 +237,18 @@ example as parameter for vertex1Example and vertex2Example. The complexity of this method is **O(n)** with *n* being the maximal amount of vertices defined by the parameters vertexExamples. +- `vertex1Examples` (optional): Filter the set of source vertices, see [Definition of examples](#definition-of-examples) -**Parameters** - - -* vertex1Examples (optional) Filter the set of source vertices, see [Definition of examples](#definition-of-examples) - -- vertex2Examples (optional) Filter the set of vertices compared to, see [Definition of examples](#definition-of-examples) +- `vertex2Examples` (optional): Filter the set of vertices compared to, see [Definition of examples](#definition-of-examples) - options (optional) An object defining further options. Can have the following values: - - *vertex1CollectionRestriction* : One or a list of vertex-collection names that should be + - `vertex1CollectionRestriction` : One or a list of vertex-collection names that should be searched for source vertices. - - *vertex2CollectionRestriction* : One or a list of vertex-collection names that should be + - `vertex2CollectionRestriction` : One or a list of vertex-collection names that should be searched for compare vertices. - - *ignoreProperties* : One or a list of attribute names of a document that should be ignored. - + - `ignoreProperties` : One or a list of attribute names of a document that should be ignored. **Examples** - A route planner example, all locations with the same properties: {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -323,12 +277,9 @@ A route planner example, all cities which share same properties except for popul {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _countCommonProperties ---------------------- - - Get the amount of vertices of the graph that share common properties. `graph._countCommonProperties(vertex1Example, vertex2Examples, options)` @@ -336,10 +287,8 @@ Get the amount of vertices of the graph that share common properties. Similar to [_commonProperties](#_commonproperties) but returns count instead of the objects. - **Examples** - A route planner example, all locations with the same properties: {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -369,12 +318,9 @@ A route planner example, all German cities which share same properties except fo {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _paths ------ - - The _paths function returns all paths of a graph. `graph._paths(options)` @@ -384,24 +330,18 @@ This function determines all available paths in a graph. The complexity of this method is **O(n\*n\*m)** with *n* being the amount of vertices in the graph and *m* the average amount of connected edges; - -**Parameters** - - -- options (optional) An object containing options, see below: - - *direction*: The direction of the edges. Possible values are *any*, - *inbound* and *outbound* (default). - - *followCycles* (optional): If set to *true* the query follows cycles in the graph, +- `options` (optional): An object containing options, see below: + - `direction`: The direction of the edges. Possible values are `"any"`, + `"inbound"`, and `"outbound"` (default). + - `followCycles` (optional): If set to `true` the query follows cycles in the graph, default is false. - - *minLength* (optional): Defines the minimal length a path must + - `minLength` (optional): Defines the minimal length a path must have to be returned (default is 0). - - *maxLength* (optional): Defines the maximal length a path must + - `maxLength` (optional): Defines the maximal length a path must have to be returned (default is 10). - **Examples** - Return all paths of the graph "social": {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -434,8 +374,6 @@ length of 1 and a minimal length of 2: _shortestPath ------------- - - The _shortestPath function returns all shortest paths of a graph. `graph._shortestPath(startVertexExample, endVertexExample, options)` @@ -448,35 +386,29 @@ The length of a path is by default the amount of edges from one start vertex to an end vertex. The option weight allows the user to define an edge attribute representing the length. - -**Parameters** - - -- startVertexExample (optional) An example for the desired start Vertices (see [Definition of examples](#definition-of-examples)). -- endVertexExample (optional) An example for the desired end Vertices (see [Definition of examples](#definition-of-examples)). -- options (optional) An object containing options, see below: - - *direction*: The direction of the edges as a string. - Possible values are *outbound*, *inbound* and *any* (default). - - *edgeCollectionRestriction*: One or multiple edge +- `startVertexExample` (optional): An example for the desired start Vertices (see [Definition of examples](#definition-of-examples)). +- `endVertexExample` (optional): An example for the desired end Vertices (see [Definition of examples](#definition-of-examples)). +- `options` (optional): An object containing options, see below: + - `direction`: The direction of the edges as a string. + Possible values are `"outbound"`, `"inbound"`, and `"any"` (default). + - `edgeCollectionRestriction`: One or multiple edge collection names. Only edges from these collections will be considered for the path. - - *startVertexCollectionRestriction*: One or multiple vertex + - `startVertexCollectionRestriction`: One or multiple vertex collection names. Only vertices from these collections will be considered as start vertex of a path. - - *endVertexCollectionRestriction*: One or multiple vertex + - `endVertexCollectionRestriction`: One or multiple vertex collection names. Only vertices from these collections will be considered as end vertex of a path. - - *weight*: The name of the attribute of + - `weight`: The name of the attribute of the edges containing the length as a string. - - *defaultWeight*: Only used with the option *weight*. - If an edge does not have the attribute named as defined in option *weight* this default + - `defaultWeight`: Only used with the option `weight`. + If an edge does not have the attribute named as defined in option `weight` this default is used as length. If no default is supplied the default would be positive Infinity so the path could not be calculated. - **Examples** - A route planner example, shortest path from all german to all french cities: {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -507,12 +439,9 @@ A route planner example, shortest path from Hamburg and Cologne to Lyon: {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _distanceTo ----------- - - The _distanceTo function returns all paths and there distance within a graph. `graph._distanceTo(startVertexExample, endVertexExample, options)` @@ -520,10 +449,8 @@ The _distanceTo function returns all paths and there distance within a graph. This function is a wrapper of [graph._shortestPath](#_shortestpath). It does not return the actual path but only the distance between two vertices. - **Examples** - A route planner example, shortest distance from all german to all french cities: {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -554,12 +481,9 @@ A route planner example, shortest distance from Hamburg and Cologne to Lyon: {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _absoluteEccentricity --------------------- - - Get the [eccentricity](http://en.wikipedia.org/wiki/Distance_%28graph_theory%29){:target="_blank"} of the vertices defined by the examples. @@ -569,29 +493,24 @@ of the vertices defined by the examples. The function accepts an id, an example, a list of examples or even an empty example as parameter for vertexExample. - -**Parameters** - -- vertexExample (optional) Filter the vertices, see [Definition of examples](#definition-of-examples) -- options (optional) An object defining further options. Can have the following values: - - *direction*: The direction of the edges. Possible values are *outbound*, *inbound* and *any* (default). - - *edgeCollectionRestriction* : One or a list of edge-collection names that should be +- `vertexExample` (optional): Filter the vertices, see [Definition of examples](#definition-of-examples) +- `options` (optional): An object defining further options. Can have the following values: + - `direction`: The direction of the edges. Possible values are `"outbound"`, `"inbound"`, and `"any"` (default). + - `edgeCollectionRestriction` : One or a list of edge-collection names that should be considered to be on the path. - - *startVertexCollectionRestriction* : One or a list of vertex-collection names that should be + - `startVertexCollectionRestriction` : One or a list of vertex-collection names that should be considered for source vertices. - - *endVertexCollectionRestriction* : One or a list of vertex-collection names that should be + - `endVertexCollectionRestriction` : One or a list of vertex-collection names that should be considered for target vertices. - - *weight*: The name of the attribute of the edges containing the weight. - - *defaultWeight*: Only used with the option *weight*. - If an edge does not have the attribute named as defined in option *weight* this default + - `weight`: The name of the attribute of the edges containing the weight. + - `defaultWeight`: Only used with the option `weight`. + If an edge does not have the attribute named as defined in option `weight` this default is used as weight. If no default is supplied the default would be positive infinity so the path and hence the eccentricity can not be calculated. - **Examples** - A route planner example, the absolute eccentricity of all locations. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -637,12 +556,9 @@ outbound paths. {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _eccentricity ------------- - - Get the normalized [eccentricity](http://en.wikipedia.org/wiki/Distance_%28graph_theory%29){:target="_blank"} of the vertices defined by the examples. @@ -651,10 +567,8 @@ of the vertices defined by the examples. Similar to [_absoluteEccentricity](#_absoluteeccentricity) but returns a normalized result. - **Examples** - A route planner example, the eccentricity of all locations. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -683,12 +597,9 @@ A route planner example, the weighted eccentricity. {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _absoluteCloseness ------------------ - - Get the [closeness](http://en.wikipedia.org/wiki/Centrality#Closeness_centrality){:target="_blank"} of the vertices defined by the examples. @@ -696,30 +607,26 @@ of the vertices defined by the examples. `graph._absoluteCloseness(vertexExample, options)` The function accepts an id, an example, a list of examples or even an empty -example as parameter for *vertexExample*. +example as parameter for `vertexExample`. -**Parameters** - -- vertexExample (optional) Filter the vertices, see [Definition of examples](#definition-of-examples) +- `vertexExample` (optional): Filter the vertices, see [Definition of examples](#definition-of-examples) - options (optional) An object defining further options. Can have the following values: - - *direction*: The direction of the edges. Possible values are *outbound*, *inbound* and *any* (default). - - *edgeCollectionRestriction* : One or a list of edge-collection names that should be + - `direction`: The direction of the edges. Possible values are `"outbound"`, `"inbound"`, and `"any"` (default). + - `edgeCollectionRestriction` : One or a list of edge-collection names that should be considered to be on the path. - - *startVertexCollectionRestriction* : One or a list of vertex-collection names that should be + - `startVertexCollectionRestriction` : One or a list of vertex-collection names that should be considered for source vertices. - - *endVertexCollectionRestriction* : One or a list of vertex-collection names that should be + - `endVertexCollectionRestriction` : One or a list of vertex-collection names that should be considered for target vertices. - - *weight*: The name of the attribute of the edges containing the weight. - - *defaultWeight*: Only used with the option *weight*. - If an edge does not have the attribute named as defined in option *weight* this default + - `weight`: The name of the attribute of the edges containing the weight. + - `defaultWeight`: Only used with the option `weight`. + If an edge does not have the attribute named as defined in option `weight` this default is used as weight. If no default is supplied the default would be positive infinity so the path and hence the closeness can not be calculated. - **Examples** - A route planner example, the absolute closeness of all locations. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -765,12 +672,9 @@ outbound paths. {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _closeness ---------- - - Get the normalized [closeness](http://en.wikipedia.org/wiki/Centrality#Closeness_centrality){:target="_blank"} of graphs vertices. @@ -779,10 +683,8 @@ of graphs vertices. Similar to [_absoluteCloseness](#_absolutecloseness) but returns a normalized value. - **Examples** - A route planner example, the normalized closeness of all locations. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -827,35 +729,27 @@ outbound paths. {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _absoluteBetweenness -------------------- - - Get the [betweenness](http://en.wikipedia.org/wiki/Betweenness_centrality){:target="_blank"} of all vertices in the graph. `graph._absoluteBetweenness(vertexExample, options)` - -**Parameters** - -- vertexExample (optional) Filter the vertices, see [Definition of examples](#definition-of-examples) -- options (optional) An object defining further options. Can have the following values: - - *direction*: The direction of the edges. Possible values are *outbound*, *inbound* and *any* (default). - - *weight*: The name of the attribute of the edges containing the weight. - - *defaultWeight*: Only used with the option *weight*. - If an edge does not have the attribute named as defined in option *weight* this default +- `vertexExample` (optional): Filter the vertices, see [Definition of examples](#definition-of-examples) +- `options` (optional): An object defining further options. Can have the following values: + - `direction`: The direction of the edges. Possible values are `"outbound"`, `"inbound"`, and `"any"` (default). + - `weight`: The name of the attribute of the edges containing the weight. + - `defaultWeight`: Only used with the option `weight`. + If an edge does not have the attribute named as defined in option `weight` this default is used as weight. If no default is supplied the default would be positive infinity so the path and hence the betweenness can not be calculated. - **Examples** - A route planner example, the absolute betweenness of all locations. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -900,12 +794,9 @@ outbound paths. {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _betweenness ------------ - - Get the normalized [betweenness](http://en.wikipedia.org/wiki/Betweenness_centrality){:target="_blank"} of graphs vertices. @@ -914,10 +805,8 @@ of graphs vertices. Similar to [_absoluteBetweenness](#_absolutebetweenness) but returns normalized values. - **Examples** - A route planner example, the betweenness of all locations. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -962,34 +851,24 @@ outbound paths. {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _radius ------- - - Get the [radius](http://en.wikipedia.org/wiki/Eccentricity_%28graph_theory%29){:target="_blank"} of a graph. -` - - -**Parameters** - -- options (optional) An object defining further options. Can have the following values: - - *direction*: The direction of the edges. Possible values are *outbound*, *inbound* and *any* (default). - - *weight*: The name of the attribute of the edges containing the weight. - - *defaultWeight*: Only used with the option *weight*. - If an edge does not have the attribute named as defined in option *weight* this default +- `options` (optional): An object defining further options. Can have the following values: + - `direction`: The direction of the edges. Possible values are `"outbound"`, `"inbound"`, and `"any"` (default). + - `weight`: The name of the attribute of the edges containing the weight. + - `defaultWeight`: Only used with the option `weight`. + If an edge does not have the attribute named as defined in option `weight` this default is used as weight. If no default is supplied the default would be positive infinity so the path and hence the radius can not be calculated. - **Examples** - A route planner example, the radius of the graph. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -1034,34 +913,26 @@ outbound paths. {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - _diameter --------- - - Get the [diameter](http://en.wikipedia.org/wiki/Eccentricity_%28graph_theory%29){:target="_blank"} of a graph. `graph._diameter(graphName, options)` - -**Parameters** - -- options (optional) An object defining further options. Can have the following values: - - *direction*: The direction of the edges. Possible values are *outbound*, *inbound* and *any* (default). - - *weight*: The name of the attribute of the edges containing the weight. - - *defaultWeight*: Only used with the option *weight*. - If an edge does not have the attribute named as defined in option *weight* this default +- `options` (optional): An object defining further options. Can have the following values: + - `direction`: The direction of the edges. Possible values are `"outbound"`, `"inbound"`, and `"any"` (default). + - `weight`: The name of the attribute of the edges containing the weight. + - `defaultWeight`: Only used with the option `weight`. + If an edge does not have the attribute named as defined in option `weight` this default is used as weight. If no default is supplied the default would be positive infinity so the path and hence the radius can not be calculated. - **Examples** - A route planner example, the diameter of the graph. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -1104,4 +975,4 @@ outbound paths. @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphModuleDiameter3 {% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} \ No newline at end of file +{% include arangoshexample.html id=examplevar script=script result=result %} diff --git a/3.11/graphs-general-graphs-management.md b/3.11/graphs-general-graphs-management.md index be9ff0562e..6bce6a6688 100644 --- a/3.11/graphs-general-graphs-management.md +++ b/3.11/graphs-general-graphs-management.md @@ -89,12 +89,12 @@ Define a directed relation: have to be stored in these collections. Collections will be created if they do not exist. -The *relationName* defines the name of this relation and references to the -underlying edge collection. The *fromVertexCollections* is an Array of document -collections holding the start vertices. The *toVertexCollections* is an array +The `relationName` defines the name of this relation and references to the +underlying edge collection. The `fromVertexCollections` is an Array of document +collections holding the start vertices. The `toVertexCollections` is an array of document collections holding the target vertices. Relations are only allowed -in the direction from any collection in *fromVertexCollections* to any -collection in *toVertexCollections*. +in the direction from any collection in `fromVertexCollections` to any +collection in `toVertexCollections`. **Examples** @@ -303,7 +303,7 @@ Drop a Graph by its name: This can drop all collections contained in the graph as long as they are not used within other graphs. To drop the collections only belonging to this graph, -the optional parameter *drop-collections* has to be set to *true*. +the optional parameter `drop-collections` has to be set to `true`. **Examples** @@ -364,7 +364,7 @@ Add another edge definition to the graph: Extends the edge definitions of a graph. If an orphan collection is used in this edge definition, it will be removed from the orphanage. If the edge collection of the edge definition to add is already used in the graph or used in a different -graph with different *from* and/or *to* collections an error is thrown. +graph with different `from` and/or `to` collections an error is thrown. **Examples** @@ -391,7 +391,7 @@ Modify a relation definition: - `edgeDefinition` (object): The edge definition to replace the existing edge definition with the same - attribute *collection*. + attribute `collection`. - `options` (object): Additional options related to the edge definition itself. See [Edge Definition Options](#edge-definition-options). @@ -585,7 +585,7 @@ Manipulating Vertices ### Save a Vertex -Create a new vertex in *vertexCollectionName*: +Create a new vertex in `vertexCollectionName`: `graph.vertexCollectionName.save(data)` @@ -608,7 +608,7 @@ Create a new vertex in *vertexCollectionName*: ### Replace a Vertex -Replaces the data of a vertex in collection *vertexCollectionName*: +Replaces the data of a vertex in collection `vertexCollectionName`: `graph.vertexCollectionName.replace(vertexId, data, options)` @@ -636,12 +636,12 @@ Replaces the data of a vertex in collection *vertexCollectionName*: ### Update a Vertex -Updates the data of a vertex in collection *vertexCollectionName* +Updates the data of a vertex in collection `vertexCollectionName` `graph.vertexCollectionName.update(vertexId, data, options)` - `vertexId` (string): - *_id* attribute of the vertex + `_id` attribute of the vertex - `data` (object): JSON data of vertex. - `options` (object, _optional_): @@ -664,12 +664,12 @@ Updates the data of a vertex in collection *vertexCollectionName* ### Remove a Vertex -Removes a vertex in collection *vertexCollectionName* +Removes a vertex in collection `vertexCollectionName` `graph.vertexCollectionName.remove(vertexId, options)` - `vertexId` (string): - *_id* attribute of the vertex + `_id` attribute of the vertex - `options` (object, _optional_): See [collection documentation](data-modeling-documents-document-methods.html) @@ -727,7 +727,7 @@ Creates an edge from vertex `data._from` to vertex `data._to` in collection {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} -If the collections of *from* and *to* are not defined in an edge definition +If the collections of `from` and `to` are not defined in an edge definition of the graph, the edge will not be stored. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @@ -747,13 +747,13 @@ of the graph, the edge will not be stored. ### Replace an Edge -Replaces the data of an edge in collection *edgeCollectionName*. +Replaces the data of an edge in collection `edgeCollectionName`. Note that `_from` and `_to` are mandatory. `graph.edgeCollectionName.replace(edgeId, data, options)` - `edgeId` (string): - *_id* attribute of the edge + `_id` attribute of the edge - `data` (object, _optional_): JSON data of the edge - `options` (object, _optional_): @@ -776,12 +776,12 @@ Note that `_from` and `_to` are mandatory. ### Update an Edge -Updates the data of an edge in collection *edgeCollectionName* +Updates the data of an edge in collection `edgeCollectionName` `graph.edgeCollectionName.update(edgeId, data, options)` - `edgeId` (string): - *_id* attribute of the edge + `_id` attribute of the edge - `data` (object, _optional_): JSON data of the edge - `options` (object, _optional_): @@ -809,7 +809,7 @@ Removes an edge in collection edgeCollectionName `graph.edgeCollectionName.remove(edgeId, options)` - `edgeId` (string): - *_id* attribute of the edge + `_id` attribute of the edge - `options` (object, _optional_): See [collection documentation](data-modeling-documents-document-methods.html) diff --git a/3.11/graphs-pregel-algorithms.md b/3.11/graphs-pregel-algorithms.md index 3ad95e4d69..a2c5c1467c 100644 --- a/3.11/graphs-pregel-algorithms.md +++ b/3.11/graphs-pregel-algorithms.md @@ -24,13 +24,27 @@ Pregel algorithms in ArangoDB. ### PageRank -PageRank is a well known algorithm to rank vertices in a graph: the more important a vertex, the higher rank it gets. It goes back to L. Page and S. Brin's [paper](http://infolab.stanford.edu/pub/papers/google.pdf) and is used to rank pages in in search engines (hence the name). The algorithm runs until the execution converges. To specify a custom threshold, use the `threshold` parameter; to run for a fixed number of iterations, use the `maxGSS` parameter. - -The rank of a vertex is a positive real number. The algorithm starts with every vertex having the same rank (one divided by the number of vertices) and sends its rank to its out-neighbors. The computation proceeds in iterations. In each iteration, the new rank is computed according to the formula "(0.15/total number of vertices) + (0.85 * the sum of all incoming ranks)". The value sent to each of the out-neighbors is the new rank divided by the number of those neighbors, thus every out-neighbor gets the same part of the new rank. +PageRank is a well known algorithm to rank vertices in a graph: the more +important a vertex, the higher rank it gets. It goes back to L. Page and S. Brin's +[paper](http://infolab.stanford.edu/pub/papers/google.pdf){:target="_blank"} and +is used to rank pages in in search engines (hence the name). The algorithm runs +until the execution converges. To specify a custom threshold, use the `threshold` +parameter; to run for a fixed number of iterations, use the `maxGSS` parameter. + +The rank of a vertex is a positive real number. The algorithm starts with every +vertex having the same rank (one divided by the number of vertices) and sends its +rank to its out-neighbors. The computation proceeds in iterations. In each iteration, +the new rank is computed according to the formula +`(0.15/total number of vertices) + (0.85 * the sum of all incoming ranks)`. +The value sent to each of the out-neighbors is the new rank divided by the number +of those neighbors, thus every out-neighbor gets the same part of the new rank. The algorithm stops when at least one of the two conditions is satisfied: -- The maximum number of iterations is reached. This is the same `maxGSS` parameter as for the other algorithms. -- Every vertex changes its rank in the last iteration by less than a certain threshold. The default threshold is 0.00001, a custom value can be set with the `threshold` parameter. +- The maximum number of iterations is reached. This is the same `maxGSS` + parameter as for the other algorithms. +- Every vertex changes its rank in the last iteration by less than a certain + threshold. The default threshold is 0.00001, a custom value can be set with + the `threshold` parameter. ```js var pregel = require("@arangodb/pregel"); @@ -52,14 +66,18 @@ pregel.start("pagerank", "graphname", { maxGSS: 20, threshold: 0.00000001, sourc ### Single-Source Shortest Path -Calculates the distances, that is, the lengths of shortest paths from the given source to all other vertices, called _targets_. The result is written to the specified property of the respective target. +Calculates the distances, that is, the lengths of shortest paths from the +given source to all other vertices, called _targets_. The result is written +to the specified property of the respective target. The distance to the source vertex itself is returned as `0` and a length above -`9007199254740991` (max safe integer) means that there is no path from the source to the vertex in the graph. +`9007199254740991` (max safe integer) means that there is no path from the +source to the vertex in the graph. The algorithm runs until all distances are computed. The number of iterations is bounded by the diameter of your graph (the longest distance between two vertices). -A call of the algorithm requires the `source` parameter whose value is the document ID of the source vertex. The result field needs to be +A call of the algorithm requires the `source` parameter whose value is the +document ID of the source vertex. The result field needs to be specified in `_resultField` (note the underscore). ```js diff --git a/3.11/graphs-smart-graphs.md b/3.11/graphs-smart-graphs.md index 2107cbe023..7b801222b6 100644 --- a/3.11/graphs-smart-graphs.md +++ b/3.11/graphs-smart-graphs.md @@ -8,22 +8,30 @@ SmartGraphs {% include hint-ee-oasis.md feature="SmartGraphs" plural=true %} -SmartGraphs are specifically targeted at graphs that need scalability and high performance. The way SmartGraphs use the ArangoDB cluster sharding makes it extremely useful for distributing data across multiple servers with minimal network latency. +SmartGraphs are specifically targeted at graphs that need scalability and +high performance. The way SmartGraphs use the ArangoDB cluster sharding makes it +extremely useful for distributing data across multiple servers with minimal +network latency. -Most graphs have one feature - a value that is stored in every vertex - that divides the entire graph into several smaller subgraphs. These subgraphs have a large amount of edges that only connect vertices in the same subgraph and only have few edges connecting vertices from other subgraphs. If this feature is known, SmartGraphs can make use if it. +Most graphs have one feature - a value that is stored in every vertex - that +divides the entire graph into several smaller subgraphs. These subgraphs have a +large amount of edges that only connect vertices in the same subgraph and only +have few edges connecting vertices from other subgraphs. If this feature is +known, SmartGraphs can make use if it. Examples for such graphs are: - **Social Networks**
- Typically the feature here is the region/country users live in. Every user has more contacts in the same - region/country than in other regions/countries. + Typically the feature here is the region/country users live in. Every user has + more contacts in the same region/country than in other regions/countries. - **Transport Systems**
- For transport systems, the common feature is the region/country. There are many local connections, but only a - few go across countries. + For transport systems, the common feature is the region/country. There are + many local connections, but only a few go across countries. - **E-Commerce**
- In this case, the category of products is a good feature. Products of the same category are often bought together. + In this case, the category of products is a good feature. Products of the same + category are often bought together. In terms of querying there is no difference between SmartGraphs and General Graphs. For graph querying please refer to [AQL Graph Operations](aql/graphs.html) @@ -37,29 +45,49 @@ to learn more. ## How SmartGraphs work? -Typically, when you shard your data with ArangoDB the goal is to have an even distribution of data across multiple servers. This approach allows you to scale out your data at a rather high speed in most cases. However, since one of the best features of ArangoDB is fast graph traversals, this sort of distribution can start causing problems if your data grows exponentially. +Typically, when you shard your data with ArangoDB the goal is to have an even +distribution of data across multiple servers. This approach allows you to scale +out your data at a rather high speed in most cases. However, since one of the +best features of ArangoDB is fast graph traversals, this sort of distribution +can start causing problems if your data grows exponentially. -Instead of traveling across every server before returning data, SmartGraphs use a clever and optimized way of moving data through the cluster so that you retain the scalability as well as the performance of graph traversals in ArangoDB. +Instead of traveling across every server before returning data, SmartGraphs use +a clever and optimized way of moving data through the cluster so that you retain +the scalability as well as the performance of graph traversals in ArangoDB. -The examples below illustrate the difference in how data is sharded in the cluster for both scenarios. Let's take a closer look at it. +The examples below illustrate the difference in how data is sharded in the +cluster for both scenarios. Let's take a closer look at it. ### Random data distribution -The natural distribution of data for graphs that handle large datasets involves a series of highly interconnected nodes with many edges running between them. +The natural distribution of data for graphs that handle large datasets involves +a series of highly interconnected nodes with many edges running between them. ![Random data distribution](images/SmartGraphs_random_distribution.png) _The orange line indicates an example graph traversal. Notice how it touches nodes on every server._ -Once you start connecting the nodes to each other, it becomes clear that the graph traversal might need to travel across every server before returning results. This sort of distribution results in many network hops between DB-Servers and Coordinators. +Once you start connecting the nodes to each other, it becomes clear that the +graph traversal might need to travel across every server before returning +results. This sort of distribution results in many network hops between +DB-Servers and Coordinators. ### Smart data distribution -By optimizing the distribution of data, SmartGraphs reduce the number of network hops traversals require. +By optimizing the distribution of data, SmartGraphs reduce the number of network +hops traversals require. -SmartGraphs come with a concept of a `smartGraphAttribute` that is used to inform the database how exactly to shard data. When defining this attribute, think of it as a value that is stored in every vertex. For instance, in social network datasets, this attribute can be the ID or the region/country of the users. +SmartGraphs come with a concept of a `smartGraphAttribute` that is used to +inform the database how exactly to shard data. When defining this attribute, +think of it as a value that is stored in every vertex. For instance, in +social network datasets, this attribute can be the ID or the region/country of +the users. -The graph will than be automatically sharded in such a way that all vertices with the same value are stored on the same physical machine, all edges connecting vertices with identical `smartGraphAttribute` values are stored on this machine as well. Sharding with this attribute means that the relevant data is now co-located on servers, whenever possible. +The graph will than be automatically sharded in such a way that all vertices +with the same value are stored on the same physical machine, all edges +connecting vertices with identical `smartGraphAttribute` values are stored on +this machine as well. Sharding with this attribute means that the relevant data +is now co-located on servers, whenever possible. ![SmartGraphs data distribution](images/SmartGraphs_distribution.png) @@ -67,11 +95,12 @@ _The outcome of moving the data like this is that you retain the scalability as ## SmartGraphs using SatelliteCollections -These SmartGraphs are capable of using [SatelliteCollections](satellites.html) within their graph definition. Therefore, edge definitions defined between SmartCollections and -SatelliteCollections can be created. As SatelliteCollections (and the edge -collections between SmartGraph collections and SatelliteCollections) are -globally replicated to each participating DB-Server, -(weighted) graph traversal and (k-)shortest path(s) query can partially be executed locally on each DB-Server. +These SmartGraphs are capable of using [SatelliteCollections](satellites.html) +within their graph definition. Therefore, edge definitions defined between +SmartCollections and SatelliteCollections can be created. As SatelliteCollections +(and the edge collections between SmartGraph collections and SatelliteCollections) +are globally replicated to each participating DB-Server, (weighted) graph traversal, +and (k-)shortest path(s) query can partially be executed locally on each DB-Server. This means a larger part of the query can be executed fully local whenever data from the SatelliteCollections is required. @@ -79,9 +108,10 @@ whenever data from the SatelliteCollections is required. ## Disjoint SmartGraphs -Disjoint SmartGraphs are are useful for use cases which have to deal with a large forest of graphs, -when you have clearly separated subgraphs in your graph dataset. -Disjoint SmartGraphs enable the automatic sharding of these subgraphs and prohibit edges connecting them. +Disjoint SmartGraphs are are useful for use cases which have to deal with a +large forest of graphs, when you have clearly separated subgraphs in your +graph dataset. Disjoint SmartGraphs enable the automatic sharding of these +subgraphs and prohibit edges connecting them. ![Disjoint SmartGraphs](images/SmartGraphs-Disjoint.png) diff --git a/3.11/graphs-traversals-example-data.md b/3.11/graphs-traversals-example-data.md index 2d52a4f963..67b16091a0 100644 --- a/3.11/graphs-traversals-example-data.md +++ b/3.11/graphs-traversals-example-data.md @@ -5,8 +5,8 @@ description: The following examples all use a vertex collection v and an edge co Example Data ============ -The following examples all use a vertex collection *v* and an [edge collection](appendix-glossary.html#edge-collection) *e*. The vertex -collection *v* contains continents, countries, and capitals. The edge collection *e* +The following examples all use a vertex collection `v` and an [edge collection](appendix-glossary.html#edge-collection) `e`. The vertex +collection `v` contains continents, countries, and capitals. The edge collection `e` contains connections between continents and countries, and between countries and capitals. To set up the collections and populate them with initial data, the following script was used: diff --git a/3.11/graphs-traversals.md b/3.11/graphs-traversals.md index 5c8dd8f6bc..a8ed6330c1 100644 --- a/3.11/graphs-traversals.md +++ b/3.11/graphs-traversals.md @@ -7,7 +7,7 @@ Traversals ========== ArangoDB provides [several ways to query graph data](graphs.html). -Very simple operations can be composed with the low-level edge methods *edges*, *inEdges*, and *outEdges* for +Very simple operations can be composed with the low-level edge methods `edges()`, `inEdges()`, and `outEdges()` for [edge collections](graphs-edges.html). These work on named and anonymous graphs. For more complex operations, ArangoDB provides predefined traversal objects. @@ -17,7 +17,7 @@ Most of the traversal cases are covered by AQL and will be executed in an optimi Only if the logic for your is too complex to be defined using AQL filters you can use the traversal object defined here which gives you complete programmatic access to the data. -For any of the following examples, we'll be using the example collections *v* and *e*, +For any of the following examples, we'll be using the example collections `v` and `e`, populated with continents, countries and capitals data listed below (see [Example Data](graphs-traversals-example-data.html)). To learn more about graphs in ArangoDB take the free @@ -26,12 +26,12 @@ To learn more about graphs in ArangoDB take the free Starting from Scratch --------------------- -ArangoDB provides the *edges*, *inEdges*, and *outEdges* methods for edge collections. +ArangoDB provides the `edges()`, `inEdges()`, and `outEdges()` methods for edge collections. These methods can be used to quickly determine if a vertex is connected to other vertices, and which. This functionality can be exploited to write very simple graph queries in JavaScript. -For example, to determine which edges are linked to the *world* vertex, we can use *inEdges*: +For example, to determine which edges are linked to the `world` vertex, we can use `inEdges()`: ```js db.e.inEdges('v/world').forEach(function(edge) { @@ -39,7 +39,7 @@ db.e.inEdges('v/world').forEach(function(edge) { }); ``` -*inEdges* will give us all ingoing edges for the specified vertex *v/world*. The result +`inEdges()` will give us all ingoing edges for the specified vertex `v/world`. The result is a JavaScript array that we can iterate over and print the results: ```js @@ -51,8 +51,8 @@ v/continent-europe -> is-in -> v/world v/continent-north-america -> is-in -> v/world ``` -**Note**: *edges*, *inEdges*, and *outEdges* return an array of edges. If we want to retrieve -the linked vertices, we can use each edges' *_from* and *_to* attributes as follows: +**Note**: `edges()`, `inEdges()`, and `outEdges()` return an array of edges. If we want to retrieve +the linked vertices, we can use each edges' `_from` and `_to` attributes as follows: ```js db.e.inEdges('v/world').forEach(function(edge) { @@ -60,8 +60,7 @@ db.e.inEdges('v/world').forEach(function(edge) { }); ``` -We are using the *document* method from the *db* object to retrieve the connected vertices now. +We are using the `document()` method from the `db` object to retrieve the connected vertices now. While this may be sufficient for one-level graph operations, writing a traversal by hand may become too complex for multi-level traversals. - diff --git a/3.11/graphs.md b/3.11/graphs.md index 04cef7c9ae..4fb27eac81 100644 --- a/3.11/graphs.md +++ b/3.11/graphs.md @@ -8,11 +8,15 @@ ArangoDB Graphs First Steps with Graphs ----------------------- -A Graph consists of *vertices* and *edges*. Edges are stored as documents in *edge collections*. -A vertex can be a document of a *document collection* or of an *edge collection* (so *edges* can be used as *vertices*). -Which collections are used within a named graph is defined via *edge definitions*. -A named graph can contain more than one *edge definition*, at least one is needed. -Graphs allow you to structure your models in line with your domain and group them logically in collections and giving you the power to query them in the same graph queries. +A Graph consists of **vertices** and **edges**. Edges are stored as documents in +**edge collections**. A vertex can be a document of a **document collection** or +of an **edge collection** (so edges can be used as vertices). + +Which collections are used within a named graph is defined via **edge definitions**. +A named graph can contain more than one edge definition, at least one is needed. +Graphs allow you to structure your models in line with your domain and group +them logically in collections and giving you the power to query them in the same +graph queries. {% hint 'info' %} New to graphs? [**Take our free graph course for freshers**](https://www.arangodb.com/arangodb-graph-course/){:target="_blank"} diff --git a/3.11/indexing-fulltext.md b/3.11/indexing-fulltext.md index 29c76d3d3b..b04bfd3555 100644 --- a/3.11/indexing-fulltext.md +++ b/3.11/indexing-fulltext.md @@ -35,7 +35,7 @@ two documents, and searching for `prefix:Fox` would return all three documents: ``` Note that deeper nested objects are ignored. For example, a fulltext index on -*translations* would index *Fuchs*, but not *fox*, given the following document +`translations` would index `Fuchs`, but not `fox`, given the following document structure: ```js @@ -57,24 +57,22 @@ Other data types are ignored and not indexed. Accessing Fulltext Indexes from the Shell ----------------------------------------- - - Ensures that a fulltext index exists: `collection.ensureIndex({ type: "fulltext", fields: [ "field" ], minLength: minLength })` -Creates a fulltext index on all documents on attribute *field*. +Creates a fulltext index on all documents on attribute `field`. Fulltext indexes are implicitly sparse: all documents which do not have -the specified *field* attribute or that have a non-qualifying value in their -*field* attribute will be ignored for indexing. +the specified `field` attribute or that have a non-qualifying value in their +`field` attribute will be ignored for indexing. Only a single attribute can be indexed. Specifying multiple attributes is unsupported. The minimum length of words that are indexed can be specified via the -*minLength* parameter. Words shorter than minLength characters will -not be indexed. *minLength* has a default value of 2, but this value might +`minLength` parameter. Words shorter than minLength characters will +not be indexed. `minLength` has a default value of 2, but this value might be changed in future versions of ArangoDB. It is thus recommended to explicitly specify this value. diff --git a/3.11/indexing-geo.md b/3.11/indexing-geo.md index 03535f88d7..081cd0d7a4 100644 --- a/3.11/indexing-geo.md +++ b/3.11/indexing-geo.md @@ -66,9 +66,9 @@ the index can be created on one or two fields. The following examples will work in the _arangosh_ command shell. -To create a geo-spatial index on all documents using *latitude* and -*longitude* as separate attribute paths, two paths need to be specified -in the *fields* array: +To create a geo-spatial index on all documents using `latitude` and +`longitude` as separate attribute paths, two paths need to be specified +in the `fields` array: `collection.ensureIndex({ type: "geo", fields: [ "latitude", "longitude" ] })` @@ -79,7 +79,7 @@ Alternatively you can specify only one field: `collection.ensureIndex({ type: "geo", fields: [ "location" ], geoJson:false })` -It creates a geospatial index on all documents using *location* as the path to the +It creates a geospatial index on all documents using `location` as the path to the coordinates. The value of the attribute has to be an array with at least two numeric values. The array must contain the latitude (first value) and the longitude (second value). @@ -606,12 +606,11 @@ Example with two polygons, the second one with a hole: _arangosh_ Examples ------------------- - +Ensures that a geo index exists: -ensures that a geo index exists `collection.ensureIndex({ type: "geo", fields: [ "location" ] })` -Creates a geospatial index on all documents using *location* as the path to the +Creates a geospatial index on all documents using `location` as the path to the coordinates. The value of the attribute has to be an array with at least two numeric values. The array must contain the latitude (first value) and the longitude (second value). @@ -635,14 +634,18 @@ coordinates supported by a geo index. In case that the index was successfully created, an object with the index details, including the index-identifier, is returned. +--- + To create a geo index on an array attribute that contains longitude first, set -the *geoJson* attribute to `true`. This corresponds to the format described in +the `geoJson` attribute to `true`. This corresponds to the format described in [RFC 7946 Position](https://tools.ietf.org/html/rfc7946#section-3.1.1){:target="_blank"} `collection.ensureIndex({ type: "geo", fields: [ "location" ], geoJson: true })` -To create a geo-spatial index on all documents using *latitude* and *longitude* -as separate attribute paths, two paths need to be specified in the *fields* +--- + +To create a geo-spatial index on all documents using `latitude` and `longitude` +as separate attribute paths, two paths need to be specified in the `fields` array: `collection.ensureIndex({ type: "geo", fields: [ "latitude", "longitude" ] })` diff --git a/3.11/indexing-index-basics.md b/3.11/indexing-index-basics.md index d8fec2189a..7907e63dcf 100644 --- a/3.11/indexing-index-basics.md +++ b/3.11/indexing-index-basics.md @@ -12,7 +12,7 @@ of documents. User-defined indexes can be created on collection level. Most user-defined indexes can be created by specifying the names of the index attributes. -Some index types allow indexing just one attribute (e.g. *ttl* index) whereas +Some index types allow indexing just one attribute (e.g. a `ttl` index) whereas other index types allow indexing multiple attributes at the same time. Learn how to use different indexes efficiently by going through the @@ -574,9 +574,9 @@ Ensuring uniqueness of relations in edge collections You can create a combined index over the edge attributes `_from` and `_to` with the unique option enabled to prevent duplicate relations from being created. -For example, a document collection *users* might contain vertices with the document +For example, a document collection `users` might contain vertices with the document handles `user/A`, `user/B` and `user/C`. Relations between these documents can -be stored in an edge collection *knows*, for instance. You may want to make sure +be stored in an edge collection `knows`, for instance. You may want to make sure that the vertex `user/A` is never linked to `user/B` by an edge more than once. This can be achieved by adding a unique, non-sparse persistent index for the fields `_from` and `_to`: @@ -585,7 +585,7 @@ fields `_from` and `_to`: db.knows.ensureIndex({ type: "persistent", fields: [ "_from", "_to" ], unique: true }); ``` -Creating an edge `{ _from: "user/A", _to: "user/B" }` in *knows* will be accepted, +Creating an edge `{ _from: "user/A", _to: "user/B" }` in `knows` will be accepted, but only once. Another attempt to store an edge with the relation **A** → **B** will be rejected by the server with a *unique constraint violated* error. This includes updates to the `_from` and `_to` fields. @@ -607,7 +607,7 @@ if you have to perform it on a live system without a dedicated maintenance windo Indexes can also be created in "background", not using an exclusive lock during the entire index creation. The collection remains basically available, so that other CRUD operations can run on the collection while the index is being created. -This can be achieved by setting the *inBackground* attribute when creating an index. +This can be achieved by setting the `inBackground` attribute when creating an index. To create an index in the background in *arangosh* just specify `inBackground: true`, like in the following examples: @@ -626,11 +626,11 @@ db.collection.ensureIndex({ type: "fulltext", fields: [ "text" ], minLength: 4, ### Behavior Indexes that are still in the build process will not be visible via the ArangoDB APIs. -Nevertheless it is not possible to create the same index twice via the *ensureIndex* API +Nevertheless it is not possible to create the same index twice via the `ensureIndex()` method while an index is still begin created. AQL queries also will not use these indexes until -the index reports back as fully created. Note that the initial *ensureIndex* call or HTTP +the index reports back as fully created. Note that the initial `ensureIndex()` call or HTTP request will still block until the index is completely ready. Existing single-threaded -client programs can thus safely set the *inBackground* option to *true* and continue to +client programs can thus safely set the `inBackground` option to `true` and continue to work as before. {% hint 'info' %} diff --git a/3.11/indexing-index-utilization.md b/3.11/indexing-index-utilization.md index 6b88449dfb..5e097abb15 100644 --- a/3.11/indexing-index-utilization.md +++ b/3.11/indexing-index-utilization.md @@ -6,13 +6,13 @@ Index Utilization ================= In most cases ArangoDB will use a single index per collection in a given query. AQL queries can -use more than one index per collection when multiple FILTER conditions are combined with a +use more than one index per collection when multiple `FILTER` conditions are combined with a logical `OR` and these can be covered by indexes. AQL queries will use a single index per -collection when FILTER conditions are combined with logical `AND`. +collection when `FILTER` conditions are combined with logical `AND`. Creating multiple indexes on different attributes of the same collection may give the query optimizer more choices when picking an index. Creating multiple indexes on different attributes -can also help in speeding up different queries, with FILTER conditions on different attributes. +can also help in speeding up different queries, with `FILTER` conditions on different attributes. It is often beneficial to create an index on more than just one attribute. By adding more attributes to an index, an index can become more selective and thus reduce the number of documents that @@ -30,8 +30,8 @@ the highest estimated selectivity. Sparse indexes may or may not be picked by the optimizer in a query. As sparse indexes do not contain `null` values, they will not be used for queries if the optimizer cannot safely determine whether a -FILTER condition includes `null` values for the index attributes. The optimizer policy is to produce -correct results, regardless of whether or which index is used to satisfy FILTER conditions. If it is +`FILTER` condition includes `null` values for the index attributes. The optimizer policy is to produce +correct results, regardless of whether or which index is used to satisfy `FILTER` conditions. If it is unsure about whether using an index will violate the policy, it will not make use of the index. @@ -39,7 +39,7 @@ Troubleshooting --------------- When in doubt about whether and which indexes will be used for executing a given AQL query, -click the *Explain* button in the web interface in the *Queries* view or use +click the **Explain** button in the web interface in the **Queries** view or use the `explain()` method for the statement as follows (from the ArangoShell): ```js @@ -59,75 +59,93 @@ db._explain(query); If any of the explain methods shows that a query is not using indexes, the following steps may help: -* check if the attribute names in the query are correctly spelled. In a schema-free database, documents +- Check if the attribute names in the query are correctly spelled. In a schema-free database, documents in the same collection can have varying structures. There is no such thing as a *non-existing attribute* error. A query that refers to attribute names not present in any of the documents will not return an error, and obviously will not benefit from indexes. -* check the return value of the `indexes()` method for the collections used in the query and validate +- Check the return value of the `indexes()` method for the collections used in the query and validate that indexes are actually present on the attributes used in the query's filter conditions. -* if indexes are present but not used by the query, the query's FILTER condition may not be adequate: +- If indexes are present but not used by the query, the query's `FILTER` condition may not be adequate: an index will be used only for comparison operators `==`, `<`, `<=`, `>`, `>=` and `IN`. -* using indexed attributes as function parameters or in arbitrary expressions will likely lead to the index +- Using indexed attributes as function parameters or in arbitrary expressions will likely lead to the index on the attribute not being used. For example, the following queries will not use an index on `value`: - FOR doc IN collection FILTER TO_NUMBER(doc.value) == 42 RETURN doc - FOR doc IN collection FILTER doc.value - 1 == 42 RETURN doc + ```aql + FOR doc IN collection FILTER TO_NUMBER(doc.value) == 42 RETURN doc + ``` + + ```aql + FOR doc IN collection FILTER doc.value - 1 == 42 RETURN doc + ``` In these cases the queries should be rewritten so that only the index attribute is present on one side of the operator, or additional filters and indexes should be used to restrict the amount of documents otherwise. -* certain AQL functions such as `WITHIN()` or `FULLTEXT()` do utilize indexes internally, but their use is +- Certain AQL functions such as `WITHIN()` or `FULLTEXT()` do utilize indexes internally, but their use is not mentioned in the query explanation for functions in general. These functions will raise query errors (at runtime) if no suitable index is present for the collection in question. -* the query optimizer will generally pick one index per collection in a query. It can pick more than - one index per collection if the FILTER condition contains multiple branches combined with logical `OR`. +- The query optimizer will generally pick one index per collection in a query. It can pick more than + one index per collection if the `FILTER` condition contains multiple branches combined with logical `OR`. For example, the following queries can use indexes: - FOR doc IN collection FILTER doc.value1 == 42 || doc.value1 == 23 RETURN doc - FOR doc IN collection FILTER doc.value1 == 42 || doc.value2 == 23 RETURN doc - FOR doc IN collection FILTER doc.value1 < 42 || doc.value2 > 23 RETURN doc + ```aql + FOR doc IN collection FILTER doc.value1 == 42 || doc.value1 == 23 RETURN doc + ``` + + ```aql + FOR doc IN collection FILTER doc.value1 == 42 || doc.value2 == 23 RETURN doc + ``` + + ```aql + FOR doc IN collection FILTER doc.value1 < 42 || doc.value2 > 23 RETURN doc + ``` The two `OR`s in the first query will be converted to an `IN` lookup, and if there is a suitable index on `value1`, it will be used. The second query requires two separate indexes on `value1` and `value2` and will use them if present. The third query can use the indexes on `value1` and `value2` when they are sorted. -* for indexes on multiple attributes (combined indexes), the index attribute order is also important. +- For indexes on multiple attributes (combined indexes), the index attribute order is also important. For example, when creating an index on `["value1", "value2"]` (in this order), the index can be - used to satisfy the following FILTER conditions: - - FILTER doc.value1 == ... - FILTER doc.value1 > ... - FILTER doc.value1 >= ... - FILTER doc.value1 < ... - FILTER doc.value1 <= ... - FILTER doc.value1 > ... && doc.value1 < ... - FILTER doc.value1 >= ... && doc.value1 < ... - FILTER doc.value1 > ... && doc.value1 <= ... - FILTER doc.value1 >= ... && doc.value1 <= ... - FILTER doc.value1 IN ... - - FILTER doc.value1 == ... && doc.value2 == ... - FILTER doc.value1 == ... && doc.value2 > ... - FILTER doc.value1 == ... && doc.value2 >= ... - FILTER doc.value1 == ... && doc.value2 < ... - FILTER doc.value1 == ... && doc.value2 <= ... - FILTER doc.value1 == ... && doc.value2 > ... && doc.value2 < ... - FILTER doc.value1 == ... && doc.value2 >= ... && doc.value2 < ... - FILTER doc.value1 == ... && doc.value2 > ... && doc.value2 <= ... - FILTER doc.value1 == ... && doc.value2 >= ... && doc.value2 <= ... - FILTER doc.value1 == ... && doc.value2 IN ... + used to satisfy the following `FILTER` conditions: + + ```aql + FILTER doc.value1 == ... + FILTER doc.value1 > ... + FILTER doc.value1 >= ... + FILTER doc.value1 < ... + FILTER doc.value1 <= ... + FILTER doc.value1 > ... && doc.value1 < ... + FILTER doc.value1 >= ... && doc.value1 < ... + FILTER doc.value1 > ... && doc.value1 <= ... + FILTER doc.value1 >= ... && doc.value1 <= ... + FILTER doc.value1 IN ... + ``` + + ```aql + FILTER doc.value1 == ... && doc.value2 == ... + FILTER doc.value1 == ... && doc.value2 > ... + FILTER doc.value1 == ... && doc.value2 >= ... + FILTER doc.value1 == ... && doc.value2 < ... + FILTER doc.value1 == ... && doc.value2 <= ... + FILTER doc.value1 == ... && doc.value2 > ... && doc.value2 < ... + FILTER doc.value1 == ... && doc.value2 >= ... && doc.value2 < ... + FILTER doc.value1 == ... && doc.value2 > ... && doc.value2 <= ... + FILTER doc.value1 == ... && doc.value2 >= ... && doc.value2 <= ... + FILTER doc.value1 == ... && doc.value2 IN ... + ``` The index cannot be used to satisfy FILTER conditions on `value2` alone. For a combined index to be used in a query, the following algorithm is applied: - - the index attributes are checked in order, from left to right (e.g. `value1`, `value2`). - - if there is a FILTER condition on an index attribute, the index is considered a valid candidate + + - The index attributes are checked in order, from left to right (e.g. `value1`, `value2`). + - If there is a `FILTER` condition on an index attribute, the index is considered a valid candidate for the query. - - if the FILTER condition on the current attribute does not use `==` or `IN`, the following index + - If the `FILTER` condition on the current attribute does not use `==` or `IN`, the following index attributes are not considered anymore. Otherwise, they will be considered and the algorithm will check the next index attribute. diff --git a/3.11/indexing-persistent.md b/3.11/indexing-persistent.md index 3fb01e89e2..7e7d5c2dfe 100644 --- a/3.11/indexing-persistent.md +++ b/3.11/indexing-persistent.md @@ -157,7 +157,7 @@ Ensures that a unique persistent index exists: `collection.ensureIndex({ type: "persistent", fields: [ "field1", ..., "fieldn" ], unique: true })` -Creates a unique persistent index on all documents using *field1*, ... *fieldn* +Creates a unique persistent index on all documents using `field1`, ... `fieldn` as attribute paths. At least one attribute path has to be given. The index will be non-sparse by default. @@ -165,7 +165,9 @@ All documents in the collection must differ in terms of the indexed attributes. Creating a new document or updating an existing document will will fail if the attribute uniqueness is violated. -To create a sparse unique index, set the *sparse* attribute to `true`: +--- + +To create a sparse unique index, set the `sparse` attribute to `true`: `collection.ensureIndex({ type: "persistent", fields: [ "field1", ..., "fieldn" ], unique: true, sparse: true })` @@ -181,6 +183,8 @@ account for uniqueness checks. In case that the index was successfully created, an object with the index details, including the index-identifier, is returned. +***Examples** + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline ensureUniquePersistentSingle @EXAMPLE_ARANGOSH_OUTPUT{ensureUniquePersistentSingle} @@ -211,19 +215,17 @@ details, including the index-identifier, is returned. {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} - - - +--- Ensures that a non-unique persistent index exists: `collection.ensureIndex({ type: "persistent", fields: [ "field1", ..., "fieldn" ] })` -Creates a non-unique persistent index on all documents using *field1*, ... -*fieldn* as attribute paths. At least one attribute path has to be given. +Creates a non-unique persistent index on all documents using `field1`, ... +`fieldn` as attribute paths. At least one attribute path has to be given. The index will be non-sparse by default. -To create a sparse unique index, set the *sparse* attribute to `true`. +To create a sparse unique index, set the `sparse` attribute to `true`. In case that the index was successfully created, an object with the index details, including the index-identifier, is returned. @@ -253,11 +255,11 @@ Constructs a query-by-example using a persistent index: Selects all documents from the collection that match the specified example and returns a cursor. A persistent index will be used if present. -You can use *toArray*, *next*, or *hasNext* to access the -result. The result can be limited using the *skip* and *limit* +You can use `toArray()`, `next()`, or `hasNext()` to access the +result. The result can be limited using the `skip()` and `limit()` operator. -An attribute name of the form *a.b* is interpreted as attribute path, +An attribute name of the form `a.b` is interpreted as attribute path, not as attribute. If you use ```json @@ -265,7 +267,7 @@ not as attribute. If you use ``` as example, then you will find all documents, such that the attribute -*a* contains a document of the form *{c : 1 }*. For example the document +`a` contains a document of the form `{ "c" : 1 }`. For example the document ```json { "a" : { "c" : 1 }, "b" : 1 } @@ -285,8 +287,8 @@ However, if you use { "a.c" : 1 }, ``` -then you will find all documents, which contain a sub-document in *a* -that has an attribute *c* of value *1*. Both the following documents +then you will find all documents, which contain a sub-document in `a` +that has an attribute `c` of value `1`. Both the following documents ```json { "a" : { "c" : 1 }, "b" : 1 } diff --git a/3.11/indexing-ttl.md b/3.11/indexing-ttl.md index 5400170b42..eeef4e36d3 100644 --- a/3.11/indexing-ttl.md +++ b/3.11/indexing-ttl.md @@ -32,11 +32,15 @@ with an attribute that contains the documents' creation or last-updated time. Let's assume the index attribute is set to "creationDate", and the `expireAfter` attribute of the index was set to 600 seconds (10 minutes). - db.collection.ensureIndex({ type: "ttl", fields: ["creationDate"], expireAfter: 600 }); +```js +db.collection.ensureIndex({ type: "ttl", fields: ["creationDate"], expireAfter: 600 }); +``` Let's further assume the following document now gets inserted into the collection: - { "creationDate" : 1550165973 } +```json +{ "creationDate" : 1550165973 } +``` This document will be indexed with a reference point in time value of `1550165973`, which translates to the human-readable date/time `2019-02-14T17:39:33.000Z`. The document @@ -58,7 +62,9 @@ date strings without a timezone offset will be interpreted as UTC dates. The above example document using a date string attribute value would be - { "creationDate" : "2019-02-14T17:39:33.000Z" } +```json +{ "creationDate" : "2019-02-14T17:39:33.000Z" } +``` Now any data-modification access to the document could update the value in the document's `creationDate` attribute to the current date/time, which would prolong the existence @@ -78,12 +84,16 @@ Let's assume the index attribute is set to "expireDate", and the `expireAfter` attribute of the index was set to 0 seconds (immediately when wall clock time reaches the value specified in `expireDate`). - db.collection.ensureIndex({ type: "ttl", fields: ["expireDate"], expireAfter: 0 }); +```js +db.collection.ensureIndex({ type: "ttl", fields: ["expireDate"], expireAfter: 0 }); +``` When storing the following document in the collection, it will expire at the point in time specified in the document itself: - { "expireDate" : "2019-03-28T01:06:00Z" } +```json +{ "expireDate" : "2019-03-28T01:06:00Z" } +``` As `expireAfter` was set to 0, the document will count as expired when wall clock time has reached the timeout. @@ -168,14 +178,13 @@ behind with its removal operations. It should eventually catch up in case the nu of to-be-removed documents per invocation is not higher than the background thread's configured threshold values. - Accessing TTL Indexes from the Shell ------------------------------------- Ensures that a TTL index exists: `collection.ensureIndex({ type: "ttl", fields: [ "field" ], expireAfter: 600 })` -Creates a TTL index on all documents using *field* as attribute path. Exactly +Creates a TTL index on all documents using `field` as attribute path. Exactly one attribute path has to be given. The index will be sparse in all cases. In case that the index was successfully created, an object with the index diff --git a/3.11/indexing-vertex-centric.md b/3.11/indexing-vertex-centric.md index 8bbfabe4cf..7490ee4e61 100644 --- a/3.11/indexing-vertex-centric.md +++ b/3.11/indexing-vertex-centric.md @@ -1,6 +1,6 @@ --- layout: default -description: In ArangoDB there are special indices designed to speed up graph operations,especially if the graph contains supernodes (vertices that have an exceptionallyhigh amount of connected edges) +description: In ArangoDB there are special indices designed to speed up graph operations, especially if the graph contains supernodes (vertices that have an exceptionally high amount of connected edges) --- Vertex Centric Indexes ====================== diff --git a/3.11/indexing-working-with-indexes.md b/3.11/indexing-working-with-indexes.md index dbfd2f0608..7ae0f5499a 100644 --- a/3.11/indexing-working-with-indexes.md +++ b/3.11/indexing-working-with-indexes.md @@ -11,12 +11,12 @@ Learn how to use different indexes efficiently by going through the Index Identifiers and Handles ----------------------------- -An *index handle* uniquely identifies an index in the database. It is a string and -consists of the collection name and an *index identifier* separated by a `/`. The +An _index handle_ uniquely identifies an index in the database. It is a string and +consists of the collection name and an _index identifier_ separated by a `/`. The index identifier part is a numeric value that is auto-generated by ArangoDB. -A specific index of a collection can be accessed using its *index handle* or -*index identifier* as follows: +A specific index of a collection can be accessed using its _index handle_ or +_index identifier_ as follows: ```js db.collection.index(""); @@ -33,7 +33,7 @@ db.demo.index("demo/362549736"); ``` Because the index handle is unique within the database, you can leave out the -*collection* and use the shortcut: +`collection` and use the shortcut: ```js db._index("demo/362549736"); @@ -53,8 +53,6 @@ Collection Methods ### Listing all indexes of a collection - - `collection.getIndexes(withStats, withHidden)` `collection.indexes(withStats, withHidden)` @@ -63,16 +61,15 @@ Returns an array of all indexes defined for the collection. You can set the following parameters: -- **withStats** (boolean, _optional_): whether to include index figures and +- `withStats` (boolean, _optional_): whether to include index figures and estimates in the result. Default: `false` -- **withHidden** (boolean, _optional_): whether to include hidden indexes in the +- `withHidden` (boolean, _optional_): whether to include hidden indexes in the result. Default: `false` The `indexes()` method is an alias for `getIndexes()`. Note that `_key` implicitly has an index assigned to it. - **Examples** Get the index definitions for a collection: @@ -114,8 +111,6 @@ Get the index definitions for a collection, including figures and hidden indexes ### Creating an index - - Ensures that an index exists: `collection.ensureIndex(index-description)` @@ -130,93 +125,93 @@ attribute. The `index-description` input value must contain at least a `type` attribute. Other attributes may be necessary, depending on the index type. -**type** can be one of the following values: -- `"persistent"`: persistent (array) index, including vertex-centric index -- `"inverted"`: inverted index -- `"ttl"`: time-to-live index -- `"fulltext"`: fulltext index (deprecated from ArangoDB 3.10 onwards) -- `"geo"`: geo-spatial index, with _one_ or _two_ attributes -- `"zkd"`: multi-dimensional index (experimental) - -**fields** is an array of attribute paths, containing the document attributes -(or sub-attributes) to be indexed. Some indexes allow using only a single path, -and others allow multiple. -If multiple attributes are used, their order matters. - -The `.` character denotes sub-attributes in attribute paths. Attributes with -literal `.` in their name cannot be indexed. Attributes with the name `_id` -cannot be indexed either, neither as a top-level attribute nor as a sub-attribute. - -If an attribute path contains an `[*]` extension (e.g. `friends[*].id`), it means -that the index attribute value is treated as an array and all array members are -indexed separately. This is possible with `persistent` and `inverted` indexes. - -**storedValues**: in indexes of type `persistent` and `inverted`, additional -attributes can be stored in the index. These additional attributes cannot be used for -index lookups or for sorting, but they can be used for projections. This allows an -index to fully cover more queries and avoid extra document lookups. -Non-existing attributes are stored as **null** values inside **storedValues**. -The maximum number of attributes in **storedValues** is 32. -It is not possible to create multiple indexes with the same **fields** attributes -and uniqueness but different **storedValues** attributes. That means the value of -**storedValues** is not considered in index creation calls when checking if an -index is already present or needs to be created. -In unique indexes, only the attributes in **fields** are checked for uniqueness, -but the attributes in **storedValues** are not checked for their uniqueness. - -**name** can be a string. Index names are subject to the same character -restrictions as collection names. If omitted, a name will be auto-generated so -that it is unique with respect to the collection, e.g. `idx_832910498`. - -The purpose of user-defined index names is have easy-to-remember names to -use in index hints in AQL queries. -If no index hints are used, going with the auto-generated index names is fine. - -**sparse** can be `true` or `false`. -You can control the sparsity for `persistent` indexes. The `inverted`, `fulltext`, -and `geo` index types are [sparse](indexing-which-index.html) by definition. - -**unique** can be `true` or `false` and is supported by `persistent` indexes. -By default, all user-defined indexes are non-unique. -Only the attributes in **fields** are checked for uniqueness. Any attributes in -from **storedValues** are not checked for their uniqueness. - -**deduplicate** can be `true` or `false` and is supported by array indexes of -type `persistent`. It controls whether inserting duplicate index values -from the same document into a unique array index will lead to a unique constraint -error or not. The default value is `true`, so only a single instance of each -non-unique index value will be inserted into the index per document. Trying to -insert a value into the index that already exists in the index will always fail, -regardless of the value of this attribute. - -**estimates** can be `true` or `false` and is supported by indexes of type -`persistent`. This attribute controls whether index selectivity estimates are -maintained for the index. Not maintaining index selectivity estimates can have -a slightly positive impact on write performance. -The downside of turning off index selectivity estimates will be that -the query optimizer will not be able to determine the usefulness of different -competing indexes in AQL queries when there are multiple candidate indexes to -choose from. -The **estimates** attribute is optional and defaults to `true` if not set. It will -have no effect on indexes other than `persistent` (with `hash` and `skiplist` -being mere aliases for the `persistent` index type nowadays). - -**cacheEnabled** can be `true` or `false` and is supported by indexes of type -`persistent`. The attribute controls whether an extra in-memory hash cache is -created for the index. The hash cache can be used to speed up index lookups. -The cache can only be used for queries that look up all index attributes via -an equality lookup (`==`). The hash cache cannot be used for range scans, -partial lookups or sorting. -The cache will be populated lazily upon reading data from the index. Writing data -into the collection or updating existing data will invalidate entries in the -cache. The cache may have a negative effect on performance in case index values -are updated more often than they are read. -The maximum size of cache entries that can be stored is currently 4 MB, i.e. -the cumulated size of all index entries for any index lookup value must be -less than 4 MB. This limitation is there to avoid storing the index entries -of "super nodes" in the cache. -**cacheEnabled** defaults to `false` and should only be used for indexes that -are known to benefit from an extra layer of caching. +- `type`: can be one of the following values: + - `"persistent"`: persistent (array) index, including vertex-centric index + - `"inverted"`: inverted index + - `"ttl"`: time-to-live index + - `"fulltext"`: full-text index (deprecated from ArangoDB 3.10 onwards) + - `"geo"`: geo-spatial index, with _one_ or _two_ attributes + - `"zkd"`: multi-dimensional index (experimental) + +- `fields`: an array of attribute paths, containing the document attributes + (or sub-attributes) to be indexed. Some indexes allow using only a single path, + and others allow multiple. + If multiple attributes are used, their order matters. + + The `.` character denotes sub-attributes in attribute paths. Attributes with + literal `.` in their name cannot be indexed. Attributes with the name `_id` + cannot be indexed either, neither as a top-level attribute nor as a sub-attribute. + + If an attribute path contains an `[*]` extension (e.g. `friends[*].id`), it means + that the index attribute value is treated as an array and all array members are + indexed separately. This is possible with `persistent` and `inverted` indexes. + +- `storedValues`: in indexes of type `persistent` and `inverted`, additional + attributes can be stored in the index. These additional attributes cannot be used for + index lookups or for sorting, but they can be used for projections. This allows an + index to fully cover more queries and avoid extra document lookups. + Non-existing attributes are stored as `null` values inside `storedValues`. + The maximum number of attributes in `storedValues` is 32. + It is not possible to create multiple indexes with the same `fields` attributes + and uniqueness but different `storedValues` attributes. That means the value of + `storedValues` is not considered in index creation calls when checking if an + index is already present or needs to be created. + In unique indexes, only the attributes in `fields` are checked for uniqueness, + but the attributes in `storedValues` are not checked for their uniqueness. + +- `name`: can be a string. Index names are subject to the same character + restrictions as collection names. If omitted, a name will be auto-generated so + that it is unique with respect to the collection, e.g. `idx_832910498`. + + The purpose of user-defined index names is have easy-to-remember names to + use in index hints in AQL queries. + If no index hints are used, going with the auto-generated index names is fine. + +- `sparse`: can be `true` or `false`. + You can control the sparsity for `persistent` indexes. The `inverted`, `fulltext`, + and `geo` index types are [sparse](indexing-which-index.html) by definition. + +- `unique`: can be `true` or `false` and is supported by `persistent` indexes. + By default, all user-defined indexes are non-unique. + Only the attributes in `fields` are checked for uniqueness. Any attributes in + from `storedValues` are not checked for their uniqueness. + +- `deduplicate`: can be `true` or `false` and is supported by array indexes of + type `persistent`. It controls whether inserting duplicate index values + from the same document into a unique array index will lead to a unique constraint + error or not. The default value is `true`, so only a single instance of each + non-unique index value will be inserted into the index per document. Trying to + insert a value into the index that already exists in the index will always fail, + regardless of the value of this attribute. + +- `estimates`: can be `true` or `false` and is supported by indexes of type + `persistent`. This attribute controls whether index selectivity estimates are + maintained for the index. Not maintaining index selectivity estimates can have + a slightly positive impact on write performance. + The downside of turning off index selectivity estimates will be that + the query optimizer will not be able to determine the usefulness of different + competing indexes in AQL queries when there are multiple candidate indexes to + choose from. + The `estimates` attribute is optional and defaults to `true` if not set. It will + have no effect on indexes other than `persistent` (with `hash` and `skiplist` + being mere aliases for the `persistent` index type nowadays). + +- `cacheEnabled`: can be `true` or `false` and is supported by indexes of type + `persistent`. The attribute controls whether an extra in-memory hash cache is + created for the index. The hash cache can be used to speed up index lookups. + The cache can only be used for queries that look up all index attributes via + an equality lookup (`==`). The hash cache cannot be used for range scans, + partial lookups or sorting. + The cache will be populated lazily upon reading data from the index. Writing data + into the collection or updating existing data will invalidate entries in the + cache. The cache may have a negative effect on performance in case index values + are updated more often than they are read. + The maximum size of cache entries that can be stored is currently 4 MB, i.e. + the cumulated size of all index entries for any index lookup value must be + less than 4 MB. This limitation is there to avoid storing the index entries + of "super nodes" in the cache. + `cacheEnabled` defaults to `false` and should only be used for indexes that + are known to benefit from an extra layer of caching. Also check the documentation of the specific index type for additional options. @@ -237,17 +232,17 @@ Also check the documentation of the specific index type for additional options. ### Dropping an index via a collection handle - - Drops an index: `collection.dropIndex(index)` -Drops the index. If the index does not exist, then *false* is -returned. If the index existed and was dropped, then *true* is +Drops the index. If the index does not exist, then `false` is +returned. If the index existed and was dropped, then `true` is returned. Note that you cannot drop some special indexes (e.g. the primary index of a collection or the edge index of an edge collection). +--- + `collection.dropIndex(index-handle)` Same as above. Instead of an index an index handle can be given. @@ -270,8 +265,6 @@ Same as above. Instead of an index an index handle can be given. ### Load Indexes into Memory - - Loads all indexes of this collection into memory: `collection.loadIndexesIntoMemory()` @@ -308,13 +301,11 @@ Database Methods ### Fetching an index by handle - - Finds an index: `db._index(index-handle)` -Returns the index with *index-handle* or null if no such index exists. +Returns the index with `index-handle` or null if no such index exists. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline IndexHandle @@ -333,19 +324,19 @@ Returns the index with *index-handle* or null if no such index exists. ### Dropping an index via a database handle - - Drops an index: `db._dropIndex(index)` -Drops the *index*. If the index does not exist, then *false* is -returned. If the index existed and was dropped, then *true* is +Drops the `index`. If the index does not exist, then `false` is +returned. If the index existed and was dropped, then `true` is returned. +--- + `db._dropIndex(index-handle)` -Drops the index with *index-handle*. +Drops the index with `index-handle`. {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline dropIndex @@ -365,8 +356,6 @@ Drops the index with *index-handle*. ### Revalidating whether an index is used - - So you've created an index, and since its maintenance isn't for free, you definitely want to know whether your query can utilize it. diff --git a/3.8/appendix-references-dbobject.md b/3.8/appendix-references-dbobject.md index 05de939614..2dca80344a 100644 --- a/3.8/appendix-references-dbobject.md +++ b/3.8/appendix-references-dbobject.md @@ -44,7 +44,7 @@ The following methods exist on the *_db* object: * [db._createStatement(query)](aql/invocation-with-arangosh.html#with-_createstatement-arangostatement) * [db._query(query)](aql/invocation-with-arangosh.html#with-db_query) -* [db._explain(query)](release-notes-new-features28.html#miscellaneous-improvements) +* [db._explain(query)](aql/execution-and-performance-explaining-queries.html) * [db._parse(query)](aql/invocation-with-arangosh.html#query-validation) *Document* diff --git a/3.9/appendix-references-dbobject.md b/3.9/appendix-references-dbobject.md index ab006a2e5f..8c998dbf6c 100644 --- a/3.9/appendix-references-dbobject.md +++ b/3.9/appendix-references-dbobject.md @@ -44,7 +44,7 @@ The following methods exist on the *_db* object: * [db._createStatement(query)](aql/invocation-with-arangosh.html#with-_createstatement-arangostatement) * [db._query(query)](aql/invocation-with-arangosh.html#with-db_query) -* [db._explain(query)](release-notes-new-features28.html#miscellaneous-improvements) +* [db._explain(query)](aql/execution-and-performance-explaining-queries.html) * [db._parse(query)](aql/invocation-with-arangosh.html#query-validation) *Document* From 26199e7fe49dd5a752e01d263d211d9a59d9a442 Mon Sep 17 00:00:00 2001 From: Simran Spiller Date: Thu, 20 Oct 2022 01:42:01 +0200 Subject: [PATCH 13/18] Add graph_module._listObjects(), improve example results, style --- 3.10/graphs-enterprise-graphs-management.md | 16 +- 3.10/graphs-general-graphs-management.md | 303 +++++++++++--------- 3.10/graphs-general-graphs.md | 22 +- 3.10/graphs-satellite-graphs-details.md | 190 ++++++------ 3.10/graphs-smart-graphs-management.md | 34 +-- 3.10/indexing-index-basics.md | 47 +-- 3.10/indexing-index-utilization.md | 2 - 3.10/indexing-persistent.md | 2 +- 3.10/indexing-vertex-centric.md | 6 +- 3.10/indexing-which-index.md | 64 +---- 3.11/graphs-general-graphs-management.md | 245 +++++++++------- 3.11/graphs-general-graphs.md | 22 +- 3.11/graphs-satellite-graphs-details.md | 190 ++++++------ 3.11/indexing-index-basics.md | 47 +-- 3.11/indexing-index-utilization.md | 2 - 3.11/indexing-persistent.md | 2 +- 3.11/indexing-vertex-centric.md | 6 +- 3.11/indexing-which-index.md | 64 +---- _data/3.10-manual.yml | 2 +- _data/3.11-manual.yml | 2 +- 20 files changed, 622 insertions(+), 646 deletions(-) diff --git a/3.10/graphs-enterprise-graphs-management.md b/3.10/graphs-enterprise-graphs-management.md index b45a178677..29f99830ca 100644 --- a/3.10/graphs-enterprise-graphs-management.md +++ b/3.10/graphs-enterprise-graphs-management.md @@ -40,7 +40,7 @@ enforce the correct sharding. This cannot be modified after the creation of the graph. - `isSmart` (bool): Mandatory parameter that needs to be set to `true` to create an EnterpriseGraph. - - `satellites` (array, optional): + - `satellites` (array, _optional_): An array of collection names that is used to create [SatelliteCollections](satellites.html) for an EnterpriseGraph. Each array element must be a string and a valid collection name. @@ -61,8 +61,8 @@ that has been declared as orphan. All collections used within the creation process are newly created. The process fails if one of them already exists, unless they have the -correct sharding already. All newly created collections will immediately -be dropped again in the failure case. +correct sharding already. All newly created collections are immediately +dropped again in the failure case. ### Examples @@ -132,8 +132,8 @@ Remove a vertex collection from the graph: - `vertexCollectionName` (string): Name of vertex collection. - `dropCollection` (bool, _optional_): - If true, the collection is dropped if it is not used in any other graph. - Default: false. + If `true`, the collection is dropped if it is not used in any other graph. + Default: `false`. In most cases, this function works identically to the General Graph one. However, there is one special case: the first vertex collection added to the graph @@ -243,8 +243,8 @@ Delete an edge definition from the graph: - `edgeCollectionName` (string): Name of edge collection. - `dropCollection` (bool, _optional_): - If true, the collection is dropped if it is not used in any other graph. - Default: false. + If `true`, the collection is dropped if it is not used in any other graph. + Default: `false`. ### Examples @@ -295,7 +295,7 @@ Remove a SmartGraph: - `graphName` (string): Name of the Graph. - `dropCollections` (bool, _optional_): - Define if collections should be dropped. Default: false. + Define if collections should be dropped. Default: `false`. ### Examples diff --git a/3.10/graphs-general-graphs-management.md b/3.10/graphs-general-graphs-management.md index 6bce6a6688..6c64a782d4 100644 --- a/3.10/graphs-general-graphs-management.md +++ b/3.10/graphs-general-graphs-management.md @@ -25,12 +25,12 @@ Create a list of edge definitions to construct a graph: An object representing a definition of one relation in the graph The list of edge definitions of a graph can be managed by the graph module -itself. This function is the entry point for the management and will return +itself. This function is the entry point for the management and returns the correct list. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphEdgeDefinitionsSimple @EXAMPLE_ARANGOSH_OUTPUT{generalGraphEdgeDefinitionsSimple} var graph_module = require("@arangodb/general-graph"); @@ -39,8 +39,8 @@ the correct list. edgedefinitions = graph_module._edgeDefinitions(directed_relation, undirected_relation); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphEdgeDefinitionsSimple -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Extend the List @@ -58,7 +58,7 @@ this function can be used to add more definitions to the initial list. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphEdgeDefinitionsExtend @EXAMPLE_ARANGOSH_OUTPUT{generalGraphEdgeDefinitionsExtend} var graph_module = require("@arangodb/general-graph"); @@ -68,8 +68,8 @@ this function can be used to add more definitions to the initial list. edgedefinitions = graph_module._extendEdgeDefinitions(undirected_relation); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphEdgeDefinitionsExtend -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Relation @@ -79,14 +79,14 @@ Define a directed relation: - `relationName` (string): The name of the edge collection where the edges should be stored. - Will be created if it does not yet exist. + It is created if it does not exist yet. - `fromVertexCollections` (string\|array): One or a list of collection names. Source vertices for the edges - have to be stored in these collections. Collections will be created if they + have to be stored in these collections. Collections are created if they do not exist. - `toVertexCollections` (string\|array): One or a list of collection names. Target vertices for the edges - have to be stored in these collections. Collections will be created if they + have to be stored in these collections. Collections are created if they do not exist. The `relationName` defines the name of this relation and references to the @@ -98,32 +98,36 @@ collection in `toVertexCollections`. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} - @startDocuBlockInline generalGraphRelationDefinitionSave - @EXAMPLE_ARANGOSH_OUTPUT{generalGraphRelationDefinitionSave} - var graph_module = require("@arangodb/general-graph"); - graph_module._relation("has_bought", ["Customer", "Company"], ["Groceries", "Electronics"]); - @END_EXAMPLE_ARANGOSH_OUTPUT - @endDocuBlock generalGraphRelationDefinitionSave -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} +A relation from one vertex collection to another: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphRelationDefinitionSingle @EXAMPLE_ARANGOSH_OUTPUT{generalGraphRelationDefinitionSingle} var graph_module = require("@arangodb/general-graph"); graph_module._relation("has_bought", "Customer", "Product"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphRelationDefinitionSingle -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} + +A relation from multiple vertex collections to multiple others: + + {% arangoshexample examplevar="examplevar" script="script" result="result" %} + @startDocuBlockInline generalGraphRelationDefinitionSave + @EXAMPLE_ARANGOSH_OUTPUT{generalGraphRelationDefinitionSave} + var graph_module = require("@arangodb/general-graph"); + graph_module._relation("has_bought", ["Customer", "Company"], ["Groceries", "Electronics"]); + @END_EXAMPLE_ARANGOSH_OUTPUT + @endDocuBlock generalGraphRelationDefinitionSave + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Edge Definition Options The following edge definition options are supported: -- `satellites` (array): - An array of collection names that will be used to create [SatelliteCollections](satellites.html) +- `satellites` (array, _optional_): + An array of collection names that is used to create [SatelliteCollections](satellites.html) for a (Disjoint) SmartGraph using SatelliteCollections (Enterprise Edition only). Each array element must be a string and a valid collection name. The collection type cannot be modified later. @@ -153,7 +157,7 @@ creation process are created if they do not exist. Create an empty graph, edge definitions can be added at runtime: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphCreateGraphNoData @EXAMPLE_ARANGOSH_OUTPUT{generalGraphCreateGraphNoData} var graph_module = require("@arangodb/general-graph"); @@ -161,13 +165,13 @@ Create an empty graph, edge definitions can be added at runtime: ~ graph_module._drop("myGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphCreateGraphNoData -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Create a graph using an edge collection `edges` and a single vertex collection `vertices`: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphCreateGraphSingle @EXAMPLE_ARANGOSH_OUTPUT{generalGraphCreateGraphSingle} ~ db._drop("edges"); @@ -178,12 +182,12 @@ vertex collection `vertices`: ~ graph_module._drop("myGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphCreateGraphSingle -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Create a graph with edge definitions and orphan collections: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphCreateGraph2 @EXAMPLE_ARANGOSH_OUTPUT{generalGraphCreateGraph2} var graph_module = require("@arangodb/general-graph"); @@ -192,14 +196,14 @@ Create a graph with edge definitions and orphan collections: ~ graph_module._drop("myGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphCreateGraph2 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Complete Example to Create a Graph Example call: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline general_graph_create_graph_example1 @EXAMPLE_ARANGOSH_OUTPUT{general_graph_create_graph_example1} var graph_module = require("@arangodb/general-graph"); @@ -218,12 +222,12 @@ Example call: ~ db._drop("friend_of"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock general_graph_create_graph_example1 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Alternative call: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline general_graph_create_graph_example2 @EXAMPLE_ARANGOSH_OUTPUT{general_graph_create_graph_example2} var graph_module = require("@arangodb/general-graph"); @@ -240,29 +244,55 @@ Alternative call: ~ db._drop("friend_of"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock general_graph_create_graph_example2 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} List available Graphs --------------------- -List all graphs: +Lists all graph names stored in this database: `graph_module._list()` -Lists all graph names stored in this database. +--- + +Lists all graph definitions stored in this database: + +`graph_module._listObjects()` **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} +List the graph names: + + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphList @EXAMPLE_ARANGOSH_OUTPUT{generalGraphList} var graph_module = require("@arangodb/general-graph"); + ~ graph_module._create("myGraph"); + ~ graph_module._create("myStore"); graph_module._list(); + ~ graph_module._drop("myGraph"); + ~ graph_module._drop("myStore"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphList -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} + +List the graph definitions: + + {% arangoshexample examplevar="examplevar" script="script" result="result" %} + @startDocuBlockInline generalGraphListObjects + @EXAMPLE_ARANGOSH_OUTPUT{generalGraphListObjects} + var graph_module = require("@arangodb/general-graph"); + ~ graph_module._create("myGraph", [ { collection: "edges", "from": [ "vertices" ], "to" : [ "vertices" ] } ]); + ~ graph_module._create("myStore", [ { collection: "friend_of", from: [ "Customer" ], to: [ "Customer" ] }, { collection: "has_bought", from: [ "Customer", "Company" ], to: [ "Groceries", "Electronics" ] } ]); + graph_module._listObjects(); + ~ graph_module._drop("myGraph", true); + ~ graph_module._drop("myStore", true); + @END_EXAMPLE_ARANGOSH_OUTPUT + @endDocuBlock generalGraphListObjects + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Load a Graph ------------ @@ -276,7 +306,7 @@ Get a graph by its name: **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphLoadGraph @EXAMPLE_ARANGOSH_OUTPUT{generalGraphLoadGraph} ~ var examples = require("@arangodb/graph-examples/example-graph.js"); @@ -286,8 +316,8 @@ Get a graph by its name: ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphLoadGraph -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Remove a Graph -------------- @@ -299,7 +329,7 @@ Drop a Graph by its name: - `graphName` (string): Unique identifier of the graph - `dropCollections` (bool, _optional_): - Define if collections should be dropped (default: false) + Define if collections should be dropped (default: `false`) This can drop all collections contained in the graph as long as they are not used within other graphs. To drop the collections only belonging to this graph, @@ -309,7 +339,7 @@ the optional parameter `drop-collections` has to be set to `true`. Drop a graph and keep collections: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphDropGraphKeep @EXAMPLE_ARANGOSH_OUTPUT{generalGraphDropGraphKeep} ~ var examples = require("@arangodb/graph-examples/example-graph.js"); @@ -325,10 +355,12 @@ Drop a graph and keep collections: ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphDropGraphKeep -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} + +Drop a graph and its collections: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphDropGraphDropCollections @EXAMPLE_ARANGOSH_OUTPUT{generalGraphDropGraphDropCollections} ~ var examples = require("@arangodb/graph-examples/example-graph.js"); @@ -340,8 +372,8 @@ Drop a graph and keep collections: db._collection("relation"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphDropGraphDropCollections -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Modify a Graph definition at runtime ------------------------------------ @@ -362,26 +394,26 @@ Add another edge definition to the graph: See [Edge Definition Options](#edge-definition-options). Extends the edge definitions of a graph. If an orphan collection is used in this -edge definition, it will be removed from the orphanage. If the edge collection of +edge definition, it is removed from the orphanage. If the edge collection of the edge definition to add is already used in the graph or used in a different graph with different `from` and/or `to` collections an error is thrown. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline general_graph__extendEdgeDefinitions @EXAMPLE_ARANGOSH_OUTPUT{general_graph__extendEdgeDefinitions} var graph_module = require("@arangodb/general-graph") - ~ if (graph_module._exists("myGraph")){var blub = graph_module._drop("myGraph", true);} var ed1 = graph_module._relation("myEC1", ["myVC1"], ["myVC2"]); var ed2 = graph_module._relation("myEC2", ["myVC1"], ["myVC3"]); var graph = graph_module._create("myGraph", [ed1]); graph._extendEdgeDefinitions(ed2); - ~ var blub = graph_module._drop("myGraph", true); + graph = graph_module._graph("myGraph"); + ~ graph_module._drop("myGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock general_graph__extendEdgeDefinitions -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Modify an Edge Definition @@ -396,29 +428,28 @@ Modify a relation definition: Additional options related to the edge definition itself. See [Edge Definition Options](#edge-definition-options). -Edits one relation definition of a graph. The edge definition used as argument will -replace the existing edge definition of the graph which has the same collection. +Edits one relation definition of a graph. The edge definition used as argument +replaces the existing edge definition of the graph which has the same collection. Vertex Collections of the replaced edge definition that are not used in the new -definition will transform to an orphan. Orphans that are used in this new edge -definition will be deleted from the list of orphans. Other graphs with the same edge -definition will be modified, too. +definition are transformed to an orphan. Orphans that are used in this new edge +definition are deleted from the list of orphans. Other graphs with the same edge +definition are modified, too. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline general_graph__editEdgeDefinition @EXAMPLE_ARANGOSH_OUTPUT{general_graph__editEdgeDefinition} var graph_module = require("@arangodb/general-graph") - ~ if (graph_module._exists("myGraph")){var blub = graph_module._drop("myGraph", true);} var original = graph_module._relation("myEC1", ["myVC1"], ["myVC2"]); var modified = graph_module._relation("myEC1", ["myVC2"], ["myVC3"]); var graph = graph_module._create("myGraph", [original]); graph._editEdgeDefinitions(modified); - ~ var blub = graph_module._drop("myGraph", true); + ~ graph_module._drop("myGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock general_graph__editEdgeDefinition -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Delete an Edge Definition @@ -429,58 +460,56 @@ Delete one relation definition: - `edgeCollectionName` (string): Name of edge collection in the relation definition. - `dropCollection` (bool, _optional_): - Define if the edge collection should be dropped. Default: false + Define if the edge collection should be dropped. Default: `false` Deletes a relation definition defined by the edge collection of a graph. If the -collections defined in the edge definition (collection, from, to) are not used -in another edge definition of the graph, they will be moved to the orphanage. +collections defined in the edge definition (`collection`, `from`, `to`) are not used +in another edge definition of the graph, they are moved to the orphanage. **Examples** Remove an edge definition but keep the edge collection: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline general_graph__deleteEdgeDefinitionNoDrop @EXAMPLE_ARANGOSH_OUTPUT{general_graph__deleteEdgeDefinitionNoDrop} var graph_module = require("@arangodb/general-graph") - ~ if (graph_module._exists("myGraph")){var blub = graph_module._drop("myGraph", true);} var ed1 = graph_module._relation("myEC1", ["myVC1"], ["myVC2"]); var ed2 = graph_module._relation("myEC2", ["myVC1"], ["myVC3"]); var graph = graph_module._create("myGraph", [ed1, ed2]); graph._deleteEdgeDefinition("myEC1"); db._collection("myEC1"); ~ db._drop("myEC1"); - ~ var blub = graph_module._drop("myGraph", true); + ~ graph_module._drop("myGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock general_graph__deleteEdgeDefinitionNoDrop -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Remove an edge definition and drop the edge collection: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline general_graph__deleteEdgeDefinitionWithDrop @EXAMPLE_ARANGOSH_OUTPUT{general_graph__deleteEdgeDefinitionWithDrop} var graph_module = require("@arangodb/general-graph") - ~ if (graph_module._exists("myGraph")){var blub = graph_module._drop("myGraph", true);} var ed1 = graph_module._relation("myEC1", ["myVC1"], ["myVC2"]); var ed2 = graph_module._relation("myEC2", ["myVC1"], ["myVC3"]); var graph = graph_module._create("myGraph", [ed1, ed2]); graph._deleteEdgeDefinition("myEC1", true); db._collection("myEC1"); ~ db._drop("myEC1"); - ~ var blub = graph_module._drop("myGraph", true); + ~ graph_module._drop("myGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock general_graph__deleteEdgeDefinitionWithDrop -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Extend Vertex Collections Each graph can have an arbitrary amount of vertex collections, which are not part of any edge definition of the graph. These collections are called orphan collections. If the graph is extended with an edge definition using one of the -orphans, it will be removed from the set of orphan collection automatically. +orphans, it is removed from the set of orphan collection automatically. #### Add a Vertex Collection @@ -491,31 +520,31 @@ Add a vertex collection to the graph: - `vertexCollectionName` (string): Name of vertex collection. - `createCollection` (bool, _optional_): - If true the collection will be created if it does not exist. Default: true + If `true`, the collection is created if it does not exist. Default: `true` - `options` (object, _optional_): Additional options related to the edge definition itself. See [Edge Definition Options](#edge-definition-options). Adds a vertex collection to the set of orphan collections of the graph. If the -collection does not exist, it will be created. If it is already used by any edge -definition of the graph, an error will be thrown. +collection does not exist, it is created. If it is already used by any edge +definition of the graph, an error is thrown. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline general_graph__addVertexCollection @EXAMPLE_ARANGOSH_OUTPUT{general_graph__addVertexCollection} var graph_module = require("@arangodb/general-graph"); - ~ if (graph_module._exists("myGraph")){var blub = graph_module._drop("myGraph", true);} var ed1 = graph_module._relation("myEC1", ["myVC1"], ["myVC2"]); var graph = graph_module._create("myGraph", [ed1]); graph._addVertexCollection("myVC3", true); + graph = graph_module._graph("myGraph"); ~ db._drop("myVC3"); - ~ var blub = graph_module._drop("myGraph", true); + ~ graph_module._drop("myGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock general_graph__addVertexCollection -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} #### Get the Orphaned Collections @@ -528,20 +557,19 @@ edge definition. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline general_graph__orphanCollections @EXAMPLE_ARANGOSH_OUTPUT{general_graph__orphanCollections} var graph_module = require("@arangodb/general-graph") - ~ if (graph_module._exists("myGraph")){var blub = graph_module._drop("myGraph", true);} var ed1 = graph_module._relation("myEC1", ["myVC1"], ["myVC2"]); var graph = graph_module._create("myGraph", [ed1]); graph._addVertexCollection("myVC3", true); graph._orphanCollections(); - ~ var blub = graph_module._drop("myGraph", true); + ~ graph_module._drop("myGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock general_graph__orphanCollections -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} #### Remove a Vertex Collection @@ -552,8 +580,8 @@ Remove a vertex collection from the graph: - `vertexCollectionName` (string): Name of vertex collection. - `dropCollection` (bool, _optional_): - If true the collection will be dropped if it is not used in any other graph. - Default: false + If `true`, the collection is dropped if it is not used in any other graph. + Default: `false` Removes a vertex collection from the graph. Only collections not used in any relation definition can be removed. @@ -561,11 +589,10 @@ Optionally the collection can be deleted, if it is not used in any other graph. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline general_graph__removeVertexCollections @EXAMPLE_ARANGOSH_OUTPUT{general_graph__removeVertexCollections} var graph_module = require("@arangodb/general-graph") - ~ if (graph_module._exists("myGraph")){var blub = graph_module._drop("myGraph", true);} var ed1 = graph_module._relation("myEC1", ["myVC1"], ["myVC2"]); var graph = graph_module._create("myGraph", [ed1]); graph._addVertexCollection("myVC3", true); @@ -574,11 +601,11 @@ Optionally the collection can be deleted, if it is not used in any other graph. graph._removeVertexCollection("myVC3"); graph._orphanCollections(); ~ db._drop("myVC3"); - ~ var blub = graph_module._drop("myGraph", true); + ~ graph_module._drop("myGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock general_graph__removeVertexCollections -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Manipulating Vertices --------------------- @@ -594,7 +621,7 @@ Create a new vertex in `vertexCollectionName`: **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphVertexCollectionSave @EXAMPLE_ARANGOSH_OUTPUT{generalGraphVertexCollectionSave} var examples = require("@arangodb/graph-examples/example-graph.js"); @@ -603,8 +630,8 @@ Create a new vertex in `vertexCollectionName`: ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphVertexCollectionSave -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Replace a Vertex @@ -613,7 +640,7 @@ Replaces the data of a vertex in collection `vertexCollectionName`: `graph.vertexCollectionName.replace(vertexId, data, options)` - `vertexId` (string): - *_id* attribute of the vertex + `_id` attribute of the vertex - `data` (object): JSON data of vertex. - `options` (object, _optional_): @@ -621,7 +648,7 @@ Replaces the data of a vertex in collection `vertexCollectionName`: **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphVertexCollectionReplace @EXAMPLE_ARANGOSH_OUTPUT{generalGraphVertexCollectionReplace} var examples = require("@arangodb/graph-examples/example-graph.js"); @@ -631,12 +658,12 @@ Replaces the data of a vertex in collection `vertexCollectionName`: ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphVertexCollectionReplace -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Update a Vertex -Updates the data of a vertex in collection `vertexCollectionName` +Updates the data of a vertex in collection `vertexCollectionName`. `graph.vertexCollectionName.update(vertexId, data, options)` @@ -649,7 +676,7 @@ Updates the data of a vertex in collection `vertexCollectionName` **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphVertexCollectionUpdate @EXAMPLE_ARANGOSH_OUTPUT{generalGraphVertexCollectionUpdate} var examples = require("@arangodb/graph-examples/example-graph.js"); @@ -659,12 +686,12 @@ Updates the data of a vertex in collection `vertexCollectionName` ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphVertexCollectionUpdate -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Remove a Vertex -Removes a vertex in collection `vertexCollectionName` +Removes a vertex in collection `vertexCollectionName`. `graph.vertexCollectionName.remove(vertexId, options)` @@ -678,7 +705,7 @@ Additionally removes all ingoing and outgoing edges of the vertex recursively **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphVertexCollectionRemove @EXAMPLE_ARANGOSH_OUTPUT{generalGraphVertexCollectionRemove} var examples = require("@arangodb/graph-examples/example-graph.js"); @@ -690,8 +717,8 @@ Additionally removes all ingoing and outgoing edges of the vertex recursively ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphVertexCollectionRemove -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Manipulating Edges ------------------ @@ -712,7 +739,7 @@ Creates an edge from vertex `data._from` to vertex `data._to` in collection **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphEdgeCollectionSave1 @EXAMPLE_ARANGOSH_OUTPUT{generalGraphEdgeCollectionSave1} var examples = require("@arangodb/graph-examples/example-graph.js"); @@ -724,13 +751,13 @@ Creates an edge from vertex `data._from` to vertex `data._to` in collection ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphEdgeCollectionSave1 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} If the collections of `from` and `to` are not defined in an edge definition -of the graph, the edge will not be stored. +of the graph, the edge is not stored. -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphEdgeCollectionSave2 @EXAMPLE_ARANGOSH_OUTPUT{generalGraphEdgeCollectionSave2} var examples = require("@arangodb/graph-examples/example-graph.js"); @@ -742,8 +769,8 @@ of the graph, the edge will not be stored. ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphEdgeCollectionSave2 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Replace an Edge @@ -761,7 +788,7 @@ Note that `_from` and `_to` are mandatory. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphEdgeCollectionReplace @EXAMPLE_ARANGOSH_OUTPUT{generalGraphEdgeCollectionReplace} var examples = require("@arangodb/graph-examples/example-graph.js"); @@ -771,12 +798,12 @@ Note that `_from` and `_to` are mandatory. ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphEdgeCollectionReplace -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Update an Edge -Updates the data of an edge in collection `edgeCollectionName` +Updates the data of an edge in collection `edgeCollectionName`. `graph.edgeCollectionName.update(edgeId, data, options)` @@ -789,7 +816,7 @@ Updates the data of an edge in collection `edgeCollectionName` **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphEdgeCollectionUpdate @EXAMPLE_ARANGOSH_OUTPUT{generalGraphEdgeCollectionUpdate} var examples = require("@arangodb/graph-examples/example-graph.js"); @@ -799,12 +826,12 @@ Updates the data of an edge in collection `edgeCollectionName` ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphEdgeCollectionUpdate -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Remove an Edge -Removes an edge in collection edgeCollectionName +Removes an edge in collection `edgeCollectionName`. `graph.edgeCollectionName.remove(edgeId, options)` @@ -813,12 +840,12 @@ Removes an edge in collection edgeCollectionName - `options` (object, _optional_): See [collection documentation](data-modeling-documents-document-methods.html) -If this edge is used as a vertex by another edge, the other edge will be removed +If this edge is used as a vertex by another edge, the other edge is removed (recursively). **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphEdgeCollectionRemove @EXAMPLE_ARANGOSH_OUTPUT{generalGraphEdgeCollectionRemove} var examples = require("@arangodb/graph-examples/example-graph.js"); @@ -830,5 +857,5 @@ If this edge is used as a vertex by another edge, the other edge will be removed ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphEdgeCollectionRemove -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} diff --git a/3.10/graphs-general-graphs.md b/3.10/graphs-general-graphs.md index c37a41960b..cec7d884f9 100644 --- a/3.10/graphs-general-graphs.md +++ b/3.10/graphs-general-graphs.md @@ -20,7 +20,7 @@ Three Steps to create a graph **Create a graph** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphCreateGraphHowTo1 @EXAMPLE_ARANGOSH_OUTPUT{generalGraphCreateGraphHowTo1} var graph_module = require("@arangodb/general-graph"); @@ -29,12 +29,12 @@ Three Steps to create a graph ~ graph_module._drop("myGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphCreateGraphHowTo1 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} **Add some vertex collections** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphCreateGraphHowTo2 @EXAMPLE_ARANGOSH_OUTPUT{generalGraphCreateGraphHowTo2} ~ var graph_module = require("@arangodb/general-graph"); @@ -42,16 +42,16 @@ Three Steps to create a graph graph._addVertexCollection("shop"); graph._addVertexCollection("customer"); graph._addVertexCollection("pet"); - graph; + graph = graph_module._graph("myGraph"); ~ graph_module._drop("myGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphCreateGraphHowTo2 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} **Define relations on the Graph** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphCreateGraphHowTo3 @EXAMPLE_ARANGOSH_OUTPUT{generalGraphCreateGraphHowTo3} ~ var graph_module = require("@arangodb/general-graph"); @@ -59,9 +59,9 @@ Three Steps to create a graph ~ graph._addVertexCollection("pet"); var rel = graph_module._relation("isCustomer", ["shop"], ["customer"]); graph._extendEdgeDefinitions(rel); - graph; + graph = graph_module._graph("myGraph"); ~ graph_module._drop("myGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphCreateGraphHowTo3 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} diff --git a/3.10/graphs-satellite-graphs-details.md b/3.10/graphs-satellite-graphs-details.md index 00c27aa3bc..2f57b4a0fe 100644 --- a/3.10/graphs-satellite-graphs-details.md +++ b/3.10/graphs-satellite-graphs-details.md @@ -33,17 +33,17 @@ only covers a part of it, then you can do so. To create a SatelliteGraph in arangosh, use the `satellite-graph` module: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline satelliteGraphCreate1_cluster @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphCreate1_cluster} - var satelliteGraphModule = require("@arangodb/satellite-graph"); - var graph = satelliteGraphModule._create("satelliteGraph"); - satelliteGraphModule._graph("satelliteGraph"); - ~satelliteGraphModule._drop("satelliteGraph", true); + var satelliteGraphModule = require("@arangodb/satellite-graph"); + var graph = satelliteGraphModule._create("satelliteGraph"); + satelliteGraphModule._graph("satelliteGraph"); + ~ satelliteGraphModule._drop("satelliteGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock satelliteGraphCreate1_cluster -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} In contrast to General Graphs and SmartGraphs, you do not need to take care of the sharding and replication properties. The properties `distributeShardsLike`, @@ -53,17 +53,18 @@ the sharding and replication properties. The properties `distributeShardsLike`, Adding vertex collections is analogous to General Graphs: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline satelliteGraphCreate2_cluster @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphCreate2_cluster} - ~var satelliteGraphModule = require("@arangodb/satellite-graph"); - var graph = satelliteGraphModule._create("satelliteGraph"); - graph._addVertexCollection("aVertexCollection"); - ~satelliteGraphModule._drop("satelliteGraph", true); + ~ var satelliteGraphModule = require("@arangodb/satellite-graph"); + var graph = satelliteGraphModule._create("satelliteGraph"); + graph._addVertexCollection("aVertexCollection"); + graph = satelliteGraphModule._graph("satelliteGraph"); + ~ satelliteGraphModule._drop("satelliteGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock satelliteGraphCreate2_cluster -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} If the collection `"aVertexCollection"` doesn't exist yet, then the SatelliteGraph module will create it automatically with the correct @@ -77,18 +78,19 @@ Adding edge collections works the same as with General Graphs, but again, the collections are created by the SatelliteGraph module with the right properties if they don't exist already. -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline satelliteGraphCreate3_cluster @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphCreate3_cluster} - ~var satelliteGraphModule = require("@arangodb/satellite-graph"); - var graph = satelliteGraphModule._create("satelliteGraph"); - var relation = satelliteGraphModule._relation("isFriend", ["person"], ["person"]); - graph._extendEdgeDefinitions(relation); - ~satelliteGraphModule._drop("satelliteGraph", true); + ~ var satelliteGraphModule = require("@arangodb/satellite-graph"); + var graph = satelliteGraphModule._create("satelliteGraph"); + var relation = satelliteGraphModule._relation("isFriend", ["person"], ["person"]); + graph._extendEdgeDefinitions(relation); + graph = satelliteGraphModule._graph("satelliteGraph"); + ~ satelliteGraphModule._drop("satelliteGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock satelliteGraphCreate3_cluster -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Existing edge collections can be added, but they require the `distributeShardsLike` property to reference the prototype collection. @@ -114,13 +116,13 @@ of these properties. Creating an empty SatelliteGraph: No prototype collection is present. {% arangoshexample examplevar="examplevar" script="script" result="result" %} - @startDocuBlockInline satelliteGraphPrototype1_cluster - @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphPrototype1_cluster} - var satelliteGraphModule = require("@arangodb/satellite-graph"); - satelliteGraphModule._create("satelliteGraph"); - ~satelliteGraphModule._drop("satelliteGraph", true); - @END_EXAMPLE_ARANGOSH_OUTPUT - @endDocuBlock satelliteGraphPrototype1_cluster + @startDocuBlockInline satelliteGraphPrototype1_cluster + @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphPrototype1_cluster} + var satelliteGraphModule = require("@arangodb/satellite-graph"); + satelliteGraphModule._create("satelliteGraph"); + ~ satelliteGraphModule._drop("satelliteGraph", true); + @END_EXAMPLE_ARANGOSH_OUTPUT + @endDocuBlock satelliteGraphPrototype1_cluster {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} @@ -129,14 +131,15 @@ This leads to the creation of a prototype collection `"myPrototypeColl"` (assuming that no collection with this name existed before): {% arangoshexample examplevar="examplevar" script="script" result="result" %} - @startDocuBlockInline satelliteGraphPrototype2_cluster - @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphPrototype2_cluster} - var satelliteGraphModule = require("@arangodb/satellite-graph"); - var graph = satelliteGraphModule._create("satelliteGraph"); - graph._addVertexCollection("myPrototypeColl"); - ~satelliteGraphModule._drop("satelliteGraph", true); - @END_EXAMPLE_ARANGOSH_OUTPUT - @endDocuBlock satelliteGraphPrototype2_cluster + @startDocuBlockInline satelliteGraphPrototype2_cluster + @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphPrototype2_cluster} + var satelliteGraphModule = require("@arangodb/satellite-graph"); + var graph = satelliteGraphModule._create("satelliteGraph"); + graph._addVertexCollection("myPrototypeColl"); + graph = satelliteGraphModule._graph("satelliteGraph"); + ~ satelliteGraphModule._drop("satelliteGraph", true); + @END_EXAMPLE_ARANGOSH_OUTPUT + @endDocuBlock satelliteGraphPrototype2_cluster {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} @@ -147,15 +150,16 @@ collection, then one of the collections will be chosen arbitrarily as prototype collection. {% arangoshexample examplevar="examplevar" script="script" result="result" %} - @startDocuBlockInline satelliteGraphPrototype3_cluster - @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphPrototype3_cluster} - var satelliteGraphModule = require("@arangodb/satellite-graph"); - var graph = satelliteGraphModule._create("satelliteGraph"); - var relation = satelliteGraphModule._relation("isFriend", ["person"], ["person"]); - graph._extendEdgeDefinitions(relation); - ~satelliteGraphModule._drop("satelliteGraph", true); - @END_EXAMPLE_ARANGOSH_OUTPUT - @endDocuBlock satelliteGraphPrototype3_cluster + @startDocuBlockInline satelliteGraphPrototype3_cluster + @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphPrototype3_cluster} + var satelliteGraphModule = require("@arangodb/satellite-graph"); + var graph = satelliteGraphModule._create("satelliteGraph"); + var relation = satelliteGraphModule._relation("isFriend", ["person"], ["person"]); + graph._extendEdgeDefinitions(relation); + graph = satelliteGraphModule._graph("satelliteGraph"); + ~ satelliteGraphModule._drop("satelliteGraph", true); + @END_EXAMPLE_ARANGOSH_OUTPUT + @endDocuBlock satelliteGraphPrototype3_cluster {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} @@ -178,40 +182,40 @@ and a SatelliteGraph traversal query: 1. First we setup our graphs and collections. - {% arangoshexample examplevar="examplevar" script="script" result="result" %} - @startDocuBlockInline satelliteGraphGeneralGraph1_cluster - @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphGeneralGraph1_cluster} - var graphModule = require("@arangodb/general-graph"); - var satelliteGraphModule = require("@arangodb/satellite-graph"); - graphModule._create("normalGraph", [ graphModule._relation("edges", "vertices", "vertices") ], [], {}); - satelliteGraphModule._create("satelliteGraph", [ satelliteGraphModule._relation("satEdges", "satVertices", "satVertices") ], [], {}); - db._create("collection", {numberOfShards: 8}); - ~db._drop("collection"); - ~satelliteGraphModule._drop("satelliteGraph", true); - ~graphModule._drop("normalGraph", true); - @END_EXAMPLE_ARANGOSH_OUTPUT - @endDocuBlock satelliteGraphGeneralGraph1_cluster - {% endarangoshexample %} - {% include arangoshexample.html id=examplevar script=script result=result %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} + @startDocuBlockInline satelliteGraphGeneralGraph1_cluster + @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphGeneralGraph1_cluster} + var graphModule = require("@arangodb/general-graph"); + var satelliteGraphModule = require("@arangodb/satellite-graph"); + graphModule._create("normalGraph", [ graphModule._relation("edges", "vertices", "vertices") ], [], {}); + satelliteGraphModule._create("satelliteGraph", [ satelliteGraphModule._relation("satEdges", "satVertices", "satVertices") ], [], {}); + db._create("collection", {numberOfShards: 8}); + ~ db._drop("collection"); + ~ satelliteGraphModule._drop("satelliteGraph", true); + ~ graphModule._drop("normalGraph", true); + @END_EXAMPLE_ARANGOSH_OUTPUT + @endDocuBlock satelliteGraphGeneralGraph1_cluster + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} 2. Let us analyze a query involving a traversal: - {% arangoshexample examplevar="examplevar" script="script" result="result" %} - @startDocuBlockInline satelliteGraphGeneralGraph2_cluster - @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphGeneralGraph2_cluster} - ~var graphModule = require("@arangodb/general-graph"); - ~var satelliteGraphModule = require("@arangodb/satellite-graph"); - ~graphModule._create("normalGraph", [ graphModule._relation("edges", "vertices", "vertices") ], [], {}); - ~satelliteGraphModule._create("satelliteGraph", [ satelliteGraphModule._relation("satEdges", "satVertices", "satVertices") ], [], {}); - ~db._create("collection", {numberOfShards: 8}); - db._explain(`FOR doc in collection FOR v,e,p IN OUTBOUND "vertices/start" GRAPH "normalGraph" RETURN [doc,v,e,p]`, {}, {colors: false}); - ~db._drop("collection"); - ~satelliteGraphModule._drop("satelliteGraph", true); - ~graphModule._drop("normalGraph", true); - @END_EXAMPLE_ARANGOSH_OUTPUT - @endDocuBlock satelliteGraphGeneralGraph2_cluster - {% endarangoshexample %} - {% include arangoshexample.html id=examplevar script=script result=result %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} + @startDocuBlockInline satelliteGraphGeneralGraph2_cluster + @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphGeneralGraph2_cluster} + ~ var graphModule = require("@arangodb/general-graph"); + ~ var satelliteGraphModule = require("@arangodb/satellite-graph"); + ~ graphModule._create("normalGraph", [ graphModule._relation("edges", "vertices", "vertices") ], [], {}); + ~ satelliteGraphModule._create("satelliteGraph", [ satelliteGraphModule._relation("satEdges", "satVertices", "satVertices") ], [], {}); + ~ db._create("collection", {numberOfShards: 8}); + db._explain(`FOR doc in collection FOR v,e,p IN OUTBOUND "vertices/start" GRAPH "normalGraph" RETURN [doc,v,e,p]`, {}, {colors: false}); + ~ db._drop("collection"); + ~ satelliteGraphModule._drop("satelliteGraph", true); + ~ graphModule._drop("normalGraph", true); + @END_EXAMPLE_ARANGOSH_OUTPUT + @endDocuBlock satelliteGraphGeneralGraph2_cluster + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} You can see that the `TraversalNode` is executed on a Coordinator, and only the `EnumerateCollectionNode` is executed on DB-Servers. This will happen for @@ -219,22 +223,22 @@ and a SatelliteGraph traversal query: 3. Let us now have a look at the same query using a SatelliteGraph: - {% arangoshexample examplevar="examplevar" script="script" result="result" %} - @startDocuBlockInline satelliteGraphGeneralGraph3_cluster - @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphGeneralGraph3_cluster} - ~var graphModule = require("@arangodb/general-graph"); - ~var satelliteGraphModule = require("@arangodb/satellite-graph"); - ~graphModule._create("normalGraph", [ graphModule._relation("edges", "vertices", "vertices") ], [], {}); - ~satelliteGraphModule._create("satelliteGraph", [ satelliteGraphModule._relation("satEdges", "satVertices", "satVertices") ], [], {}); - ~db._create("collection", {numberOfShards: 8}); - db._explain(`FOR doc in collection FOR v,e,p IN OUTBOUND "vertices/start" GRAPH "satelliteGraph" RETURN [doc,v,e,p]`, {}, {colors: false}); - ~db._drop("collection"); - ~satelliteGraphModule._drop("satelliteGraph", true); - ~graphModule._drop("normalGraph", true); - @END_EXAMPLE_ARANGOSH_OUTPUT - @endDocuBlock satelliteGraphGeneralGraph3_cluster - {% endarangoshexample %} - {% include arangoshexample.html id=examplevar script=script result=result %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} + @startDocuBlockInline satelliteGraphGeneralGraph3_cluster + @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphGeneralGraph3_cluster} + ~ var graphModule = require("@arangodb/general-graph"); + ~ var satelliteGraphModule = require("@arangodb/satellite-graph"); + ~ graphModule._create("normalGraph", [ graphModule._relation("edges", "vertices", "vertices") ], [], {}); + ~ satelliteGraphModule._create("satelliteGraph", [ satelliteGraphModule._relation("satEdges", "satVertices", "satVertices") ], [], {}); + ~ db._create("collection", {numberOfShards: 8}); + db._explain(`FOR doc in collection FOR v,e,p IN OUTBOUND "vertices/start" GRAPH "satelliteGraph" RETURN [doc,v,e,p]`, {}, {colors: false}); + ~ db._drop("collection"); + ~ satelliteGraphModule._drop("satelliteGraph", true); + ~ graphModule._drop("normalGraph", true); + @END_EXAMPLE_ARANGOSH_OUTPUT + @endDocuBlock satelliteGraphGeneralGraph3_cluster + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Note that now the `TraversalNode` is executed on each DB-Server, leading to a great reduction in required network communication, and hence potential gains diff --git a/3.10/graphs-smart-graphs-management.md b/3.10/graphs-smart-graphs-management.md index 236d4a916a..0c6f81bf9c 100644 --- a/3.10/graphs-smart-graphs-management.md +++ b/3.10/graphs-smart-graphs-management.md @@ -24,7 +24,7 @@ collections: To generally understand the concept of this module please read the chapter about [General Graph Management](graphs-general-graphs-management.html) first. -In the following we will only describe the overloaded functionality. +In the following, only the overloaded functionality is described. Everything else works identical in both modules. Create a Graph @@ -48,19 +48,19 @@ enforce the correct sharding. - `smartOptions` (object): A JSON object having the following keys: - `numberOfShards` (number): - The number of shards that will be created for each collection. To maintain - the correct sharding all collections need an identical number of shards. + The number of shards that are created for each collection. To maintain + the correct sharding, all collections need an identical number of shards. This cannot be modified after creation of the graph. - `smartGraphAttribute` (string): - The attribute that will be used for sharding: vertices with the same value of this attribute will be in the same - shard. All vertices are required to + The attribute that is used for sharding: vertices with the same value of + this attribute are placed in the same shard. All vertices are required to have this attribute set and it has to be a string. Edges derive the attribute from their connected vertices. - - `isDisjoint` (bool, optional): - If set to true, a Disjoint SmartGraph will be created. This flag is not - editable after creation. Default: false. - - `satellites` (array, optional): - An array of collection names that will be used to create + - `isDisjoint` (bool, _optional_): + If set to `true`, a Disjoint SmartGraph is created. This flag is not + editable after creation. Default: `false`. + - `satellites` (array, _optional_): + An array of collection names that is used to create [SatelliteCollections](satellites.html) for a (Disjoint) SmartGraph using SatelliteCollections. Each array element must be a string and a valid collection name. @@ -80,8 +80,8 @@ the graph theoretic sense: it is possible to add edges having one end in a colle that has been declared as orphan. All collections used within the creation process are newly created. -The process will fail if one of them already exists, unless they have the -correct sharding already. All newly created collections will immediately +The process fails if one of them already exists, unless they have the +correct sharding already. All newly created collections are immediately be dropped again in the failure case. **Examples** @@ -153,8 +153,8 @@ Remove a vertex collection from the graph: - `vertexCollectionName` (string): Name of vertex collection. - `dropCollection` (bool, _optional_): - If true, the collection will be dropped if it is not used in any other graph. - Default: false. + If `true`, the collection is dropped if it is not used in any other graph. + Default: `false`. In most cases this function works identically to the General Graph one. However there is one special case: The first vertex collection added to the graph @@ -232,7 +232,7 @@ sharding for other collections (`edges`). {% include arangoshexample.html id=examplevar script=script result=result %} You may drop the complete graph including the underlying collections by setting -the second argument in the call to `_drop()` to `true`. This will only drop +the second argument in the call to `_drop()` to `true`. This only drops collections that are in the graph definition at that point. Remember to manually drop collections that you might have removed from the graph beforehand. @@ -264,8 +264,8 @@ Delete an edge definition from the graph: - `edgeCollectionName` (string): Name of edge collection. - `dropCollection` (bool, _optional_): - If true the collection will be dropped if it is not used in any other graph. - Default: false. + If `true`, the collection is dropped if it is not used in any other graph. + Default: `false`. **Examples** diff --git a/3.10/indexing-index-basics.md b/3.10/indexing-index-basics.md index 7907e63dcf..83b3a4159c 100644 --- a/3.10/indexing-index-basics.md +++ b/3.10/indexing-index-basics.md @@ -272,21 +272,24 @@ other index types, even if they would be capable of accelerating the queries. TTL (time-to-live) Index ------------------------ -The TTL index type provided by ArangoDB can be used for automatically removing expired documents -from a collection. +You can use the TTL index type for automatically removing expired documents +from a collection. A TTL index is set up by setting an `expireAfter` value and by picking a single -document attribute which contains the documents' creation date and time. Documents -are expired after `expireAfter` seconds after their creation time. The creation time -is specified as either a numeric timestamp (Unix timestamp) or a date string in format -`YYYY-MM-DDTHH:MM:SS`, optionally with milliseconds after a decimal point in the -format `YYYY-MM-DDTHH:MM:SS.MMM` and an optional timezone offset. All date strings -without a timezone offset will be interpreted as UTC dates. +document attribute which contains the documents' reference point in time. Documents +are expired after `expireAfter` seconds after their reference time has been reached. +The document's reference point in time is specified as either a numeric timestamp +(Unix timestamp) or a date string in the format `YYYY-MM-DDTHH:MM:SS`, optionally +with milliseconds after a decimal point in the format `YYYY-MM-DDTHH:MM:SS.MMM` +and an optional timezone offset. All date strings without a timezone offset are +interpreted as UTC dates. For example, if `expireAfter` is set to 600 seconds (10 minutes) and the index attribute is "creationDate" and there is the following document: - { "creationDate" : 1550165973 } +```json +{ "creationDate" : 1550165973 } +``` This document will be indexed with a creation date time value of `1550165973`, which translates to the human-readable date `2019-02-14T17:39:33.000Z`. The document @@ -294,22 +297,21 @@ will expire 600 seconds afterwards, which is at timestamp `1550166573` (or `2019-02-14T17:49:33.000Z` in the human-readable version). The actual removal of expired documents will not necessarily happen immediately. -Expired documents will eventually removed by a background thread that is periodically -going through all TTL indexes and removing the expired documents. The frequency for -invoking this background thread can be configured using the `--ttl.frequency` -startup option. +Expired documents will eventually be removed by a background thread that is +periodically going through all TTL indexes. The frequency for invoking this +background thread can be configured using the `--ttl.frequency` startup option. There is no guarantee when exactly the removal of expired documents will be carried out, so queries may still find and return documents that have already expired. These will eventually be removed when the background thread kicks in and has capacity to -remove the expired documents. It is guaranteed however that only documents which are +remove the expired documents. It is guaranteed however that only documents which are past their expiration time will actually be removed. Please note that the numeric date time values for the index attribute has to be -specified **in seconds** since January 1st 1970 (Unix timestamp). To calculate the current +specified **in seconds** since January 1st 1970 (Unix timestamp). To calculate the current timestamp from JavaScript in this format, there is `Date.now() / 1000`; to calculate it from an arbitrary Date instance, there is `Date.getTime() / 1000`. In AQL you can do -`DATE_NOW() / 1000` or divide an arbitrary timestamp that is in milliseconds +`DATE_NOW() / 1000` or divide an arbitrary Unix timestamp that is in milliseconds by 1000 to convert it to seconds. Alternatively, the index attribute values can be specified as a date string in format @@ -317,15 +319,24 @@ Alternatively, the index attribute values can be specified as a date string in f format `YYYY-MM-DDTHH:MM:SS.MMM` and an optional timezone offset. All date strings without a timezone offset will be interpreted as UTC dates. -The above example document using a datestring attribute value would be +The above example document using a date string attribute value would be - { "creationDate" : "2019-02-14T17:39:33.000Z" } +```json +{ "creationDate" : "2019-02-14T17:39:33.000Z" } +``` In case the index attribute does not contain a numeric value nor a proper date string, the document will not be stored in the TTL index and thus will not become a candidate for expiration and removal. Providing either a non-numeric value or even no value for the index attribute is a supported way of keeping documents from being expired and removed. +TTL indexes are designed exactly for the purpose of removing expired documents from +a collection. It is *not recommended* to rely on TTL indexes for user-land AQL queries. +This is because TTL indexes internally may store a transformed, always numerical version +of the index attribute value even if it was originally passed in as a date string. As a +result TTL indexes will likely not be used for filtering and sort operations in user-land +AQL queries. + Geo Index --------- diff --git a/3.10/indexing-index-utilization.md b/3.10/indexing-index-utilization.md index 5e097abb15..a117e17ebf 100644 --- a/3.10/indexing-index-utilization.md +++ b/3.10/indexing-index-utilization.md @@ -124,9 +124,7 @@ If any of the explain methods shows that a query is not using indexes, the follo FILTER doc.value1 > ... && doc.value1 <= ... FILTER doc.value1 >= ... && doc.value1 <= ... FILTER doc.value1 IN ... - ``` - ```aql FILTER doc.value1 == ... && doc.value2 == ... FILTER doc.value1 == ... && doc.value2 > ... FILTER doc.value1 == ... && doc.value2 >= ... diff --git a/3.10/indexing-persistent.md b/3.10/indexing-persistent.md index 7e7d5c2dfe..685fa56b55 100644 --- a/3.10/indexing-persistent.md +++ b/3.10/indexing-persistent.md @@ -284,7 +284,7 @@ will not. However, if you use ```json -{ "a.c" : 1 }, +{ "a.c" : 1 } ``` then you will find all documents, which contain a sub-document in `a` diff --git a/3.10/indexing-vertex-centric.md b/3.10/indexing-vertex-centric.md index 7490ee4e61..af0f5007db 100644 --- a/3.10/indexing-vertex-centric.md +++ b/3.10/indexing-vertex-centric.md @@ -2,16 +2,16 @@ layout: default description: In ArangoDB there are special indices designed to speed up graph operations, especially if the graph contains supernodes (vertices that have an exceptionally high amount of connected edges) --- -Vertex Centric Indexes +Vertex-Centric Indexes ====================== -Introduction to Vertex Centric Indexes +Introduction to Vertex-Centric Indexes -------------------------------------- In ArangoDB there are special indices designed to speed up graph operations, especially if the graph contains supernodes (vertices that have an exceptionally high amount of connected edges). -These indices are called vertex centric indexes and can be used in addition +These indices are called vertex-centric indexes and can be used in addition to the existing edge index. Motivation diff --git a/3.10/indexing-which-index.md b/3.10/indexing-which-index.md index 276e608a93..32cbeea5ce 100644 --- a/3.10/indexing-which-index.md +++ b/3.10/indexing-which-index.md @@ -58,64 +58,12 @@ different usage scenarios: relevance, and for search highlighting capabilities. It is a lightweight alternative to an `arangosearch` View. -- **TTL index**: the TTL index provided by ArangoDB can be used for automatically - removing expired documents from a collection. - - The TTL index is set up by setting an `expireAfter` value and by picking a single - document attribute which contains the documents' reference timepoint. Documents - are expired `expireAfter` seconds after their reference timepoint has been reached. - The documents' reference timepoint is specified as either a numeric timestamp - (Unix timestamp) or a date string in format `YYYY-MM-DDTHH:MM:SS` with optional - milliseconds. All date strings will be interpreted as UTC dates. - - For example, if `expireAfter` is set to 600 seconds (10 minutes) and the index - attribute is "creationDate" and there is the following document: - - { "creationDate" : 1550165973 } - - This document will be indexed with a creation date time value of `1550165973`, - which translates to the human-readable date `2019-02-14T17:39:33.000Z`. The document - will expire 600 seconds afterwards, which is at timestamp `1550166573` (or - `2019-02-14T17:49:33.000Z` in the human-readable version). - - The actual removal of expired documents will not necessarily happen immediately. - Expired documents will eventually be removed by a background thread that is - periodically going through all TTL indexes. The frequency for invoking this - background thread can be configured using the `--ttl.frequency` startup option. - - There is no guarantee when exactly the removal of expired documents will be carried - out, so queries may still find and return documents that have already expired. These - will eventually be removed when the background thread kicks in and has capacity to - remove the expired documents. It is guaranteed however that only documents which are - past their expiration time will actually be removed. - - Please note that the numeric date time values for the index attribute has to be - specified **in seconds** since January 1st 1970 (Unix timestamp). To calculate the current - timestamp from JavaScript in this format, there is `Date.now() / 1000`; to calculate it - from an arbitrary Date instance, there is `Date.getTime() / 1000`. In AQL you can do - `DATE_NOW() / 1000` or divide an arbitrary Unix timestamp in milliseconds by 1000 to - convert it to seconds. - - Alternatively, the index attribute values can be specified as a date string in format - `YYYY-MM-DDTHH:MM:SS`, optionally with milliseconds after a decimal point in the - format `YYYY-MM-DDTHH:MM:SS.MMM` and an optional timezone offset. All date strings - without a timezone offset will be interpreted as UTC dates. - - The above example document using a date string attribute value would be - - { "creationDate" : "2019-02-14T17:39:33.000Z" } - - In case the index attribute does not contain a numeric value nor a proper date string, - the document will not be stored in the TTL index and thus will not become a candidate - for expiration and removal. Providing either a non-numeric value or even no value for - the index attribute is a supported way of keeping documents from being expired and removed. - - TTL indexes are designed exactly for the purpose of removing expired documents from - a collection. It is *not recommended* to rely on TTL indexes for user-land AQL queries. - This is because TTL indexes internally may store a transformed, always numerical version - of the index attribute value even if it was originally passed in as a datestring. As a - result TTL indexes will likely not be used for filtering and sort operations in user-land - AQL queries. +- **TTL index**: a time-to-live index can be used for automatically removing + expired documents from a collection. + + You can choose a document attribute that specifies a point in time and whether + documents shall expire at the point in time or a given number of seconds after + the point in time. - **multi-dimensional index** (ZKD): a multi dimensional index allows to efficiently intersect multiple range queries. Typical use cases are querying diff --git a/3.11/graphs-general-graphs-management.md b/3.11/graphs-general-graphs-management.md index 5339b5077b..6c64a782d4 100644 --- a/3.11/graphs-general-graphs-management.md +++ b/3.11/graphs-general-graphs-management.md @@ -30,7 +30,7 @@ the correct list. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphEdgeDefinitionsSimple @EXAMPLE_ARANGOSH_OUTPUT{generalGraphEdgeDefinitionsSimple} var graph_module = require("@arangodb/general-graph"); @@ -39,8 +39,8 @@ the correct list. edgedefinitions = graph_module._edgeDefinitions(directed_relation, undirected_relation); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphEdgeDefinitionsSimple -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Extend the List @@ -58,7 +58,7 @@ this function can be used to add more definitions to the initial list. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphEdgeDefinitionsExtend @EXAMPLE_ARANGOSH_OUTPUT{generalGraphEdgeDefinitionsExtend} var graph_module = require("@arangodb/general-graph"); @@ -68,8 +68,8 @@ this function can be used to add more definitions to the initial list. edgedefinitions = graph_module._extendEdgeDefinitions(undirected_relation); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphEdgeDefinitionsExtend -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Relation @@ -98,25 +98,29 @@ collection in `toVertexCollections`. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} - @startDocuBlockInline generalGraphRelationDefinitionSave - @EXAMPLE_ARANGOSH_OUTPUT{generalGraphRelationDefinitionSave} - var graph_module = require("@arangodb/general-graph"); - graph_module._relation("has_bought", ["Customer", "Company"], ["Groceries", "Electronics"]); - @END_EXAMPLE_ARANGOSH_OUTPUT - @endDocuBlock generalGraphRelationDefinitionSave -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} +A relation from one vertex collection to another: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphRelationDefinitionSingle @EXAMPLE_ARANGOSH_OUTPUT{generalGraphRelationDefinitionSingle} var graph_module = require("@arangodb/general-graph"); graph_module._relation("has_bought", "Customer", "Product"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphRelationDefinitionSingle -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} + +A relation from multiple vertex collections to multiple others: + + {% arangoshexample examplevar="examplevar" script="script" result="result" %} + @startDocuBlockInline generalGraphRelationDefinitionSave + @EXAMPLE_ARANGOSH_OUTPUT{generalGraphRelationDefinitionSave} + var graph_module = require("@arangodb/general-graph"); + graph_module._relation("has_bought", ["Customer", "Company"], ["Groceries", "Electronics"]); + @END_EXAMPLE_ARANGOSH_OUTPUT + @endDocuBlock generalGraphRelationDefinitionSave + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Edge Definition Options @@ -153,7 +157,7 @@ creation process are created if they do not exist. Create an empty graph, edge definitions can be added at runtime: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphCreateGraphNoData @EXAMPLE_ARANGOSH_OUTPUT{generalGraphCreateGraphNoData} var graph_module = require("@arangodb/general-graph"); @@ -161,13 +165,13 @@ Create an empty graph, edge definitions can be added at runtime: ~ graph_module._drop("myGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphCreateGraphNoData -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Create a graph using an edge collection `edges` and a single vertex collection `vertices`: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphCreateGraphSingle @EXAMPLE_ARANGOSH_OUTPUT{generalGraphCreateGraphSingle} ~ db._drop("edges"); @@ -178,12 +182,12 @@ vertex collection `vertices`: ~ graph_module._drop("myGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphCreateGraphSingle -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Create a graph with edge definitions and orphan collections: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphCreateGraph2 @EXAMPLE_ARANGOSH_OUTPUT{generalGraphCreateGraph2} var graph_module = require("@arangodb/general-graph"); @@ -192,14 +196,14 @@ Create a graph with edge definitions and orphan collections: ~ graph_module._drop("myGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphCreateGraph2 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Complete Example to Create a Graph Example call: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline general_graph_create_graph_example1 @EXAMPLE_ARANGOSH_OUTPUT{general_graph_create_graph_example1} var graph_module = require("@arangodb/general-graph"); @@ -218,12 +222,12 @@ Example call: ~ db._drop("friend_of"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock general_graph_create_graph_example1 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Alternative call: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline general_graph_create_graph_example2 @EXAMPLE_ARANGOSH_OUTPUT{general_graph_create_graph_example2} var graph_module = require("@arangodb/general-graph"); @@ -240,29 +244,55 @@ Alternative call: ~ db._drop("friend_of"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock general_graph_create_graph_example2 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} List available Graphs --------------------- -List all graphs: +Lists all graph names stored in this database: `graph_module._list()` -Lists all graph names stored in this database. +--- + +Lists all graph definitions stored in this database: + +`graph_module._listObjects()` **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} +List the graph names: + + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphList @EXAMPLE_ARANGOSH_OUTPUT{generalGraphList} var graph_module = require("@arangodb/general-graph"); + ~ graph_module._create("myGraph"); + ~ graph_module._create("myStore"); graph_module._list(); + ~ graph_module._drop("myGraph"); + ~ graph_module._drop("myStore"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphList -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} + +List the graph definitions: + + {% arangoshexample examplevar="examplevar" script="script" result="result" %} + @startDocuBlockInline generalGraphListObjects + @EXAMPLE_ARANGOSH_OUTPUT{generalGraphListObjects} + var graph_module = require("@arangodb/general-graph"); + ~ graph_module._create("myGraph", [ { collection: "edges", "from": [ "vertices" ], "to" : [ "vertices" ] } ]); + ~ graph_module._create("myStore", [ { collection: "friend_of", from: [ "Customer" ], to: [ "Customer" ] }, { collection: "has_bought", from: [ "Customer", "Company" ], to: [ "Groceries", "Electronics" ] } ]); + graph_module._listObjects(); + ~ graph_module._drop("myGraph", true); + ~ graph_module._drop("myStore", true); + @END_EXAMPLE_ARANGOSH_OUTPUT + @endDocuBlock generalGraphListObjects + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Load a Graph ------------ @@ -276,7 +306,7 @@ Get a graph by its name: **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphLoadGraph @EXAMPLE_ARANGOSH_OUTPUT{generalGraphLoadGraph} ~ var examples = require("@arangodb/graph-examples/example-graph.js"); @@ -286,8 +316,8 @@ Get a graph by its name: ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphLoadGraph -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Remove a Graph -------------- @@ -309,7 +339,7 @@ the optional parameter `drop-collections` has to be set to `true`. Drop a graph and keep collections: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphDropGraphKeep @EXAMPLE_ARANGOSH_OUTPUT{generalGraphDropGraphKeep} ~ var examples = require("@arangodb/graph-examples/example-graph.js"); @@ -325,10 +355,12 @@ Drop a graph and keep collections: ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphDropGraphKeep -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} -{% arangoshexample examplevar="examplevar" script="script" result="result" %} +Drop a graph and its collections: + + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphDropGraphDropCollections @EXAMPLE_ARANGOSH_OUTPUT{generalGraphDropGraphDropCollections} ~ var examples = require("@arangodb/graph-examples/example-graph.js"); @@ -340,8 +372,8 @@ Drop a graph and keep collections: db._collection("relation"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphDropGraphDropCollections -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Modify a Graph definition at runtime ------------------------------------ @@ -368,20 +400,20 @@ graph with different `from` and/or `to` collections an error is thrown. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline general_graph__extendEdgeDefinitions @EXAMPLE_ARANGOSH_OUTPUT{general_graph__extendEdgeDefinitions} var graph_module = require("@arangodb/general-graph") - ~ if (graph_module._exists("myGraph")){var blub = graph_module._drop("myGraph", true);} var ed1 = graph_module._relation("myEC1", ["myVC1"], ["myVC2"]); var ed2 = graph_module._relation("myEC2", ["myVC1"], ["myVC3"]); var graph = graph_module._create("myGraph", [ed1]); graph._extendEdgeDefinitions(ed2); - ~ var blub = graph_module._drop("myGraph", true); + graph = graph_module._graph("myGraph"); + ~ graph_module._drop("myGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock general_graph__extendEdgeDefinitions -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Modify an Edge Definition @@ -405,20 +437,19 @@ definition are modified, too. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline general_graph__editEdgeDefinition @EXAMPLE_ARANGOSH_OUTPUT{general_graph__editEdgeDefinition} var graph_module = require("@arangodb/general-graph") - ~ if (graph_module._exists("myGraph")){var blub = graph_module._drop("myGraph", true);} var original = graph_module._relation("myEC1", ["myVC1"], ["myVC2"]); var modified = graph_module._relation("myEC1", ["myVC2"], ["myVC3"]); var graph = graph_module._create("myGraph", [original]); graph._editEdgeDefinitions(modified); - ~ var blub = graph_module._drop("myGraph", true); + ~ graph_module._drop("myGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock general_graph__editEdgeDefinition -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Delete an Edge Definition @@ -439,41 +470,39 @@ in another edge definition of the graph, they are moved to the orphanage. Remove an edge definition but keep the edge collection: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline general_graph__deleteEdgeDefinitionNoDrop @EXAMPLE_ARANGOSH_OUTPUT{general_graph__deleteEdgeDefinitionNoDrop} var graph_module = require("@arangodb/general-graph") - ~ if (graph_module._exists("myGraph")){var blub = graph_module._drop("myGraph", true);} var ed1 = graph_module._relation("myEC1", ["myVC1"], ["myVC2"]); var ed2 = graph_module._relation("myEC2", ["myVC1"], ["myVC3"]); var graph = graph_module._create("myGraph", [ed1, ed2]); graph._deleteEdgeDefinition("myEC1"); db._collection("myEC1"); ~ db._drop("myEC1"); - ~ var blub = graph_module._drop("myGraph", true); + ~ graph_module._drop("myGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock general_graph__deleteEdgeDefinitionNoDrop -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Remove an edge definition and drop the edge collection: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline general_graph__deleteEdgeDefinitionWithDrop @EXAMPLE_ARANGOSH_OUTPUT{general_graph__deleteEdgeDefinitionWithDrop} var graph_module = require("@arangodb/general-graph") - ~ if (graph_module._exists("myGraph")){var blub = graph_module._drop("myGraph", true);} var ed1 = graph_module._relation("myEC1", ["myVC1"], ["myVC2"]); var ed2 = graph_module._relation("myEC2", ["myVC1"], ["myVC3"]); var graph = graph_module._create("myGraph", [ed1, ed2]); graph._deleteEdgeDefinition("myEC1", true); db._collection("myEC1"); ~ db._drop("myEC1"); - ~ var blub = graph_module._drop("myGraph", true); + ~ graph_module._drop("myGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock general_graph__deleteEdgeDefinitionWithDrop -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Extend Vertex Collections @@ -502,20 +531,20 @@ definition of the graph, an error is thrown. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline general_graph__addVertexCollection @EXAMPLE_ARANGOSH_OUTPUT{general_graph__addVertexCollection} var graph_module = require("@arangodb/general-graph"); - ~ if (graph_module._exists("myGraph")){var blub = graph_module._drop("myGraph", true);} var ed1 = graph_module._relation("myEC1", ["myVC1"], ["myVC2"]); var graph = graph_module._create("myGraph", [ed1]); graph._addVertexCollection("myVC3", true); + graph = graph_module._graph("myGraph"); ~ db._drop("myVC3"); - ~ var blub = graph_module._drop("myGraph", true); + ~ graph_module._drop("myGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock general_graph__addVertexCollection -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} #### Get the Orphaned Collections @@ -528,20 +557,19 @@ edge definition. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline general_graph__orphanCollections @EXAMPLE_ARANGOSH_OUTPUT{general_graph__orphanCollections} var graph_module = require("@arangodb/general-graph") - ~ if (graph_module._exists("myGraph")){var blub = graph_module._drop("myGraph", true);} var ed1 = graph_module._relation("myEC1", ["myVC1"], ["myVC2"]); var graph = graph_module._create("myGraph", [ed1]); graph._addVertexCollection("myVC3", true); graph._orphanCollections(); - ~ var blub = graph_module._drop("myGraph", true); + ~ graph_module._drop("myGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock general_graph__orphanCollections -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} #### Remove a Vertex Collection @@ -561,11 +589,10 @@ Optionally the collection can be deleted, if it is not used in any other graph. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline general_graph__removeVertexCollections @EXAMPLE_ARANGOSH_OUTPUT{general_graph__removeVertexCollections} var graph_module = require("@arangodb/general-graph") - ~ if (graph_module._exists("myGraph")){var blub = graph_module._drop("myGraph", true);} var ed1 = graph_module._relation("myEC1", ["myVC1"], ["myVC2"]); var graph = graph_module._create("myGraph", [ed1]); graph._addVertexCollection("myVC3", true); @@ -574,11 +601,11 @@ Optionally the collection can be deleted, if it is not used in any other graph. graph._removeVertexCollection("myVC3"); graph._orphanCollections(); ~ db._drop("myVC3"); - ~ var blub = graph_module._drop("myGraph", true); + ~ graph_module._drop("myGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock general_graph__removeVertexCollections -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Manipulating Vertices --------------------- @@ -594,7 +621,7 @@ Create a new vertex in `vertexCollectionName`: **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphVertexCollectionSave @EXAMPLE_ARANGOSH_OUTPUT{generalGraphVertexCollectionSave} var examples = require("@arangodb/graph-examples/example-graph.js"); @@ -603,8 +630,8 @@ Create a new vertex in `vertexCollectionName`: ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphVertexCollectionSave -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Replace a Vertex @@ -621,7 +648,7 @@ Replaces the data of a vertex in collection `vertexCollectionName`: **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphVertexCollectionReplace @EXAMPLE_ARANGOSH_OUTPUT{generalGraphVertexCollectionReplace} var examples = require("@arangodb/graph-examples/example-graph.js"); @@ -631,8 +658,8 @@ Replaces the data of a vertex in collection `vertexCollectionName`: ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphVertexCollectionReplace -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Update a Vertex @@ -649,7 +676,7 @@ Updates the data of a vertex in collection `vertexCollectionName`. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphVertexCollectionUpdate @EXAMPLE_ARANGOSH_OUTPUT{generalGraphVertexCollectionUpdate} var examples = require("@arangodb/graph-examples/example-graph.js"); @@ -659,8 +686,8 @@ Updates the data of a vertex in collection `vertexCollectionName`. ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphVertexCollectionUpdate -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Remove a Vertex @@ -678,7 +705,7 @@ Additionally removes all ingoing and outgoing edges of the vertex recursively **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphVertexCollectionRemove @EXAMPLE_ARANGOSH_OUTPUT{generalGraphVertexCollectionRemove} var examples = require("@arangodb/graph-examples/example-graph.js"); @@ -690,8 +717,8 @@ Additionally removes all ingoing and outgoing edges of the vertex recursively ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphVertexCollectionRemove -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Manipulating Edges ------------------ @@ -712,7 +739,7 @@ Creates an edge from vertex `data._from` to vertex `data._to` in collection **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphEdgeCollectionSave1 @EXAMPLE_ARANGOSH_OUTPUT{generalGraphEdgeCollectionSave1} var examples = require("@arangodb/graph-examples/example-graph.js"); @@ -724,13 +751,13 @@ Creates an edge from vertex `data._from` to vertex `data._to` in collection ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphEdgeCollectionSave1 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} If the collections of `from` and `to` are not defined in an edge definition of the graph, the edge is not stored. -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphEdgeCollectionSave2 @EXAMPLE_ARANGOSH_OUTPUT{generalGraphEdgeCollectionSave2} var examples = require("@arangodb/graph-examples/example-graph.js"); @@ -742,8 +769,8 @@ of the graph, the edge is not stored. ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphEdgeCollectionSave2 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Replace an Edge @@ -761,7 +788,7 @@ Note that `_from` and `_to` are mandatory. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphEdgeCollectionReplace @EXAMPLE_ARANGOSH_OUTPUT{generalGraphEdgeCollectionReplace} var examples = require("@arangodb/graph-examples/example-graph.js"); @@ -771,8 +798,8 @@ Note that `_from` and `_to` are mandatory. ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphEdgeCollectionReplace -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Update an Edge @@ -789,7 +816,7 @@ Updates the data of an edge in collection `edgeCollectionName`. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphEdgeCollectionUpdate @EXAMPLE_ARANGOSH_OUTPUT{generalGraphEdgeCollectionUpdate} var examples = require("@arangodb/graph-examples/example-graph.js"); @@ -799,8 +826,8 @@ Updates the data of an edge in collection `edgeCollectionName`. ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphEdgeCollectionUpdate -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} ### Remove an Edge @@ -818,7 +845,7 @@ If this edge is used as a vertex by another edge, the other edge is removed **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphEdgeCollectionRemove @EXAMPLE_ARANGOSH_OUTPUT{generalGraphEdgeCollectionRemove} var examples = require("@arangodb/graph-examples/example-graph.js"); @@ -830,5 +857,5 @@ If this edge is used as a vertex by another edge, the other edge is removed ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphEdgeCollectionRemove -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} diff --git a/3.11/graphs-general-graphs.md b/3.11/graphs-general-graphs.md index c37a41960b..cec7d884f9 100644 --- a/3.11/graphs-general-graphs.md +++ b/3.11/graphs-general-graphs.md @@ -20,7 +20,7 @@ Three Steps to create a graph **Create a graph** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphCreateGraphHowTo1 @EXAMPLE_ARANGOSH_OUTPUT{generalGraphCreateGraphHowTo1} var graph_module = require("@arangodb/general-graph"); @@ -29,12 +29,12 @@ Three Steps to create a graph ~ graph_module._drop("myGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphCreateGraphHowTo1 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} **Add some vertex collections** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphCreateGraphHowTo2 @EXAMPLE_ARANGOSH_OUTPUT{generalGraphCreateGraphHowTo2} ~ var graph_module = require("@arangodb/general-graph"); @@ -42,16 +42,16 @@ Three Steps to create a graph graph._addVertexCollection("shop"); graph._addVertexCollection("customer"); graph._addVertexCollection("pet"); - graph; + graph = graph_module._graph("myGraph"); ~ graph_module._drop("myGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphCreateGraphHowTo2 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} **Define relations on the Graph** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline generalGraphCreateGraphHowTo3 @EXAMPLE_ARANGOSH_OUTPUT{generalGraphCreateGraphHowTo3} ~ var graph_module = require("@arangodb/general-graph"); @@ -59,9 +59,9 @@ Three Steps to create a graph ~ graph._addVertexCollection("pet"); var rel = graph_module._relation("isCustomer", ["shop"], ["customer"]); graph._extendEdgeDefinitions(rel); - graph; + graph = graph_module._graph("myGraph"); ~ graph_module._drop("myGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock generalGraphCreateGraphHowTo3 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} diff --git a/3.11/graphs-satellite-graphs-details.md b/3.11/graphs-satellite-graphs-details.md index 00c27aa3bc..2f57b4a0fe 100644 --- a/3.11/graphs-satellite-graphs-details.md +++ b/3.11/graphs-satellite-graphs-details.md @@ -33,17 +33,17 @@ only covers a part of it, then you can do so. To create a SatelliteGraph in arangosh, use the `satellite-graph` module: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline satelliteGraphCreate1_cluster @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphCreate1_cluster} - var satelliteGraphModule = require("@arangodb/satellite-graph"); - var graph = satelliteGraphModule._create("satelliteGraph"); - satelliteGraphModule._graph("satelliteGraph"); - ~satelliteGraphModule._drop("satelliteGraph", true); + var satelliteGraphModule = require("@arangodb/satellite-graph"); + var graph = satelliteGraphModule._create("satelliteGraph"); + satelliteGraphModule._graph("satelliteGraph"); + ~ satelliteGraphModule._drop("satelliteGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock satelliteGraphCreate1_cluster -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} In contrast to General Graphs and SmartGraphs, you do not need to take care of the sharding and replication properties. The properties `distributeShardsLike`, @@ -53,17 +53,18 @@ the sharding and replication properties. The properties `distributeShardsLike`, Adding vertex collections is analogous to General Graphs: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline satelliteGraphCreate2_cluster @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphCreate2_cluster} - ~var satelliteGraphModule = require("@arangodb/satellite-graph"); - var graph = satelliteGraphModule._create("satelliteGraph"); - graph._addVertexCollection("aVertexCollection"); - ~satelliteGraphModule._drop("satelliteGraph", true); + ~ var satelliteGraphModule = require("@arangodb/satellite-graph"); + var graph = satelliteGraphModule._create("satelliteGraph"); + graph._addVertexCollection("aVertexCollection"); + graph = satelliteGraphModule._graph("satelliteGraph"); + ~ satelliteGraphModule._drop("satelliteGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock satelliteGraphCreate2_cluster -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} If the collection `"aVertexCollection"` doesn't exist yet, then the SatelliteGraph module will create it automatically with the correct @@ -77,18 +78,19 @@ Adding edge collections works the same as with General Graphs, but again, the collections are created by the SatelliteGraph module with the right properties if they don't exist already. -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline satelliteGraphCreate3_cluster @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphCreate3_cluster} - ~var satelliteGraphModule = require("@arangodb/satellite-graph"); - var graph = satelliteGraphModule._create("satelliteGraph"); - var relation = satelliteGraphModule._relation("isFriend", ["person"], ["person"]); - graph._extendEdgeDefinitions(relation); - ~satelliteGraphModule._drop("satelliteGraph", true); + ~ var satelliteGraphModule = require("@arangodb/satellite-graph"); + var graph = satelliteGraphModule._create("satelliteGraph"); + var relation = satelliteGraphModule._relation("isFriend", ["person"], ["person"]); + graph._extendEdgeDefinitions(relation); + graph = satelliteGraphModule._graph("satelliteGraph"); + ~ satelliteGraphModule._drop("satelliteGraph", true); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock satelliteGraphCreate3_cluster -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Existing edge collections can be added, but they require the `distributeShardsLike` property to reference the prototype collection. @@ -114,13 +116,13 @@ of these properties. Creating an empty SatelliteGraph: No prototype collection is present. {% arangoshexample examplevar="examplevar" script="script" result="result" %} - @startDocuBlockInline satelliteGraphPrototype1_cluster - @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphPrototype1_cluster} - var satelliteGraphModule = require("@arangodb/satellite-graph"); - satelliteGraphModule._create("satelliteGraph"); - ~satelliteGraphModule._drop("satelliteGraph", true); - @END_EXAMPLE_ARANGOSH_OUTPUT - @endDocuBlock satelliteGraphPrototype1_cluster + @startDocuBlockInline satelliteGraphPrototype1_cluster + @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphPrototype1_cluster} + var satelliteGraphModule = require("@arangodb/satellite-graph"); + satelliteGraphModule._create("satelliteGraph"); + ~ satelliteGraphModule._drop("satelliteGraph", true); + @END_EXAMPLE_ARANGOSH_OUTPUT + @endDocuBlock satelliteGraphPrototype1_cluster {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} @@ -129,14 +131,15 @@ This leads to the creation of a prototype collection `"myPrototypeColl"` (assuming that no collection with this name existed before): {% arangoshexample examplevar="examplevar" script="script" result="result" %} - @startDocuBlockInline satelliteGraphPrototype2_cluster - @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphPrototype2_cluster} - var satelliteGraphModule = require("@arangodb/satellite-graph"); - var graph = satelliteGraphModule._create("satelliteGraph"); - graph._addVertexCollection("myPrototypeColl"); - ~satelliteGraphModule._drop("satelliteGraph", true); - @END_EXAMPLE_ARANGOSH_OUTPUT - @endDocuBlock satelliteGraphPrototype2_cluster + @startDocuBlockInline satelliteGraphPrototype2_cluster + @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphPrototype2_cluster} + var satelliteGraphModule = require("@arangodb/satellite-graph"); + var graph = satelliteGraphModule._create("satelliteGraph"); + graph._addVertexCollection("myPrototypeColl"); + graph = satelliteGraphModule._graph("satelliteGraph"); + ~ satelliteGraphModule._drop("satelliteGraph", true); + @END_EXAMPLE_ARANGOSH_OUTPUT + @endDocuBlock satelliteGraphPrototype2_cluster {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} @@ -147,15 +150,16 @@ collection, then one of the collections will be chosen arbitrarily as prototype collection. {% arangoshexample examplevar="examplevar" script="script" result="result" %} - @startDocuBlockInline satelliteGraphPrototype3_cluster - @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphPrototype3_cluster} - var satelliteGraphModule = require("@arangodb/satellite-graph"); - var graph = satelliteGraphModule._create("satelliteGraph"); - var relation = satelliteGraphModule._relation("isFriend", ["person"], ["person"]); - graph._extendEdgeDefinitions(relation); - ~satelliteGraphModule._drop("satelliteGraph", true); - @END_EXAMPLE_ARANGOSH_OUTPUT - @endDocuBlock satelliteGraphPrototype3_cluster + @startDocuBlockInline satelliteGraphPrototype3_cluster + @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphPrototype3_cluster} + var satelliteGraphModule = require("@arangodb/satellite-graph"); + var graph = satelliteGraphModule._create("satelliteGraph"); + var relation = satelliteGraphModule._relation("isFriend", ["person"], ["person"]); + graph._extendEdgeDefinitions(relation); + graph = satelliteGraphModule._graph("satelliteGraph"); + ~ satelliteGraphModule._drop("satelliteGraph", true); + @END_EXAMPLE_ARANGOSH_OUTPUT + @endDocuBlock satelliteGraphPrototype3_cluster {% endarangoshexample %} {% include arangoshexample.html id=examplevar script=script result=result %} @@ -178,40 +182,40 @@ and a SatelliteGraph traversal query: 1. First we setup our graphs and collections. - {% arangoshexample examplevar="examplevar" script="script" result="result" %} - @startDocuBlockInline satelliteGraphGeneralGraph1_cluster - @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphGeneralGraph1_cluster} - var graphModule = require("@arangodb/general-graph"); - var satelliteGraphModule = require("@arangodb/satellite-graph"); - graphModule._create("normalGraph", [ graphModule._relation("edges", "vertices", "vertices") ], [], {}); - satelliteGraphModule._create("satelliteGraph", [ satelliteGraphModule._relation("satEdges", "satVertices", "satVertices") ], [], {}); - db._create("collection", {numberOfShards: 8}); - ~db._drop("collection"); - ~satelliteGraphModule._drop("satelliteGraph", true); - ~graphModule._drop("normalGraph", true); - @END_EXAMPLE_ARANGOSH_OUTPUT - @endDocuBlock satelliteGraphGeneralGraph1_cluster - {% endarangoshexample %} - {% include arangoshexample.html id=examplevar script=script result=result %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} + @startDocuBlockInline satelliteGraphGeneralGraph1_cluster + @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphGeneralGraph1_cluster} + var graphModule = require("@arangodb/general-graph"); + var satelliteGraphModule = require("@arangodb/satellite-graph"); + graphModule._create("normalGraph", [ graphModule._relation("edges", "vertices", "vertices") ], [], {}); + satelliteGraphModule._create("satelliteGraph", [ satelliteGraphModule._relation("satEdges", "satVertices", "satVertices") ], [], {}); + db._create("collection", {numberOfShards: 8}); + ~ db._drop("collection"); + ~ satelliteGraphModule._drop("satelliteGraph", true); + ~ graphModule._drop("normalGraph", true); + @END_EXAMPLE_ARANGOSH_OUTPUT + @endDocuBlock satelliteGraphGeneralGraph1_cluster + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} 2. Let us analyze a query involving a traversal: - {% arangoshexample examplevar="examplevar" script="script" result="result" %} - @startDocuBlockInline satelliteGraphGeneralGraph2_cluster - @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphGeneralGraph2_cluster} - ~var graphModule = require("@arangodb/general-graph"); - ~var satelliteGraphModule = require("@arangodb/satellite-graph"); - ~graphModule._create("normalGraph", [ graphModule._relation("edges", "vertices", "vertices") ], [], {}); - ~satelliteGraphModule._create("satelliteGraph", [ satelliteGraphModule._relation("satEdges", "satVertices", "satVertices") ], [], {}); - ~db._create("collection", {numberOfShards: 8}); - db._explain(`FOR doc in collection FOR v,e,p IN OUTBOUND "vertices/start" GRAPH "normalGraph" RETURN [doc,v,e,p]`, {}, {colors: false}); - ~db._drop("collection"); - ~satelliteGraphModule._drop("satelliteGraph", true); - ~graphModule._drop("normalGraph", true); - @END_EXAMPLE_ARANGOSH_OUTPUT - @endDocuBlock satelliteGraphGeneralGraph2_cluster - {% endarangoshexample %} - {% include arangoshexample.html id=examplevar script=script result=result %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} + @startDocuBlockInline satelliteGraphGeneralGraph2_cluster + @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphGeneralGraph2_cluster} + ~ var graphModule = require("@arangodb/general-graph"); + ~ var satelliteGraphModule = require("@arangodb/satellite-graph"); + ~ graphModule._create("normalGraph", [ graphModule._relation("edges", "vertices", "vertices") ], [], {}); + ~ satelliteGraphModule._create("satelliteGraph", [ satelliteGraphModule._relation("satEdges", "satVertices", "satVertices") ], [], {}); + ~ db._create("collection", {numberOfShards: 8}); + db._explain(`FOR doc in collection FOR v,e,p IN OUTBOUND "vertices/start" GRAPH "normalGraph" RETURN [doc,v,e,p]`, {}, {colors: false}); + ~ db._drop("collection"); + ~ satelliteGraphModule._drop("satelliteGraph", true); + ~ graphModule._drop("normalGraph", true); + @END_EXAMPLE_ARANGOSH_OUTPUT + @endDocuBlock satelliteGraphGeneralGraph2_cluster + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} You can see that the `TraversalNode` is executed on a Coordinator, and only the `EnumerateCollectionNode` is executed on DB-Servers. This will happen for @@ -219,22 +223,22 @@ and a SatelliteGraph traversal query: 3. Let us now have a look at the same query using a SatelliteGraph: - {% arangoshexample examplevar="examplevar" script="script" result="result" %} - @startDocuBlockInline satelliteGraphGeneralGraph3_cluster - @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphGeneralGraph3_cluster} - ~var graphModule = require("@arangodb/general-graph"); - ~var satelliteGraphModule = require("@arangodb/satellite-graph"); - ~graphModule._create("normalGraph", [ graphModule._relation("edges", "vertices", "vertices") ], [], {}); - ~satelliteGraphModule._create("satelliteGraph", [ satelliteGraphModule._relation("satEdges", "satVertices", "satVertices") ], [], {}); - ~db._create("collection", {numberOfShards: 8}); - db._explain(`FOR doc in collection FOR v,e,p IN OUTBOUND "vertices/start" GRAPH "satelliteGraph" RETURN [doc,v,e,p]`, {}, {colors: false}); - ~db._drop("collection"); - ~satelliteGraphModule._drop("satelliteGraph", true); - ~graphModule._drop("normalGraph", true); - @END_EXAMPLE_ARANGOSH_OUTPUT - @endDocuBlock satelliteGraphGeneralGraph3_cluster - {% endarangoshexample %} - {% include arangoshexample.html id=examplevar script=script result=result %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} + @startDocuBlockInline satelliteGraphGeneralGraph3_cluster + @EXAMPLE_ARANGOSH_OUTPUT{satelliteGraphGeneralGraph3_cluster} + ~ var graphModule = require("@arangodb/general-graph"); + ~ var satelliteGraphModule = require("@arangodb/satellite-graph"); + ~ graphModule._create("normalGraph", [ graphModule._relation("edges", "vertices", "vertices") ], [], {}); + ~ satelliteGraphModule._create("satelliteGraph", [ satelliteGraphModule._relation("satEdges", "satVertices", "satVertices") ], [], {}); + ~ db._create("collection", {numberOfShards: 8}); + db._explain(`FOR doc in collection FOR v,e,p IN OUTBOUND "vertices/start" GRAPH "satelliteGraph" RETURN [doc,v,e,p]`, {}, {colors: false}); + ~ db._drop("collection"); + ~ satelliteGraphModule._drop("satelliteGraph", true); + ~ graphModule._drop("normalGraph", true); + @END_EXAMPLE_ARANGOSH_OUTPUT + @endDocuBlock satelliteGraphGeneralGraph3_cluster + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Note that now the `TraversalNode` is executed on each DB-Server, leading to a great reduction in required network communication, and hence potential gains diff --git a/3.11/indexing-index-basics.md b/3.11/indexing-index-basics.md index 7907e63dcf..83b3a4159c 100644 --- a/3.11/indexing-index-basics.md +++ b/3.11/indexing-index-basics.md @@ -272,21 +272,24 @@ other index types, even if they would be capable of accelerating the queries. TTL (time-to-live) Index ------------------------ -The TTL index type provided by ArangoDB can be used for automatically removing expired documents -from a collection. +You can use the TTL index type for automatically removing expired documents +from a collection. A TTL index is set up by setting an `expireAfter` value and by picking a single -document attribute which contains the documents' creation date and time. Documents -are expired after `expireAfter` seconds after their creation time. The creation time -is specified as either a numeric timestamp (Unix timestamp) or a date string in format -`YYYY-MM-DDTHH:MM:SS`, optionally with milliseconds after a decimal point in the -format `YYYY-MM-DDTHH:MM:SS.MMM` and an optional timezone offset. All date strings -without a timezone offset will be interpreted as UTC dates. +document attribute which contains the documents' reference point in time. Documents +are expired after `expireAfter` seconds after their reference time has been reached. +The document's reference point in time is specified as either a numeric timestamp +(Unix timestamp) or a date string in the format `YYYY-MM-DDTHH:MM:SS`, optionally +with milliseconds after a decimal point in the format `YYYY-MM-DDTHH:MM:SS.MMM` +and an optional timezone offset. All date strings without a timezone offset are +interpreted as UTC dates. For example, if `expireAfter` is set to 600 seconds (10 minutes) and the index attribute is "creationDate" and there is the following document: - { "creationDate" : 1550165973 } +```json +{ "creationDate" : 1550165973 } +``` This document will be indexed with a creation date time value of `1550165973`, which translates to the human-readable date `2019-02-14T17:39:33.000Z`. The document @@ -294,22 +297,21 @@ will expire 600 seconds afterwards, which is at timestamp `1550166573` (or `2019-02-14T17:49:33.000Z` in the human-readable version). The actual removal of expired documents will not necessarily happen immediately. -Expired documents will eventually removed by a background thread that is periodically -going through all TTL indexes and removing the expired documents. The frequency for -invoking this background thread can be configured using the `--ttl.frequency` -startup option. +Expired documents will eventually be removed by a background thread that is +periodically going through all TTL indexes. The frequency for invoking this +background thread can be configured using the `--ttl.frequency` startup option. There is no guarantee when exactly the removal of expired documents will be carried out, so queries may still find and return documents that have already expired. These will eventually be removed when the background thread kicks in and has capacity to -remove the expired documents. It is guaranteed however that only documents which are +remove the expired documents. It is guaranteed however that only documents which are past their expiration time will actually be removed. Please note that the numeric date time values for the index attribute has to be -specified **in seconds** since January 1st 1970 (Unix timestamp). To calculate the current +specified **in seconds** since January 1st 1970 (Unix timestamp). To calculate the current timestamp from JavaScript in this format, there is `Date.now() / 1000`; to calculate it from an arbitrary Date instance, there is `Date.getTime() / 1000`. In AQL you can do -`DATE_NOW() / 1000` or divide an arbitrary timestamp that is in milliseconds +`DATE_NOW() / 1000` or divide an arbitrary Unix timestamp that is in milliseconds by 1000 to convert it to seconds. Alternatively, the index attribute values can be specified as a date string in format @@ -317,15 +319,24 @@ Alternatively, the index attribute values can be specified as a date string in f format `YYYY-MM-DDTHH:MM:SS.MMM` and an optional timezone offset. All date strings without a timezone offset will be interpreted as UTC dates. -The above example document using a datestring attribute value would be +The above example document using a date string attribute value would be - { "creationDate" : "2019-02-14T17:39:33.000Z" } +```json +{ "creationDate" : "2019-02-14T17:39:33.000Z" } +``` In case the index attribute does not contain a numeric value nor a proper date string, the document will not be stored in the TTL index and thus will not become a candidate for expiration and removal. Providing either a non-numeric value or even no value for the index attribute is a supported way of keeping documents from being expired and removed. +TTL indexes are designed exactly for the purpose of removing expired documents from +a collection. It is *not recommended* to rely on TTL indexes for user-land AQL queries. +This is because TTL indexes internally may store a transformed, always numerical version +of the index attribute value even if it was originally passed in as a date string. As a +result TTL indexes will likely not be used for filtering and sort operations in user-land +AQL queries. + Geo Index --------- diff --git a/3.11/indexing-index-utilization.md b/3.11/indexing-index-utilization.md index 5e097abb15..a117e17ebf 100644 --- a/3.11/indexing-index-utilization.md +++ b/3.11/indexing-index-utilization.md @@ -124,9 +124,7 @@ If any of the explain methods shows that a query is not using indexes, the follo FILTER doc.value1 > ... && doc.value1 <= ... FILTER doc.value1 >= ... && doc.value1 <= ... FILTER doc.value1 IN ... - ``` - ```aql FILTER doc.value1 == ... && doc.value2 == ... FILTER doc.value1 == ... && doc.value2 > ... FILTER doc.value1 == ... && doc.value2 >= ... diff --git a/3.11/indexing-persistent.md b/3.11/indexing-persistent.md index 7e7d5c2dfe..685fa56b55 100644 --- a/3.11/indexing-persistent.md +++ b/3.11/indexing-persistent.md @@ -284,7 +284,7 @@ will not. However, if you use ```json -{ "a.c" : 1 }, +{ "a.c" : 1 } ``` then you will find all documents, which contain a sub-document in `a` diff --git a/3.11/indexing-vertex-centric.md b/3.11/indexing-vertex-centric.md index 7490ee4e61..af0f5007db 100644 --- a/3.11/indexing-vertex-centric.md +++ b/3.11/indexing-vertex-centric.md @@ -2,16 +2,16 @@ layout: default description: In ArangoDB there are special indices designed to speed up graph operations, especially if the graph contains supernodes (vertices that have an exceptionally high amount of connected edges) --- -Vertex Centric Indexes +Vertex-Centric Indexes ====================== -Introduction to Vertex Centric Indexes +Introduction to Vertex-Centric Indexes -------------------------------------- In ArangoDB there are special indices designed to speed up graph operations, especially if the graph contains supernodes (vertices that have an exceptionally high amount of connected edges). -These indices are called vertex centric indexes and can be used in addition +These indices are called vertex-centric indexes and can be used in addition to the existing edge index. Motivation diff --git a/3.11/indexing-which-index.md b/3.11/indexing-which-index.md index 276e608a93..32cbeea5ce 100644 --- a/3.11/indexing-which-index.md +++ b/3.11/indexing-which-index.md @@ -58,64 +58,12 @@ different usage scenarios: relevance, and for search highlighting capabilities. It is a lightweight alternative to an `arangosearch` View. -- **TTL index**: the TTL index provided by ArangoDB can be used for automatically - removing expired documents from a collection. - - The TTL index is set up by setting an `expireAfter` value and by picking a single - document attribute which contains the documents' reference timepoint. Documents - are expired `expireAfter` seconds after their reference timepoint has been reached. - The documents' reference timepoint is specified as either a numeric timestamp - (Unix timestamp) or a date string in format `YYYY-MM-DDTHH:MM:SS` with optional - milliseconds. All date strings will be interpreted as UTC dates. - - For example, if `expireAfter` is set to 600 seconds (10 minutes) and the index - attribute is "creationDate" and there is the following document: - - { "creationDate" : 1550165973 } - - This document will be indexed with a creation date time value of `1550165973`, - which translates to the human-readable date `2019-02-14T17:39:33.000Z`. The document - will expire 600 seconds afterwards, which is at timestamp `1550166573` (or - `2019-02-14T17:49:33.000Z` in the human-readable version). - - The actual removal of expired documents will not necessarily happen immediately. - Expired documents will eventually be removed by a background thread that is - periodically going through all TTL indexes. The frequency for invoking this - background thread can be configured using the `--ttl.frequency` startup option. - - There is no guarantee when exactly the removal of expired documents will be carried - out, so queries may still find and return documents that have already expired. These - will eventually be removed when the background thread kicks in and has capacity to - remove the expired documents. It is guaranteed however that only documents which are - past their expiration time will actually be removed. - - Please note that the numeric date time values for the index attribute has to be - specified **in seconds** since January 1st 1970 (Unix timestamp). To calculate the current - timestamp from JavaScript in this format, there is `Date.now() / 1000`; to calculate it - from an arbitrary Date instance, there is `Date.getTime() / 1000`. In AQL you can do - `DATE_NOW() / 1000` or divide an arbitrary Unix timestamp in milliseconds by 1000 to - convert it to seconds. - - Alternatively, the index attribute values can be specified as a date string in format - `YYYY-MM-DDTHH:MM:SS`, optionally with milliseconds after a decimal point in the - format `YYYY-MM-DDTHH:MM:SS.MMM` and an optional timezone offset. All date strings - without a timezone offset will be interpreted as UTC dates. - - The above example document using a date string attribute value would be - - { "creationDate" : "2019-02-14T17:39:33.000Z" } - - In case the index attribute does not contain a numeric value nor a proper date string, - the document will not be stored in the TTL index and thus will not become a candidate - for expiration and removal. Providing either a non-numeric value or even no value for - the index attribute is a supported way of keeping documents from being expired and removed. - - TTL indexes are designed exactly for the purpose of removing expired documents from - a collection. It is *not recommended* to rely on TTL indexes for user-land AQL queries. - This is because TTL indexes internally may store a transformed, always numerical version - of the index attribute value even if it was originally passed in as a datestring. As a - result TTL indexes will likely not be used for filtering and sort operations in user-land - AQL queries. +- **TTL index**: a time-to-live index can be used for automatically removing + expired documents from a collection. + + You can choose a document attribute that specifies a point in time and whether + documents shall expire at the point in time or a given number of seconds after + the point in time. - **multi-dimensional index** (ZKD): a multi dimensional index allows to efficiently intersect multiple range queries. Typical use cases are querying diff --git a/_data/3.10-manual.yml b/_data/3.10-manual.yml index 2a90db9c14..8d4cd96e35 100644 --- a/_data/3.10-manual.yml +++ b/_data/3.10-manual.yml @@ -299,7 +299,7 @@ href: indexing-multi-dim.html - text: Geo-spatial Indexes href: indexing-geo.html - - text: Vertex Centric Indexes + - text: Vertex-Centric Indexes href: indexing-vertex-centric.html - text: ArangoSearch href: arangosearch.html diff --git a/_data/3.11-manual.yml b/_data/3.11-manual.yml index 9d79d51142..9db6c69882 100644 --- a/_data/3.11-manual.yml +++ b/_data/3.11-manual.yml @@ -299,7 +299,7 @@ href: indexing-multi-dim.html - text: Geo-spatial Indexes href: indexing-geo.html - - text: Vertex Centric Indexes + - text: Vertex-Centric Indexes href: indexing-vertex-centric.html - text: ArangoSearch href: arangosearch.html From 6b03f74aa3313364f35079064296d876185019bb Mon Sep 17 00:00:00 2001 From: Simran Spiller Date: Thu, 29 Sep 2022 12:24:43 +0200 Subject: [PATCH 14/18] JS API: Show how to actually use collection.iterate() --- ...ata-modeling-documents-document-methods.md | 221 +++++++++--------- 1 file changed, 110 insertions(+), 111 deletions(-) diff --git a/3.11/data-modeling-documents-document-methods.md b/3.11/data-modeling-documents-document-methods.md index 79920f83a7..9294571d72 100644 --- a/3.11/data-modeling-documents-document-methods.md +++ b/3.11/data-modeling-documents-document-methods.md @@ -18,7 +18,7 @@ can be limited using the `skip()` and `limit()` operator. Use `toArray()` to get all documents at once: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 001_collectionAll @EXAMPLE_ARANGOSH_OUTPUT{001_collectionAll} ~ db._create("five"); @@ -31,12 +31,12 @@ Use `toArray()` to get all documents at once: ~ db._drop("five"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 001_collectionAll -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Use `limit()` to restrict the documents: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 002_collectionAllNext @EXAMPLE_ARANGOSH_OUTPUT{002_collectionAllNext} ~ db._create("five"); @@ -49,8 +49,8 @@ Use `limit()` to restrict the documents: ~ db._drop("five"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 002_collectionAllNext -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Query by example ---------------- @@ -117,7 +117,7 @@ As alternative you can supply an array of paths and values. Use `toArray()` to get all documents at once: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 003_collectionByExample @EXAMPLE_ARANGOSH_OUTPUT{003_collectionByExample} ~ db._create("users"); @@ -131,12 +131,12 @@ Use `toArray()` to get all documents at once: ~ db._drop("users"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 003_collectionByExample -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Use `next()` to loop over all documents: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 004_collectionByExampleNext @EXAMPLE_ARANGOSH_OUTPUT{004_collectionByExampleNext} ~ db._create("users"); @@ -148,8 +148,8 @@ Use `next()` to loop over all documents: ~ db._drop("users"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 004_collectionByExampleNext -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} First Example ------------- @@ -169,7 +169,7 @@ As alternative you can supply an array of paths and values. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline collectionFirstExample @EXAMPLE_ARANGOSH_OUTPUT{collectionFirstExample} ~ db._create("users"); @@ -180,8 +180,8 @@ As alternative you can supply an array of paths and values. ~ db._drop("users"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock collectionFirstExample -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Any --- @@ -201,7 +201,7 @@ Returns the number of living documents in the collection. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline collectionCount @EXAMPLE_ARANGOSH_OUTPUT{collectionCount} ~ db._create("users"); @@ -209,8 +209,8 @@ Returns the number of living documents in the collection. ~ db._drop("users"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock collectionCount -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} toArray ------- @@ -279,7 +279,7 @@ an error object is returned in the result array. Returns the document for a document-handle: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline documentsCollectionNameValidPlain @EXAMPLE_ARANGOSH_OUTPUT{documentsCollectionNameValidPlain} ~ db._create("example"); @@ -288,12 +288,12 @@ Returns the document for a document-handle: ~ db._drop("example"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock documentsCollectionNameValidPlain -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Returns the document for a document-key: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline documentsCollectionNameValidByKey @EXAMPLE_ARANGOSH_OUTPUT{documentsCollectionNameValidByKey} ~ db._create("example"); @@ -302,12 +302,12 @@ Returns the document for a document-key: ~ db._drop("example"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock documentsCollectionNameValidByKey -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Returns the document for an object: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline documentsCollectionNameValidByObject @EXAMPLE_ARANGOSH_OUTPUT{documentsCollectionNameValidByObject} ~ db._create("example"); @@ -316,12 +316,12 @@ Returns the document for an object: ~ db._drop("example"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock documentsCollectionNameValidByObject -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Returns the document for an array of two keys: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline documentsCollectionNameValidMulti @EXAMPLE_ARANGOSH_OUTPUT{documentsCollectionNameValidMulti} ~ db._create("example"); @@ -331,12 +331,12 @@ Returns the document for an array of two keys: ~ db._drop("example"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock documentsCollectionNameValidMulti -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} An error is raised if the document is unknown: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline documentsCollectionNameUnknown @EXAMPLE_ARANGOSH_OUTPUT{documentsCollectionNameUnknown} ~ db._create("example"); @@ -345,12 +345,12 @@ An error is raised if the document is unknown: ~ db._drop("example"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock documentsCollectionNameUnknown -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} An error is raised if the handle is invalid: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline documentsCollectionNameHandle @EXAMPLE_ARANGOSH_OUTPUT{documentsCollectionNameHandle} ~ db._create("example"); @@ -358,8 +358,8 @@ An error is raised if the handle is invalid: ~ db._drop("example"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock documentsCollectionNameHandle -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Exists ------ @@ -430,7 +430,7 @@ This method is deprecated in favor of the array variant of `document()`. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline collectionLookupByKeys @EXAMPLE_ARANGOSH_OUTPUT{collectionLookupByKeys} ~ db._drop("example"); @@ -444,8 +444,8 @@ This method is deprecated in favor of the array variant of `document()`. ~ db._drop("example"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock collectionLookupByKeys -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Insert / Save ------------- @@ -545,7 +545,7 @@ exactly as before. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline documentsCollectionInsertSingle @EXAMPLE_ARANGOSH_OUTPUT{documentsCollectionInsertSingle} ~ db._create("example"); @@ -554,10 +554,10 @@ exactly as before. ~ db._drop("example"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock documentsCollectionInsertSingle -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline documentsCollectionInsertMulti @EXAMPLE_ARANGOSH_OUTPUT{documentsCollectionInsertMulti} ~ db._create("example"); @@ -566,10 +566,10 @@ exactly as before. ~ db._drop("example"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock documentsCollectionInsertMulti -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline documentsCollectionInsertSingleOverwrite @EXAMPLE_ARANGOSH_OUTPUT{documentsCollectionInsertSingleOverwrite} ~ db._create("example"); @@ -578,8 +578,8 @@ exactly as before. ~ db._drop("example"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock documentsCollectionInsertSingleOverwrite -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Replace ------- @@ -664,7 +664,7 @@ result array. The options behave exactly as before. Create and update a document: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline documentsCollectionReplace1 @EXAMPLE_ARANGOSH_OUTPUT{documentsCollectionReplace1} ~ db._create("example"); @@ -674,12 +674,12 @@ Create and update a document: ~ db._drop("example"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock documentsCollectionReplace1 -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Use a document handle: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline documentsCollectionReplaceHandle @EXAMPLE_ARANGOSH_OUTPUT{documentsCollectionReplaceHandle} ~ db._create("example"); @@ -689,8 +689,8 @@ Use a document handle: ~ db._drop("example"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock documentsCollectionReplaceHandle -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Update ------ @@ -785,7 +785,7 @@ result array. The options behave exactly as before. Create and update a document: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline documentsCollection_UpdateDocument @EXAMPLE_ARANGOSH_OUTPUT{documentsCollection_UpdateDocument} ~ db._create("example"); @@ -799,12 +799,12 @@ Create and update a document: ~ db._drop("example"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock documentsCollection_UpdateDocument -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Use a document handle: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline documentsCollection_UpdateHandleSingle @EXAMPLE_ARANGOSH_OUTPUT{documentsCollection_UpdateHandleSingle} ~ db._create("example"); @@ -814,12 +814,12 @@ Use a document handle: ~ db._drop("example"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock documentsCollection_UpdateHandleSingle -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Use the keepNull parameter to remove attributes with null values: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline documentsCollection_UpdateHandleKeepNull @EXAMPLE_ARANGOSH_OUTPUT{documentsCollection_UpdateHandleKeepNull} ~ db._create("example"); @@ -836,12 +836,12 @@ Use the keepNull parameter to remove attributes with null values: ~ db._drop("example"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock documentsCollection_UpdateHandleKeepNull -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Patching array values: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline documentsCollection_UpdateHandleArray @EXAMPLE_ARANGOSH_OUTPUT{documentsCollection_UpdateHandleArray} ~ db._create("example"); @@ -858,8 +858,8 @@ Patching array values: ~ db._drop("example"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock documentsCollection_UpdateHandleArray -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Remove ------ @@ -939,7 +939,7 @@ exactly as before. Remove a document: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline documentDocumentRemoveSimple @EXAMPLE_ARANGOSH_OUTPUT{documentDocumentRemoveSimple} ~ db._create("example"); @@ -950,12 +950,12 @@ Remove a document: ~ db._drop("example"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock documentDocumentRemoveSimple -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Remove a document with a conflict: -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline documentDocumentRemoveConflict @EXAMPLE_ARANGOSH_OUTPUT{documentDocumentRemoveConflict} ~ db._create("example"); @@ -967,8 +967,8 @@ Remove a document with a conflict: ~ db._drop("example"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock documentDocumentRemoveConflict -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Remove By Keys -------------- @@ -989,7 +989,7 @@ This method is deprecated in favor of the array variant of `remove()`. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline collectionRemoveByKeys @EXAMPLE_ARANGOSH_OUTPUT{collectionRemoveByKeys} ~ db._drop("example"); @@ -1003,8 +1003,8 @@ This method is deprecated in favor of the array variant of `remove()`. ~ db._drop("example"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock collectionRemoveByKeys -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Remove By Example ----------------- @@ -1039,7 +1039,7 @@ removed. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 010_documentsCollectionRemoveByExample @EXAMPLE_ARANGOSH_OUTPUT{010_documentsCollectionRemoveByExample} ~ db._create("example"); @@ -1048,8 +1048,8 @@ removed. ~ db._drop("example"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 010_documentsCollectionRemoveByExample -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Replace By Example ------------------ @@ -1087,7 +1087,7 @@ replaced. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 011_documentsCollectionReplaceByExample @EXAMPLE_ARANGOSH_OUTPUT{011_documentsCollectionReplaceByExample} ~ db._create("example"); @@ -1096,8 +1096,8 @@ replaced. ~ db._drop("example"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 011_documentsCollectionReplaceByExample -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Update By Example ----------------- @@ -1156,7 +1156,7 @@ an object with the following sub-attributes: **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline 012_documentsCollectionUpdateByExample @EXAMPLE_ARANGOSH_OUTPUT{012_documentsCollectionUpdateByExample} ~ db._create("example"); @@ -1166,8 +1166,8 @@ an object with the following sub-attributes: ~ db._drop("example"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock 012_documentsCollectionUpdateByExample -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Collection type --------------- @@ -1209,7 +1209,7 @@ The `edges` operator finds all edges starting from (outbound) or ending in (inbound) a document from `vertices`, which must be a list of documents or document handles. -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline EDGCOL_02_Relation @EXAMPLE_ARANGOSH_OUTPUT{EDGCOL_02_Relation} db._create("vertex"); @@ -1225,8 +1225,8 @@ or document handles. ~ db._drop("vertex"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock EDGCOL_02_Relation -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} --- @@ -1243,7 +1243,7 @@ The `inEdges()` operator finds all edges ending in (inbound) a document from **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline EDGCOL_02_inEdges @EXAMPLE_ARANGOSH_OUTPUT{EDGCOL_02_inEdges} db._create("vertex"); @@ -1260,8 +1260,8 @@ The `inEdges()` operator finds all edges ending in (inbound) a document from ~ db._drop("vertex"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock EDGCOL_02_inEdges -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} --- @@ -1279,7 +1279,7 @@ from `vertices`, which must a list of documents or document handles. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} + {% arangoshexample examplevar="examplevar" script="script" result="result" %} @startDocuBlockInline EDGCOL_02_outEdges @EXAMPLE_ARANGOSH_OUTPUT{EDGCOL_02_outEdges} db._create("vertex"); @@ -1296,8 +1296,8 @@ from `vertices`, which must a list of documents or document handles. ~ db._drop("vertex"); @END_EXAMPLE_ARANGOSH_OUTPUT @endDocuBlock EDGCOL_02_outEdges -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} Misc ---- @@ -1318,23 +1318,22 @@ as second argument. **Examples** -{% arangoshexample examplevar="examplevar" script="script" result="result" %} - @startDocuBlockInline accessViaGeoIndex - @EXAMPLE_ARANGOSH_OUTPUT{accessViaGeoIndex} - ~db._create("example") - |for (i = -90; i <= 90; i += 10) { - | for (j = -180; j <= 180; j += 10) { - | db.example.insert({ name : "Name/" + i + "/" + j, - | home : [ i, j ], - | work : [ -i, -j ] }); - | } - |} - - db.example.ensureIndex({ type: "geo", fields: [ "home" ] }); - |items = db.example.getIndexes().map(function(x) { return x.id; }); - db.example.index(items[1]); +Pick 1 out of 4 documents of a collection but at most 5: + + {% arangoshexample examplevar="examplevar" script="script" result="result" %} + @startDocuBlockInline collectionIterate + @EXAMPLE_ARANGOSH_OUTPUT{collectionIterate} + ~ db._create("example"); + var arr = []; + | for (var i = 0; i < 10; i++) { + | arr.push({ i }); + } + var meta = db.example.save(arr); + var data = []; + db.example.iterate( (doc, idx) => data.push({ idx, i: doc.i }), { probability: 0.25, limit: 5 }); + data; ~ db._drop("example"); @END_EXAMPLE_ARANGOSH_OUTPUT - @endDocuBlock accessViaGeoIndex -{% endarangoshexample %} -{% include arangoshexample.html id=examplevar script=script result=result %} + @endDocuBlock collectionIterate + {% endarangoshexample %} + {% include arangoshexample.html id=examplevar script=script result=result %} From 38ba328867d5341f85bfe83960460d8800abb1a6 Mon Sep 17 00:00:00 2001 From: Simran Spiller Date: Wed, 19 Oct 2022 12:22:08 +0200 Subject: [PATCH 15/18] Deprecate collection.iterate() method in JS API --- 3.11/data-modeling-documents-document-methods.md | 5 +++++ 3.11/release-notes-api-changes311.md | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/3.11/data-modeling-documents-document-methods.md b/3.11/data-modeling-documents-document-methods.md index 9294571d72..43d532336c 100644 --- a/3.11/data-modeling-documents-document-methods.md +++ b/3.11/data-modeling-documents-document-methods.md @@ -1304,6 +1304,11 @@ Misc `collection.iterate(iterator, options)` +{% hint 'warning' %} +The `iterate()` method is deprecated from version 3.11.0 onwards and will be +removed in a future version. +{% endhint %} + Iterates over some elements of the collection and apply the function `iterator` to the elements. The function will be called with the document as first argument and the current number (starting with 0) diff --git a/3.11/release-notes-api-changes311.md b/3.11/release-notes-api-changes311.md index d356eab51a..18af4c6638 100644 --- a/3.11/release-notes-api-changes311.md +++ b/3.11/release-notes-api-changes311.md @@ -42,7 +42,7 @@ value is an array but its elements are not strings, in which case the error #### Cursor API -The cursor API can now return an additional statistics value in its `stats` subattribute: +The cursor API can now return an additional statistics value in its `stats` sub-attribute: - **intermediateCommits**: the total number of intermediate commits the query has performed. This number can only be greater than zero for data-modification queries that perform modifications @@ -73,3 +73,7 @@ preceding or trailing colon using the `POST /_api/index` endpoint. ## JavaScript API +### Deprecations + +The `collection.iterate()` method is deprecated from v3.11.0 onwards and will be +removed in a future version. From 0df5dd46369d0700a389048dcb69e955e440dbc4 Mon Sep 17 00:00:00 2001 From: arangodb-release-bot Date: Thu, 20 Oct 2022 14:19:51 +0200 Subject: [PATCH 16/18] Update examples for 3.11 in api-fixes-2022-10-06 at 2022-10-20T14:19:51+02:00 --- .../Examples/001_collectionAll.generated | 20 +- .../Examples/002_collectionAllNext.generated | 14 +- .../003_collectionByExample.generated | 14 +- .../004_collectionByExampleNext.generated | 8 +- ...umentsCollectionReplaceByExample.generated | 2 +- ...cumentsCollectionUpdateByExample.generated | 4 +- .../Examples/01_workWithAQL_all.generated | 2 +- ...workWithAQL_databaseProfileQuery.generated | 20 +- ...1_workWithAQL_profileQuerySimple.generated | 22 +- ...2_workWithAQL_aqlCollectionQuery.generated | 5 +- .../02_workWithAQL_aqlQuery.generated | 2 +- ...02_workWithAQL_aqlTemplateString.generated | 9 + .../02_workWithAQL_bindValues.generated | 3 +- .../02_workWithAQL_memoryLimit.generated | 7 +- ...kWithAQL_profileQuerySimpleIndex.generated | 24 +- .../03_workWithAQL_getExtra.generated | 5 +- ...workWithAQL_profileQuerySubquery.generated | 34 +- ...kWithAQL_profileQueryAggregation.generated | 32 +- .../04_workWithAQL_statements1.generated | 3 +- .../05_workWithAQL_statements10.generated | 4 +- .../05_workWithAQL_statements2.generated | 2 +- .../05_workWithAQL_statements3.generated | 2 +- .../05_workWithAQL_statements5.generated | 5 +- .../05_workWithAQL_statements6.generated | 2 +- .../05_workWithAQL_statements7.generated | 2 +- .../05_workWithAQL_statements8.generated | 12 +- .../05_workWithAQL_statements9.generated | 2 +- .../06_workWithAQL_statements11.generated | 2 +- .../06_workWithAQL_statements12.generated | 22 +- .../06_workWithAQL_statementsExtra.generated | 18 +- ..._workWithAQL_statementsPlansBind.generated | 2 +- .../Examples/AQLEXP_01_axplainer.generated | 8 +- .../AQLEXP_01_explainCreate.generated | 4 +- .../AQLEXP_05_explainAllPlans.generated | 4 +- ...08_explainDisableSingleRulePlans.generated | 4 +- ...QLEXP_09_explainMaxNumberOfPlans.generated | 4 +- .../COMBINING_GRAPH_03_explain_geo.generated | 2 +- .../Examples/CollectionUnload.generated | 4 +- .../Examples/EDGCOL_02_Relation.generated | 32 +- .../Examples/EDGCOL_02_inEdges.generated | 42 +- .../Examples/EDGCOL_02_outEdges.generated | 42 +- .../Examples/FUNCTION_DOCUMENT_1.generated | 2 +- .../Examples/FUNCTION_DOCUMENT_10.generated | 4 +- .../Examples/FUNCTION_DOCUMENT_11.generated | 2 +- .../Examples/FUNCTION_DOCUMENT_2.generated | 2 +- .../Examples/FUNCTION_DOCUMENT_3.generated | 4 +- .../Examples/FUNCTION_DOCUMENT_4.generated | 4 +- .../Examples/FUNCTION_DOCUMENT_5.generated | 2 +- .../Examples/FUNCTION_DOCUMENT_6.generated | 4 +- .../Examples/FUNCTION_DOCUMENT_7.generated | 2 +- .../Examples/FUNCTION_DOCUMENT_8.generated | 4 +- .../Examples/FUNCTION_DOCUMENT_9.generated | 2 +- .../GRAPHASP_01_create_graph.generated | 252 +- .../GRAPHKP_01_create_graph.generated | 252 +- .../GRAPHKSP_01_create_graph.generated | 252 +- .../GRAPHSP_01_create_graph.generated | 82 +- .../Examples/GRAPHSP_02_A_to_D.generated | 12 +- .../Examples/GRAPHSP_03_A_to_D.generated | 12 +- .../GRAPHTRAV_01_create_graph.generated | 82 +- .../Examples/HttpGharialAddEdge.generated | 8 +- .../Examples/HttpGharialAddEdgeCol.generated | 4 +- .../Examples/HttpGharialAddVertex.generated | 8 +- .../HttpGharialAddVertexCol.generated | 4 +- .../Examples/HttpGharialCreate.generated | 4 +- .../HttpGharialCreateDisjointSmart.generated | 6 +- .../HttpGharialCreateEnterprise.generated | 6 +- .../HttpGharialCreateSatellite.generated | 6 +- .../Examples/HttpGharialCreateSmart.generated | 6 +- ...GharialCreateSmartWithSatellites.generated | 6 +- .../Examples/HttpGharialDeleteEdge.generated | 2 +- .../HttpGharialEdgeDefinitionRemove.generated | 4 +- .../Examples/HttpGharialGetEdge.generated | 20 +- .../Examples/HttpGharialGetGraph.generated | 2 +- .../Examples/HttpGharialGetVertex.generated | 4 +- .../Examples/HttpGharialList.generated | 4 +- .../HttpGharialModifyVertex.generated | 6 +- .../Examples/HttpGharialPatchEdge.generated | 12 +- .../Examples/HttpGharialPutEdge.generated | 12 +- ...ttpGharialRemoveVertexCollection.generated | 4 +- .../HttpGharialReplaceEdgeCol.generated | 4 +- .../HttpGharialReplaceVertex.generated | 6 +- 3.11/generated/Examples/IndexHandle.generated | 10 +- 3.11/generated/Examples/IndexVerify.generated | 6 +- .../Examples/QUERY_02_listQueries.generated | 8 +- .../RestAdminLicenseGet_cluster.generated | 4 +- .../Examples/RestAdminMetrics.generated | 280 +- .../Examples/RestAdminMetricsV2.generated | 286 +- .../Examples/RestAdminStatistics1.generated | 168 +- .../RestAdminStatus_cluster.generated | 22 +- .../Examples/RestAdminSupportInfo.generated | 42 +- .../RestAdminSupportInfo_cluster.generated | 114 +- .../Examples/RestAnalyzersGet.generated | 48 +- .../RestApiCollectionCompact.generated | 4 +- .../Examples/RestBackupCreateBackup.generated | 6 +- .../Examples/RestBackupDeleteBackup.generated | 2 +- .../RestBackupDownloadBackup.generated | 4 +- .../RestBackupDownloadBackupStarted.generated | 8 +- .../Examples/RestBackupListBackup.generated | 26 +- .../RestBackupRestoreBackup.generated | 4 +- .../Examples/RestBackupUploadBackup.generated | 4 +- .../RestBackupUploadBackupStarted.generated | 8 +- .../RestBatchMultipartHeader.generated | 14 +- .../RestCollectionCreateCollection.generated | 12 +- .../RestCollectionCreateKeyopt.generated | 6 +- ...ectionDeleteCollectionIdentifier.generated | 4 +- ...stCollectionDeleteCollectionName.generated | 2 +- ...CollectionDeleteCollectionSystem.generated | 2 +- .../RestCollectionGetAllCollections.generated | 84 +- ...tCollectionGetCollectionChecksum.generated | 10 +- ...ectionGetCollectionChecksumNoRev.generated | 8 +- ...RestCollectionGetCollectionCount.generated | 8 +- ...stCollectionGetCollectionFigures.generated | 12 +- ...ctionGetCollectionFiguresDetails.generated | 12 +- ...ollectionGetCollectionIdentifier.generated | 10 +- .../RestCollectionGetCollectionName.generated | 6 +- ...tCollectionGetCollectionRevision.generated | 6 +- .../RestCollectionIdentifierLoad.generated | 4 +- ...llectionIdentifierPropertiesSync.generated | 6 +- .../RestCollectionIdentifierRename.generated | 4 +- ...RestCollectionIdentifierTruncate.generated | 4 +- .../RestCollectionIdentifierUnload.generated | 4 +- ...CursorCreateCursorForLimitReturn.generated | 18 +- ...CreateCursorForLimitReturnSingle.generated | 14 +- .../RestCursorCreateCursorOption.generated | 4 +- .../Examples/RestCursorDelete.generated | 20 +- .../Examples/RestCursorDeleteIgnore.generated | 4 +- .../Examples/RestCursorDeleteQuery.generated | 4 +- .../RestCursorForLimitReturnCont.generated | 18 +- .../RestCursorOptimizerRules.generated | 4 +- ...RestCursorPostForLimitReturnCont.generated | 20 +- .../Examples/RestCursorProfileQuery.generated | 30 +- ...estDocumentHandlerDeleteDocument.generated | 12 +- ...lerDeleteDocumentIdentifierMulti.generated | 4 +- ...andlerDeleteDocumentIfMatchOther.generated | 10 +- ...entHandlerDeleteDocumentKeyMulti.generated | 4 +- ...HandlerDeleteDocumentObjectMulti.generated | 4 +- ...entHandlerDeleteDocumentRevMulti.generated | 8 +- ...ndlerDeleteDocumentUnknownHandle.generated | 2 +- ...RestDocumentHandlerPatchDocument.generated | 62 +- ...ocumentHandlerPatchDocumentMerge.generated | 46 +- .../RestDocumentHandlerPostAccept1.generated | 10 +- ...tDocumentHandlerPostBadJsonMulti.generated | 2 +- .../RestDocumentHandlerPostCreate1.generated | 10 +- .../RestDocumentHandlerPostMulti1.generated | 18 +- .../RestDocumentHandlerPostMulti2.generated | 36 +- ...RestDocumentHandlerPostOverwrite.generated | 10 +- ...RestDocumentHandlerPostReturnNew.generated | 16 +- .../RestDocumentHandlerPostWait1.generated | 10 +- .../RestDocumentHandlerReadDocument.generated | 10 +- ...tDocumentHandlerReadDocumentHead.generated | 2 +- ...ntHandlerReadDocumentIfNoneMatch.generated | 2 +- ...DocumentHandlerReadMultiDocument.generated | 4 +- ...estDocumentHandlerUpdateDocument.generated | 14 +- ...andlerUpdateDocumentIfMatchOther.generated | 10 +- ...ndlerUpdateDocumentUnknownHandle.generated | 2 +- .../Examples/RestEdgesReadEdgesAny.generated | 10 +- .../Examples/RestEdgesReadEdgesIn.generated | 8 +- .../Examples/RestEdgesReadEdgesOut.generated | 6 +- .../Examples/RestEndpointGet.generated | 2 +- .../Examples/RestExplainAllPlans.generated | 4 +- .../RestExplainOptimizerRules.generated | 4 +- .../Examples/RestExplainOptions.generated | 4 +- .../RestFetchUserDatabaseListFull.generated | 20 +- ...RestGetShardsWithDetails_cluster.generated | 2 +- .../Examples/RestIndexAllIndexes.generated | 20 +- ...tIndexCreateGeoLatitudeLongitude.generated | 4 +- .../RestIndexCreateGeoLocation.generated | 4 +- .../RestIndexCreateNewFulltext.generated | 4 +- .../RestIndexCreateNewInverted.generated | 4 +- .../RestIndexCreateNewPersistent.generated | 4 +- .../RestIndexCreateNewTtlIndex.generated | 4 +- .../Examples/RestIndexCreateNewZkd.generated | 4 +- .../RestIndexCreateSparsePersistent.generated | 4 +- .../RestIndexDeleteUniquePersistent.generated | 4 +- ...tPregelCancelConnectedComponents.generated | 2 +- ...stPregelStartConnectedComponents.generated | 2 +- ...egelStatusAllConnectedComponents.generated | 54 +- ...tPregelStatusConnectedComponents.generated | 44 +- .../RestReplicationApplierStart.generated | 8 +- ...eplicationApplierStateNotRunning.generated | 10 +- ...stReplicationApplierStateRunning.generated | 10 +- .../RestReplicationApplierStop.generated | 10 +- .../RestReplicationLoggerFirstTick.generated | 2 +- ...plicationLoggerFollowBufferLimit.generated | 16 +- ...RestReplicationLoggerFollowEmpty.generated | 6 +- .../RestReplicationLoggerFollowSome.generated | 32 +- ...RestReplicationLoggerStateActive.generated | 12 +- .../RestReplicationLoggerTickRanges.generated | 12 +- .../RestReplicationServerId.generated | 4 +- .../Examples/RestTasksCreate.generated | 8 +- .../Examples/RestTasksListOne.generated | 2 +- .../Examples/RestTasksPutWithId.generated | 2 +- .../RestTransactionBeginAbort.generated | 4 +- .../RestTransactionBeginCommit.generated | 4 +- .../RestTransactionBeginSingle.generated | 2 +- .../Examples/RestTransactionGet.generated | 4 +- .../Examples/RestTransactionsGet.generated | 2 +- .../Examples/RestVersionDetails.generated | 14 +- ...DeleteViewIdentifierArangoSearch.generated | 2 +- .../Examples/RestViewGetAllViews.generated | 2 +- ...iewGetViewIdentifierArangoSearch.generated | 6 +- .../RestViewGetViewNameArangoSearch.generated | 4 +- ...PropertiesIdentifierArangoSearch.generated | 6 +- ...etViewPropertiesNameArangoSearch.generated | 4 +- ...tViewPatchPropertiesArangoSearch.generated | 4 +- ...stViewPatchPropertiesSearchAlias.generated | 4 +- .../RestViewPostViewArangoSearch.generated | 4 +- .../RestViewPostViewSearchAlias.generated | 4 +- ...estViewPutPropertiesArangoSearch.generated | 4 +- ...RestViewPutPropertiesSearchAlias.generated | 4 +- .../Examples/RestViewPutRename.generated | 4 +- .../Examples/RestWalAccessFirstTick.generated | 8 +- .../RestWalAccessTailingBufferLimit.generated | 12 +- .../RestWalAccessTailingEmpty.generated | 6 +- .../RestWalAccessTailingSome.generated | 12 +- .../Examples/RestWalAccessTickRange.generated | 10 +- .../Examples/accessViaGeoIndex.generated | 32 - .../Examples/analyzerAqlCollapse.generated | 18 +- .../Examples/analyzerAqlFilter.generated | 6 +- .../Examples/analyzerCollation.generated | 24 +- .../Examples/analyzerGeoJSON.generated | 34 +- .../Examples/analyzerGeoPointLatLng.generated | 34 +- .../Examples/analyzerGeoPointPair.generated | 34 +- .../generated/Examples/analyzerList.generated | 16 +- .../Examples/aqlArrayInterleave_3.generated | 22 +- .../Examples/aqlDateTimeToLocal_3.generated | 2 +- .../Examples/aqlMinHashCount.generated | 4 +- .../Examples/aqlRandomToken.generated | 4 +- 3.11/generated/Examples/aqlUuid.generated | 6 +- .../Examples/col_dropIndex.generated | 8 +- ...collectionDatabaseCollectionName.generated | 2 +- .../collectionDatabaseCreateKey.generated | 8 +- ...llectionDatabaseCreateProperties.generated | 4 +- ...llectionDatabaseCreateSpecialKey.generated | 14 +- .../collectionDatabaseCreateSuccess.generated | 4 +- .../collectionDatabaseDropByObject.generated | 4 +- .../collectionDatabaseDropName.generated | 4 +- .../collectionDatabaseDropSystem.generated | 4 +- ...llectionDatabaseTruncateByObject.generated | 8 +- .../collectionDatabaseTruncateName.generated | 8 +- .../Examples/collectionDrop.generated | 4 +- .../Examples/collectionDropSystem.generated | 4 +- .../Examples/collectionEnsureIndex.generated | 8 +- .../Examples/collectionFigures.generated | 4 +- .../collectionFiguresDetails.generated | 4 +- .../Examples/collectionFirstExample.generated | 6 +- .../Examples/collectionGetIndexes.generated | 16 +- .../collectionGetIndexesStats.generated | 8 +- .../Examples/collectionIterate.generated | 22 + .../Examples/collectionLoad.generated | 4 +- .../Examples/collectionLookupByKeys.generated | 20 +- .../Examples/collectionProperties.generated | 2 +- .../Examples/collectionProperty.generated | 2 +- .../Examples/collectionRename.generated | 4 +- .../Examples/collectionTruncate.generated | 8 +- .../collectionsDatabaseName.generated | 2 +- .../Examples/computedValuesCombine.generated | 6 +- .../computedValuesCreatedAt.generated | 8 +- .../Examples/computedValuesKeepNull.generated | 18 +- .../computedValuesModifiedAt.generated | 16 +- .../computedValuesSubattribute.generated | 12 +- .../Examples/cursorHasNext.generated | 30 +- 3.11/generated/Examples/cursorNext.generated | 6 +- .../documentDocumentRemoveConflict.generated | 20 +- .../documentDocumentRemoveSimple.generated | 18 +- .../Examples/documentDocumentUpdate.generated | 14 +- .../documentsCollectionInsertMulti.generated | 24 +- .../documentsCollectionInsertSingle.generated | 12 +- ...sCollectionInsertSingleOverwrite.generated | 8 +- ...ocumentsCollectionNameValidByKey.generated | 2 +- ...mentsCollectionNameValidByObject.generated | 2 +- ...ocumentsCollectionNameValidMulti.generated | 4 +- ...ocumentsCollectionNameValidPlain.generated | 2 +- ...ocumentsCollectionRemoveConflict.generated | 20 +- ...cumentsCollectionRemoveSignature.generated | 4 +- ...documentsCollectionRemoveSuccess.generated | 12 +- .../documentsCollectionReplace1.generated | 14 +- ...documentsCollectionReplaceHandle.generated | 6 +- ...cumentsCollection_UpdateDocument.generated | 42 +- ...entsCollection_UpdateHandleArray.generated | 20 +- ...sCollection_UpdateHandleKeepNull.generated | 24 +- ...ntsCollection_UpdateHandleSingle.generated | 6 +- .../Examples/documentsDocumentName.generated | 2 +- .../documentsDocumentReplace.generated | 14 +- 3.11/generated/Examples/dropIndex.generated | 8 +- .../Examples/ensureFulltextIndex.generated | 70 +- .../Examples/ensurePersistent.generated | 34 +- .../Examples/ensureTtlIndex.generated | 4 +- ...nsureUniquePersistentMultiColmun.generated | 24 +- .../ensureUniquePersistentSingle.generated | 24 +- .../ensureVertexCentricIndex.generated | 4 +- .../enterpriseGraphModify4_cluster.generated | 2 +- .../enterpriseGraphModify6_cluster.generated | 2 +- .../Examples/executeQueryBatchSize.generated | 36 +- .../executeQueryNoBatchSize.generated | 36 +- .../generalGraphCreateGraph2.generated | 8 +- .../generalGraphCreateGraphHowTo2.generated | 5 +- .../generalGraphCreateGraphHowTo3.generated | 6 +- .../generalGraphCreateGraphSingle.generated | 4 +- .../generalGraphDropGraphKeep.generated | 6 +- ...generalGraphEdgeCollectionRemove.generated | 2 +- ...eneralGraphEdgeCollectionReplace.generated | 6 +- .../generalGraphEdgeCollectionSave1.generated | 2 +- ...generalGraphEdgeCollectionUpdate.generated | 6 +- .../generalGraphGetFromVertex.generated | 2 +- .../generalGraphGetToVertex.generated | 8 +- .../Examples/generalGraphList.generated | 5 +- .../generalGraphListObjects.generated | 51 + .../Examples/generalGraphLoadGraph.generated | 6 +- .../generalGraphModulePaths1.generated | 124 +- .../generalGraphModulePaths2.generated | 100 +- ...generalGraphModuleShortestPaths1.generated | 120 +- ...generalGraphModuleShortestPaths2.generated | 6 +- ...neralGraphVertexCollectionRemove.generated | 2 +- ...eralGraphVertexCollectionReplace.generated | 6 +- ...generalGraphVertexCollectionSave.generated | 2 +- ...neralGraphVertexCollectionUpdate.generated | 6 +- ...neral_graph__addVertexCollection.generated | 7 + ...raph__deleteEdgeDefinitionNoDrop.generated | 2 +- ...ral_graph__extendEdgeDefinitions.generated | 8 + ...eral_graph_create_graph_example1.generated | 12 +- ...eral_graph_create_graph_example2.generated | 12 +- ...geoIndexCreateForArrayAttribute1.generated | 4 +- ...geoIndexCreateForArrayAttribute2.generated | 4 +- .../geoIndexFilterOptimization.generated | 12 +- .../geoIndexSortOptimization.generated | 36 +- .../graph_create_cities_sample.generated | 70 +- ..._connectedcomponentsgraph_sample.generated | 288 +- .../graph_create_knows_sample.generated | 40 +- ...aph_create_kshortestpaths_sample.generated | 252 +- .../graph_create_mps_sample.generated | 54 +- .../graph_create_social_sample.generated | 32 +- .../graph_create_traversal_sample.generated | 82 +- .../graph_create_world_sample.generated | 690 +- ...rtGraphCreateGraphHowTo1_cluster.generated | 6 +- ...rtGraphCreateGraphHowTo2_cluster.generated | 6 +- 3.11/generated/Examples/job_cancel.generated | 8 +- .../Examples/job_delete_01.generated | 2 +- .../Examples/job_delete_02.generated | 6 +- .../Examples/job_delete_03.generated | 4 +- .../Examples/job_fetch_result_03.generated | 6 +- .../Examples/job_fetch_result_04.generated | 6 +- .../Examples/job_getByType_01.generated | 4 +- .../Examples/job_getByType_02.generated | 2 +- .../Examples/job_getByType_03.generated | 6 +- .../Examples/job_getStatusById_01.generated | 6 +- .../Examples/job_getStatusById_02.generated | 4 +- .../Examples/jsStreamTransaction_1.generated | 8 +- .../Examples/listCurrentConfigOpts.generated | 53 +- .../satelliteGraphCreate2_cluster.generated | 4 + .../satelliteGraphCreate3_cluster.generated | 5 + ...elliteGraphGeneralGraph1_cluster.generated | 10 +- ...satelliteGraphPrototype2_cluster.generated | 4 + ...satelliteGraphPrototype3_cluster.generated | 5 + .../smartGraphModify4_cluster.generated | 2 +- .../generated/Examples/usingToArray.generated | 32 +- .../Examples/viewDatabaseCreate.generated | 2 +- .../Examples/viewDatabaseDrop.generated | 2 +- .../Examples/viewDatabaseGet.generated | 4 +- .../Examples/viewDatabaseList.generated | 2 +- 3.11/generated/Examples/viewDrop.generated | 4 +- .../Examples/viewModifyProperties.generated | 2 +- 3.11/generated/Examples/viewRename.generated | 2 +- .../generated/Examples/viewUsage_01.generated | 2 +- .../generated/Examples/viewUsage_02.generated | 2 +- .../Examples/working_with_date_time.generated | 20 +- 3.11/generated/allComments.txt | 52698 ++++++++-------- 3.11/generated/api-docs.json | 791 +- 3.11/generated/arangobackup-options.json | 2 +- 3.11/generated/arangobench-options.json | 4 +- 3.11/generated/arangod-options.json | 64 +- 3.11/generated/arangodump-options.json | 4 +- 3.11/generated/arangoexport-options.json | 2 +- 3.11/generated/arangoimport-options.json | 4 +- 3.11/generated/arangoinspect-options.json | 2 +- 3.11/generated/arangorestore-options.json | 4 +- 3.11/generated/arangosh-options.json | 2 +- 3.11/generated/arangovpack-options.json | 2 +- 378 files changed, 30683 insertions(+), 30010 deletions(-) create mode 100644 3.11/generated/Examples/02_workWithAQL_aqlTemplateString.generated delete mode 100644 3.11/generated/Examples/accessViaGeoIndex.generated create mode 100644 3.11/generated/Examples/collectionIterate.generated create mode 100644 3.11/generated/Examples/generalGraphListObjects.generated diff --git a/3.11/generated/Examples/001_collectionAll.generated b/3.11/generated/Examples/001_collectionAll.generated index b24f412f93..25a9d3c1e3 100644 --- a/3.11/generated/Examples/001_collectionAll.generated +++ b/3.11/generated/Examples/001_collectionAll.generated @@ -2,62 +2,62 @@ arangosh> db.five.insert({ name : "_id" : "five/110", "_key" : "110", - "_rev" : "_e4zwdBS--_" + "_rev" : "_e9TRt2G---" } arangosh> db.five.insert({ name : "two" }); { "_id" : "five/112", "_key" : "112", - "_rev" : "_e4zwdBW---" + "_rev" : "_e9TRt2K---" } arangosh> db.five.insert({ name : "three" }); { "_id" : "five/114", "_key" : "114", - "_rev" : "_e4zwdBW--_" + "_rev" : "_e9TRt2O---" } arangosh> db.five.insert({ name : "four" }); { "_id" : "five/116", "_key" : "116", - "_rev" : "_e4zwdBW--A" + "_rev" : "_e9TRt2S---" } arangosh> db.five.insert({ name : "five" }); { "_id" : "five/118", "_key" : "118", - "_rev" : "_e4zwdBW--B" + "_rev" : "_e9TRt2W---" } arangosh> db.five.all().toArray(); [ { "_key" : "110", "_id" : "five/110", - "_rev" : "_e4zwdBS--_", + "_rev" : "_e9TRt2G---", "name" : "one" }, { "_key" : "112", "_id" : "five/112", - "_rev" : "_e4zwdBW---", + "_rev" : "_e9TRt2K---", "name" : "two" }, { "_key" : "114", "_id" : "five/114", - "_rev" : "_e4zwdBW--_", + "_rev" : "_e9TRt2O---", "name" : "three" }, { "_key" : "116", "_id" : "five/116", - "_rev" : "_e4zwdBW--A", + "_rev" : "_e9TRt2S---", "name" : "four" }, { "_key" : "118", "_id" : "five/118", - "_rev" : "_e4zwdBW--B", + "_rev" : "_e9TRt2W---", "name" : "five" } ] diff --git a/3.11/generated/Examples/002_collectionAllNext.generated b/3.11/generated/Examples/002_collectionAllNext.generated index 2cb973357a..13be2d05e6 100644 --- a/3.11/generated/Examples/002_collectionAllNext.generated +++ b/3.11/generated/Examples/002_collectionAllNext.generated @@ -2,44 +2,44 @@ arangosh> db.five.insert({ name : "_id" : "five/130", "_key" : "130", - "_rev" : "_e4zwdCK--_" + "_rev" : "_e9TRt4S---" } arangosh> db.five.insert({ name : "two" }); { "_id" : "five/132", "_key" : "132", - "_rev" : "_e4zwdCK--A" + "_rev" : "_e9TRt4W---" } arangosh> db.five.insert({ name : "three" }); { "_id" : "five/134", "_key" : "134", - "_rev" : "_e4zwdCK--B" + "_rev" : "_e9TRt4a---" } arangosh> db.five.insert({ name : "four" }); { "_id" : "five/136", "_key" : "136", - "_rev" : "_e4zwdCK--C" + "_rev" : "_e9TRt4a--_" } arangosh> db.five.insert({ name : "five" }); { "_id" : "five/138", "_key" : "138", - "_rev" : "_e4zwdCK--D" + "_rev" : "_e9TRt4e---" } arangosh> db.five.all().limit(2).toArray(); [ { "_key" : "130", "_id" : "five/130", - "_rev" : "_e4zwdCK--_", + "_rev" : "_e9TRt4S---", "name" : "one" }, { "_key" : "132", "_id" : "five/132", - "_rev" : "_e4zwdCK--A", + "_rev" : "_e9TRt4W---", "name" : "two" } ] diff --git a/3.11/generated/Examples/003_collectionByExample.generated b/3.11/generated/Examples/003_collectionByExample.generated index b37eddf9ee..3fe97b65cd 100644 --- a/3.11/generated/Examples/003_collectionByExample.generated +++ b/3.11/generated/Examples/003_collectionByExample.generated @@ -2,38 +2,38 @@ arangosh> db.users.insert({ name: "_id" : "users/150", "_key" : "150", - "_rev" : "_e4zwdCa--_" + "_rev" : "_e9TRt5C---" } arangosh> db.users.insert({ name: "Helmut" }); { "_id" : "users/152", "_key" : "152", - "_rev" : "_e4zwdCa--A" + "_rev" : "_e9TRt5G---" } arangosh> db.users.insert({ name: "Angela" }); { "_id" : "users/154", "_key" : "154", - "_rev" : "_e4zwdCa--B" + "_rev" : "_e9TRt5K---" } arangosh> db.users.all().toArray(); [ { "_key" : "150", "_id" : "users/150", - "_rev" : "_e4zwdCa--_", + "_rev" : "_e9TRt5C---", "name" : "Gerhard" }, { "_key" : "152", "_id" : "users/152", - "_rev" : "_e4zwdCa--A", + "_rev" : "_e9TRt5G---", "name" : "Helmut" }, { "_key" : "154", "_id" : "users/154", - "_rev" : "_e4zwdCa--B", + "_rev" : "_e9TRt5K---", "name" : "Angela" } ] @@ -44,7 +44,7 @@ arangosh> db.users.byExample({ "name""_key" : "150", "_id" : "users/150", - "_rev" : "_e4zwdCa--_", + "_rev" : "_e9TRt5C---", "name" : "Gerhard" } ] diff --git a/3.11/generated/Examples/004_collectionByExampleNext.generated b/3.11/generated/Examples/004_collectionByExampleNext.generated index f275b351fa..7927654660 100644 --- a/3.11/generated/Examples/004_collectionByExampleNext.generated +++ b/3.11/generated/Examples/004_collectionByExampleNext.generated @@ -2,25 +2,25 @@ arangosh> db.users.insert({ name: "_id" : "users/172", "_key" : "172", - "_rev" : "_e4zwdCy--_" + "_rev" : "_e9TRt6G---" } arangosh> db.users.insert({ name: "Helmut" }); { "_id" : "users/174", "_key" : "174", - "_rev" : "_e4zwdC2---" + "_rev" : "_e9TRt6K---" } arangosh> db.users.insert({ name: "Angela" }); { "_id" : "users/176", "_key" : "176", - "_rev" : "_e4zwdC2--_" + "_rev" : "_e9TRt6O---" } arangosh> var a = db.users.byExample( {"name" : "Angela" } ); arangosh> while (a.hasNext()) print(a.next()); { "_key" : "176", "_id" : "users/176", - "_rev" : "_e4zwdC2--_", + "_rev" : "_e9TRt6O---", "name" : "Angela" } diff --git a/3.11/generated/Examples/011_documentsCollectionReplaceByExample.generated b/3.11/generated/Examples/011_documentsCollectionReplaceByExample.generated index 6b1fc79d70..a11ab1c6ab 100644 --- a/3.11/generated/Examples/011_documentsCollectionReplaceByExample.generated +++ b/3.11/generated/Examples/011_documentsCollectionReplaceByExample.generated @@ -2,7 +2,7 @@ arangosh> db.example.insert({ Hello : "_id" : "example/198", "_key" : "198", - "_rev" : "_e4zwdDK--_" + "_rev" : "_e9TRt7e---" } arangosh> db.example.replaceByExample({ Hello: "world" }, {Hello: "mars"}, false, 5); 1 diff --git a/3.11/generated/Examples/012_documentsCollectionUpdateByExample.generated b/3.11/generated/Examples/012_documentsCollectionUpdateByExample.generated index 8e69b1b07e..baaade24e6 100644 --- a/3.11/generated/Examples/012_documentsCollectionUpdateByExample.generated +++ b/3.11/generated/Examples/012_documentsCollectionUpdateByExample.generated @@ -2,7 +2,7 @@ arangosh> db.example.insert({ Hello : "_id" : "example/209", "_key" : "209", - "_rev" : "_e4zwdDW--_" + "_rev" : "_e9TRt8C---" } arangosh> db.example.updateByExample({ Hello: "world" }, { Hello: "foo", World: "bar" }, false); 1 @@ -11,7 +11,7 @@ arangosh> db.example.byExample({ Hello: "_key" : "209", "_id" : "example/209", - "_rev" : "_e4zwdDW--A", + "_rev" : "_e9TRt8K---", "Hello" : "foo", "foo" : "bar", "World" : "bar" diff --git a/3.11/generated/Examples/01_workWithAQL_all.generated b/3.11/generated/Examples/01_workWithAQL_all.generated index 8b01307bb6..8f671e58db 100644 --- a/3.11/generated/Examples/01_workWithAQL_all.generated +++ b/3.11/generated/Examples/01_workWithAQL_all.generated @@ -4,7 +4,7 @@ arangosh> db.mycollection.save({ _key: "_id" : "mycollection/testKey", "_key" : "testKey", - "_rev" : "_e4zwdDi--_" + "_rev" : "_e9TRt8y---" } arangosh> db._query('FOR my IN mycollection RETURN my._key').toArray() [ diff --git a/3.11/generated/Examples/01_workWithAQL_databaseProfileQuery.generated b/3.11/generated/Examples/01_workWithAQL_databaseProfileQuery.generated index ebb3f66d5e..d340581640 100644 --- a/3.11/generated/Examples/01_workWithAQL_databaseProfileQuery.generated +++ b/3.11/generated/Examples/01_workWithAQL_databaseProfileQuery.generated @@ -4,10 +4,10 @@ Query String (47 chars, cacheable: false): Execution plan: Id NodeType Calls Items Filtered Runtime [s] Comment - 1 SingletonNode 1 1 0 0.00000 * ROOT + 1 SingletonNode 1 1 0 0.00001 * ROOT 4 CalculationNode 1 1 0 0.00000 - LET #2 = 1 /* json expression */ /* const assignment */ - 2 CalculationNode 1 1 0 0.25315 - LET s = SLEEP(0.25) /* simple expression */ - 3 CalculationNode 1 1 0 0.50654 - LET t = SLEEP(0.5) /* simple expression */ + 2 CalculationNode 1 1 0 0.25222 - LET s = SLEEP(0.25) /* simple expression */ + 3 CalculationNode 1 1 0 0.50430 - LET t = SLEEP(0.5) /* simple expression */ 5 ReturnNode 1 1 0 0.00001 - RETURN #2 Indexes used: @@ -19,17 +19,17 @@ Optimization rules applied: Query Statistics: Writes Exec Writes Ign Scan Full Scan Index Cache Hits/Misses Filtered Peak Mem [b] Exec Time [s] - 0 0 0 0 0 / 0 0 0 0.75981 + 0 0 0 0 0 / 0 0 0 0.75686 Query Profile: Query Stage Duration [s] initializing 0.00000 - parsing 0.00001 - optimizing ast 0.00000 + parsing 0.00004 + optimizing ast 0.00001 loading collections 0.00000 - instantiating plan 0.00001 - optimizing plan 0.00006 - executing 0.75971 - finalizing 0.00004 + instantiating plan 0.00002 + optimizing plan 0.00018 + executing 0.75657 + finalizing 0.00007 diff --git a/3.11/generated/Examples/01_workWithAQL_profileQuerySimple.generated b/3.11/generated/Examples/01_workWithAQL_profileQuerySimple.generated index cab4480979..b9264bbc8c 100644 --- a/3.11/generated/Examples/01_workWithAQL_profileQuerySimple.generated +++ b/3.11/generated/Examples/01_workWithAQL_profileQuerySimple.generated @@ -10,9 +10,9 @@ Query String (581 SingletonNode 1 1 0 0.00000 * ROOT - 2 EnumerateCollectionNode 1 10 9990 0.00215 - FOR doc IN acollection /* full collection scan */ FILTER (doc.`value` < 10) /* early pruning */ - 5 ReturnNode 1 10 0 0.00000 - RETURN doc + 1 SingletonNode 1 1 0 0.00001 * ROOT + 2 EnumerateCollectionNode 1 10 9990 0.00519 - FOR doc IN acollection /* full collection scan */ FILTER (doc.`value` < 10) /* early pruning */ + 5 ReturnNode 1 10 0 0.00001 - RETURN doc Indexes used: none @@ -23,17 +23,17 @@ Optimization rules applied: Query Statistics: Writes Exec Writes Ign Scan Full Scan Index Cache Hits/Misses Filtered Peak Mem [b] Exec Time [s] - 0 0 10000 0 0 / 0 9990 0 0.00233 + 0 0 10000 0 0 / 0 9990 0 0.00584 Query Profile: Query Stage Duration [s] initializing 0.00001 - parsing 0.00003 - optimizing ast 0.00000 - loading collections 0.00000 - instantiating plan 0.00001 - optimizing plan 0.00010 - executing 0.00217 - finalizing 0.00001 + parsing 0.00012 + optimizing ast 0.00001 + loading collections 0.00001 + instantiating plan 0.00006 + optimizing plan 0.00038 + executing 0.00524 + finalizing 0.00003 diff --git a/3.11/generated/Examples/02_workWithAQL_aqlCollectionQuery.generated b/3.11/generated/Examples/02_workWithAQL_aqlCollectionQuery.generated index fe907dafb7..f4b90909e4 100644 --- a/3.11/generated/Examples/02_workWithAQL_aqlCollectionQuery.generated +++ b/3.11/generated/Examples/02_workWithAQL_aqlCollectionQuery.generated @@ -1,11 +1,10 @@ arangosh> var key = 'testKey'; -arangosh> db._query(aql`FOR doc IN ${ db.mycollection } RETURN doc` -........> ).toArray(); +arangosh> db._query(aql`FOR doc IN ${ db.mycollection } RETURN doc`).toArray(); [ { "_key" : "testKey", "_id" : "mycollection/testKey", - "_rev" : "_e4zwdDi--_", + "_rev" : "_e9TRt8y---", "Hello" : "World" } ] diff --git a/3.11/generated/Examples/02_workWithAQL_aqlQuery.generated b/3.11/generated/Examples/02_workWithAQL_aqlQuery.generated index 5f7a388eb9..14504adeb3 100644 --- a/3.11/generated/Examples/02_workWithAQL_aqlQuery.generated +++ b/3.11/generated/Examples/02_workWithAQL_aqlQuery.generated @@ -1,6 +1,6 @@ arangosh> var key = 'testKey'; arangosh> db._query( -........> aql`FOR c IN mycollection FILTER c._key == ${key} RETURN c._key` +........> aql`FOR c IN mycollection FILTER c._key == ${key} RETURN c._key` ........> ).toArray(); [ "testKey" diff --git a/3.11/generated/Examples/02_workWithAQL_aqlTemplateString.generated b/3.11/generated/Examples/02_workWithAQL_aqlTemplateString.generated new file mode 100644 index 0000000000..32d679a654 --- /dev/null +++ b/3.11/generated/Examples/02_workWithAQL_aqlTemplateString.generated @@ -0,0 +1,9 @@ +arangosh> var key = 'testKey'; +arangosh> aql`FOR c IN mycollection FILTER c._key == ${key} RETURN c._key` +{ + "query" : "FOR c IN mycollection FILTER c._key == @value0 RETURN c._key", + "bindVars" : { + "value0" : "testKey" + }, + "_source" : () { ... } +} diff --git a/3.11/generated/Examples/02_workWithAQL_bindValues.generated b/3.11/generated/Examples/02_workWithAQL_bindValues.generated index a3c62d8edd..b4c366fe26 100644 --- a/3.11/generated/Examples/02_workWithAQL_bindValues.generated +++ b/3.11/generated/Examples/02_workWithAQL_bindValues.generated @@ -1,5 +1,4 @@ -arangosh> db._query( -........> 'FOR c IN @@collection FILTER c._key == @key RETURN c._key', { +arangosh> db._query('FOR c IN @@collection FILTER c._key == @key RETURN c._key', { ........> '@collection': 'mycollection', ........> 'key': 'testKey' ........> }).toArray(); diff --git a/3.11/generated/Examples/02_workWithAQL_memoryLimit.generated b/3.11/generated/Examples/02_workWithAQL_memoryLimit.generated index 8383f0373d..44e1fe27a1 100644 --- a/3.11/generated/Examples/02_workWithAQL_memoryLimit.generated +++ b/3.11/generated/Examples/02_workWithAQL_memoryLimit.generated @@ -1,5 +1,6 @@ arangosh> db._query( -........> 'FOR i IN 1..100000 SORT i RETURN i', {}, { -........> memoryLimit: 100000 -........> }).toArray(); +........> 'FOR i IN 1..100000 SORT i RETURN i', +........> {}, +........> { memoryLimit: 100000 } +........> ).toArray(); [ArangoError 32: AQL: query would use more memory than allowed (while executing)] diff --git a/3.11/generated/Examples/02_workWithAQL_profileQuerySimpleIndex.generated b/3.11/generated/Examples/02_workWithAQL_profileQuerySimpleIndex.generated index d6889bdecd..77f64048ac 100644 --- a/3.11/generated/Examples/02_workWithAQL_profileQuerySimpleIndex.generated +++ b/3.11/generated/Examples/02_workWithAQL_profileQuerySimpleIndex.generated @@ -10,13 +10,13 @@ Query String (581 SingletonNode 1 1 0 0.00000 * ROOT - 6 IndexNode 1 10 0 0.00005 - FOR doc IN acollection /* persistent index scan, index scan + document lookup */ - 5 ReturnNode 1 10 0 0.00000 - RETURN doc + 1 SingletonNode 1 1 0 0.00002 * ROOT + 6 IndexNode 1 10 0 0.00018 - FOR doc IN acollection /* persistent index scan, index scan + document lookup */ + 5 ReturnNode 1 10 0 0.00001 - RETURN doc Indexes used: By Name Type Collection Unique Sparse Cache Selectivity Fields Stored values Ranges - 6 idx_1745944373108932609 persistent acollection false false false 100.00 % [ `value` ] [ ] (doc.`value` < 10) + 6 idx_1747208901116297216 persistent acollection false false false 100.00 % [ `value` ] [ ] (doc.`value` < 10) Optimization rules applied: Id RuleName @@ -26,17 +26,17 @@ Optimization rules applied: Query Statistics: Writes Exec Writes Ign Scan Full Scan Index Cache Hits/Misses Filtered Peak Mem [b] Exec Time [s] - 0 0 0 10 0 / 0 0 0 0.00022 + 0 0 0 10 0 / 0 0 0 0.00084 Query Profile: Query Stage Duration [s] initializing 0.00001 - parsing 0.00002 - optimizing ast 0.00000 - loading collections 0.00000 - instantiating plan 0.00001 - optimizing plan 0.00011 - executing 0.00006 - finalizing 0.00001 + parsing 0.00009 + optimizing ast 0.00001 + loading collections 0.00001 + instantiating plan 0.00004 + optimizing plan 0.00042 + executing 0.00023 + finalizing 0.00004 diff --git a/3.11/generated/Examples/03_workWithAQL_getExtra.generated b/3.11/generated/Examples/03_workWithAQL_getExtra.generated index 0f7bfaccd7..c8065b849c 100644 --- a/3.11/generated/Examples/03_workWithAQL_getExtra.generated +++ b/3.11/generated/Examples/03_workWithAQL_getExtra.generated @@ -1,6 +1,5 @@ arangosh> db._query(`FOR i IN 1..100 -........> INSERT { _key: CONCAT('test', TO_STRING(i)) } -........> INTO mycollection` +........> INSERT { _key: CONCAT('test', TO_STRING(i)) } INTO mycollection` ........> ).getExtra(); { "warnings" : [ ], @@ -15,7 +14,7 @@ arangosh> db._query(`FOR i IN 1..100 "cacheMisses" : 0, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.0008644869994895998, + "executionTime" : 0.0024684749078005552, "peakMemoryUsage" : 32768, "intermediateCommits" : 0 } diff --git a/3.11/generated/Examples/03_workWithAQL_profileQuerySubquery.generated b/3.11/generated/Examples/03_workWithAQL_profileQuerySubquery.generated index 0dce96320c..702edc418c 100644 --- a/3.11/generated/Examples/03_workWithAQL_profileQuerySubquery.generated +++ b/3.11/generated/Examples/03_workWithAQL_profileQuerySubquery.generated @@ -12,16 +12,16 @@ Query String (116 chars, cacheable: false): Execution plan: Id NodeType Calls Items Filtered Runtime [s] Comment - 1 SingletonNode 1 1 0 0.00000 * ROOT - 12 SubqueryStartNode 1 2 0 0.00001 - LET list = ( /* subquery begin */ - 3 EnumerateCollectionNode 11 10001 0 0.00228 - FOR doc IN acollection /* full collection scan */ - 4 CalculationNode 11 10001 0 0.00166 - LET #5 = (doc.`value` > 90) /* simple expression */ /* collections used: doc : acollection */ - 5 FilterNode 10 9910 91 0.00140 - FILTER #5 - 13 SubqueryEndNode 1 1 0 0.00103 - RETURN doc ) /* subquery end */ - 8 EnumerateListNode 10 9909 0 0.00110 - FOR a IN list /* list iteration */ - 9 CalculationNode 10 9909 0 0.00161 - LET #7 = (a.`value` < 91) /* simple expression */ - 10 FilterNode 1 0 9909 0.00025 - FILTER #7 - 11 ReturnNode 1 0 0 0.00000 - RETURN a + 1 SingletonNode 1 1 0 0.00002 * ROOT + 12 SubqueryStartNode 1 2 0 0.00002 - LET list = ( /* subquery begin */ + 3 EnumerateCollectionNode 11 10001 0 0.00485 - FOR doc IN acollection /* full collection scan */ + 4 CalculationNode 11 10001 0 0.00337 - LET #5 = (doc.`value` > 90) /* simple expression */ /* collections used: doc : acollection */ + 5 FilterNode 10 9910 91 0.00301 - FILTER #5 + 13 SubqueryEndNode 1 1 0 0.00204 - RETURN doc ) /* subquery end */ + 8 EnumerateListNode 10 9909 0 0.00227 - FOR a IN list /* list iteration */ + 9 CalculationNode 10 9909 0 0.00314 - LET #7 = (a.`value` < 91) /* simple expression */ + 10 FilterNode 1 0 9909 0.00064 - FILTER #7 + 11 ReturnNode 1 0 0 0.00001 - RETURN a Indexes used: none @@ -32,17 +32,17 @@ Optimization rules applied: Query Statistics: Writes Exec Writes Ign Scan Full Scan Index Cache Hits/Misses Filtered Peak Mem [b] Exec Time [s] - 0 0 10000 0 0 / 0 10000 720896 0.00956 + 0 0 10000 0 0 / 0 10000 720896 0.01995 Query Profile: Query Stage Duration [s] initializing 0.00001 - parsing 0.00003 - optimizing ast 0.00001 + parsing 0.00010 + optimizing ast 0.00002 loading collections 0.00000 - instantiating plan 0.00002 - optimizing plan 0.00013 - executing 0.00936 - finalizing 0.00002 + instantiating plan 0.00006 + optimizing plan 0.00034 + executing 0.01939 + finalizing 0.00005 diff --git a/3.11/generated/Examples/04_workWithAQL_profileQueryAggregation.generated b/3.11/generated/Examples/04_workWithAQL_profileQueryAggregation.generated index 461f5d4b1c..19772be474 100644 --- a/3.11/generated/Examples/04_workWithAQL_profileQueryAggregation.generated +++ b/3.11/generated/Examples/04_workWithAQL_profileQueryAggregation.generated @@ -22,14 +22,14 @@ Query String (186 chars, cacheable: false): Execution plan: Id NodeType Calls Items Filtered Runtime [s] Comment - 1 SingletonNode 1 1 0 0.00000 * ROOT - 2 EnumerateCollectionNode 1 20 0 0.00003 - FOR u IN myusers /* full collection scan (projections: `age`) */ - 3 CalculationNode 1 20 0 0.00001 - LET #5 = (FLOOR((u.`age` / 10)) * 10) /* simple expression */ /* collections used: u : myusers */ - 4 CalculationNode 1 20 0 0.00000 - LET #7 = u.`age` /* attribute expression */ /* collections used: u : myusers */ - 6 CollectNode 1 8 0 0.00002 - COLLECT ageGroup = #5 AGGREGATE minAge = MIN(#7), maxAge = MAX(#7), len = LENGTH() /* hash */ - 9 SortNode 1 8 0 0.00002 - SORT ageGroup ASC /* sorting strategy: standard */ - 7 CalculationNode 1 8 0 0.00001 - LET #11 = { "ageGroup" : ageGroup, "minAge" : minAge, "maxAge" : maxAge, "len" : len } /* simple expression */ - 8 ReturnNode 1 8 0 0.00000 - RETURN #11 + 1 SingletonNode 1 1 0 0.00001 * ROOT + 2 EnumerateCollectionNode 1 20 0 0.00006 - FOR u IN myusers /* full collection scan (projections: `age`) */ + 3 CalculationNode 1 20 0 0.00003 - LET #5 = (FLOOR((u.`age` / 10)) * 10) /* simple expression */ /* collections used: u : myusers */ + 4 CalculationNode 1 20 0 0.00001 - LET #7 = u.`age` /* attribute expression */ /* collections used: u : myusers */ + 6 CollectNode 1 8 0 0.00007 - COLLECT ageGroup = #5 AGGREGATE minAge = MIN(#7), maxAge = MAX(#7), len = LENGTH() /* hash */ + 9 SortNode 1 8 0 0.00007 - SORT ageGroup ASC /* sorting strategy: standard */ + 7 CalculationNode 1 8 0 0.00003 - LET #11 = { "ageGroup" : ageGroup, "minAge" : minAge, "maxAge" : maxAge, "len" : len } /* simple expression */ + 8 ReturnNode 1 8 0 0.00001 - RETURN #11 Indexes used: none @@ -45,17 +45,17 @@ Optimization rules applied: Query Statistics: Writes Exec Writes Ign Scan Full Scan Index Cache Hits/Misses Filtered Peak Mem [b] Exec Time [s] - 0 0 20 0 0 / 0 0 65536 0.00038 + 0 0 20 0 0 / 0 0 65536 0.00116 Query Profile: Query Stage Duration [s] initializing 0.00000 - parsing 0.00004 - optimizing ast 0.00001 - loading collections 0.00000 - instantiating plan 0.00001 - optimizing plan 0.00022 - executing 0.00009 - finalizing 0.00001 + parsing 0.00012 + optimizing ast 0.00002 + loading collections 0.00001 + instantiating plan 0.00004 + optimizing plan 0.00068 + executing 0.00028 + finalizing 0.00004 diff --git a/3.11/generated/Examples/04_workWithAQL_statements1.generated b/3.11/generated/Examples/04_workWithAQL_statements1.generated index 308b87eb8b..40d697655b 100644 --- a/3.11/generated/Examples/04_workWithAQL_statements1.generated +++ b/3.11/generated/Examples/04_workWithAQL_statements1.generated @@ -1,3 +1,2 @@ -arangosh> stmt = db._createStatement( { -........> "query": "FOR i IN [ 1, 2 ] RETURN i * 2" } ); +arangosh> stmt = db._createStatement( { "query": "FOR i IN [ 1, 2 ] RETURN i * 2" } ); [object ArangoStatement] diff --git a/3.11/generated/Examples/05_workWithAQL_statements10.generated b/3.11/generated/Examples/05_workWithAQL_statements10.generated index 44648cdef8..c2b513682a 100644 --- a/3.11/generated/Examples/05_workWithAQL_statements10.generated +++ b/3.11/generated/Examples/05_workWithAQL_statements10.generated @@ -1,3 +1,3 @@ -arangosh> var c = stmt.execute(); -arangosh> c.count(); +arangosh> var cursor = stmt.execute(); +arangosh> cursor.count(); 4 diff --git a/3.11/generated/Examples/05_workWithAQL_statements2.generated b/3.11/generated/Examples/05_workWithAQL_statements2.generated index 5df43cbd0f..9de3943261 100644 --- a/3.11/generated/Examples/05_workWithAQL_statements2.generated +++ b/3.11/generated/Examples/05_workWithAQL_statements2.generated @@ -1,4 +1,4 @@ -arangosh> c = stmt.execute(); +arangosh> cursor = stmt.execute(); [ 2, 4 diff --git a/3.11/generated/Examples/05_workWithAQL_statements3.generated b/3.11/generated/Examples/05_workWithAQL_statements3.generated index b379deeb30..3438453165 100644 --- a/3.11/generated/Examples/05_workWithAQL_statements3.generated +++ b/3.11/generated/Examples/05_workWithAQL_statements3.generated @@ -1,4 +1,4 @@ -arangosh> c.toArray(); +arangosh> cursor.toArray(); [ 2, 4 diff --git a/3.11/generated/Examples/05_workWithAQL_statements5.generated b/3.11/generated/Examples/05_workWithAQL_statements5.generated index 3883a0c6aa..9001d3fe3c 100644 --- a/3.11/generated/Examples/05_workWithAQL_statements5.generated +++ b/3.11/generated/Examples/05_workWithAQL_statements5.generated @@ -1,8 +1,7 @@ -arangosh> var stmt = db._createStatement( { -........> "query": "FOR i IN [ @one, @two ] RETURN i * 2" } ); +arangosh> var stmt = db._createStatement( { "query": "FOR i IN [ @one, @two ] RETURN i * 2" } ); arangosh> stmt.bind("one", 1); arangosh> stmt.bind("two", 2); -arangosh> c = stmt.execute(); +arangosh> cursor = stmt.execute(); [ 2, 4 diff --git a/3.11/generated/Examples/05_workWithAQL_statements6.generated b/3.11/generated/Examples/05_workWithAQL_statements6.generated index b379deeb30..3438453165 100644 --- a/3.11/generated/Examples/05_workWithAQL_statements6.generated +++ b/3.11/generated/Examples/05_workWithAQL_statements6.generated @@ -1,4 +1,4 @@ -arangosh> c.toArray(); +arangosh> cursor.toArray(); [ 2, 4 diff --git a/3.11/generated/Examples/05_workWithAQL_statements7.generated b/3.11/generated/Examples/05_workWithAQL_statements7.generated index 7fd4abac96..a5b065107f 100644 --- a/3.11/generated/Examples/05_workWithAQL_statements7.generated +++ b/3.11/generated/Examples/05_workWithAQL_statements7.generated @@ -1,3 +1,3 @@ -arangosh> while (c.hasNext()) { require("@arangodb").print(c.next()); } +arangosh> while (cursor.hasNext()) { require("@arangodb").print(cursor.next()); } 2 4 diff --git a/3.11/generated/Examples/05_workWithAQL_statements8.generated b/3.11/generated/Examples/05_workWithAQL_statements8.generated index ab664bebf0..ea4af29578 100644 --- a/3.11/generated/Examples/05_workWithAQL_statements8.generated +++ b/3.11/generated/Examples/05_workWithAQL_statements8.generated @@ -1,8 +1,8 @@ arangosh> stmt = db._createStatement( { -........> "query": "FOR i IN [ @one, @two ] RETURN i * 2", -........> "bindVars": { -........> "one": 1, -........> "two": 2 -........> } -........> } ); +........> "query": "FOR i IN [ @one, @two ] RETURN i * 2", +........> "bindVars": { +........> "one": 1, +........> "two": 2 +........> } +........> }); [object ArangoStatement] diff --git a/3.11/generated/Examples/05_workWithAQL_statements9.generated b/3.11/generated/Examples/05_workWithAQL_statements9.generated index 43b140459a..bdaa38f010 100644 --- a/3.11/generated/Examples/05_workWithAQL_statements9.generated +++ b/3.11/generated/Examples/05_workWithAQL_statements9.generated @@ -1,4 +1,4 @@ arangosh> stmt = db._createStatement( { -........> "query": "FOR i IN [ 1, 2, 3, 4 ] RETURN i", +........> "query": "FOR i IN [ 1, 2, 3, 4 ] RETURN i", ........> "count": true } ); [object ArangoStatement] diff --git a/3.11/generated/Examples/06_workWithAQL_statements11.generated b/3.11/generated/Examples/06_workWithAQL_statements11.generated index 068bedc5da..bc14c67aa8 100644 --- a/3.11/generated/Examples/06_workWithAQL_statements11.generated +++ b/3.11/generated/Examples/06_workWithAQL_statements11.generated @@ -1,4 +1,4 @@ arangosh> stmt = db._createStatement( { -........> "query": "FOR i IN [ 1, 2, 3, 4 ] RETURN i", +........> "query": "FOR i IN [ 1, 2, 3, 4 ] RETURN i", ........> options: {"profile": true}} ); [object ArangoStatement] diff --git a/3.11/generated/Examples/06_workWithAQL_statements12.generated b/3.11/generated/Examples/06_workWithAQL_statements12.generated index c973592624..40d023d810 100644 --- a/3.11/generated/Examples/06_workWithAQL_statements12.generated +++ b/3.11/generated/Examples/06_workWithAQL_statements12.generated @@ -1,5 +1,5 @@ -arangosh> var c = stmt.execute(); -arangosh> c.getExtra(); +arangosh> var cursor = stmt.execute(); +arangosh> cursor.getExtra(); { "warnings" : [ ], "stats" : { @@ -13,18 +13,18 @@ arangosh> c.getExtra(); "cacheMisses" : 0, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.00004235500091454014, + "executionTime" : 0.0002069449983537197, "peakMemoryUsage" : 0, "intermediateCommits" : 0 }, "profile" : { - "initializing" : 9.359991963719949e-7, - "parsing" : 0.000007422000635415316, - "optimizing ast" : 7.359994924627244e-7, - "loading collections" : 4.049998096888885e-7, - "instantiating plan" : 0.000003859000571537763, - "optimizing plan" : 0.000015998000890249386, - "executing" : 0.0000102319991128752, - "finalizing" : 0.00000445300065621268 + "initializing" : 0.0000061301980167627335, + "parsing" : 0.0000356349628418684, + "optimizing ast" : 0.000004220055416226387, + "loading collections" : 0.000005073845386505127, + "instantiating plan" : 0.00001968303695321083, + "optimizing plan" : 0.00007573002949357033, + "executing" : 0.00004176306538283825, + "finalizing" : 0.000024236971512436867 } } diff --git a/3.11/generated/Examples/06_workWithAQL_statementsExtra.generated b/3.11/generated/Examples/06_workWithAQL_statementsExtra.generated index 769a8b30af..ee7c9ec53e 100644 --- a/3.11/generated/Examples/06_workWithAQL_statementsExtra.generated +++ b/3.11/generated/Examples/06_workWithAQL_statementsExtra.generated @@ -2,9 +2,9 @@ arangosh> db._query(` ........> FOR i IN 1..@count INSERT ........> { _key: CONCAT('anothertest', TO_STRING(i)) } ........> INTO mycollection`, -........> {count: 100}, +........> { count: 100 }, ........> {}, -........> {fullCount: true} +........> { fullCount: true } ........> ).getExtra(); { "warnings" : [ ], @@ -20,17 +20,17 @@ arangosh> db._query(` "filtered" : 0, "httpRequests" : 0, "fullCount" : 0, - "executionTime" : 0.0008148289998644032, + "executionTime" : 0.0036831439938396215, "peakMemoryUsage" : 32768, "intermediateCommits" : 0 } } arangosh> db._query({ -........> "query": `FOR i IN 200..@count INSERT -........> { _key: CONCAT('anothertest', TO_STRING(i)) } -........> INTO mycollection`, -........> "bindVars": {count: 300}, -........> "options": { fullCount: true} +........> "query": `FOR i IN 200..@count INSERT +........> { _key: CONCAT('anothertest', TO_STRING(i)) } +........> INTO mycollection`, +........> "bindVars": { count: 300 }, +........> "options": { fullCount: true } ........> }).getExtra(); { "warnings" : [ ], @@ -46,7 +46,7 @@ arangosh> db._query({ "filtered" : 0, "httpRequests" : 0, "fullCount" : 0, - "executionTime" : 0.0008457439998892369, + "executionTime" : 0.0035242538433521986, "peakMemoryUsage" : 32768, "intermediateCommits" : 0 } diff --git a/3.11/generated/Examples/09_workWithAQL_statementsPlansBind.generated b/3.11/generated/Examples/09_workWithAQL_statementsPlansBind.generated index 9c3c0202a8..420bfcd088 100644 --- a/3.11/generated/Examples/09_workWithAQL_statementsPlansBind.generated +++ b/3.11/generated/Examples/09_workWithAQL_statementsPlansBind.generated @@ -45,7 +45,7 @@ arangosh> stmt.explain(); { "id" : "40", "type" : "hash", - "name" : "idx_1745944370308186112", + "name" : "idx_1747208895979323392", "fields" : [ "user" ], diff --git a/3.11/generated/Examples/AQLEXP_01_axplainer.generated b/3.11/generated/Examples/AQLEXP_01_axplainer.generated index 6913825e9f..2247fe90ba 100644 --- a/3.11/generated/Examples/AQLEXP_01_axplainer.generated +++ b/3.11/generated/Examples/AQLEXP_01_axplainer.generated @@ -1,5 +1,5 @@ arangosh> db._create("test"); -[ArangoCollection 60425, "test" (type document, status loaded)] +[ArangoCollection 60426, "test" (type document, status loaded)] arangosh> for (i = 0; i < 100; ++i) { db.test.save({ value: i }); } arangosh> db.test.ensureIndex({ type: "persistent", fields: [ "value" ] }); { @@ -9,9 +9,9 @@ arangosh> db.test.ensureIndex({ type: "persistent", fields: [ " "fields" : [ "value" ], - "id" : "test/60630", + "id" : "test/60631", "isNewlyCreated" : true, - "name" : "idx_1745944375004758017", + "name" : "idx_1747208908839059456", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -32,7 +32,7 @@ Execution plan: Indexes used: By Name Type Collection Unique Sparse Cache Selectivity Fields Stored values Ranges - 9 idx_1745944375004758017 persistent test false false false 100.00 % [ `value` ] [ ] (i.`value` > 97) + 9 idx_1747208908839059456 persistent test false false false 100.00 % [ `value` ] [ ] (i.`value` > 97) Optimization rules applied: Id RuleName diff --git a/3.11/generated/Examples/AQLEXP_01_explainCreate.generated b/3.11/generated/Examples/AQLEXP_01_explainCreate.generated index f037b66bb1..b10478f2f4 100644 --- a/3.11/generated/Examples/AQLEXP_01_explainCreate.generated +++ b/3.11/generated/Examples/AQLEXP_01_explainCreate.generated @@ -43,9 +43,9 @@ arangosh> stmt.explain(); "indexCoversProjections" : true, "indexes" : [ { - "id" : "60630", + "id" : "60631", "type" : "persistent", - "name" : "idx_1745944375004758017", + "name" : "idx_1747208908839059456", "fields" : [ "value" ], diff --git a/3.11/generated/Examples/AQLEXP_05_explainAllPlans.generated b/3.11/generated/Examples/AQLEXP_05_explainAllPlans.generated index bdd3daf15f..968649e525 100644 --- a/3.11/generated/Examples/AQLEXP_05_explainAllPlans.generated +++ b/3.11/generated/Examples/AQLEXP_05_explainAllPlans.generated @@ -42,9 +42,9 @@ arangosh> stmt.explain({ allPlans: "indexCoversProjections" : true, "indexes" : [ { - "id" : "60630", + "id" : "60631", "type" : "persistent", - "name" : "idx_1745944375004758017", + "name" : "idx_1747208908839059456", "fields" : [ "value" ], diff --git a/3.11/generated/Examples/AQLEXP_08_explainDisableSingleRulePlans.generated b/3.11/generated/Examples/AQLEXP_08_explainDisableSingleRulePlans.generated index fe54e0cf49..7a7e0eeabc 100644 --- a/3.11/generated/Examples/AQLEXP_08_explainDisableSingleRulePlans.generated +++ b/3.11/generated/Examples/AQLEXP_08_explainDisableSingleRulePlans.generated @@ -41,9 +41,9 @@ arangosh> stmt.explain({ optimizer: { "indexCoversProjections" : true, "indexes" : [ { - "id" : "60630", + "id" : "60631", "type" : "persistent", - "name" : "idx_1745944375004758017", + "name" : "idx_1747208908839059456", "fields" : [ "value" ], diff --git a/3.11/generated/Examples/AQLEXP_09_explainMaxNumberOfPlans.generated b/3.11/generated/Examples/AQLEXP_09_explainMaxNumberOfPlans.generated index f385e8db7d..170a837ea9 100644 --- a/3.11/generated/Examples/AQLEXP_09_explainMaxNumberOfPlans.generated +++ b/3.11/generated/Examples/AQLEXP_09_explainMaxNumberOfPlans.generated @@ -41,9 +41,9 @@ arangosh> stmt.explain({ maxNumberOfPlans: "indexCoversProjections" : true, "indexes" : [ { - "id" : "60630", + "id" : "60631", "type" : "persistent", - "name" : "idx_1745944375004758017", + "name" : "idx_1747208908839059456", "fields" : [ "value" ], diff --git a/3.11/generated/Examples/COMBINING_GRAPH_03_explain_geo.generated b/3.11/generated/Examples/COMBINING_GRAPH_03_explain_geo.generated index ed77e2246d..06679a1d24 100644 --- a/3.11/generated/Examples/COMBINING_GRAPH_03_explain_geo.generated +++ b/3.11/generated/Examples/COMBINING_GRAPH_03_explain_geo.generated @@ -26,7 +26,7 @@ Execution plan: Indexes used: By Name Type Collection Unique Sparse Cache Selectivity Fields Stored values Ranges - 7 idx_1745944375060332546 geo germanCity false true false n/a [ `geometry` ] [ ] (GEO_DISTANCE([ 7.0998, 50.734 ], startCity.`geometry`) < 400000) + 7 idx_1747208909065551872 geo germanCity false true false n/a [ `geometry` ] [ ] (GEO_DISTANCE([ 7.0998, 50.734 ], startCity.`geometry`) < 400000) Optimization rules applied: Id RuleName diff --git a/3.11/generated/Examples/CollectionUnload.generated b/3.11/generated/Examples/CollectionUnload.generated index d3ca6f67fd..26f445ec8e 100644 --- a/3.11/generated/Examples/CollectionUnload.generated +++ b/3.11/generated/Examples/CollectionUnload.generated @@ -1,5 +1,5 @@ arangosh> col = db.example; -[ArangoCollection 61258, "example" (type document, status loaded)] +[ArangoCollection 61259, "example" (type document, status loaded)] arangosh> col.unload(); arangosh> col; -[ArangoCollection 61258, "example" (type document, status loaded)] +[ArangoCollection 61259, "example" (type document, status loaded)] diff --git a/3.11/generated/Examples/EDGCOL_02_Relation.generated b/3.11/generated/Examples/EDGCOL_02_Relation.generated index 10994be50b..f381e6bb7f 100644 --- a/3.11/generated/Examples/EDGCOL_02_Relation.generated +++ b/3.11/generated/Examples/EDGCOL_02_Relation.generated @@ -1,34 +1,34 @@ arangosh> db._create("vertex"); -[ArangoCollection 61265, "vertex" (type document, status loaded)] +[ArangoCollection 61266, "vertex" (type document, status loaded)] arangosh> db._createEdgeCollection("relation"); -[ArangoCollection 61270, "relation" (type edge, status loaded)] +[ArangoCollection 61271, "relation" (type edge, status loaded)] arangosh> var myGraph = {}; arangosh> myGraph.v1 = db.vertex.insert({ name : "vertex 1" }); { - "_id" : "vertex/61277", - "_key" : "61277", - "_rev" : "_e4zwghC---" + "_id" : "vertex/61278", + "_key" : "61278", + "_rev" : "_e9TR5sO---" } arangosh> myGraph.v2 = db.vertex.insert({ name : "vertex 2" }); { - "_id" : "vertex/61279", - "_key" : "61279", - "_rev" : "_e4zwghC--_" + "_id" : "vertex/61280", + "_key" : "61280", + "_rev" : "_e9TR5sS---" } arangosh> myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2, ........> { label : "knows"}); { - "_id" : "relation/61281", - "_key" : "61281", - "_rev" : "_e4zwghC--A" + "_id" : "relation/61282", + "_key" : "61282", + "_rev" : "_e9TR5sW---" } arangosh> db._document(myGraph.e1); { - "_key" : "61281", - "_id" : "relation/61281", - "_from" : "vertex/61277", - "_to" : "vertex/61279", - "_rev" : "_e4zwghC--A", + "_key" : "61282", + "_id" : "relation/61282", + "_from" : "vertex/61278", + "_to" : "vertex/61280", + "_rev" : "_e9TR5sW---", "label" : "knows" } arangosh> db.relation.edges(myGraph.e1._id); diff --git a/3.11/generated/Examples/EDGCOL_02_inEdges.generated b/3.11/generated/Examples/EDGCOL_02_inEdges.generated index 960081a079..d00890e14c 100644 --- a/3.11/generated/Examples/EDGCOL_02_inEdges.generated +++ b/3.11/generated/Examples/EDGCOL_02_inEdges.generated @@ -1,33 +1,33 @@ arangosh> db._create("vertex"); -[ArangoCollection 61289, "vertex" (type document, status loaded)] +[ArangoCollection 61290, "vertex" (type document, status loaded)] arangosh> db._createEdgeCollection("relation"); -[ArangoCollection 61294, "relation" (type edge, status loaded)] +[ArangoCollection 61295, "relation" (type edge, status loaded)] arangosh> myGraph.v1 = db.vertex.insert({ name : "vertex 1" }); { - "_id" : "vertex/61301", - "_key" : "61301", - "_rev" : "_e4zwghO--_" + "_id" : "vertex/61302", + "_key" : "61302", + "_rev" : "_e9TR5tS---" } arangosh> myGraph.v2 = db.vertex.insert({ name : "vertex 2" }); { - "_id" : "vertex/61303", - "_key" : "61303", - "_rev" : "_e4zwghO--A" + "_id" : "vertex/61304", + "_key" : "61304", + "_rev" : "_e9TR5tW---" } arangosh> myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2, ........> { label : "knows"}); { - "_id" : "relation/61305", - "_key" : "61305", - "_rev" : "_e4zwghO--B" + "_id" : "relation/61306", + "_key" : "61306", + "_rev" : "_e9TR5ta---" } arangosh> db._document(myGraph.e1); { - "_key" : "61305", - "_id" : "relation/61305", - "_from" : "vertex/61301", - "_to" : "vertex/61303", - "_rev" : "_e4zwghO--B", + "_key" : "61306", + "_id" : "relation/61306", + "_from" : "vertex/61302", + "_to" : "vertex/61304", + "_rev" : "_e9TR5ta---", "label" : "knows" } arangosh> db.relation.inEdges(myGraph.v1._id); @@ -35,11 +35,11 @@ arangosh> db.relation.inEdges(myGraph.v1._id); arangosh> db.relation.inEdges(myGraph.v2._id); [ { - "_key" : "61305", - "_id" : "relation/61305", - "_from" : "vertex/61301", - "_to" : "vertex/61303", - "_rev" : "_e4zwghO--B", + "_key" : "61306", + "_id" : "relation/61306", + "_from" : "vertex/61302", + "_to" : "vertex/61304", + "_rev" : "_e9TR5ta---", "label" : "knows" } ] diff --git a/3.11/generated/Examples/EDGCOL_02_outEdges.generated b/3.11/generated/Examples/EDGCOL_02_outEdges.generated index 8e2b9735cb..2ceca909e2 100644 --- a/3.11/generated/Examples/EDGCOL_02_outEdges.generated +++ b/3.11/generated/Examples/EDGCOL_02_outEdges.generated @@ -1,43 +1,43 @@ arangosh> db._create("vertex"); -[ArangoCollection 61315, "vertex" (type document, status loaded)] +[ArangoCollection 61316, "vertex" (type document, status loaded)] arangosh> db._createEdgeCollection("relation"); -[ArangoCollection 61320, "relation" (type edge, status loaded)] +[ArangoCollection 61321, "relation" (type edge, status loaded)] arangosh> myGraph.v1 = db.vertex.insert({ name : "vertex 1" }); { - "_id" : "vertex/61327", - "_key" : "61327", - "_rev" : "_e4zwghe--_" + "_id" : "vertex/61328", + "_key" : "61328", + "_rev" : "_e9TR5uS---" } arangosh> myGraph.v2 = db.vertex.insert({ name : "vertex 2" }); { - "_id" : "vertex/61329", - "_key" : "61329", - "_rev" : "_e4zwghe--A" + "_id" : "vertex/61330", + "_key" : "61330", + "_rev" : "_e9TR5uW---" } arangosh> myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2, ........> { label : "knows"}); { - "_id" : "relation/61331", - "_key" : "61331", - "_rev" : "_e4zwghe--B" + "_id" : "relation/61332", + "_key" : "61332", + "_rev" : "_e9TR5uW--_" } arangosh> db._document(myGraph.e1); { - "_key" : "61331", - "_id" : "relation/61331", - "_from" : "vertex/61327", - "_to" : "vertex/61329", - "_rev" : "_e4zwghe--B", + "_key" : "61332", + "_id" : "relation/61332", + "_from" : "vertex/61328", + "_to" : "vertex/61330", + "_rev" : "_e9TR5uW--_", "label" : "knows" } arangosh> db.relation.outEdges(myGraph.v1._id); [ { - "_key" : "61331", - "_id" : "relation/61331", - "_from" : "vertex/61327", - "_to" : "vertex/61329", - "_rev" : "_e4zwghe--B", + "_key" : "61332", + "_id" : "relation/61332", + "_from" : "vertex/61328", + "_to" : "vertex/61330", + "_rev" : "_e9TR5uW--_", "label" : "knows" } ] diff --git a/3.11/generated/Examples/FUNCTION_DOCUMENT_1.generated b/3.11/generated/Examples/FUNCTION_DOCUMENT_1.generated index 320a909fc1..c849879914 100644 --- a/3.11/generated/Examples/FUNCTION_DOCUMENT_1.generated +++ b/3.11/generated/Examples/FUNCTION_DOCUMENT_1.generated @@ -6,7 +6,7 @@ { "_key": "alice", "_id": "persons/alice", - "_rev": "_e4zwghu--_", + "_rev": "_e9TR5vi---", "name": "Alice" } ] \ No newline at end of file diff --git a/3.11/generated/Examples/FUNCTION_DOCUMENT_10.generated b/3.11/generated/Examples/FUNCTION_DOCUMENT_10.generated index 498f7fa977..2307b9c90b 100644 --- a/3.11/generated/Examples/FUNCTION_DOCUMENT_10.generated +++ b/3.11/generated/Examples/FUNCTION_DOCUMENT_10.generated @@ -13,13 +13,13 @@ { "_key": "alice", "_id": "persons/alice", - "_rev": "_e4zwgi---A", + "_rev": "_e9TR5w2---", "name": "Alice" }, { "_key": "bob", "_id": "persons/bob", - "_rev": "_e4zwgi---B", + "_rev": "_e9TR5w2--_", "name": "Bob" } ] diff --git a/3.11/generated/Examples/FUNCTION_DOCUMENT_11.generated b/3.11/generated/Examples/FUNCTION_DOCUMENT_11.generated index c5cfacf983..5dc1270180 100644 --- a/3.11/generated/Examples/FUNCTION_DOCUMENT_11.generated +++ b/3.11/generated/Examples/FUNCTION_DOCUMENT_11.generated @@ -9,7 +9,7 @@ { "_key": "bob", "_id": "persons/bob", - "_rev": "_e4zwgiS--_", + "_rev": "_e9TR5yO---", "name": "Bob" } ] \ No newline at end of file diff --git a/3.11/generated/Examples/FUNCTION_DOCUMENT_2.generated b/3.11/generated/Examples/FUNCTION_DOCUMENT_2.generated index fc8b53addb..f963a172e6 100644 --- a/3.11/generated/Examples/FUNCTION_DOCUMENT_2.generated +++ b/3.11/generated/Examples/FUNCTION_DOCUMENT_2.generated @@ -6,7 +6,7 @@ { "_key": "alice", "_id": "persons/alice", - "_rev": "_e4zwgii---", + "_rev": "_e9TR5ze---", "name": "Alice" } ] \ No newline at end of file diff --git a/3.11/generated/Examples/FUNCTION_DOCUMENT_3.generated b/3.11/generated/Examples/FUNCTION_DOCUMENT_3.generated index 4cb5722d12..9ae1dc0e72 100644 --- a/3.11/generated/Examples/FUNCTION_DOCUMENT_3.generated +++ b/3.11/generated/Examples/FUNCTION_DOCUMENT_3.generated @@ -7,13 +7,13 @@ { "_key": "alice", "_id": "persons/alice", - "_rev": "_e4zwgiy---", + "_rev": "_e9TR50y---", "name": "Alice" }, { "_key": "bob", "_id": "persons/bob", - "_rev": "_e4zwgiy--_", + "_rev": "_e9TR50y--_", "name": "Bob" } ] diff --git a/3.11/generated/Examples/FUNCTION_DOCUMENT_4.generated b/3.11/generated/Examples/FUNCTION_DOCUMENT_4.generated index 301a385fb7..6d10c90e3c 100644 --- a/3.11/generated/Examples/FUNCTION_DOCUMENT_4.generated +++ b/3.11/generated/Examples/FUNCTION_DOCUMENT_4.generated @@ -7,13 +7,13 @@ { "_key": "alice", "_id": "persons/alice", - "_rev": "_e4zwgjC---", + "_rev": "_e9TR52G---", "name": "Alice" }, { "_key": "bob", "_id": "persons/bob", - "_rev": "_e4zwgjC--_", + "_rev": "_e9TR52K---", "name": "Bob" } ] diff --git a/3.11/generated/Examples/FUNCTION_DOCUMENT_5.generated b/3.11/generated/Examples/FUNCTION_DOCUMENT_5.generated index 906df0b861..28f9077816 100644 --- a/3.11/generated/Examples/FUNCTION_DOCUMENT_5.generated +++ b/3.11/generated/Examples/FUNCTION_DOCUMENT_5.generated @@ -10,7 +10,7 @@ { "_key": "alice", "_id": "persons/alice", - "_rev": "_e4zwgjS---", + "_rev": "_e9TR53a---", "name": "Alice" } ] \ No newline at end of file diff --git a/3.11/generated/Examples/FUNCTION_DOCUMENT_6.generated b/3.11/generated/Examples/FUNCTION_DOCUMENT_6.generated index 6fb47f5a6b..be59ded83d 100644 --- a/3.11/generated/Examples/FUNCTION_DOCUMENT_6.generated +++ b/3.11/generated/Examples/FUNCTION_DOCUMENT_6.generated @@ -14,13 +14,13 @@ { "_key": "alice", "_id": "persons/alice", - "_rev": "_e4zwgji--A", + "_rev": "_e9TR54y---", "name": "Alice" }, { "_key": "bob", "_id": "persons/bob", - "_rev": "_e4zwgji--B", + "_rev": "_e9TR542---", "name": "Bob" } ] diff --git a/3.11/generated/Examples/FUNCTION_DOCUMENT_7.generated b/3.11/generated/Examples/FUNCTION_DOCUMENT_7.generated index fc0936f0e8..927164ff0c 100644 --- a/3.11/generated/Examples/FUNCTION_DOCUMENT_7.generated +++ b/3.11/generated/Examples/FUNCTION_DOCUMENT_7.generated @@ -6,7 +6,7 @@ { "_key": "alice", "_id": "persons/alice", - "_rev": "_e4zwgj2---", + "_rev": "_e9TR56----", "name": "Alice" } ] \ No newline at end of file diff --git a/3.11/generated/Examples/FUNCTION_DOCUMENT_8.generated b/3.11/generated/Examples/FUNCTION_DOCUMENT_8.generated index 2a5f2ac833..37a28bb250 100644 --- a/3.11/generated/Examples/FUNCTION_DOCUMENT_8.generated +++ b/3.11/generated/Examples/FUNCTION_DOCUMENT_8.generated @@ -7,13 +7,13 @@ { "_key": "alice", "_id": "persons/alice", - "_rev": "_e4zwgkG---", + "_rev": "_e9TR57S---", "name": "Alice" }, { "_key": "bob", "_id": "persons/bob", - "_rev": "_e4zwgkG--_", + "_rev": "_e9TR57W---", "name": "Bob" } ] diff --git a/3.11/generated/Examples/FUNCTION_DOCUMENT_9.generated b/3.11/generated/Examples/FUNCTION_DOCUMENT_9.generated index b9c789032c..775d4d8230 100644 --- a/3.11/generated/Examples/FUNCTION_DOCUMENT_9.generated +++ b/3.11/generated/Examples/FUNCTION_DOCUMENT_9.generated @@ -9,7 +9,7 @@ { "_key": "alice", "_id": "persons/alice", - "_rev": "_e4zwgkW---", + "_rev": "_e9TR58q---", "name": "Alice" } ] \ No newline at end of file diff --git a/3.11/generated/Examples/GRAPHASP_01_create_graph.generated b/3.11/generated/Examples/GRAPHASP_01_create_graph.generated index 7b3f6d1989..ba8ea2c1b8 100644 --- a/3.11/generated/Examples/GRAPHASP_01_create_graph.generated +++ b/3.11/generated/Examples/GRAPHASP_01_create_graph.generated @@ -5,400 +5,400 @@ arangosh> db.places.toArray(); { "_key" : "Inverness", "_id" : "places/Inverness", - "_rev" : "_e4zwglG--A", + "_rev" : "_e9TR6A2---", "label" : "Inverness" }, { "_key" : "Aberdeen", "_id" : "places/Aberdeen", - "_rev" : "_e4zwglK---", + "_rev" : "_e9TR6A2--_", "label" : "Aberdeen" }, { "_key" : "Leuchars", "_id" : "places/Leuchars", - "_rev" : "_e4zwglK--_", + "_rev" : "_e9TR6A6---", "label" : "Leuchars" }, { "_key" : "StAndrews", "_id" : "places/StAndrews", - "_rev" : "_e4zwglK--A", + "_rev" : "_e9TR6A6--_", "label" : "StAndrews" }, { "_key" : "Edinburgh", "_id" : "places/Edinburgh", - "_rev" : "_e4zwglO---", + "_rev" : "_e9TR6B----", "label" : "Edinburgh" }, { "_key" : "Glasgow", "_id" : "places/Glasgow", - "_rev" : "_e4zwglO--_", + "_rev" : "_e9TR6B---_", "label" : "Glasgow" }, { "_key" : "York", "_id" : "places/York", - "_rev" : "_e4zwglO--A", + "_rev" : "_e9TR6B---A", "label" : "York" }, { "_key" : "Carlisle", "_id" : "places/Carlisle", - "_rev" : "_e4zwglO--B", + "_rev" : "_e9TR6BC---", "label" : "Carlisle" }, { "_key" : "Birmingham", "_id" : "places/Birmingham", - "_rev" : "_e4zwglO--C", + "_rev" : "_e9TR6BC--_", "label" : "Birmingham" }, { "_key" : "London", "_id" : "places/London", - "_rev" : "_e4zwglO--D", + "_rev" : "_e9TR6BG---", "label" : "London" }, { "_key" : "Brussels", "_id" : "places/Brussels", - "_rev" : "_e4zwglO--E", + "_rev" : "_e9TR6BG--_", "label" : "Brussels" }, { "_key" : "Cologne", "_id" : "places/Cologne", - "_rev" : "_e4zwglO--F", + "_rev" : "_e9TR6BG--A", "label" : "Cologne" }, { "_key" : "Toronto", "_id" : "places/Toronto", - "_rev" : "_e4zwglO--G", + "_rev" : "_e9TR6BK---", "label" : "Toronto" }, { "_key" : "Winnipeg", "_id" : "places/Winnipeg", - "_rev" : "_e4zwglO--H", + "_rev" : "_e9TR6BK--_", "label" : "Winnipeg" }, { "_key" : "Saskatoon", "_id" : "places/Saskatoon", - "_rev" : "_e4zwglO--I", + "_rev" : "_e9TR6BK--A", "label" : "Saskatoon" }, { "_key" : "Edmonton", "_id" : "places/Edmonton", - "_rev" : "_e4zwglO--J", + "_rev" : "_e9TR6BO---", "label" : "Edmonton" }, { "_key" : "Jasper", "_id" : "places/Jasper", - "_rev" : "_e4zwglS---", + "_rev" : "_e9TR6BO--_", "label" : "Jasper" }, { "_key" : "Vancouver", "_id" : "places/Vancouver", - "_rev" : "_e4zwglS--_", + "_rev" : "_e9TR6BS---", "label" : "Vancouver" } ] arangosh> db.connections.toArray(); [ { - "_key" : "62090", - "_id" : "connections/62090", + "_key" : "62091", + "_id" : "connections/62091", "_from" : "places/Inverness", "_to" : "places/Aberdeen", - "_rev" : "_e4zwglS--A", + "_rev" : "_e9TR6BS--_", "travelTime" : 3 }, { - "_key" : "62092", - "_id" : "connections/62092", + "_key" : "62093", + "_id" : "connections/62093", "_from" : "places/Aberdeen", "_to" : "places/Inverness", - "_rev" : "_e4zwglS--B", + "_rev" : "_e9TR6BS--A", "travelTime" : 2.5 }, { - "_key" : "62094", - "_id" : "connections/62094", + "_key" : "62095", + "_id" : "connections/62095", "_from" : "places/Aberdeen", "_to" : "places/Leuchars", - "_rev" : "_e4zwglS--C", + "_rev" : "_e9TR6BW---", "travelTime" : 1.5 }, { - "_key" : "62096", - "_id" : "connections/62096", + "_key" : "62097", + "_id" : "connections/62097", "_from" : "places/Leuchars", "_to" : "places/Aberdeen", - "_rev" : "_e4zwglS--D", + "_rev" : "_e9TR6BW--_", "travelTime" : 1 }, { - "_key" : "62098", - "_id" : "connections/62098", + "_key" : "62099", + "_id" : "connections/62099", "_from" : "places/Leuchars", "_to" : "places/Edinburgh", - "_rev" : "_e4zwglS--E", + "_rev" : "_e9TR6Ba---", "travelTime" : 1.5 }, { - "_key" : "62100", - "_id" : "connections/62100", + "_key" : "62101", + "_id" : "connections/62101", "_from" : "places/Edinburgh", "_to" : "places/Leuchars", - "_rev" : "_e4zwglS--F", + "_rev" : "_e9TR6Ba--_", "travelTime" : 3 }, { - "_key" : "62102", - "_id" : "connections/62102", + "_key" : "62103", + "_id" : "connections/62103", "_from" : "places/Edinburgh", "_to" : "places/Glasgow", - "_rev" : "_e4zwglS--G", + "_rev" : "_e9TR6Be---", "travelTime" : 1 }, { - "_key" : "62104", - "_id" : "connections/62104", + "_key" : "62105", + "_id" : "connections/62105", "_from" : "places/Glasgow", "_to" : "places/Edinburgh", - "_rev" : "_e4zwglS--H", + "_rev" : "_e9TR6Be--_", "travelTime" : 1 }, { - "_key" : "62106", - "_id" : "connections/62106", + "_key" : "62107", + "_id" : "connections/62107", "_from" : "places/Edinburgh", "_to" : "places/York", - "_rev" : "_e4zwglS--I", + "_rev" : "_e9TR6Bi---", "travelTime" : 3.5 }, { - "_key" : "62108", - "_id" : "connections/62108", + "_key" : "62109", + "_id" : "connections/62109", "_from" : "places/York", "_to" : "places/Edinburgh", - "_rev" : "_e4zwglW---", + "_rev" : "_e9TR6Bi--_", "travelTime" : 4 }, { - "_key" : "62110", - "_id" : "connections/62110", + "_key" : "62111", + "_id" : "connections/62111", "_from" : "places/Glasgow", "_to" : "places/Carlisle", - "_rev" : "_e4zwglW--_", + "_rev" : "_e9TR6Bi--A", "travelTime" : 1 }, { - "_key" : "62112", - "_id" : "connections/62112", + "_key" : "62113", + "_id" : "connections/62113", "_from" : "places/Carlisle", "_to" : "places/Glasgow", - "_rev" : "_e4zwglW--A", + "_rev" : "_e9TR6Bm---", "travelTime" : 1 }, { - "_key" : "62114", - "_id" : "connections/62114", + "_key" : "62115", + "_id" : "connections/62115", "_from" : "places/Carlisle", "_to" : "places/York", - "_rev" : "_e4zwglW--B", + "_rev" : "_e9TR6Bm--_", "travelTime" : 2.5 }, { - "_key" : "62116", - "_id" : "connections/62116", + "_key" : "62117", + "_id" : "connections/62117", "_from" : "places/York", "_to" : "places/Carlisle", - "_rev" : "_e4zwglW--C", + "_rev" : "_e9TR6Bq---", "travelTime" : 3.5 }, { - "_key" : "62118", - "_id" : "connections/62118", + "_key" : "62119", + "_id" : "connections/62119", "_from" : "places/Carlisle", "_to" : "places/Birmingham", - "_rev" : "_e4zwglW--D", + "_rev" : "_e9TR6Bq--_", "travelTime" : 2 }, { - "_key" : "62120", - "_id" : "connections/62120", + "_key" : "62121", + "_id" : "connections/62121", "_from" : "places/Birmingham", "_to" : "places/Carlisle", - "_rev" : "_e4zwglW--E", + "_rev" : "_e9TR6Bu---", "travelTime" : 1 }, { - "_key" : "62122", - "_id" : "connections/62122", + "_key" : "62123", + "_id" : "connections/62123", "_from" : "places/Birmingham", "_to" : "places/London", - "_rev" : "_e4zwglW--F", + "_rev" : "_e9TR6Bu--_", "travelTime" : 1.5 }, { - "_key" : "62124", - "_id" : "connections/62124", + "_key" : "62125", + "_id" : "connections/62125", "_from" : "places/London", "_to" : "places/Birmingham", - "_rev" : "_e4zwglW--G", + "_rev" : "_e9TR6By---", "travelTime" : 2.5 }, { - "_key" : "62126", - "_id" : "connections/62126", + "_key" : "62127", + "_id" : "connections/62127", "_from" : "places/Leuchars", "_to" : "places/StAndrews", - "_rev" : "_e4zwglW--H", + "_rev" : "_e9TR6By--_", "travelTime" : 0.2 }, { - "_key" : "62128", - "_id" : "connections/62128", + "_key" : "62129", + "_id" : "connections/62129", "_from" : "places/StAndrews", "_to" : "places/Leuchars", - "_rev" : "_e4zwgla---", + "_rev" : "_e9TR6B2---", "travelTime" : 0.2 }, { - "_key" : "62130", - "_id" : "connections/62130", + "_key" : "62131", + "_id" : "connections/62131", "_from" : "places/York", "_to" : "places/London", - "_rev" : "_e4zwgla--_", + "_rev" : "_e9TR6B2--_", "travelTime" : 1.8 }, { - "_key" : "62132", - "_id" : "connections/62132", + "_key" : "62133", + "_id" : "connections/62133", "_from" : "places/London", "_to" : "places/York", - "_rev" : "_e4zwgla--A", + "_rev" : "_e9TR6B6---", "travelTime" : 2 }, { - "_key" : "62134", - "_id" : "connections/62134", + "_key" : "62135", + "_id" : "connections/62135", "_from" : "places/London", "_to" : "places/Brussels", - "_rev" : "_e4zwgla--B", + "_rev" : "_e9TR6B6--_", "travelTime" : 2.5 }, { - "_key" : "62136", - "_id" : "connections/62136", + "_key" : "62137", + "_id" : "connections/62137", "_from" : "places/Brussels", "_to" : "places/London", - "_rev" : "_e4zwgla--C", + "_rev" : "_e9TR6C----", "travelTime" : 3.5 }, { - "_key" : "62138", - "_id" : "connections/62138", + "_key" : "62139", + "_id" : "connections/62139", "_from" : "places/Brussels", "_to" : "places/Cologne", - "_rev" : "_e4zwgla--D", + "_rev" : "_e9TR6C---_", "travelTime" : 2 }, { - "_key" : "62140", - "_id" : "connections/62140", + "_key" : "62141", + "_id" : "connections/62141", "_from" : "places/Cologne", "_to" : "places/Brussels", - "_rev" : "_e4zwgla--E", + "_rev" : "_e9TR6CC---", "travelTime" : 1.5 }, { - "_key" : "62142", - "_id" : "connections/62142", + "_key" : "62143", + "_id" : "connections/62143", "_from" : "places/Toronto", "_to" : "places/Winnipeg", - "_rev" : "_e4zwgla--F", + "_rev" : "_e9TR6CC--_", "travelTime" : 36 }, { - "_key" : "62144", - "_id" : "connections/62144", + "_key" : "62145", + "_id" : "connections/62145", "_from" : "places/Winnipeg", "_to" : "places/Toronto", - "_rev" : "_e4zwgla--G", + "_rev" : "_e9TR6CG---", "travelTime" : 35 }, { - "_key" : "62146", - "_id" : "connections/62146", + "_key" : "62147", + "_id" : "connections/62147", "_from" : "places/Winnipeg", "_to" : "places/Saskatoon", - "_rev" : "_e4zwgla--H", + "_rev" : "_e9TR6CG--_", "travelTime" : 12 }, { - "_key" : "62148", - "_id" : "connections/62148", + "_key" : "62149", + "_id" : "connections/62149", "_from" : "places/Saskatoon", "_to" : "places/Winnipeg", - "_rev" : "_e4zwgla--I", + "_rev" : "_e9TR6CG--A", "travelTime" : 5 }, { - "_key" : "62150", - "_id" : "connections/62150", + "_key" : "62151", + "_id" : "connections/62151", "_from" : "places/Saskatoon", "_to" : "places/Edmonton", - "_rev" : "_e4zwgle---", + "_rev" : "_e9TR6CK---", "travelTime" : 12 }, { - "_key" : "62152", - "_id" : "connections/62152", + "_key" : "62153", + "_id" : "connections/62153", "_from" : "places/Edmonton", "_to" : "places/Saskatoon", - "_rev" : "_e4zwgle--_", + "_rev" : "_e9TR6CK--_", "travelTime" : 17 }, { - "_key" : "62154", - "_id" : "connections/62154", + "_key" : "62155", + "_id" : "connections/62155", "_from" : "places/Edmonton", "_to" : "places/Jasper", - "_rev" : "_e4zwgle--A", + "_rev" : "_e9TR6CO---", "travelTime" : 6 }, { - "_key" : "62156", - "_id" : "connections/62156", + "_key" : "62157", + "_id" : "connections/62157", "_from" : "places/Jasper", "_to" : "places/Edmonton", - "_rev" : "_e4zwgle--B", + "_rev" : "_e9TR6CO--_", "travelTime" : 5 }, { - "_key" : "62158", - "_id" : "connections/62158", + "_key" : "62159", + "_id" : "connections/62159", "_from" : "places/Jasper", "_to" : "places/Vancouver", - "_rev" : "_e4zwgle--C", + "_rev" : "_e9TR6CS---", "travelTime" : 12 }, { - "_key" : "62160", - "_id" : "connections/62160", + "_key" : "62161", + "_id" : "connections/62161", "_from" : "places/Vancouver", "_to" : "places/Jasper", - "_rev" : "_e4zwgle--D", + "_rev" : "_e9TR6CS--_", "travelTime" : 13 } ] diff --git a/3.11/generated/Examples/GRAPHKP_01_create_graph.generated b/3.11/generated/Examples/GRAPHKP_01_create_graph.generated index 76084c8f48..8252023086 100644 --- a/3.11/generated/Examples/GRAPHKP_01_create_graph.generated +++ b/3.11/generated/Examples/GRAPHKP_01_create_graph.generated @@ -5,400 +5,400 @@ arangosh> db.places.toArray(); { "_key" : "Inverness", "_id" : "places/Inverness", - "_rev" : "_e4zwgoS--A", + "_rev" : "_e9TR6PO---", "label" : "Inverness" }, { "_key" : "Aberdeen", "_id" : "places/Aberdeen", - "_rev" : "_e4zwgoW---", + "_rev" : "_e9TR6PS---", "label" : "Aberdeen" }, { "_key" : "Leuchars", "_id" : "places/Leuchars", - "_rev" : "_e4zwgoW--_", + "_rev" : "_e9TR6PS--_", "label" : "Leuchars" }, { "_key" : "StAndrews", "_id" : "places/StAndrews", - "_rev" : "_e4zwgoW--A", + "_rev" : "_e9TR6PW---", "label" : "StAndrews" }, { "_key" : "Edinburgh", "_id" : "places/Edinburgh", - "_rev" : "_e4zwgoW--B", + "_rev" : "_e9TR6Pa---", "label" : "Edinburgh" }, { "_key" : "Glasgow", "_id" : "places/Glasgow", - "_rev" : "_e4zwgoW--C", + "_rev" : "_e9TR6Pe---", "label" : "Glasgow" }, { "_key" : "York", "_id" : "places/York", - "_rev" : "_e4zwgoW--D", + "_rev" : "_e9TR6Pe--_", "label" : "York" }, { "_key" : "Carlisle", "_id" : "places/Carlisle", - "_rev" : "_e4zwgoW--E", + "_rev" : "_e9TR6Pi---", "label" : "Carlisle" }, { "_key" : "Birmingham", "_id" : "places/Birmingham", - "_rev" : "_e4zwgoW--F", + "_rev" : "_e9TR6Pi--_", "label" : "Birmingham" }, { "_key" : "London", "_id" : "places/London", - "_rev" : "_e4zwgoW--G", + "_rev" : "_e9TR6Pm---", "label" : "London" }, { "_key" : "Brussels", "_id" : "places/Brussels", - "_rev" : "_e4zwgoW--H", + "_rev" : "_e9TR6Pm--_", "label" : "Brussels" }, { "_key" : "Cologne", "_id" : "places/Cologne", - "_rev" : "_e4zwgoW--I", + "_rev" : "_e9TR6Pq---", "label" : "Cologne" }, { "_key" : "Toronto", "_id" : "places/Toronto", - "_rev" : "_e4zwgoa---", + "_rev" : "_e9TR6Pq--_", "label" : "Toronto" }, { "_key" : "Winnipeg", "_id" : "places/Winnipeg", - "_rev" : "_e4zwgoa--_", + "_rev" : "_e9TR6Pu---", "label" : "Winnipeg" }, { "_key" : "Saskatoon", "_id" : "places/Saskatoon", - "_rev" : "_e4zwgoa--A", + "_rev" : "_e9TR6Pu--_", "label" : "Saskatoon" }, { "_key" : "Edmonton", "_id" : "places/Edmonton", - "_rev" : "_e4zwgoa--B", + "_rev" : "_e9TR6Py---", "label" : "Edmonton" }, { "_key" : "Jasper", "_id" : "places/Jasper", - "_rev" : "_e4zwgoa--C", + "_rev" : "_e9TR6Py--_", "label" : "Jasper" }, { "_key" : "Vancouver", "_id" : "places/Vancouver", - "_rev" : "_e4zwgoa--D", + "_rev" : "_e9TR6Py--A", "label" : "Vancouver" } ] arangosh> db.connections.toArray(); [ { - "_key" : "62738", - "_id" : "connections/62738", + "_key" : "62739", + "_id" : "connections/62739", "_from" : "places/Inverness", "_to" : "places/Aberdeen", - "_rev" : "_e4zwgoa--E", + "_rev" : "_e9TR6P2---", "travelTime" : 3 }, { - "_key" : "62740", - "_id" : "connections/62740", + "_key" : "62741", + "_id" : "connections/62741", "_from" : "places/Aberdeen", "_to" : "places/Inverness", - "_rev" : "_e4zwgoa--F", + "_rev" : "_e9TR6P2--_", "travelTime" : 2.5 }, { - "_key" : "62742", - "_id" : "connections/62742", + "_key" : "62743", + "_id" : "connections/62743", "_from" : "places/Aberdeen", "_to" : "places/Leuchars", - "_rev" : "_e4zwgoa--G", + "_rev" : "_e9TR6P6---", "travelTime" : 1.5 }, { - "_key" : "62744", - "_id" : "connections/62744", + "_key" : "62745", + "_id" : "connections/62745", "_from" : "places/Leuchars", "_to" : "places/Aberdeen", - "_rev" : "_e4zwgoa--H", + "_rev" : "_e9TR6P6--_", "travelTime" : 1 }, { - "_key" : "62746", - "_id" : "connections/62746", + "_key" : "62747", + "_id" : "connections/62747", "_from" : "places/Leuchars", "_to" : "places/Edinburgh", - "_rev" : "_e4zwgoa--I", + "_rev" : "_e9TR6Q----", "travelTime" : 1.5 }, { - "_key" : "62748", - "_id" : "connections/62748", + "_key" : "62749", + "_id" : "connections/62749", "_from" : "places/Edinburgh", "_to" : "places/Leuchars", - "_rev" : "_e4zwgoe---", + "_rev" : "_e9TR6Q---_", "travelTime" : 3 }, { - "_key" : "62750", - "_id" : "connections/62750", + "_key" : "62751", + "_id" : "connections/62751", "_from" : "places/Edinburgh", "_to" : "places/Glasgow", - "_rev" : "_e4zwgoe--_", + "_rev" : "_e9TR6QC---", "travelTime" : 1 }, { - "_key" : "62752", - "_id" : "connections/62752", + "_key" : "62753", + "_id" : "connections/62753", "_from" : "places/Glasgow", "_to" : "places/Edinburgh", - "_rev" : "_e4zwgoe--A", + "_rev" : "_e9TR6QC--_", "travelTime" : 1 }, { - "_key" : "62754", - "_id" : "connections/62754", + "_key" : "62755", + "_id" : "connections/62755", "_from" : "places/Edinburgh", "_to" : "places/York", - "_rev" : "_e4zwgoe--B", + "_rev" : "_e9TR6QG---", "travelTime" : 3.5 }, { - "_key" : "62756", - "_id" : "connections/62756", + "_key" : "62757", + "_id" : "connections/62757", "_from" : "places/York", "_to" : "places/Edinburgh", - "_rev" : "_e4zwgoe--C", + "_rev" : "_e9TR6QG--_", "travelTime" : 4 }, { - "_key" : "62758", - "_id" : "connections/62758", + "_key" : "62759", + "_id" : "connections/62759", "_from" : "places/Glasgow", "_to" : "places/Carlisle", - "_rev" : "_e4zwgoe--D", + "_rev" : "_e9TR6QK---", "travelTime" : 1 }, { - "_key" : "62760", - "_id" : "connections/62760", + "_key" : "62761", + "_id" : "connections/62761", "_from" : "places/Carlisle", "_to" : "places/Glasgow", - "_rev" : "_e4zwgoe--E", + "_rev" : "_e9TR6QK--_", "travelTime" : 1 }, { - "_key" : "62762", - "_id" : "connections/62762", + "_key" : "62763", + "_id" : "connections/62763", "_from" : "places/Carlisle", "_to" : "places/York", - "_rev" : "_e4zwgoe--F", + "_rev" : "_e9TR6QO---", "travelTime" : 2.5 }, { - "_key" : "62764", - "_id" : "connections/62764", + "_key" : "62765", + "_id" : "connections/62765", "_from" : "places/York", "_to" : "places/Carlisle", - "_rev" : "_e4zwgoe--G", + "_rev" : "_e9TR6QO--_", "travelTime" : 3.5 }, { - "_key" : "62766", - "_id" : "connections/62766", + "_key" : "62767", + "_id" : "connections/62767", "_from" : "places/Carlisle", "_to" : "places/Birmingham", - "_rev" : "_e4zwgoe--H", + "_rev" : "_e9TR6QO--A", "travelTime" : 2 }, { - "_key" : "62768", - "_id" : "connections/62768", + "_key" : "62769", + "_id" : "connections/62769", "_from" : "places/Birmingham", "_to" : "places/Carlisle", - "_rev" : "_e4zwgoe--I", + "_rev" : "_e9TR6QS---", "travelTime" : 1 }, { - "_key" : "62770", - "_id" : "connections/62770", + "_key" : "62771", + "_id" : "connections/62771", "_from" : "places/Birmingham", "_to" : "places/London", - "_rev" : "_e4zwgoi---", + "_rev" : "_e9TR6QS--_", "travelTime" : 1.5 }, { - "_key" : "62772", - "_id" : "connections/62772", + "_key" : "62773", + "_id" : "connections/62773", "_from" : "places/London", "_to" : "places/Birmingham", - "_rev" : "_e4zwgoi--_", + "_rev" : "_e9TR6QW---", "travelTime" : 2.5 }, { - "_key" : "62774", - "_id" : "connections/62774", + "_key" : "62775", + "_id" : "connections/62775", "_from" : "places/Leuchars", "_to" : "places/StAndrews", - "_rev" : "_e4zwgoi--A", + "_rev" : "_e9TR6QW--_", "travelTime" : 0.2 }, { - "_key" : "62776", - "_id" : "connections/62776", + "_key" : "62777", + "_id" : "connections/62777", "_from" : "places/StAndrews", "_to" : "places/Leuchars", - "_rev" : "_e4zwgoi--B", + "_rev" : "_e9TR6Qa---", "travelTime" : 0.2 }, { - "_key" : "62778", - "_id" : "connections/62778", + "_key" : "62779", + "_id" : "connections/62779", "_from" : "places/York", "_to" : "places/London", - "_rev" : "_e4zwgoi--C", + "_rev" : "_e9TR6Qa--_", "travelTime" : 1.8 }, { - "_key" : "62780", - "_id" : "connections/62780", + "_key" : "62781", + "_id" : "connections/62781", "_from" : "places/London", "_to" : "places/York", - "_rev" : "_e4zwgoi--D", + "_rev" : "_e9TR6Qe---", "travelTime" : 2 }, { - "_key" : "62782", - "_id" : "connections/62782", + "_key" : "62783", + "_id" : "connections/62783", "_from" : "places/London", "_to" : "places/Brussels", - "_rev" : "_e4zwgoi--E", + "_rev" : "_e9TR6Qe--_", "travelTime" : 2.5 }, { - "_key" : "62784", - "_id" : "connections/62784", + "_key" : "62785", + "_id" : "connections/62785", "_from" : "places/Brussels", "_to" : "places/London", - "_rev" : "_e4zwgoi--F", + "_rev" : "_e9TR6Qe--A", "travelTime" : 3.5 }, { - "_key" : "62786", - "_id" : "connections/62786", + "_key" : "62787", + "_id" : "connections/62787", "_from" : "places/Brussels", "_to" : "places/Cologne", - "_rev" : "_e4zwgoi--G", + "_rev" : "_e9TR6Qi---", "travelTime" : 2 }, { - "_key" : "62788", - "_id" : "connections/62788", + "_key" : "62789", + "_id" : "connections/62789", "_from" : "places/Cologne", "_to" : "places/Brussels", - "_rev" : "_e4zwgoi--H", + "_rev" : "_e9TR6Qi--_", "travelTime" : 1.5 }, { - "_key" : "62790", - "_id" : "connections/62790", + "_key" : "62791", + "_id" : "connections/62791", "_from" : "places/Toronto", "_to" : "places/Winnipeg", - "_rev" : "_e4zwgoi--I", + "_rev" : "_e9TR6Qm---", "travelTime" : 36 }, { - "_key" : "62792", - "_id" : "connections/62792", + "_key" : "62793", + "_id" : "connections/62793", "_from" : "places/Winnipeg", "_to" : "places/Toronto", - "_rev" : "_e4zwgom---", + "_rev" : "_e9TR6Qm--_", "travelTime" : 35 }, { - "_key" : "62794", - "_id" : "connections/62794", + "_key" : "62795", + "_id" : "connections/62795", "_from" : "places/Winnipeg", "_to" : "places/Saskatoon", - "_rev" : "_e4zwgom--_", + "_rev" : "_e9TR6Qq---", "travelTime" : 12 }, { - "_key" : "62796", - "_id" : "connections/62796", + "_key" : "62797", + "_id" : "connections/62797", "_from" : "places/Saskatoon", "_to" : "places/Winnipeg", - "_rev" : "_e4zwgom--A", + "_rev" : "_e9TR6Qq--_", "travelTime" : 5 }, { - "_key" : "62798", - "_id" : "connections/62798", + "_key" : "62799", + "_id" : "connections/62799", "_from" : "places/Saskatoon", "_to" : "places/Edmonton", - "_rev" : "_e4zwgom--B", + "_rev" : "_e9TR6Qu---", "travelTime" : 12 }, { - "_key" : "62800", - "_id" : "connections/62800", + "_key" : "62801", + "_id" : "connections/62801", "_from" : "places/Edmonton", "_to" : "places/Saskatoon", - "_rev" : "_e4zwgom--C", + "_rev" : "_e9TR6Qu--_", "travelTime" : 17 }, { - "_key" : "62802", - "_id" : "connections/62802", + "_key" : "62803", + "_id" : "connections/62803", "_from" : "places/Edmonton", "_to" : "places/Jasper", - "_rev" : "_e4zwgom--D", + "_rev" : "_e9TR6Qu--A", "travelTime" : 6 }, { - "_key" : "62804", - "_id" : "connections/62804", + "_key" : "62805", + "_id" : "connections/62805", "_from" : "places/Jasper", "_to" : "places/Edmonton", - "_rev" : "_e4zwgom--E", + "_rev" : "_e9TR6Qy---", "travelTime" : 5 }, { - "_key" : "62806", - "_id" : "connections/62806", + "_key" : "62807", + "_id" : "connections/62807", "_from" : "places/Jasper", "_to" : "places/Vancouver", - "_rev" : "_e4zwgom--F", + "_rev" : "_e9TR6Qy--_", "travelTime" : 12 }, { - "_key" : "62808", - "_id" : "connections/62808", + "_key" : "62809", + "_id" : "connections/62809", "_from" : "places/Vancouver", "_to" : "places/Jasper", - "_rev" : "_e4zwgom--G", + "_rev" : "_e9TR6Q2---", "travelTime" : 13 } ] diff --git a/3.11/generated/Examples/GRAPHKSP_01_create_graph.generated b/3.11/generated/Examples/GRAPHKSP_01_create_graph.generated index 9171438fc4..420384f3d7 100644 --- a/3.11/generated/Examples/GRAPHKSP_01_create_graph.generated +++ b/3.11/generated/Examples/GRAPHKSP_01_create_graph.generated @@ -5,400 +5,400 @@ arangosh> db.places.toArray(); { "_key" : "Inverness", "_id" : "places/Inverness", - "_rev" : "_e4zwgqa---", + "_rev" : "_e9TR6Y2---", "label" : "Inverness" }, { "_key" : "Aberdeen", "_id" : "places/Aberdeen", - "_rev" : "_e4zwgqa--_", + "_rev" : "_e9TR6Y2--_", "label" : "Aberdeen" }, { "_key" : "Leuchars", "_id" : "places/Leuchars", - "_rev" : "_e4zwgqa--A", + "_rev" : "_e9TR6Y6---", "label" : "Leuchars" }, { "_key" : "StAndrews", "_id" : "places/StAndrews", - "_rev" : "_e4zwgqa--B", + "_rev" : "_e9TR6Z----", "label" : "StAndrews" }, { "_key" : "Edinburgh", "_id" : "places/Edinburgh", - "_rev" : "_e4zwgqa--C", + "_rev" : "_e9TR6Z---_", "label" : "Edinburgh" }, { "_key" : "Glasgow", "_id" : "places/Glasgow", - "_rev" : "_e4zwgqa--D", + "_rev" : "_e9TR6ZC---", "label" : "Glasgow" }, { "_key" : "York", "_id" : "places/York", - "_rev" : "_e4zwgqa--E", + "_rev" : "_e9TR6ZC--_", "label" : "York" }, { "_key" : "Carlisle", "_id" : "places/Carlisle", - "_rev" : "_e4zwgqa--F", + "_rev" : "_e9TR6ZG---", "label" : "Carlisle" }, { "_key" : "Birmingham", "_id" : "places/Birmingham", - "_rev" : "_e4zwgqa--G", + "_rev" : "_e9TR6ZG--_", "label" : "Birmingham" }, { "_key" : "London", "_id" : "places/London", - "_rev" : "_e4zwgqa--H", + "_rev" : "_e9TR6ZK---", "label" : "London" }, { "_key" : "Brussels", "_id" : "places/Brussels", - "_rev" : "_e4zwgqa--I", + "_rev" : "_e9TR6ZK--_", "label" : "Brussels" }, { "_key" : "Cologne", "_id" : "places/Cologne", - "_rev" : "_e4zwgqe---", + "_rev" : "_e9TR6ZO---", "label" : "Cologne" }, { "_key" : "Toronto", "_id" : "places/Toronto", - "_rev" : "_e4zwgqe--_", + "_rev" : "_e9TR6ZO--_", "label" : "Toronto" }, { "_key" : "Winnipeg", "_id" : "places/Winnipeg", - "_rev" : "_e4zwgqe--A", + "_rev" : "_e9TR6ZS---", "label" : "Winnipeg" }, { "_key" : "Saskatoon", "_id" : "places/Saskatoon", - "_rev" : "_e4zwgqe--B", + "_rev" : "_e9TR6ZS--_", "label" : "Saskatoon" }, { "_key" : "Edmonton", "_id" : "places/Edmonton", - "_rev" : "_e4zwgqe--C", + "_rev" : "_e9TR6ZS--A", "label" : "Edmonton" }, { "_key" : "Jasper", "_id" : "places/Jasper", - "_rev" : "_e4zwgqe--D", + "_rev" : "_e9TR6ZW---", "label" : "Jasper" }, { "_key" : "Vancouver", "_id" : "places/Vancouver", - "_rev" : "_e4zwgqe--E", + "_rev" : "_e9TR6ZW--_", "label" : "Vancouver" } ] arangosh> db.connections.toArray(); [ { - "_key" : "63128", - "_id" : "connections/63128", + "_key" : "63129", + "_id" : "connections/63129", "_from" : "places/Inverness", "_to" : "places/Aberdeen", - "_rev" : "_e4zwgqe--F", + "_rev" : "_e9TR6Za---", "travelTime" : 3 }, { - "_key" : "63130", - "_id" : "connections/63130", + "_key" : "63131", + "_id" : "connections/63131", "_from" : "places/Aberdeen", "_to" : "places/Inverness", - "_rev" : "_e4zwgqe--G", + "_rev" : "_e9TR6Za--_", "travelTime" : 2.5 }, { - "_key" : "63132", - "_id" : "connections/63132", + "_key" : "63133", + "_id" : "connections/63133", "_from" : "places/Aberdeen", "_to" : "places/Leuchars", - "_rev" : "_e4zwgqe--H", + "_rev" : "_e9TR6Ze---", "travelTime" : 1.5 }, { - "_key" : "63134", - "_id" : "connections/63134", + "_key" : "63135", + "_id" : "connections/63135", "_from" : "places/Leuchars", "_to" : "places/Aberdeen", - "_rev" : "_e4zwgqe--I", + "_rev" : "_e9TR6Ze--_", "travelTime" : 1 }, { - "_key" : "63136", - "_id" : "connections/63136", + "_key" : "63137", + "_id" : "connections/63137", "_from" : "places/Leuchars", "_to" : "places/Edinburgh", - "_rev" : "_e4zwgqi---", + "_rev" : "_e9TR6Zi---", "travelTime" : 1.5 }, { - "_key" : "63138", - "_id" : "connections/63138", + "_key" : "63139", + "_id" : "connections/63139", "_from" : "places/Edinburgh", "_to" : "places/Leuchars", - "_rev" : "_e4zwgqi--_", + "_rev" : "_e9TR6Zi--_", "travelTime" : 3 }, { - "_key" : "63140", - "_id" : "connections/63140", + "_key" : "63141", + "_id" : "connections/63141", "_from" : "places/Edinburgh", "_to" : "places/Glasgow", - "_rev" : "_e4zwgqi--A", + "_rev" : "_e9TR6Zm---", "travelTime" : 1 }, { - "_key" : "63142", - "_id" : "connections/63142", + "_key" : "63143", + "_id" : "connections/63143", "_from" : "places/Glasgow", "_to" : "places/Edinburgh", - "_rev" : "_e4zwgqi--B", + "_rev" : "_e9TR6Zm--_", "travelTime" : 1 }, { - "_key" : "63144", - "_id" : "connections/63144", + "_key" : "63145", + "_id" : "connections/63145", "_from" : "places/Edinburgh", "_to" : "places/York", - "_rev" : "_e4zwgqi--C", + "_rev" : "_e9TR6Zq---", "travelTime" : 3.5 }, { - "_key" : "63146", - "_id" : "connections/63146", + "_key" : "63147", + "_id" : "connections/63147", "_from" : "places/York", "_to" : "places/Edinburgh", - "_rev" : "_e4zwgqi--D", + "_rev" : "_e9TR6Zq--_", "travelTime" : 4 }, { - "_key" : "63148", - "_id" : "connections/63148", + "_key" : "63149", + "_id" : "connections/63149", "_from" : "places/Glasgow", "_to" : "places/Carlisle", - "_rev" : "_e4zwgqi--E", + "_rev" : "_e9TR6Zu---", "travelTime" : 1 }, { - "_key" : "63150", - "_id" : "connections/63150", + "_key" : "63151", + "_id" : "connections/63151", "_from" : "places/Carlisle", "_to" : "places/Glasgow", - "_rev" : "_e4zwgqi--F", + "_rev" : "_e9TR6Zu--_", "travelTime" : 1 }, { - "_key" : "63152", - "_id" : "connections/63152", + "_key" : "63153", + "_id" : "connections/63153", "_from" : "places/Carlisle", "_to" : "places/York", - "_rev" : "_e4zwgqi--G", + "_rev" : "_e9TR6Zy---", "travelTime" : 2.5 }, { - "_key" : "63154", - "_id" : "connections/63154", + "_key" : "63155", + "_id" : "connections/63155", "_from" : "places/York", "_to" : "places/Carlisle", - "_rev" : "_e4zwgqi--H", + "_rev" : "_e9TR6Zy--_", "travelTime" : 3.5 }, { - "_key" : "63156", - "_id" : "connections/63156", + "_key" : "63157", + "_id" : "connections/63157", "_from" : "places/Carlisle", "_to" : "places/Birmingham", - "_rev" : "_e4zwgqi--I", + "_rev" : "_e9TR6Z2---", "travelTime" : 2 }, { - "_key" : "63158", - "_id" : "connections/63158", + "_key" : "63159", + "_id" : "connections/63159", "_from" : "places/Birmingham", "_to" : "places/Carlisle", - "_rev" : "_e4zwgqm---", + "_rev" : "_e9TR6Z2--_", "travelTime" : 1 }, { - "_key" : "63160", - "_id" : "connections/63160", + "_key" : "63161", + "_id" : "connections/63161", "_from" : "places/Birmingham", "_to" : "places/London", - "_rev" : "_e4zwgqm--_", + "_rev" : "_e9TR6Z6---", "travelTime" : 1.5 }, { - "_key" : "63162", - "_id" : "connections/63162", + "_key" : "63163", + "_id" : "connections/63163", "_from" : "places/London", "_to" : "places/Birmingham", - "_rev" : "_e4zwgqm--A", + "_rev" : "_e9TR6Z6--_", "travelTime" : 2.5 }, { - "_key" : "63164", - "_id" : "connections/63164", + "_key" : "63165", + "_id" : "connections/63165", "_from" : "places/Leuchars", "_to" : "places/StAndrews", - "_rev" : "_e4zwgqm--B", + "_rev" : "_e9TR6a----", "travelTime" : 0.2 }, { - "_key" : "63166", - "_id" : "connections/63166", + "_key" : "63167", + "_id" : "connections/63167", "_from" : "places/StAndrews", "_to" : "places/Leuchars", - "_rev" : "_e4zwgqm--C", + "_rev" : "_e9TR6a---_", "travelTime" : 0.2 }, { - "_key" : "63168", - "_id" : "connections/63168", + "_key" : "63169", + "_id" : "connections/63169", "_from" : "places/York", "_to" : "places/London", - "_rev" : "_e4zwgqm--D", + "_rev" : "_e9TR6aC---", "travelTime" : 1.8 }, { - "_key" : "63170", - "_id" : "connections/63170", + "_key" : "63171", + "_id" : "connections/63171", "_from" : "places/London", "_to" : "places/York", - "_rev" : "_e4zwgqm--E", + "_rev" : "_e9TR6aC--_", "travelTime" : 2 }, { - "_key" : "63172", - "_id" : "connections/63172", + "_key" : "63173", + "_id" : "connections/63173", "_from" : "places/London", "_to" : "places/Brussels", - "_rev" : "_e4zwgqm--F", + "_rev" : "_e9TR6aG---", "travelTime" : 2.5 }, { - "_key" : "63174", - "_id" : "connections/63174", + "_key" : "63175", + "_id" : "connections/63175", "_from" : "places/Brussels", "_to" : "places/London", - "_rev" : "_e4zwgqm--G", + "_rev" : "_e9TR6aG--_", "travelTime" : 3.5 }, { - "_key" : "63176", - "_id" : "connections/63176", + "_key" : "63177", + "_id" : "connections/63177", "_from" : "places/Brussels", "_to" : "places/Cologne", - "_rev" : "_e4zwgqm--H", + "_rev" : "_e9TR6aK---", "travelTime" : 2 }, { - "_key" : "63178", - "_id" : "connections/63178", + "_key" : "63179", + "_id" : "connections/63179", "_from" : "places/Cologne", "_to" : "places/Brussels", - "_rev" : "_e4zwgqq---", + "_rev" : "_e9TR6aK--_", "travelTime" : 1.5 }, { - "_key" : "63180", - "_id" : "connections/63180", + "_key" : "63181", + "_id" : "connections/63181", "_from" : "places/Toronto", "_to" : "places/Winnipeg", - "_rev" : "_e4zwgqq--_", + "_rev" : "_e9TR6aK--A", "travelTime" : 36 }, { - "_key" : "63182", - "_id" : "connections/63182", + "_key" : "63183", + "_id" : "connections/63183", "_from" : "places/Winnipeg", "_to" : "places/Toronto", - "_rev" : "_e4zwgqq--A", + "_rev" : "_e9TR6aO---", "travelTime" : 35 }, { - "_key" : "63184", - "_id" : "connections/63184", + "_key" : "63185", + "_id" : "connections/63185", "_from" : "places/Winnipeg", "_to" : "places/Saskatoon", - "_rev" : "_e4zwgqq--B", + "_rev" : "_e9TR6aO--_", "travelTime" : 12 }, { - "_key" : "63186", - "_id" : "connections/63186", + "_key" : "63187", + "_id" : "connections/63187", "_from" : "places/Saskatoon", "_to" : "places/Winnipeg", - "_rev" : "_e4zwgqq--C", + "_rev" : "_e9TR6aS---", "travelTime" : 5 }, { - "_key" : "63188", - "_id" : "connections/63188", + "_key" : "63189", + "_id" : "connections/63189", "_from" : "places/Saskatoon", "_to" : "places/Edmonton", - "_rev" : "_e4zwgqq--D", + "_rev" : "_e9TR6aS--_", "travelTime" : 12 }, { - "_key" : "63190", - "_id" : "connections/63190", + "_key" : "63191", + "_id" : "connections/63191", "_from" : "places/Edmonton", "_to" : "places/Saskatoon", - "_rev" : "_e4zwgqq--E", + "_rev" : "_e9TR6aW---", "travelTime" : 17 }, { - "_key" : "63192", - "_id" : "connections/63192", + "_key" : "63193", + "_id" : "connections/63193", "_from" : "places/Edmonton", "_to" : "places/Jasper", - "_rev" : "_e4zwgqq--F", + "_rev" : "_e9TR6aW--_", "travelTime" : 6 }, { - "_key" : "63194", - "_id" : "connections/63194", + "_key" : "63195", + "_id" : "connections/63195", "_from" : "places/Jasper", "_to" : "places/Edmonton", - "_rev" : "_e4zwgqq--G", + "_rev" : "_e9TR6aW--A", "travelTime" : 5 }, { - "_key" : "63196", - "_id" : "connections/63196", + "_key" : "63197", + "_id" : "connections/63197", "_from" : "places/Jasper", "_to" : "places/Vancouver", - "_rev" : "_e4zwgqq--H", + "_rev" : "_e9TR6aa---", "travelTime" : 12 }, { - "_key" : "63198", - "_id" : "connections/63198", + "_key" : "63199", + "_id" : "connections/63199", "_from" : "places/Vancouver", "_to" : "places/Jasper", - "_rev" : "_e4zwgqq--I", + "_rev" : "_e9TR6aa--_", "travelTime" : 13 } ] diff --git a/3.11/generated/Examples/GRAPHSP_01_create_graph.generated b/3.11/generated/Examples/GRAPHSP_01_create_graph.generated index 0470f7b594..2b2feccab9 100644 --- a/3.11/generated/Examples/GRAPHSP_01_create_graph.generated +++ b/3.11/generated/Examples/GRAPHSP_01_create_graph.generated @@ -5,168 +5,168 @@ arangosh> db.circles.toArray(); { "_key" : "A", "_id" : "circles/A", - "_rev" : "_e4zwgty---", + "_rev" : "_e9TR6n6---", "label" : "1" }, { "_key" : "B", "_id" : "circles/B", - "_rev" : "_e4zwgty--_", + "_rev" : "_e9TR6o----", "label" : "2" }, { "_key" : "C", "_id" : "circles/C", - "_rev" : "_e4zwgty--A", + "_rev" : "_e9TR6o---_", "label" : "3" }, { "_key" : "D", "_id" : "circles/D", - "_rev" : "_e4zwgty--B", + "_rev" : "_e9TR6oC---", "label" : "4" }, { "_key" : "E", "_id" : "circles/E", - "_rev" : "_e4zwgty--C", + "_rev" : "_e9TR6oG---", "label" : "5" }, { "_key" : "F", "_id" : "circles/F", - "_rev" : "_e4zwgty--D", + "_rev" : "_e9TR6oG--_", "label" : "6" }, { "_key" : "G", "_id" : "circles/G", - "_rev" : "_e4zwgty--E", + "_rev" : "_e9TR6oK---", "label" : "7" }, { "_key" : "H", "_id" : "circles/H", - "_rev" : "_e4zwgty--F", + "_rev" : "_e9TR6oK--_", "label" : "8" }, { "_key" : "I", "_id" : "circles/I", - "_rev" : "_e4zwgty--G", + "_rev" : "_e9TR6oO---", "label" : "9" }, { "_key" : "J", "_id" : "circles/J", - "_rev" : "_e4zwgty--H", + "_rev" : "_e9TR6oO--_", "label" : "10" }, { "_key" : "K", "_id" : "circles/K", - "_rev" : "_e4zwgt2---", + "_rev" : "_e9TR6oO--A", "label" : "11" } ] arangosh> db.edges.toArray(); [ { - "_key" : "63769", - "_id" : "edges/63769", + "_key" : "63770", + "_id" : "edges/63770", "_from" : "circles/A", "_to" : "circles/B", - "_rev" : "_e4zwgt2--_", + "_rev" : "_e9TR6oS---", "theFalse" : false, "theTruth" : true, "label" : "left_bar" }, { - "_key" : "63771", - "_id" : "edges/63771", + "_key" : "63772", + "_id" : "edges/63772", "_from" : "circles/B", "_to" : "circles/C", - "_rev" : "_e4zwgt2--A", + "_rev" : "_e9TR6oW---", "theFalse" : false, "theTruth" : true, "label" : "left_blarg" }, { - "_key" : "63773", - "_id" : "edges/63773", + "_key" : "63774", + "_id" : "edges/63774", "_from" : "circles/C", "_to" : "circles/D", - "_rev" : "_e4zwgt2--B", + "_rev" : "_e9TR6oW--_", "theFalse" : false, "theTruth" : true, "label" : "left_blorg" }, { - "_key" : "63775", - "_id" : "edges/63775", + "_key" : "63776", + "_id" : "edges/63776", "_from" : "circles/B", "_to" : "circles/E", - "_rev" : "_e4zwgt2--C", + "_rev" : "_e9TR6oW--A", "theFalse" : false, "theTruth" : true, "label" : "left_blub" }, { - "_key" : "63777", - "_id" : "edges/63777", + "_key" : "63778", + "_id" : "edges/63778", "_from" : "circles/E", "_to" : "circles/F", - "_rev" : "_e4zwgt2--D", + "_rev" : "_e9TR6oa---", "theFalse" : false, "theTruth" : true, "label" : "left_schubi" }, { - "_key" : "63779", - "_id" : "edges/63779", + "_key" : "63780", + "_id" : "edges/63780", "_from" : "circles/A", "_to" : "circles/G", - "_rev" : "_e4zwgt2--E", + "_rev" : "_e9TR6oa--_", "theFalse" : false, "theTruth" : true, "label" : "right_foo" }, { - "_key" : "63781", - "_id" : "edges/63781", + "_key" : "63782", + "_id" : "edges/63782", "_from" : "circles/G", "_to" : "circles/H", - "_rev" : "_e4zwgt2--F", + "_rev" : "_e9TR6oe---", "theFalse" : false, "theTruth" : true, "label" : "right_blob" }, { - "_key" : "63783", - "_id" : "edges/63783", + "_key" : "63784", + "_id" : "edges/63784", "_from" : "circles/H", "_to" : "circles/I", - "_rev" : "_e4zwgt2--G", + "_rev" : "_e9TR6oi---", "theFalse" : false, "theTruth" : true, "label" : "right_blub" }, { - "_key" : "63785", - "_id" : "edges/63785", + "_key" : "63786", + "_id" : "edges/63786", "_from" : "circles/G", "_to" : "circles/J", - "_rev" : "_e4zwgt2--H", + "_rev" : "_e9TR6oi--_", "theFalse" : false, "theTruth" : true, "label" : "right_zip" }, { - "_key" : "63787", - "_id" : "edges/63787", + "_key" : "63788", + "_id" : "edges/63788", "_from" : "circles/J", "_to" : "circles/K", - "_rev" : "_e4zwgt6---", + "_rev" : "_e9TR6om---", "theFalse" : false, "theTruth" : true, "label" : "right_zup" diff --git a/3.11/generated/Examples/GRAPHSP_02_A_to_D.generated b/3.11/generated/Examples/GRAPHSP_02_A_to_D.generated index bae02d136f..cf96d50c72 100644 --- a/3.11/generated/Examples/GRAPHSP_02_A_to_D.generated +++ b/3.11/generated/Examples/GRAPHSP_02_A_to_D.generated @@ -6,15 +6,15 @@ arangosh> db._query("FOR v, e IN OUTBOUND SHOR ], [ "B", - "63769" + "63770" ], [ "C", - "63771" + "63772" ], [ "D", - "63773" + "63774" ] ] [object ArangoQueryCursor, count: 4, cached: false, hasMore: false] @@ -26,15 +26,15 @@ arangosh> db._query("FOR v, e IN OUTBOUND SHOR ], [ "B", - "63769" + "63770" ], [ "C", - "63771" + "63772" ], [ "D", - "63773" + "63774" ] ] [object ArangoQueryCursor, count: 4, cached: false, hasMore: false] diff --git a/3.11/generated/Examples/GRAPHSP_03_A_to_D.generated b/3.11/generated/Examples/GRAPHSP_03_A_to_D.generated index 9c953ccb8c..c8948df6b6 100644 --- a/3.11/generated/Examples/GRAPHSP_03_A_to_D.generated +++ b/3.11/generated/Examples/GRAPHSP_03_A_to_D.generated @@ -6,15 +6,15 @@ arangosh> db._query("FOR a IN circles FILTER a ], [ "B", - "63769" + "63770" ], [ "C", - "63771" + "63772" ], [ "D", - "63773" + "63774" ] ] [object ArangoQueryCursor, count: 4, cached: false, hasMore: false] @@ -26,15 +26,15 @@ arangosh> db._query("FOR a IN circles FILTER a ], [ "B", - "63769" + "63770" ], [ "C", - "63771" + "63772" ], [ "D", - "63773" + "63774" ] ] [object ArangoQueryCursor, count: 4, cached: false, hasMore: false] diff --git a/3.11/generated/Examples/GRAPHTRAV_01_create_graph.generated b/3.11/generated/Examples/GRAPHTRAV_01_create_graph.generated index a4eb10229f..9737111f39 100644 --- a/3.11/generated/Examples/GRAPHTRAV_01_create_graph.generated +++ b/3.11/generated/Examples/GRAPHTRAV_01_create_graph.generated @@ -5,168 +5,168 @@ arangosh> db.circles.toArray(); { "_key" : "A", "_id" : "circles/A", - "_rev" : "_e4zwgvW---", + "_rev" : "_e9TR6rS---", "label" : "1" }, { "_key" : "B", "_id" : "circles/B", - "_rev" : "_e4zwgvW--_", + "_rev" : "_e9TR6rW---", "label" : "2" }, { "_key" : "C", "_id" : "circles/C", - "_rev" : "_e4zwgvW--A", + "_rev" : "_e9TR6ra---", "label" : "3" }, { "_key" : "D", "_id" : "circles/D", - "_rev" : "_e4zwgvW--C", + "_rev" : "_e9TR6re---", "label" : "4" }, { "_key" : "E", "_id" : "circles/E", - "_rev" : "_e4zwgvi---", + "_rev" : "_e9TR6ri---", "label" : "5" }, { "_key" : "F", "_id" : "circles/F", - "_rev" : "_e4zwgvi--_", + "_rev" : "_e9TR6rm---", "label" : "6" }, { "_key" : "G", "_id" : "circles/G", - "_rev" : "_e4zwgvi--A", + "_rev" : "_e9TR6rm--_", "label" : "7" }, { "_key" : "H", "_id" : "circles/H", - "_rev" : "_e4zwgvm---", + "_rev" : "_e9TR6rq---", "label" : "8" }, { "_key" : "I", "_id" : "circles/I", - "_rev" : "_e4zwgvm--_", + "_rev" : "_e9TR6ru---", "label" : "9" }, { "_key" : "J", "_id" : "circles/J", - "_rev" : "_e4zwgvm--A", + "_rev" : "_e9TR6ru--_", "label" : "10" }, { "_key" : "K", "_id" : "circles/K", - "_rev" : "_e4zwgvm--B", + "_rev" : "_e9TR6ry---", "label" : "11" } ] arangosh> db.edges.toArray(); [ { - "_key" : "63854", - "_id" : "edges/63854", + "_key" : "63855", + "_id" : "edges/63855", "_from" : "circles/A", "_to" : "circles/B", - "_rev" : "_e4zwgvm--C", + "_rev" : "_e9TR6r2---", "theFalse" : false, "theTruth" : true, "label" : "left_bar" }, { - "_key" : "63856", - "_id" : "edges/63856", + "_key" : "63857", + "_id" : "edges/63857", "_from" : "circles/B", "_to" : "circles/C", - "_rev" : "_e4zwgvm--D", + "_rev" : "_e9TR6r2--_", "theFalse" : false, "theTruth" : true, "label" : "left_blarg" }, { - "_key" : "63858", - "_id" : "edges/63858", + "_key" : "63859", + "_id" : "edges/63859", "_from" : "circles/C", "_to" : "circles/D", - "_rev" : "_e4zwgvm--E", + "_rev" : "_e9TR6r6---", "theFalse" : false, "theTruth" : true, "label" : "left_blorg" }, { - "_key" : "63860", - "_id" : "edges/63860", + "_key" : "63861", + "_id" : "edges/63861", "_from" : "circles/B", "_to" : "circles/E", - "_rev" : "_e4zwgvm--F", + "_rev" : "_e9TR6s----", "theFalse" : false, "theTruth" : true, "label" : "left_blub" }, { - "_key" : "63862", - "_id" : "edges/63862", + "_key" : "63863", + "_id" : "edges/63863", "_from" : "circles/E", "_to" : "circles/F", - "_rev" : "_e4zwgvm--G", + "_rev" : "_e9TR6s---_", "theFalse" : false, "theTruth" : true, "label" : "left_schubi" }, { - "_key" : "63864", - "_id" : "edges/63864", + "_key" : "63865", + "_id" : "edges/63865", "_from" : "circles/A", "_to" : "circles/G", - "_rev" : "_e4zwgvm--H", + "_rev" : "_e9TR6sC---", "theFalse" : false, "theTruth" : true, "label" : "right_foo" }, { - "_key" : "63866", - "_id" : "edges/63866", + "_key" : "63867", + "_id" : "edges/63867", "_from" : "circles/G", "_to" : "circles/H", - "_rev" : "_e4zwgvq---", + "_rev" : "_e9TR6sG---", "theFalse" : false, "theTruth" : true, "label" : "right_blob" }, { - "_key" : "63868", - "_id" : "edges/63868", + "_key" : "63869", + "_id" : "edges/63869", "_from" : "circles/H", "_to" : "circles/I", - "_rev" : "_e4zwgvq--_", + "_rev" : "_e9TR6sG--_", "theFalse" : false, "theTruth" : true, "label" : "right_blub" }, { - "_key" : "63870", - "_id" : "edges/63870", + "_key" : "63871", + "_id" : "edges/63871", "_from" : "circles/G", "_to" : "circles/J", - "_rev" : "_e4zwgvq--A", + "_rev" : "_e9TR6sK---", "theFalse" : false, "theTruth" : true, "label" : "right_zip" }, { - "_key" : "63872", - "_id" : "edges/63872", + "_key" : "63873", + "_id" : "edges/63873", "_from" : "circles/J", "_to" : "circles/K", - "_rev" : "_e4zwgvq--B", + "_rev" : "_e9TR6sO---", "theFalse" : false, "theTruth" : true, "label" : "right_zup" diff --git a/3.11/generated/Examples/HttpGharialAddEdge.generated b/3.11/generated/Examples/HttpGharialAddEdge.generated index 0d939c44ca..e45eb97211 100644 --- a/3.11/generated/Examples/HttpGharialAddEdge.generated +++ b/3.11/generated/Examples/HttpGharialAddEdge.generated @@ -10,7 +10,7 @@ HTTP/1.1 202 A content-type: application/json connection: Keep-Alive content-length: 94 -etag: _e4zwg6K--- +etag: _e9TR7b2--- server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -19,8 +19,8 @@ x-content-type-options: nosniff "error" : false, "code" : 202, "edge" : { - "_id" : "relation/65935", - "_key" : "65935", - "_rev" : "_e4zwg6K---" + "_id" : "relation/65936", + "_key" : "65936", + "_rev" : "_e9TR7b2---" } } diff --git a/3.11/generated/Examples/HttpGharialAddEdgeCol.generated b/3.11/generated/Examples/HttpGharialAddEdgeCol.generated index e44d809e41..ba424d56e5 100644 --- a/3.11/generated/Examples/HttpGharialAddEdgeCol.generated +++ b/3.11/generated/Examples/HttpGharialAddEdgeCol.generated @@ -15,7 +15,7 @@ HTTP/1.1 202 A content-type: application/json connection: Keep-Alive content-length: 294 -etag: _e4zwg6u--_ +etag: _e9TR7eC--- server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -49,7 +49,7 @@ x-content-type-options: nosniff } ], "orphanCollections" : [ ], - "_rev" : "_e4zwg6u--_", + "_rev" : "_e9TR7eC---", "_id" : "_graphs/social", "name" : "social" } diff --git a/3.11/generated/Examples/HttpGharialAddVertex.generated b/3.11/generated/Examples/HttpGharialAddVertex.generated index 34e6407cf3..3cba63427f 100644 --- a/3.11/generated/Examples/HttpGharialAddVertex.generated +++ b/3.11/generated/Examples/HttpGharialAddVertex.generated @@ -8,7 +8,7 @@ HTTP/1.1 202 A content-type: application/json connection: Keep-Alive content-length: 92 -etag: _e4zwg7S--- +etag: _e9TR7gO--_ server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -17,8 +17,8 @@ x-content-type-options: nosniff "error" : false, "code" : 202, "vertex" : { - "_id" : "male/66085", - "_key" : "66085", - "_rev" : "_e4zwg7S---" + "_id" : "male/66086", + "_key" : "66086", + "_rev" : "_e9TR7gO--_" } } diff --git a/3.11/generated/Examples/HttpGharialAddVertexCol.generated b/3.11/generated/Examples/HttpGharialAddVertexCol.generated index 0ab7b469b4..13b258f3b8 100644 --- a/3.11/generated/Examples/HttpGharialAddVertexCol.generated +++ b/3.11/generated/Examples/HttpGharialAddVertexCol.generated @@ -8,7 +8,7 @@ HTTP/1.1 202 A content-type: application/json connection: Keep-Alive content-length: 244 -etag: _e4zwg7q--A +etag: _e9TR7h6--_ server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -34,7 +34,7 @@ x-content-type-options: nosniff "orphanCollections" : [ "otherVertices" ], - "_rev" : "_e4zwg7q--A", + "_rev" : "_e9TR7h6--_", "_id" : "_graphs/social", "name" : "social" } diff --git a/3.11/generated/Examples/HttpGharialCreate.generated b/3.11/generated/Examples/HttpGharialCreate.generated index 1c7f17bf17..13623aa37b 100644 --- a/3.11/generated/Examples/HttpGharialCreate.generated +++ b/3.11/generated/Examples/HttpGharialCreate.generated @@ -19,7 +19,7 @@ HTTP/1.1 202 A content-type: application/json connection: Keep-Alive content-length: 227 -etag: _e4zwg8---_ +etag: _e9TR7jS--- server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -41,7 +41,7 @@ x-content-type-options: nosniff } ], "orphanCollections" : [ ], - "_rev" : "_e4zwg8---_", + "_rev" : "_e9TR7jS---", "_id" : "_graphs/myGraph", "name" : "myGraph" } diff --git a/3.11/generated/Examples/HttpGharialCreateDisjointSmart.generated b/3.11/generated/Examples/HttpGharialCreateDisjointSmart.generated index 72404b5500..89c87d6945 100644 --- a/3.11/generated/Examples/HttpGharialCreateDisjointSmart.generated +++ b/3.11/generated/Examples/HttpGharialCreateDisjointSmart.generated @@ -29,7 +29,7 @@ HTTP/1.1 202 A content-type: application/json connection: Keep-Alive content-length: 488 -etag: _e4zwg8O--A +etag: _e9TR7kS--_ server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -60,10 +60,10 @@ x-content-type-options: nosniff "orphanVertices" ], "initial" : "startVertices", - "initialCid" : 66234, + "initialCid" : 66235, "smartGraphAttribute" : "region", "isDisjoint" : true, - "_rev" : "_e4zwg8O--A", + "_rev" : "_e9TR7kS--_", "_id" : "_graphs/disjointSmartGraph", "name" : "disjointSmartGraph" } diff --git a/3.11/generated/Examples/HttpGharialCreateEnterprise.generated b/3.11/generated/Examples/HttpGharialCreateEnterprise.generated index 7cfd241ab3..c6b3e3dc1c 100644 --- a/3.11/generated/Examples/HttpGharialCreateEnterprise.generated +++ b/3.11/generated/Examples/HttpGharialCreateEnterprise.generated @@ -25,7 +25,7 @@ HTTP/1.1 202 A content-type: application/json connection: Keep-Alive content-length: 433 -etag: _e4zwg8i--_ +etag: _e9TR7mm--_ server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -54,9 +54,9 @@ x-content-type-options: nosniff ], "orphanCollections" : [ ], "initial" : "startVertices", - "initialCid" : 66289, + "initialCid" : 66290, "isDisjoint" : false, - "_rev" : "_e4zwg8i--_", + "_rev" : "_e9TR7mm--_", "_id" : "_graphs/enterpriseGraph", "name" : "enterpriseGraph" } diff --git a/3.11/generated/Examples/HttpGharialCreateSatellite.generated b/3.11/generated/Examples/HttpGharialCreateSatellite.generated index dcb76cb03d..32448322ce 100644 --- a/3.11/generated/Examples/HttpGharialCreateSatellite.generated +++ b/3.11/generated/Examples/HttpGharialCreateSatellite.generated @@ -23,7 +23,7 @@ HTTP/1.1 202 A content-type: application/json connection: Keep-Alive content-length: 379 -etag: _e4zwg82--A +etag: _e9TR7nu--_ server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -50,8 +50,8 @@ x-content-type-options: nosniff ], "orphanCollections" : [ ], "initial" : "startVertices", - "initialCid" : 66333, - "_rev" : "_e4zwg82--A", + "initialCid" : 66334, + "_rev" : "_e9TR7nu--_", "_id" : "_graphs/satelliteGraph", "name" : "satelliteGraph" } diff --git a/3.11/generated/Examples/HttpGharialCreateSmart.generated b/3.11/generated/Examples/HttpGharialCreateSmart.generated index 4ee89bbee2..769e261e35 100644 --- a/3.11/generated/Examples/HttpGharialCreateSmart.generated +++ b/3.11/generated/Examples/HttpGharialCreateSmart.generated @@ -28,7 +28,7 @@ HTTP/1.1 202 A content-type: application/json connection: Keep-Alive content-length: 465 -etag: _e4zwg9K--- +etag: _e9TR7o2--_ server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -59,10 +59,10 @@ x-content-type-options: nosniff "orphanVertices" ], "initial" : "startVertices", - "initialCid" : 66377, + "initialCid" : 66378, "smartGraphAttribute" : "region", "isDisjoint" : false, - "_rev" : "_e4zwg9K---", + "_rev" : "_e9TR7o2--_", "_id" : "_graphs/smartGraph", "name" : "smartGraph" } diff --git a/3.11/generated/Examples/HttpGharialCreateSmartWithSatellites.generated b/3.11/generated/Examples/HttpGharialCreateSmartWithSatellites.generated index ed6840f41d..b93568e4bb 100644 --- a/3.11/generated/Examples/HttpGharialCreateSmartWithSatellites.generated +++ b/3.11/generated/Examples/HttpGharialCreateSmartWithSatellites.generated @@ -31,7 +31,7 @@ HTTP/1.1 202 A content-type: application/json connection: Keep-Alive content-length: 465 -etag: _e4zwg9e--_ +etag: _e9TR7qC--_ server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -62,10 +62,10 @@ x-content-type-options: nosniff "orphanVertices" ], "initial" : "startVertices", - "initialCid" : 66432, + "initialCid" : 66433, "smartGraphAttribute" : "region", "isDisjoint" : false, - "_rev" : "_e4zwg9e--_", + "_rev" : "_e9TR7qC--_", "_id" : "_graphs/smartGraph", "name" : "smartGraph" } diff --git a/3.11/generated/Examples/HttpGharialDeleteEdge.generated b/3.11/generated/Examples/HttpGharialDeleteEdge.generated index fe58d36be6..191e2f977d 100644 --- a/3.11/generated/Examples/HttpGharialDeleteEdge.generated +++ b/3.11/generated/Examples/HttpGharialDeleteEdge.generated @@ -1,4 +1,4 @@ -shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/gharial/social/edge/relation/66517 +shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/gharial/social/edge/relation/66516 HTTP/1.1 202 Accepted content-type: application/json diff --git a/3.11/generated/Examples/HttpGharialEdgeDefinitionRemove.generated b/3.11/generated/Examples/HttpGharialEdgeDefinitionRemove.generated index 2e314552ff..d8e6d74dbb 100644 --- a/3.11/generated/Examples/HttpGharialEdgeDefinitionRemove.generated +++ b/3.11/generated/Examples/HttpGharialEdgeDefinitionRemove.generated @@ -4,7 +4,7 @@ HTTP/1.1 202 A content-type: application/json connection: Keep-Alive content-length: 171 -etag: _e4zwh_a--G +etag: _e9TR7xS--- server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -19,7 +19,7 @@ x-content-type-options: nosniff "female", "male" ], - "_rev" : "_e4zwh_a--G", + "_rev" : "_e9TR7xS---", "_id" : "_graphs/social", "name" : "social" } diff --git a/3.11/generated/Examples/HttpGharialGetEdge.generated b/3.11/generated/Examples/HttpGharialGetEdge.generated index ee045606f0..01c7aa1852 100644 --- a/3.11/generated/Examples/HttpGharialGetEdge.generated +++ b/3.11/generated/Examples/HttpGharialGetEdge.generated @@ -1,10 +1,10 @@ -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/gharial/social/edge/relation/66771 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/gharial/social/edge/relation/66770 HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive -content-length: 172 -etag: _e4zwh_y--D +content-length: 170 +etag: _e9TR7y2--- server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -13,12 +13,12 @@ x-content-type-options: nosniff "error" : false, "code" : 200, "edge" : { - "_key" : "66771", - "_id" : "relation/66771", - "_from" : "male/charly", - "_to" : "female/diana", - "_rev" : "_e4zwh_y--D", - "type" : "married", - "vertex" : "charly" + "_key" : "66770", + "_id" : "relation/66770", + "_from" : "female/alice", + "_to" : "male/charly", + "_rev" : "_e9TR7y2---", + "type" : "friend", + "vertex" : "alice" } } diff --git a/3.11/generated/Examples/HttpGharialGetGraph.generated b/3.11/generated/Examples/HttpGharialGetGraph.generated index a989c9701e..f56bf90fce 100644 --- a/3.11/generated/Examples/HttpGharialGetGraph.generated +++ b/3.11/generated/Examples/HttpGharialGetGraph.generated @@ -25,7 +25,7 @@ x-content-type-options: nosniff } ], "orphanCollections" : [ ], - "_rev" : "_e4zwhAC--_", + "_rev" : "_e9TR7z2--_", "_id" : "_graphs/myGraph", "name" : "myGraph" } diff --git a/3.11/generated/Examples/HttpGharialGetVertex.generated b/3.11/generated/Examples/HttpGharialGetVertex.generated index c9d3dfd8aa..ad65ccb403 100644 --- a/3.11/generated/Examples/HttpGharialGetVertex.generated +++ b/3.11/generated/Examples/HttpGharialGetVertex.generated @@ -4,7 +4,7 @@ HTTP/1.1 200 O content-type: application/json connection: Keep-Alive content-length: 109 -etag: _e4zwhAW--- +etag: _e9TR71q--- server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -15,7 +15,7 @@ x-content-type-options: nosniff "vertex" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zwhAW---", + "_rev" : "_e9TR71q---", "name" : "Alice" } } diff --git a/3.11/generated/Examples/HttpGharialList.generated b/3.11/generated/Examples/HttpGharialList.generated index 48d6b9a722..ad9154fbcb 100644 --- a/3.11/generated/Examples/HttpGharialList.generated +++ b/3.11/generated/Examples/HttpGharialList.generated @@ -15,7 +15,7 @@ x-content-type-options: nosniff { "_id" : "_graphs/social", "_key" : "social", - "_rev" : "_e4zwhAq--_", + "_rev" : "_e9TR722---", "edgeDefinitions" : [ { "collection" : "relation", @@ -35,7 +35,7 @@ x-content-type-options: nosniff { "_id" : "_graphs/routeplanner", "_key" : "routeplanner", - "_rev" : "_e4zwhAy--_", + "_rev" : "_e9TR73e--_", "edgeDefinitions" : [ { "collection" : "frenchHighway", diff --git a/3.11/generated/Examples/HttpGharialModifyVertex.generated b/3.11/generated/Examples/HttpGharialModifyVertex.generated index 9ce63a8361..69417308d0 100644 --- a/3.11/generated/Examples/HttpGharialModifyVertex.generated +++ b/3.11/generated/Examples/HttpGharialModifyVertex.generated @@ -8,7 +8,7 @@ HTTP/1.1 202 A content-type: application/json connection: Keep-Alive content-length: 118 -etag: _e4zwhCO--C +etag: _e9TR8-G--- server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -19,7 +19,7 @@ x-content-type-options: nosniff "vertex" : { "_id" : "female/alice", "_key" : "alice", - "_oldRev" : "_e4zwhCK--_", - "_rev" : "_e4zwhCO--C" + "_oldRev" : "_e9TR79y---", + "_rev" : "_e9TR8-G---" } } diff --git a/3.11/generated/Examples/HttpGharialPatchEdge.generated b/3.11/generated/Examples/HttpGharialPatchEdge.generated index e1858d0c46..1638dab725 100644 --- a/3.11/generated/Examples/HttpGharialPatchEdge.generated +++ b/3.11/generated/Examples/HttpGharialPatchEdge.generated @@ -1,4 +1,4 @@ -shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation/67284 <<EOF +shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation/67287 <<EOF { "since" : "01.01.2001" } @@ -8,7 +8,7 @@ HTTP/1.1 202 A content-type: application/json connection: Keep-Alive content-length: 118 -etag: _e4zwhCm--- +etag: _e9TR8A---- server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -17,9 +17,9 @@ x-content-type-options: nosniff "error" : false, "code" : 202, "edge" : { - "_id" : "relation/67284", - "_key" : "67284", - "_oldRev" : "_e4zwhCi--E", - "_rev" : "_e4zwhCm---" + "_id" : "relation/67287", + "_key" : "67287", + "_oldRev" : "_e9TR8_2---", + "_rev" : "_e9TR8A----" } } diff --git a/3.11/generated/Examples/HttpGharialPutEdge.generated b/3.11/generated/Examples/HttpGharialPutEdge.generated index 3e8af5e945..c591b51ed8 100644 --- a/3.11/generated/Examples/HttpGharialPutEdge.generated +++ b/3.11/generated/Examples/HttpGharialPutEdge.generated @@ -1,4 +1,4 @@ -shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation/67349 <<EOF +shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation/67344 <<EOF { "type" : "divorced", "_from" : "female/alice", @@ -10,7 +10,7 @@ HTTP/1.1 202 A content-type: application/json connection: Keep-Alive content-length: 118 -etag: _e4zwhD---- +etag: _e9TR8Bq--- server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -19,9 +19,9 @@ x-content-type-options: nosniff "error" : false, "code" : 202, "edge" : { - "_id" : "relation/67349", - "_key" : "67349", - "_oldRev" : "_e4zwhC6--F", - "_rev" : "_e4zwhD----" + "_id" : "relation/67344", + "_key" : "67344", + "_oldRev" : "_e9TR8Ba---", + "_rev" : "_e9TR8Bq---" } } diff --git a/3.11/generated/Examples/HttpGharialRemoveVertexCollection.generated b/3.11/generated/Examples/HttpGharialRemoveVertexCollection.generated index 67bbd06de1..22e7f84742 100644 --- a/3.11/generated/Examples/HttpGharialRemoveVertexCollection.generated +++ b/3.11/generated/Examples/HttpGharialRemoveVertexCollection.generated @@ -4,7 +4,7 @@ HTTP/1.1 202 A content-type: application/json connection: Keep-Alive content-length: 229 -etag: _e4zwhDW--_ +etag: _e9TR8De--- server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -28,7 +28,7 @@ x-content-type-options: nosniff } ], "orphanCollections" : [ ], - "_rev" : "_e4zwhDW--_", + "_rev" : "_e9TR8De---", "_id" : "_graphs/social", "name" : "social" } diff --git a/3.11/generated/Examples/HttpGharialReplaceEdgeCol.generated b/3.11/generated/Examples/HttpGharialReplaceEdgeCol.generated index fb4d36dc1e..159c6b6703 100644 --- a/3.11/generated/Examples/HttpGharialReplaceEdgeCol.generated +++ b/3.11/generated/Examples/HttpGharialReplaceEdgeCol.generated @@ -18,7 +18,7 @@ HTTP/1.1 202 A content-type: application/json connection: Keep-Alive content-length: 247 -etag: _e4zwhEG--D +etag: _e9TR8Gu--- server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -44,7 +44,7 @@ x-content-type-options: nosniff } ], "orphanCollections" : [ ], - "_rev" : "_e4zwhEG--D", + "_rev" : "_e9TR8Gu---", "_id" : "_graphs/social", "name" : "social" } diff --git a/3.11/generated/Examples/HttpGharialReplaceVertex.generated b/3.11/generated/Examples/HttpGharialReplaceVertex.generated index 36a53fc019..e7f081e718 100644 --- a/3.11/generated/Examples/HttpGharialReplaceVertex.generated +++ b/3.11/generated/Examples/HttpGharialReplaceVertex.generated @@ -9,7 +9,7 @@ HTTP/1.1 202 A content-type: application/json connection: Keep-Alive content-length: 118 -etag: _e4zwhEm--B +etag: _e9TR8Ie--_ server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -20,7 +20,7 @@ x-content-type-options: nosniff "vertex" : { "_id" : "female/alice", "_key" : "alice", - "_oldRev" : "_e4zwhEi---", - "_rev" : "_e4zwhEm--B" + "_oldRev" : "_e9TR8IK---", + "_rev" : "_e9TR8Ie--_" } } diff --git a/3.11/generated/Examples/IndexHandle.generated b/3.11/generated/Examples/IndexHandle.generated index 80278a1887..78509d1d81 100644 --- a/3.11/generated/Examples/IndexHandle.generated +++ b/3.11/generated/Examples/IndexHandle.generated @@ -7,9 +7,9 @@ arangosh> db.example.ensureIndex({ type: "a", "b" ], - "id" : "example/67644", + "id" : "example/67645", "isNewlyCreated" : true, - "name" : "idx_1745944375693672449", + "name" : "idx_1747208911854764032", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -20,7 +20,7 @@ arangosh> var indexInfo = db.example.getInd arangosh> indexInfo; [ "example/0", - "example/67644" + "example/67645" ] arangosh> db._index(indexInfo[0]) { @@ -44,8 +44,8 @@ arangosh> db._index(indexInfo[1]) "a", "b" ], - "id" : "example/67644", - "name" : "idx_1745944375693672449", + "id" : "example/67645", + "name" : "idx_1747208911854764032", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", diff --git a/3.11/generated/Examples/IndexVerify.generated b/3.11/generated/Examples/IndexVerify.generated index 3ec132313e..ede647d61f 100644 --- a/3.11/generated/Examples/IndexVerify.generated +++ b/3.11/generated/Examples/IndexVerify.generated @@ -8,9 +8,9 @@ arangosh> db.example.ensureIndex({ type: "a", "b" ], - "id" : "example/67658", + "id" : "example/67659", "isNewlyCreated" : true, - "name" : "idx_1745944375696818177", + "name" : "idx_1747208911870492672", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -29,7 +29,7 @@ Execution plan: Indexes used: By Name Type Collection Unique Sparse Cache Selectivity Fields Stored values Ranges - 6 idx_1745944375696818177 persistent example false false false 100.00 % [ `a`, `b` ] [ ] (doc.`a` < 23) + 6 idx_1747208911870492672 persistent example false false false 100.00 % [ `a`, `b` ] [ ] (doc.`a` < 23) Optimization rules applied: Id RuleName diff --git a/3.11/generated/Examples/QUERY_02_listQueries.generated b/3.11/generated/Examples/QUERY_02_listQueries.generated index c61e6762db..c76f0b40bb 100644 --- a/3.11/generated/Examples/QUERY_02_listQueries.generated +++ b/3.11/generated/Examples/QUERY_02_listQueries.generated @@ -8,7 +8,7 @@ arangosh> tasks.register({ { "id" : "mytask-1", "name" : "this is a sample task to spawn a slow aql query", - "created" : 1665062308.9828882, + "created" : 1666268264.6660645, "type" : "timed", "offset" : 0, "command" : "(function (params) { require('@arangodb').db._query('FOR sleepLoooong IN 1..5 LET sleepLoooonger = SLEEP(1000) RETURN sleepLoooong'); } )(params);", @@ -17,14 +17,14 @@ arangosh> tasks.register({ arangosh> queries.current(); [ { - "id" : "67666", + "id" : "67667", "database" : "_system", "user" : "root", "query" : "FOR sleepLoooong IN 1..5 LET sleepLoooonger = SLEEP(1000) RETURN sleepLoooong", "bindVars" : { }, - "started" : "2022-10-06T13:18:28Z", - "runTime" : 1.0174829560000944, + "started" : "2022-10-20T12:17:44Z", + "runTime" : 1.0396558719221503, "state" : "executing", "stream" : false } diff --git a/3.11/generated/Examples/RestAdminLicenseGet_cluster.generated b/3.11/generated/Examples/RestAdminLicenseGet_cluster.generated index 1fe5351986..34aecafad7 100644 --- a/3.11/generated/Examples/RestAdminLicenseGet_cluster.generated +++ b/3.11/generated/Examples/RestAdminLicenseGet_cluster.generated @@ -11,9 +11,9 @@ x-content-type-options: nosniff { "upgrading" : false, "features" : { - "expires" : 1665073164 + "expires" : 1666279137 }, - "license" : "JD4EOXdmclNdanJZUlQtBARPZ1gBfyBdWw5vTWQOCUh/CGkAKHJUQisVHn4ydQIK", + "license" : "JD4EOXdncgddbXxaU1QrUFVIZ1hVKntdWltlTGRSX057XGhUKFsHAnUVCn0ydQdZ", "version" : 1, "status" : "expiring" } diff --git a/3.11/generated/Examples/RestAdminMetrics.generated b/3.11/generated/Examples/RestAdminMetrics.generated index 26544782d3..51185b586e 100644 --- a/3.11/generated/Examples/RestAdminMetrics.generated +++ b/3.11/generated/Examples/RestAdminMetrics.generated @@ -3,7 +3,7 @@ HTTP/1.1 200 OK content-type: text/plain connection: Keep-Alive -content-length: 79793 +content-length: 79790 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -39,7 +39,7 @@ arangodb_aql_all_query_total{role="SINGLE"}447 arangodb_aql_current_query{role="SINGLE"}0 # HELP arangodb_aql_global_memory_limit Total memory limit for all AQL queries combined [bytes] # TYPE arangodb_aql_global_memory_limit gauge -arangodb_aql_global_memory_limit{role="SINGLE"}59647054233 +arangodb_aql_global_memory_limit{role="SINGLE"}54685393920 # HELP arangodb_aql_global_memory_usage Total memory usage of all AQL queries executing [bytes], granularity: 32768 bytes steps # TYPE arangodb_aql_global_memory_usage gauge arangodb_aql_global_memory_usage{role="SINGLE"}0 @@ -51,14 +51,14 @@ arangodb_aql_global_query_memory_limit_reached_total{role="SINGLE"}0 arangodb_aql_local_query_memory_limit_reached_total{role="SINGLE"}1 # HELP arangodb_aql_query_time Execution time histogram for all AQL queries [s] # TYPE arangodb_aql_query_time histogram -arangodb_aql_query_time_bucket{role="SINGLE",le="0.000095"}370 -arangodb_aql_query_time_bucket{role="SINGLE",le="0.000191"}408 -arangodb_aql_query_time_bucket{role="SINGLE",le="0.000381"}431 -arangodb_aql_query_time_bucket{role="SINGLE",le="0.000763"}443 -arangodb_aql_query_time_bucket{role="SINGLE",le="0.001526"}443 -arangodb_aql_query_time_bucket{role="SINGLE",le="0.003052"}444 +arangodb_aql_query_time_bucket{role="SINGLE",le="0.000095"}2 +arangodb_aql_query_time_bucket{role="SINGLE",le="0.000191"}117 +arangodb_aql_query_time_bucket{role="SINGLE",le="0.000381"}381 +arangodb_aql_query_time_bucket{role="SINGLE",le="0.000763"}419 +arangodb_aql_query_time_bucket{role="SINGLE",le="0.001526"}438 +arangodb_aql_query_time_bucket{role="SINGLE",le="0.003052"}442 arangodb_aql_query_time_bucket{role="SINGLE",le="0.006104"}444 -arangodb_aql_query_time_bucket{role="SINGLE",le="0.012207"}445 +arangodb_aql_query_time_bucket{role="SINGLE",le="0.012207"}444 arangodb_aql_query_time_bucket{role="SINGLE",le="0.024414"}445 arangodb_aql_query_time_bucket{role="SINGLE",le="0.048828"}445 arangodb_aql_query_time_bucket{role="SINGLE",le="0.097656"}445 @@ -72,7 +72,7 @@ arangodb_aql_query_time_bucket{role="SINGLE",le="12.500000"}447 arangodb_aql_query_time_bucket{role="SINGLE",le="25.000000"}447 arangodb_aql_query_time_bucket{role="SINGLE",le="+Inf"}447 arangodb_aql_query_time_count{role="SINGLE"}447 -arangodb_aql_query_time_sum{role="SINGLE"}1.835847 +arangodb_aql_query_time_sum{role="SINGLE"}1.975088 # HELP arangodb_aql_slow_query_time Execution time histogram for slow AQL queries [s] # TYPE arangodb_aql_slow_query_time histogram arangodb_aql_slow_query_time_bucket{role="SINGLE",le="4.904297"}1 @@ -86,19 +86,19 @@ arangodb_aql_slow_query_time_bucket{role="SINGLE",le="500.750000"}1 arangodb_aql_slow_query_time_bucket{role="SINGLE",le="1000.500000"}1 arangodb_aql_slow_query_time_bucket{role="SINGLE",le="+Inf"}1 arangodb_aql_slow_query_time_count{role="SINGLE"}1 -arangodb_aql_slow_query_time_sum{role="SINGLE"}1.023377 +arangodb_aql_slow_query_time_sum{role="SINGLE"}1.060072 # HELP arangodb_aql_total_query_time_msec_total Total execution time of all AQL queries [ms] # TYPE arangodb_aql_total_query_time_msec_total counter -arangodb_aql_total_query_time_msec_total{role="SINGLE"}1793 +arangodb_aql_total_query_time_msec_total{role="SINGLE"}1856 # HELP arangodb_collection_lock_acquisition_micros_total Total amount of collection lock acquisition time [μs] # TYPE arangodb_collection_lock_acquisition_micros_total counter -arangodb_collection_lock_acquisition_micros_total{role="SINGLE"}57 +arangodb_collection_lock_acquisition_micros_total{role="SINGLE"}49654 # HELP arangodb_collection_lock_acquisition_time Collection lock acquisition time histogram [s] # TYPE arangodb_collection_lock_acquisition_time histogram -arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="0.000000"}30 -arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="0.000001"}32522 -arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="0.000010"}32546 -arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="0.000100"}32547 +arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="0.000000"}0 +arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="0.000001"}1199 +arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="0.000010"}31358 +arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="0.000100"}32546 arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="0.001000"}32547 arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="0.010000"}32547 arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="0.100000"}32547 @@ -107,7 +107,7 @@ arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="10.000000"}32 arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="100.000000"}32547 arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="+Inf"}32547 arangodb_collection_lock_acquisition_time_count{role="SINGLE"}32547 -arangodb_collection_lock_acquisition_time_sum{role="SINGLE"}0.010056 +arangodb_collection_lock_acquisition_time_sum{role="SINGLE"}0.069880 # HELP arangodb_collection_lock_sequential_mode_total Number of transactions using sequential locking of collections to avoid deadlocking # TYPE arangodb_collection_lock_sequential_mode_total counter arangodb_collection_lock_sequential_mode_total{role="SINGLE"}0 @@ -179,11 +179,11 @@ arangodb_ioheartbeat_duration_bucket{role="SINGLE",le="1.000000"}0 arangodb_ioheartbeat_duration_bucket{role="SINGLE",le="10.000000"}0 arangodb_ioheartbeat_duration_bucket{role="SINGLE",le="100.000000"}0 arangodb_ioheartbeat_duration_bucket{role="SINGLE",le="1000.000000"}0 -arangodb_ioheartbeat_duration_bucket{role="SINGLE",le="10000.000000"}1 -arangodb_ioheartbeat_duration_bucket{role="SINGLE",le="100000.000000"}1 -arangodb_ioheartbeat_duration_bucket{role="SINGLE",le="+Inf"}1 -arangodb_ioheartbeat_duration_count{role="SINGLE"}1 -arangodb_ioheartbeat_duration_sum{role="SINGLE"}2252.000000 +arangodb_ioheartbeat_duration_bucket{role="SINGLE",le="10000.000000"}2 +arangodb_ioheartbeat_duration_bucket{role="SINGLE",le="100000.000000"}2 +arangodb_ioheartbeat_duration_bucket{role="SINGLE",le="+Inf"}2 +arangodb_ioheartbeat_duration_count{role="SINGLE"}2 +arangodb_ioheartbeat_duration_sum{role="SINGLE"}9481.000000 # HELP arangodb_ioheartbeat_failures_total Total number of failures in IO heartbeat # TYPE arangodb_ioheartbeat_failures_total counter arangodb_ioheartbeat_failures_total{role="SINGLE"}0 @@ -280,7 +280,7 @@ arangodb_pregel_workers_running_number{role="SINGLE"}0 arangodb_pregel_workers_storing_number{role="SINGLE"}0 # HELP arangodb_read_transactions_total Number of read transactions # TYPE arangodb_read_transactions_total counter -arangodb_read_transactions_total{role="SINGLE"}1318 +arangodb_read_transactions_total{role="SINGLE"}1319 # HELP arangodb_replication2_replicated_log_append_entries_rtt RTT for AppendEntries requests [us] # TYPE arangodb_replication2_replicated_log_append_entries_rtt histogram arangodb_replication2_replicated_log_append_entries_rtt_bucket{role="SINGLE",le="1000"}0 @@ -574,18 +574,18 @@ arangodb_replication_tailing_request_time_total{role="SINGLE"}0 arangodb_replication_tailing_requests_total{role="SINGLE"}0 # HELP arangodb_request_body_size_http1 Body size of HTTP/1.1 requests # TYPE arangodb_request_body_size_http1 histogram -arangodb_request_body_size_http1_bucket{role="SINGLE",le="191"}33416 -arangodb_request_body_size_http1_bucket{role="SINGLE",le="319"}33460 -arangodb_request_body_size_http1_bucket{role="SINGLE",le="575"}33469 -arangodb_request_body_size_http1_bucket{role="SINGLE",le="1087"}33469 -arangodb_request_body_size_http1_bucket{role="SINGLE",le="2110"}33469 -arangodb_request_body_size_http1_bucket{role="SINGLE",le="4156"}33469 -arangodb_request_body_size_http1_bucket{role="SINGLE",le="8248"}33469 -arangodb_request_body_size_http1_bucket{role="SINGLE",le="16432"}33469 -arangodb_request_body_size_http1_bucket{role="SINGLE",le="32800"}33469 -arangodb_request_body_size_http1_bucket{role="SINGLE",le="+Inf"}33469 -arangodb_request_body_size_http1_count{role="SINGLE"}33469 -arangodb_request_body_size_http1_sum{role="SINGLE"}478858 +arangodb_request_body_size_http1_bucket{role="SINGLE",le="191"}33418 +arangodb_request_body_size_http1_bucket{role="SINGLE",le="319"}33462 +arangodb_request_body_size_http1_bucket{role="SINGLE",le="575"}33471 +arangodb_request_body_size_http1_bucket{role="SINGLE",le="1087"}33471 +arangodb_request_body_size_http1_bucket{role="SINGLE",le="2110"}33471 +arangodb_request_body_size_http1_bucket{role="SINGLE",le="4156"}33471 +arangodb_request_body_size_http1_bucket{role="SINGLE",le="8248"}33471 +arangodb_request_body_size_http1_bucket{role="SINGLE",le="16432"}33471 +arangodb_request_body_size_http1_bucket{role="SINGLE",le="32800"}33471 +arangodb_request_body_size_http1_bucket{role="SINGLE",le="+Inf"}33471 +arangodb_request_body_size_http1_count{role="SINGLE"}33471 +arangodb_request_body_size_http1_sum{role="SINGLE"}478827 # HELP arangodb_request_body_size_http2 Body size of HTTP/2 requests # TYPE arangodb_request_body_size_http2 histogram arangodb_request_body_size_http2_bucket{role="SINGLE",le="191"}0 @@ -637,19 +637,19 @@ arangodb_rocksdb_write_stalls_total{role="SINGLE"}0 arangodb_rocksdb_write_stops_total{role="SINGLE"}0 # HELP arangodb_scheduler_handler_tasks_created_total Number of scheduler tasks created # TYPE arangodb_scheduler_handler_tasks_created_total counter -arangodb_scheduler_handler_tasks_created_total{role="SINGLE"}33469 +arangodb_scheduler_handler_tasks_created_total{role="SINGLE"}33471 # HELP arangodb_scheduler_high_prio_queue_length Current queue length of the high priority queue in the scheduler # TYPE arangodb_scheduler_high_prio_queue_length gauge arangodb_scheduler_high_prio_queue_length{role="SINGLE"}0 # HELP arangodb_scheduler_jobs_dequeued_total Total number of jobs dequeued # TYPE arangodb_scheduler_jobs_dequeued_total counter -arangodb_scheduler_jobs_dequeued_total{role="SINGLE"}33507 +arangodb_scheduler_jobs_dequeued_total{role="SINGLE"}33521 # HELP arangodb_scheduler_jobs_done_total Total number of queue jobs done # TYPE arangodb_scheduler_jobs_done_total counter -arangodb_scheduler_jobs_done_total{role="SINGLE"}33505 +arangodb_scheduler_jobs_done_total{role="SINGLE"}33519 # HELP arangodb_scheduler_jobs_submitted_total Total number of jobs submitted to the scheduler # TYPE arangodb_scheduler_jobs_submitted_total counter -arangodb_scheduler_jobs_submitted_total{role="SINGLE"}33507 +arangodb_scheduler_jobs_submitted_total{role="SINGLE"}33521 # HELP arangodb_scheduler_low_prio_queue_last_dequeue_time Last recorded dequeue time for a low priority queue item [ms] # TYPE arangodb_scheduler_low_prio_queue_last_dequeue_time gauge arangodb_scheduler_low_prio_queue_last_dequeue_time{role="SINGLE"}0 @@ -697,7 +697,7 @@ arangodb_search_num_out_of_sync_links{role="SINGLE"}0 arangodb_transactions_aborted_total{role="SINGLE"}255 # HELP arangodb_transactions_committed_total Number of transactions committed # TYPE arangodb_transactions_committed_total counter -arangodb_transactions_committed_total{role="SINGLE"}33515 +arangodb_transactions_committed_total{role="SINGLE"}33516 # HELP arangodb_transactions_expired_total Total number of expired transactions # TYPE arangodb_transactions_expired_total counter arangodb_transactions_expired_total{role="SINGLE"}0 @@ -706,10 +706,10 @@ arangodb_transactions_expired_total{role="SINGLE"}0 arangodb_transactions_started_total{role="SINGLE"}32547 # HELP arangodb_v8_context_created_total V8 contexts created # TYPE arangodb_v8_context_created_total counter -arangodb_v8_context_created_total{role="SINGLE"}2 +arangodb_v8_context_created_total{role="SINGLE"}1 # HELP arangodb_v8_context_creation_time_msec_total Total time for creating V8 contexts [ms] # TYPE arangodb_v8_context_creation_time_msec_total counter -arangodb_v8_context_creation_time_msec_total{role="SINGLE"}12 +arangodb_v8_context_creation_time_msec_total{role="SINGLE"}24 # HELP arangodb_v8_context_destroyed_total V8 contexts destroyed # TYPE arangodb_v8_context_destroyed_total counter arangodb_v8_context_destroyed_total{role="SINGLE"}0 @@ -718,10 +718,10 @@ arangodb_v8_context_destroyed_total{role="SINGLE"}0 arangodb_v8_context_enter_failures_total{role="SINGLE"}0 # HELP arangodb_v8_context_entered_total V8 context enter events # TYPE arangodb_v8_context_entered_total counter -arangodb_v8_context_entered_total{role="SINGLE"}16 +arangodb_v8_context_entered_total{role="SINGLE"}25 # HELP arangodb_v8_context_exited_total V8 context exit events # TYPE arangodb_v8_context_exited_total counter -arangodb_v8_context_exited_total{role="SINGLE"}16 +arangodb_v8_context_exited_total{role="SINGLE"}25 # HELP arangodb_vst_connections_total Total number of VST connections # TYPE arangodb_vst_connections_total counter arangodb_vst_connections_total{role="SINGLE"}0 @@ -736,52 +736,52 @@ rocksdb_prunable_wal_files{role="SINGLE"}0 rocksdb_wal_pruning_active{role="SINGLE"}0 # HELP rocksdb_wal_sequence_lower_bound RocksDB WAL sequence number until which background thread has caught up # TYPE rocksdb_wal_sequence_lower_bound gauge -rocksdb_wal_sequence_lower_bound{role="SINGLE"}170103 +rocksdb_wal_sequence_lower_bound{role="SINGLE"}175214 # HELP arangodb_process_statistics_minor_page_faults_total The number of minor faults the process has made which have not required loading a memory page from disk. This figure is not reported on Windows # TYPE arangodb_process_statistics_minor_page_faults_total counter -arangodb_process_statistics_minor_page_faults_total{}70521 +arangodb_process_statistics_minor_page_faults_total{}76871 # HELP arangodb_process_statistics_major_page_faults_total On Windows, this figure contains the total number of page faults. On other system, this figure contains the number of major faults the process has made which have required loading a memory page from disk # TYPE arangodb_process_statistics_major_page_faults_total counter arangodb_process_statistics_major_page_faults_total{}0 # HELP arangodb_process_statistics_user_time Amount of time that this process has been scheduled in user mode, measured in seconds # TYPE arangodb_process_statistics_user_time gauge -arangodb_process_statistics_user_time{}3.600000 +arangodb_process_statistics_user_time{}9.510000 # HELP arangodb_process_statistics_system_time Amount of time that this process has been scheduled in kernel mode, measured in seconds # TYPE arangodb_process_statistics_system_time gauge -arangodb_process_statistics_system_time{}0.940000 +arangodb_process_statistics_system_time{}2.650000 # HELP arangodb_process_statistics_number_of_threads Number of threads in the arangod process # TYPE arangodb_process_statistics_number_of_threads gauge -arangodb_process_statistics_number_of_threads{}88 +arangodb_process_statistics_number_of_threads{}82 # HELP arangodb_process_statistics_resident_set_size The total size of the number of pages the process has in real memory. This is just the pages which count toward text, data, or stack space. This does not include pages which have not been demand-loaded in, or which are swapped out. The resident set size is reported in bytes # TYPE arangodb_process_statistics_resident_set_size gauge -arangodb_process_statistics_resident_set_size{}325160960 +arangodb_process_statistics_resident_set_size{}319295488 # HELP arangodb_process_statistics_resident_set_size_percent The relative size of the number of pages the process has in real memory compared to system memory. This is just the pages which count toward text, data, or stack space. This does not include pages which have not been demand-loaded in, or which are swapped out. The value is a ratio between 0.00 and 1.00 # TYPE arangodb_process_statistics_resident_set_size_percent gauge -arangodb_process_statistics_resident_set_size_percent{}0.004416 +arangodb_process_statistics_resident_set_size_percent{}0.004729 # HELP arangodb_process_statistics_virtual_memory_size On Windows, this figure contains the total amount of memory that the memory manager has committed for the arangod process. On other systems, this figure contains The size of the virtual memory the process is using # TYPE arangodb_process_statistics_virtual_memory_size gauge -arangodb_process_statistics_virtual_memory_size{}1628155904 +arangodb_process_statistics_virtual_memory_size{}1564565504 # HELP arangodb_server_statistics_physical_memory Physical memory in bytes # TYPE arangodb_server_statistics_physical_memory gauge -arangodb_server_statistics_physical_memory{}73638338560 +arangodb_server_statistics_physical_memory{}67512832000 # HELP arangodb_server_statistics_server_uptime_total Number of seconds elapsed since server start # TYPE arangodb_server_statistics_server_uptime_total counter -arangodb_server_statistics_server_uptime_total{}7.163383 +arangodb_server_statistics_server_uptime_total{}17.861888 # HELP arangodb_server_statistics_cpu_cores Number of CPU cores visible to the arangod process # TYPE arangodb_server_statistics_cpu_cores gauge -arangodb_server_statistics_cpu_cores{}36 +arangodb_server_statistics_cpu_cores{}32 # HELP arangodb_server_statistics_user_percent Percentage of time that the system CPUs have spent in user mode # TYPE arangodb_server_statistics_user_percent gauge -arangodb_server_statistics_user_percent{}11.524993 +arangodb_server_statistics_user_percent{}9.590776 # HELP arangodb_server_statistics_system_percent Percentage of time that the system CPUs have spent in kernel mode # TYPE arangodb_server_statistics_system_percent gauge -arangodb_server_statistics_system_percent{}3.238089 +arangodb_server_statistics_system_percent{}1.165321 # HELP arangodb_server_statistics_idle_percent Percentage of time that the system CPUs have been idle # TYPE arangodb_server_statistics_idle_percent gauge -arangodb_server_statistics_idle_percent{}84.459459 +arangodb_server_statistics_idle_percent{}88.899761 # HELP arangodb_server_statistics_iowait_percent Percentage of time that the system CPUs have been waiting for I/O # TYPE arangodb_server_statistics_iowait_percent gauge -arangodb_server_statistics_iowait_percent{}0.651613 +arangodb_server_statistics_iowait_percent{}0.307459 # HELP arangodb_client_connection_statistics_client_connections The number of client connections that are currently open # TYPE arangodb_client_connection_statistics_client_connections gauge arangodb_client_connection_statistics_client_connections{}2 @@ -795,80 +795,80 @@ arangodb_client_connection_statistics_connection_time_count{}0 arangodb_client_connection_statistics_connection_time_sum{}0 # HELP arangodb_client_connection_statistics_total_time Total time needed to answer a request # TYPE arangodb_client_connection_statistics_total_time histogram -arangodb_client_connection_statistics_total_time_bucket{le="0.01"}33458 +arangodb_client_connection_statistics_total_time_bucket{le="0.01"}33457 arangodb_client_connection_statistics_total_time_bucket{le="0.05"}33463 -arangodb_client_connection_statistics_total_time_bucket{le="0.1"}33463 -arangodb_client_connection_statistics_total_time_bucket{le="0.2"}33463 -arangodb_client_connection_statistics_total_time_bucket{le="0.5"}33463 -arangodb_client_connection_statistics_total_time_bucket{le="1.0"}33464 -arangodb_client_connection_statistics_total_time_bucket{le="5.0"}33464 -arangodb_client_connection_statistics_total_time_bucket{le="15.0"}33464 -arangodb_client_connection_statistics_total_time_bucket{le="30.0"}33464 -arangodb_client_connection_statistics_total_time_bucket{le="+Inf"}33464 -arangodb_client_connection_statistics_total_time_count{}33464 -arangodb_client_connection_statistics_total_time_sum{}33464 +arangodb_client_connection_statistics_total_time_bucket{le="0.1"}33465 +arangodb_client_connection_statistics_total_time_bucket{le="0.2"}33465 +arangodb_client_connection_statistics_total_time_bucket{le="0.5"}33465 +arangodb_client_connection_statistics_total_time_bucket{le="1.0"}33466 +arangodb_client_connection_statistics_total_time_bucket{le="5.0"}33466 +arangodb_client_connection_statistics_total_time_bucket{le="15.0"}33466 +arangodb_client_connection_statistics_total_time_bucket{le="30.0"}33466 +arangodb_client_connection_statistics_total_time_bucket{le="+Inf"}33466 +arangodb_client_connection_statistics_total_time_count{}33466 +arangodb_client_connection_statistics_total_time_sum{}33466 # HELP arangodb_client_connection_statistics_request_time Request time needed to answer a request # TYPE arangodb_client_connection_statistics_request_time histogram -arangodb_client_connection_statistics_request_time_bucket{le="0.01"}33458 +arangodb_client_connection_statistics_request_time_bucket{le="0.01"}33457 arangodb_client_connection_statistics_request_time_bucket{le="0.05"}33463 -arangodb_client_connection_statistics_request_time_bucket{le="0.1"}33463 -arangodb_client_connection_statistics_request_time_bucket{le="0.2"}33463 -arangodb_client_connection_statistics_request_time_bucket{le="0.5"}33463 -arangodb_client_connection_statistics_request_time_bucket{le="1.0"}33464 -arangodb_client_connection_statistics_request_time_bucket{le="5.0"}33464 -arangodb_client_connection_statistics_request_time_bucket{le="15.0"}33464 -arangodb_client_connection_statistics_request_time_bucket{le="30.0"}33464 -arangodb_client_connection_statistics_request_time_bucket{le="+Inf"}33464 -arangodb_client_connection_statistics_request_time_count{}33464 -arangodb_client_connection_statistics_request_time_sum{}33464 +arangodb_client_connection_statistics_request_time_bucket{le="0.1"}33465 +arangodb_client_connection_statistics_request_time_bucket{le="0.2"}33465 +arangodb_client_connection_statistics_request_time_bucket{le="0.5"}33465 +arangodb_client_connection_statistics_request_time_bucket{le="1.0"}33466 +arangodb_client_connection_statistics_request_time_bucket{le="5.0"}33466 +arangodb_client_connection_statistics_request_time_bucket{le="15.0"}33466 +arangodb_client_connection_statistics_request_time_bucket{le="30.0"}33466 +arangodb_client_connection_statistics_request_time_bucket{le="+Inf"}33466 +arangodb_client_connection_statistics_request_time_count{}33466 +arangodb_client_connection_statistics_request_time_sum{}33466 # HELP arangodb_client_connection_statistics_queue_time Request time needed to answer a request # TYPE arangodb_client_connection_statistics_queue_time histogram -arangodb_client_connection_statistics_queue_time_bucket{le="0.01"}33464 -arangodb_client_connection_statistics_queue_time_bucket{le="0.05"}33464 -arangodb_client_connection_statistics_queue_time_bucket{le="0.1"}33464 -arangodb_client_connection_statistics_queue_time_bucket{le="0.2"}33464 -arangodb_client_connection_statistics_queue_time_bucket{le="0.5"}33464 -arangodb_client_connection_statistics_queue_time_bucket{le="1.0"}33464 -arangodb_client_connection_statistics_queue_time_bucket{le="5.0"}33464 -arangodb_client_connection_statistics_queue_time_bucket{le="15.0"}33464 -arangodb_client_connection_statistics_queue_time_bucket{le="30.0"}33464 -arangodb_client_connection_statistics_queue_time_bucket{le="+Inf"}33464 -arangodb_client_connection_statistics_queue_time_count{}33464 -arangodb_client_connection_statistics_queue_time_sum{}33464 +arangodb_client_connection_statistics_queue_time_bucket{le="0.01"}33466 +arangodb_client_connection_statistics_queue_time_bucket{le="0.05"}33466 +arangodb_client_connection_statistics_queue_time_bucket{le="0.1"}33466 +arangodb_client_connection_statistics_queue_time_bucket{le="0.2"}33466 +arangodb_client_connection_statistics_queue_time_bucket{le="0.5"}33466 +arangodb_client_connection_statistics_queue_time_bucket{le="1.0"}33466 +arangodb_client_connection_statistics_queue_time_bucket{le="5.0"}33466 +arangodb_client_connection_statistics_queue_time_bucket{le="15.0"}33466 +arangodb_client_connection_statistics_queue_time_bucket{le="30.0"}33466 +arangodb_client_connection_statistics_queue_time_bucket{le="+Inf"}33466 +arangodb_client_connection_statistics_queue_time_count{}33466 +arangodb_client_connection_statistics_queue_time_sum{}33466 # HELP arangodb_client_connection_statistics_io_time Request time needed to answer a request # TYPE arangodb_client_connection_statistics_io_time histogram -arangodb_client_connection_statistics_io_time_bucket{le="0.01"}33464 -arangodb_client_connection_statistics_io_time_bucket{le="0.05"}33464 -arangodb_client_connection_statistics_io_time_bucket{le="0.1"}33464 -arangodb_client_connection_statistics_io_time_bucket{le="0.2"}33464 -arangodb_client_connection_statistics_io_time_bucket{le="0.5"}33464 -arangodb_client_connection_statistics_io_time_bucket{le="1.0"}33464 -arangodb_client_connection_statistics_io_time_bucket{le="5.0"}33464 -arangodb_client_connection_statistics_io_time_bucket{le="15.0"}33464 -arangodb_client_connection_statistics_io_time_bucket{le="30.0"}33464 -arangodb_client_connection_statistics_io_time_bucket{le="+Inf"}33464 -arangodb_client_connection_statistics_io_time_count{}33464 -arangodb_client_connection_statistics_io_time_sum{}33464 +arangodb_client_connection_statistics_io_time_bucket{le="0.01"}33466 +arangodb_client_connection_statistics_io_time_bucket{le="0.05"}33466 +arangodb_client_connection_statistics_io_time_bucket{le="0.1"}33466 +arangodb_client_connection_statistics_io_time_bucket{le="0.2"}33466 +arangodb_client_connection_statistics_io_time_bucket{le="0.5"}33466 +arangodb_client_connection_statistics_io_time_bucket{le="1.0"}33466 +arangodb_client_connection_statistics_io_time_bucket{le="5.0"}33466 +arangodb_client_connection_statistics_io_time_bucket{le="15.0"}33466 +arangodb_client_connection_statistics_io_time_bucket{le="30.0"}33466 +arangodb_client_connection_statistics_io_time_bucket{le="+Inf"}33466 +arangodb_client_connection_statistics_io_time_count{}33466 +arangodb_client_connection_statistics_io_time_sum{}33466 # HELP arangodb_client_connection_statistics_bytes_sent Bytes sent for a request # TYPE arangodb_client_connection_statistics_bytes_sent histogram arangodb_client_connection_statistics_bytes_sent_bucket{le="250"}145 -arangodb_client_connection_statistics_bytes_sent_bucket{le="1000"}32956 -arangodb_client_connection_statistics_bytes_sent_bucket{le="2000"}33426 -arangodb_client_connection_statistics_bytes_sent_bucket{le="5000"}33458 -arangodb_client_connection_statistics_bytes_sent_bucket{le="10000"}33461 -arangodb_client_connection_statistics_bytes_sent_bucket{le="+Inf"}33464 -arangodb_client_connection_statistics_bytes_sent_count{}33464 -arangodb_client_connection_statistics_bytes_sent_sum{}33464 +arangodb_client_connection_statistics_bytes_sent_bucket{le="1000"}32957 +arangodb_client_connection_statistics_bytes_sent_bucket{le="2000"}33428 +arangodb_client_connection_statistics_bytes_sent_bucket{le="5000"}33460 +arangodb_client_connection_statistics_bytes_sent_bucket{le="10000"}33463 +arangodb_client_connection_statistics_bytes_sent_bucket{le="+Inf"}33466 +arangodb_client_connection_statistics_bytes_sent_count{}33466 +arangodb_client_connection_statistics_bytes_sent_sum{}33466 # HELP arangodb_client_connection_statistics_bytes_received Bytes received for a request # TYPE arangodb_client_connection_statistics_bytes_received histogram -arangodb_client_connection_statistics_bytes_received_bucket{le="250"}32042 -arangodb_client_connection_statistics_bytes_received_bucket{le="1000"}33464 -arangodb_client_connection_statistics_bytes_received_bucket{le="2000"}33464 -arangodb_client_connection_statistics_bytes_received_bucket{le="5000"}33464 -arangodb_client_connection_statistics_bytes_received_bucket{le="10000"}33464 -arangodb_client_connection_statistics_bytes_received_bucket{le="+Inf"}33464 -arangodb_client_connection_statistics_bytes_received_count{}33464 -arangodb_client_connection_statistics_bytes_received_sum{}33464 +arangodb_client_connection_statistics_bytes_received_bucket{le="250"}32046 +arangodb_client_connection_statistics_bytes_received_bucket{le="1000"}33466 +arangodb_client_connection_statistics_bytes_received_bucket{le="2000"}33466 +arangodb_client_connection_statistics_bytes_received_bucket{le="5000"}33466 +arangodb_client_connection_statistics_bytes_received_bucket{le="10000"}33466 +arangodb_client_connection_statistics_bytes_received_bucket{le="+Inf"}33466 +arangodb_client_connection_statistics_bytes_received_count{}33466 +arangodb_client_connection_statistics_bytes_received_sum{}33466 # HELP arangodb_http_request_statistics_async_requests_total Number of asynchronously executed HTTP requests # TYPE arangodb_http_request_statistics_async_requests_total counter arangodb_http_request_statistics_async_requests_total{}0 @@ -877,7 +877,7 @@ arangodb_http_request_statistics_async_requests_total{}0 arangodb_http_request_statistics_http_delete_requests_total{}124 # HELP arangodb_http_request_statistics_http_get_requests_total Number of HTTP GET requests # TYPE arangodb_http_request_statistics_http_get_requests_total counter -arangodb_http_request_statistics_http_get_requests_total{}1104 +arangodb_http_request_statistics_http_get_requests_total{}1106 # HELP arangodb_http_request_statistics_http_head_requests_total Number of HTTP HEAD requests # TYPE arangodb_http_request_statistics_http_head_requests_total counter arangodb_http_request_statistics_http_head_requests_total{}0 @@ -898,16 +898,16 @@ arangodb_http_request_statistics_http_put_requests_total{}32 arangodb_http_request_statistics_other_http_requests_total{}0 # HELP arangodb_http_request_statistics_total_requests_total Total number of HTTP requests # TYPE arangodb_http_request_statistics_total_requests_total counter -arangodb_http_request_statistics_total_requests_total{}33464 +arangodb_http_request_statistics_total_requests_total{}33466 # HELP arangodb_http_request_statistics_superuser_requests_total Total number of HTTP requests executed by superuser/JWT # TYPE arangodb_http_request_statistics_superuser_requests_total counter arangodb_http_request_statistics_superuser_requests_total{}0 # HELP arangodb_http_request_statistics_user_requests_total Total number of HTTP requests executed by clients # TYPE arangodb_http_request_statistics_user_requests_total counter -arangodb_http_request_statistics_user_requests_total{}33464 +arangodb_http_request_statistics_user_requests_total{}33466 # HELP arangodb_v8_context_alive Number of V8 contexts currently alive # TYPE arangodb_v8_context_alive gauge -arangodb_v8_context_alive{}2 +arangodb_v8_context_alive{}1 # HELP arangodb_v8_context_busy Number of V8 contexts currently busy # TYPE arangodb_v8_context_busy gauge arangodb_v8_context_busy{}0 @@ -916,7 +916,7 @@ arangodb_v8_context_busy{}0 arangodb_v8_context_dirty{}0 # HELP arangodb_v8_context_free Number of V8 contexts currently free # TYPE arangodb_v8_context_free gauge -arangodb_v8_context_free{}2 +arangodb_v8_context_free{}1 # HELP arangodb_v8_context_min Minimum number of concurrent V8 contexts # TYPE arangodb_v8_context_min gauge arangodb_v8_context_min{}1 @@ -934,15 +934,15 @@ rocksdb_cache_allocated 1355016 # HELP rocksdb_cache_hit_rate_lifetime rocksdb_cache_hit_rate_lifetime # TYPE rocksdb_cache_hit_rate_lifetime gauge -rocksdb_cache_hit_rate_lifetime 12 +rocksdb_cache_hit_rate_lifetime 8 # HELP rocksdb_cache_hit_rate_recent rocksdb_cache_hit_rate_recent # TYPE rocksdb_cache_hit_rate_recent gauge -rocksdb_cache_hit_rate_recent 12 +rocksdb_cache_hit_rate_recent 8 # HELP rocksdb_cache_limit rocksdb_cache_limit # TYPE rocksdb_cache_limit gauge -rocksdb_cache_limit 17872713728 +rocksdb_cache_limit 16341337088 # HELP rocksdb_cache_unused_memory rocksdb_cache_unused_memory # TYPE rocksdb_cache_unused_memory gauge @@ -966,7 +966,7 @@ rocksdb_base_level 6 # HELP rocksdb_block_cache_capacity rocksdb_block_cache_capacity # TYPE rocksdb_block_cache_capacity gauge -rocksdb_block_cache_capacity 21447256473 +rocksdb_block_cache_capacity 19609604505 # HELP rocksdb_block_cache_pinned_usage rocksdb_block_cache_pinned_usage # TYPE rocksdb_block_cache_pinned_usage gauge @@ -974,7 +974,7 @@ rocksdb_block_cache_pinned_usage 96 # HELP rocksdb_block_cache_usage rocksdb_block_cache_usage # TYPE rocksdb_block_cache_usage gauge -rocksdb_block_cache_usage 94336 +rocksdb_block_cache_usage 94352 # HELP rocksdb_compaction_pending rocksdb_compaction_pending # TYPE rocksdb_compaction_pending gauge @@ -1018,7 +1018,7 @@ rocksdb_cur_size_all_mem_tables 18432 # HELP rocksdb_estimate_live_data_size rocksdb_estimate_live_data_size # TYPE rocksdb_estimate_live_data_size gauge -rocksdb_estimate_live_data_size 1530733 +rocksdb_estimate_live_data_size 1547560 # HELP rocksdb_estimate_num_keys rocksdb_estimate_num_keys # TYPE rocksdb_estimate_num_keys gauge @@ -1034,11 +1034,11 @@ rocksdb_estimate_table_readers_mem 11739 # HELP rocksdb_free_disk_space rocksdb_free_disk_space # TYPE rocksdb_free_disk_space gauge -rocksdb_free_disk_space 212562522112 +rocksdb_free_disk_space 342147780608 # HELP rocksdb_free_inodes rocksdb_free_inodes # TYPE rocksdb_free_inodes gauge -rocksdb_free_inodes 31676539 +rocksdb_free_inodes 26495962 # HELP rocksdb_is_file_deletions_enabled rocksdb_is_file_deletions_enabled # TYPE rocksdb_is_file_deletions_enabled gauge @@ -1050,7 +1050,7 @@ rocksdb_is_write_stopped 0 # HELP rocksdb_live_sst_files_size rocksdb_live_sst_files_size # TYPE rocksdb_live_sst_files_size gauge -rocksdb_live_sst_files_size 1530733 +rocksdb_live_sst_files_size 1547560 # HELP rocksdb_mem_table_flush_pending rocksdb_mem_table_flush_pending # TYPE rocksdb_mem_table_flush_pending gauge @@ -1138,23 +1138,23 @@ rocksdb_read_only 0 # HELP rocksdb_size_all_mem_tables rocksdb_size_all_mem_tables # TYPE rocksdb_size_all_mem_tables gauge -rocksdb_size_all_mem_tables 69058192 +rocksdb_size_all_mem_tables 69101136 # HELP rocksdb_total_disk_space rocksdb_total_disk_space # TYPE rocksdb_total_disk_space gauge -rocksdb_total_disk_space 266402316288 +rocksdb_total_disk_space 491180957696 # HELP rocksdb_total_inodes rocksdb_total_inodes # TYPE rocksdb_total_inodes gauge -rocksdb_total_inodes 32768000 +rocksdb_total_inodes 30531584 # HELP rocksdb_total_sst_files_size rocksdb_total_sst_files_size # TYPE rocksdb_total_sst_files_size gauge -rocksdb_total_sst_files_size 1530733 +rocksdb_total_sst_files_size 1547560 # HELP rocksdb_wal_sequence rocksdb_wal_sequence # TYPE rocksdb_wal_sequence gauge -rocksdb_wal_sequence 177375 +rocksdb_wal_sequence 177399 # HELP rocksdb_engine_throttle_bps rocksdb_engine_throttle_bps # TYPE rocksdb_engine_throttle_bps gauge diff --git a/3.11/generated/Examples/RestAdminMetricsV2.generated b/3.11/generated/Examples/RestAdminMetricsV2.generated index e6665fbd5c..5720c919c4 100644 --- a/3.11/generated/Examples/RestAdminMetricsV2.generated +++ b/3.11/generated/Examples/RestAdminMetricsV2.generated @@ -3,7 +3,7 @@ HTTP/1.1 200 OK content-type: text/plain connection: Keep-Alive -content-length: 79792 +content-length: 79790 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -39,7 +39,7 @@ arangodb_aql_all_query_total{role="SINGLE"}447 arangodb_aql_current_query{role="SINGLE"}0 # HELP arangodb_aql_global_memory_limit Total memory limit for all AQL queries combined [bytes] # TYPE arangodb_aql_global_memory_limit gauge -arangodb_aql_global_memory_limit{role="SINGLE"}59647054233 +arangodb_aql_global_memory_limit{role="SINGLE"}54685393920 # HELP arangodb_aql_global_memory_usage Total memory usage of all AQL queries executing [bytes], granularity: 32768 bytes steps # TYPE arangodb_aql_global_memory_usage gauge arangodb_aql_global_memory_usage{role="SINGLE"}0 @@ -51,14 +51,14 @@ arangodb_aql_global_query_memory_limit_reached_total{role="SINGLE"}0 arangodb_aql_local_query_memory_limit_reached_total{role="SINGLE"}1 # HELP arangodb_aql_query_time Execution time histogram for all AQL queries [s] # TYPE arangodb_aql_query_time histogram -arangodb_aql_query_time_bucket{role="SINGLE",le="0.000095"}370 -arangodb_aql_query_time_bucket{role="SINGLE",le="0.000191"}408 -arangodb_aql_query_time_bucket{role="SINGLE",le="0.000381"}431 -arangodb_aql_query_time_bucket{role="SINGLE",le="0.000763"}443 -arangodb_aql_query_time_bucket{role="SINGLE",le="0.001526"}443 -arangodb_aql_query_time_bucket{role="SINGLE",le="0.003052"}444 +arangodb_aql_query_time_bucket{role="SINGLE",le="0.000095"}2 +arangodb_aql_query_time_bucket{role="SINGLE",le="0.000191"}117 +arangodb_aql_query_time_bucket{role="SINGLE",le="0.000381"}381 +arangodb_aql_query_time_bucket{role="SINGLE",le="0.000763"}419 +arangodb_aql_query_time_bucket{role="SINGLE",le="0.001526"}438 +arangodb_aql_query_time_bucket{role="SINGLE",le="0.003052"}442 arangodb_aql_query_time_bucket{role="SINGLE",le="0.006104"}444 -arangodb_aql_query_time_bucket{role="SINGLE",le="0.012207"}445 +arangodb_aql_query_time_bucket{role="SINGLE",le="0.012207"}444 arangodb_aql_query_time_bucket{role="SINGLE",le="0.024414"}445 arangodb_aql_query_time_bucket{role="SINGLE",le="0.048828"}445 arangodb_aql_query_time_bucket{role="SINGLE",le="0.097656"}445 @@ -72,7 +72,7 @@ arangodb_aql_query_time_bucket{role="SINGLE",le="12.500000"}447 arangodb_aql_query_time_bucket{role="SINGLE",le="25.000000"}447 arangodb_aql_query_time_bucket{role="SINGLE",le="+Inf"}447 arangodb_aql_query_time_count{role="SINGLE"}447 -arangodb_aql_query_time_sum{role="SINGLE"}1.835847 +arangodb_aql_query_time_sum{role="SINGLE"}1.975088 # HELP arangodb_aql_slow_query_time Execution time histogram for slow AQL queries [s] # TYPE arangodb_aql_slow_query_time histogram arangodb_aql_slow_query_time_bucket{role="SINGLE",le="4.904297"}1 @@ -86,19 +86,19 @@ arangodb_aql_slow_query_time_bucket{role="SINGLE",le="500.750000"}1 arangodb_aql_slow_query_time_bucket{role="SINGLE",le="1000.500000"}1 arangodb_aql_slow_query_time_bucket{role="SINGLE",le="+Inf"}1 arangodb_aql_slow_query_time_count{role="SINGLE"}1 -arangodb_aql_slow_query_time_sum{role="SINGLE"}1.023377 +arangodb_aql_slow_query_time_sum{role="SINGLE"}1.060072 # HELP arangodb_aql_total_query_time_msec_total Total execution time of all AQL queries [ms] # TYPE arangodb_aql_total_query_time_msec_total counter -arangodb_aql_total_query_time_msec_total{role="SINGLE"}1793 +arangodb_aql_total_query_time_msec_total{role="SINGLE"}1856 # HELP arangodb_collection_lock_acquisition_micros_total Total amount of collection lock acquisition time [μs] # TYPE arangodb_collection_lock_acquisition_micros_total counter -arangodb_collection_lock_acquisition_micros_total{role="SINGLE"}57 +arangodb_collection_lock_acquisition_micros_total{role="SINGLE"}49654 # HELP arangodb_collection_lock_acquisition_time Collection lock acquisition time histogram [s] # TYPE arangodb_collection_lock_acquisition_time histogram -arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="0.000000"}30 -arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="0.000001"}32522 -arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="0.000010"}32546 -arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="0.000100"}32547 +arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="0.000000"}0 +arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="0.000001"}1199 +arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="0.000010"}31358 +arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="0.000100"}32546 arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="0.001000"}32547 arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="0.010000"}32547 arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="0.100000"}32547 @@ -107,7 +107,7 @@ arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="10.000000"}32 arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="100.000000"}32547 arangodb_collection_lock_acquisition_time_bucket{role="SINGLE",le="+Inf"}32547 arangodb_collection_lock_acquisition_time_count{role="SINGLE"}32547 -arangodb_collection_lock_acquisition_time_sum{role="SINGLE"}0.010056 +arangodb_collection_lock_acquisition_time_sum{role="SINGLE"}0.069880 # HELP arangodb_collection_lock_sequential_mode_total Number of transactions using sequential locking of collections to avoid deadlocking # TYPE arangodb_collection_lock_sequential_mode_total counter arangodb_collection_lock_sequential_mode_total{role="SINGLE"}0 @@ -179,11 +179,11 @@ arangodb_ioheartbeat_duration_bucket{role="SINGLE",le="1.000000"}0 arangodb_ioheartbeat_duration_bucket{role="SINGLE",le="10.000000"}0 arangodb_ioheartbeat_duration_bucket{role="SINGLE",le="100.000000"}0 arangodb_ioheartbeat_duration_bucket{role="SINGLE",le="1000.000000"}0 -arangodb_ioheartbeat_duration_bucket{role="SINGLE",le="10000.000000"}1 -arangodb_ioheartbeat_duration_bucket{role="SINGLE",le="100000.000000"}1 -arangodb_ioheartbeat_duration_bucket{role="SINGLE",le="+Inf"}1 -arangodb_ioheartbeat_duration_count{role="SINGLE"}1 -arangodb_ioheartbeat_duration_sum{role="SINGLE"}2252.000000 +arangodb_ioheartbeat_duration_bucket{role="SINGLE",le="10000.000000"}2 +arangodb_ioheartbeat_duration_bucket{role="SINGLE",le="100000.000000"}2 +arangodb_ioheartbeat_duration_bucket{role="SINGLE",le="+Inf"}2 +arangodb_ioheartbeat_duration_count{role="SINGLE"}2 +arangodb_ioheartbeat_duration_sum{role="SINGLE"}9481.000000 # HELP arangodb_ioheartbeat_failures_total Total number of failures in IO heartbeat # TYPE arangodb_ioheartbeat_failures_total counter arangodb_ioheartbeat_failures_total{role="SINGLE"}0 @@ -280,7 +280,7 @@ arangodb_pregel_workers_running_number{role="SINGLE"}0 arangodb_pregel_workers_storing_number{role="SINGLE"}0 # HELP arangodb_read_transactions_total Number of read transactions # TYPE arangodb_read_transactions_total counter -arangodb_read_transactions_total{role="SINGLE"}1319 +arangodb_read_transactions_total{role="SINGLE"}1320 # HELP arangodb_replication2_replicated_log_append_entries_rtt RTT for AppendEntries requests [us] # TYPE arangodb_replication2_replicated_log_append_entries_rtt histogram arangodb_replication2_replicated_log_append_entries_rtt_bucket{role="SINGLE",le="1000"}0 @@ -574,18 +574,18 @@ arangodb_replication_tailing_request_time_total{role="SINGLE"}0 arangodb_replication_tailing_requests_total{role="SINGLE"}0 # HELP arangodb_request_body_size_http1 Body size of HTTP/1.1 requests # TYPE arangodb_request_body_size_http1 histogram -arangodb_request_body_size_http1_bucket{role="SINGLE",le="191"}33420 -arangodb_request_body_size_http1_bucket{role="SINGLE",le="319"}33464 -arangodb_request_body_size_http1_bucket{role="SINGLE",le="575"}33473 -arangodb_request_body_size_http1_bucket{role="SINGLE",le="1087"}33473 -arangodb_request_body_size_http1_bucket{role="SINGLE",le="2110"}33473 -arangodb_request_body_size_http1_bucket{role="SINGLE",le="4156"}33473 -arangodb_request_body_size_http1_bucket{role="SINGLE",le="8248"}33473 -arangodb_request_body_size_http1_bucket{role="SINGLE",le="16432"}33473 -arangodb_request_body_size_http1_bucket{role="SINGLE",le="32800"}33473 -arangodb_request_body_size_http1_bucket{role="SINGLE",le="+Inf"}33473 -arangodb_request_body_size_http1_count{role="SINGLE"}33473 -arangodb_request_body_size_http1_sum{role="SINGLE"}478858 +arangodb_request_body_size_http1_bucket{role="SINGLE",le="191"}33422 +arangodb_request_body_size_http1_bucket{role="SINGLE",le="319"}33466 +arangodb_request_body_size_http1_bucket{role="SINGLE",le="575"}33475 +arangodb_request_body_size_http1_bucket{role="SINGLE",le="1087"}33475 +arangodb_request_body_size_http1_bucket{role="SINGLE",le="2110"}33475 +arangodb_request_body_size_http1_bucket{role="SINGLE",le="4156"}33475 +arangodb_request_body_size_http1_bucket{role="SINGLE",le="8248"}33475 +arangodb_request_body_size_http1_bucket{role="SINGLE",le="16432"}33475 +arangodb_request_body_size_http1_bucket{role="SINGLE",le="32800"}33475 +arangodb_request_body_size_http1_bucket{role="SINGLE",le="+Inf"}33475 +arangodb_request_body_size_http1_count{role="SINGLE"}33475 +arangodb_request_body_size_http1_sum{role="SINGLE"}478827 # HELP arangodb_request_body_size_http2 Body size of HTTP/2 requests # TYPE arangodb_request_body_size_http2 histogram arangodb_request_body_size_http2_bucket{role="SINGLE",le="191"}0 @@ -637,19 +637,19 @@ arangodb_rocksdb_write_stalls_total{role="SINGLE"}0 arangodb_rocksdb_write_stops_total{role="SINGLE"}0 # HELP arangodb_scheduler_handler_tasks_created_total Number of scheduler tasks created # TYPE arangodb_scheduler_handler_tasks_created_total counter -arangodb_scheduler_handler_tasks_created_total{role="SINGLE"}33473 +arangodb_scheduler_handler_tasks_created_total{role="SINGLE"}33475 # HELP arangodb_scheduler_high_prio_queue_length Current queue length of the high priority queue in the scheduler # TYPE arangodb_scheduler_high_prio_queue_length gauge arangodb_scheduler_high_prio_queue_length{role="SINGLE"}0 # HELP arangodb_scheduler_jobs_dequeued_total Total number of jobs dequeued # TYPE arangodb_scheduler_jobs_dequeued_total counter -arangodb_scheduler_jobs_dequeued_total{role="SINGLE"}33507 +arangodb_scheduler_jobs_dequeued_total{role="SINGLE"}33521 # HELP arangodb_scheduler_jobs_done_total Total number of queue jobs done # TYPE arangodb_scheduler_jobs_done_total counter -arangodb_scheduler_jobs_done_total{role="SINGLE"}33505 +arangodb_scheduler_jobs_done_total{role="SINGLE"}33519 # HELP arangodb_scheduler_jobs_submitted_total Total number of jobs submitted to the scheduler # TYPE arangodb_scheduler_jobs_submitted_total counter -arangodb_scheduler_jobs_submitted_total{role="SINGLE"}33507 +arangodb_scheduler_jobs_submitted_total{role="SINGLE"}33521 # HELP arangodb_scheduler_low_prio_queue_last_dequeue_time Last recorded dequeue time for a low priority queue item [ms] # TYPE arangodb_scheduler_low_prio_queue_last_dequeue_time gauge arangodb_scheduler_low_prio_queue_last_dequeue_time{role="SINGLE"}0 @@ -697,7 +697,7 @@ arangodb_search_num_out_of_sync_links{role="SINGLE"}0 arangodb_transactions_aborted_total{role="SINGLE"}255 # HELP arangodb_transactions_committed_total Number of transactions committed # TYPE arangodb_transactions_committed_total counter -arangodb_transactions_committed_total{role="SINGLE"}33516 +arangodb_transactions_committed_total{role="SINGLE"}33517 # HELP arangodb_transactions_expired_total Total number of expired transactions # TYPE arangodb_transactions_expired_total counter arangodb_transactions_expired_total{role="SINGLE"}0 @@ -706,10 +706,10 @@ arangodb_transactions_expired_total{role="SINGLE"}0 arangodb_transactions_started_total{role="SINGLE"}32547 # HELP arangodb_v8_context_created_total V8 contexts created # TYPE arangodb_v8_context_created_total counter -arangodb_v8_context_created_total{role="SINGLE"}2 +arangodb_v8_context_created_total{role="SINGLE"}1 # HELP arangodb_v8_context_creation_time_msec_total Total time for creating V8 contexts [ms] # TYPE arangodb_v8_context_creation_time_msec_total counter -arangodb_v8_context_creation_time_msec_total{role="SINGLE"}12 +arangodb_v8_context_creation_time_msec_total{role="SINGLE"}24 # HELP arangodb_v8_context_destroyed_total V8 contexts destroyed # TYPE arangodb_v8_context_destroyed_total counter arangodb_v8_context_destroyed_total{role="SINGLE"}0 @@ -718,10 +718,10 @@ arangodb_v8_context_destroyed_total{role="SINGLE"}0 arangodb_v8_context_enter_failures_total{role="SINGLE"}0 # HELP arangodb_v8_context_entered_total V8 context enter events # TYPE arangodb_v8_context_entered_total counter -arangodb_v8_context_entered_total{role="SINGLE"}16 +arangodb_v8_context_entered_total{role="SINGLE"}25 # HELP arangodb_v8_context_exited_total V8 context exit events # TYPE arangodb_v8_context_exited_total counter -arangodb_v8_context_exited_total{role="SINGLE"}16 +arangodb_v8_context_exited_total{role="SINGLE"}25 # HELP arangodb_vst_connections_total Total number of VST connections # TYPE arangodb_vst_connections_total counter arangodb_vst_connections_total{role="SINGLE"}0 @@ -736,52 +736,52 @@ rocksdb_prunable_wal_files{role="SINGLE"}0 rocksdb_wal_pruning_active{role="SINGLE"}0 # HELP rocksdb_wal_sequence_lower_bound RocksDB WAL sequence number until which background thread has caught up # TYPE rocksdb_wal_sequence_lower_bound gauge -rocksdb_wal_sequence_lower_bound{role="SINGLE"}170103 +rocksdb_wal_sequence_lower_bound{role="SINGLE"}175214 # HELP arangodb_process_statistics_minor_page_faults_total The number of minor faults the process has made which have not required loading a memory page from disk. This figure is not reported on Windows # TYPE arangodb_process_statistics_minor_page_faults_total counter -arangodb_process_statistics_minor_page_faults_total{}70585 +arangodb_process_statistics_minor_page_faults_total{}76950 # HELP arangodb_process_statistics_major_page_faults_total On Windows, this figure contains the total number of page faults. On other system, this figure contains the number of major faults the process has made which have required loading a memory page from disk # TYPE arangodb_process_statistics_major_page_faults_total counter arangodb_process_statistics_major_page_faults_total{}0 # HELP arangodb_process_statistics_user_time Amount of time that this process has been scheduled in user mode, measured in seconds # TYPE arangodb_process_statistics_user_time gauge -arangodb_process_statistics_user_time{}3.600000 +arangodb_process_statistics_user_time{}9.530000 # HELP arangodb_process_statistics_system_time Amount of time that this process has been scheduled in kernel mode, measured in seconds # TYPE arangodb_process_statistics_system_time gauge -arangodb_process_statistics_system_time{}0.940000 +arangodb_process_statistics_system_time{}2.650000 # HELP arangodb_process_statistics_number_of_threads Number of threads in the arangod process # TYPE arangodb_process_statistics_number_of_threads gauge -arangodb_process_statistics_number_of_threads{}88 +arangodb_process_statistics_number_of_threads{}82 # HELP arangodb_process_statistics_resident_set_size The total size of the number of pages the process has in real memory. This is just the pages which count toward text, data, or stack space. This does not include pages which have not been demand-loaded in, or which are swapped out. The resident set size is reported in bytes # TYPE arangodb_process_statistics_resident_set_size gauge -arangodb_process_statistics_resident_set_size{}325406720 +arangodb_process_statistics_resident_set_size{}319541248 # HELP arangodb_process_statistics_resident_set_size_percent The relative size of the number of pages the process has in real memory compared to system memory. This is just the pages which count toward text, data, or stack space. This does not include pages which have not been demand-loaded in, or which are swapped out. The value is a ratio between 0.00 and 1.00 # TYPE arangodb_process_statistics_resident_set_size_percent gauge -arangodb_process_statistics_resident_set_size_percent{}0.004419 +arangodb_process_statistics_resident_set_size_percent{}0.004733 # HELP arangodb_process_statistics_virtual_memory_size On Windows, this figure contains the total amount of memory that the memory manager has committed for the arangod process. On other systems, this figure contains The size of the virtual memory the process is using # TYPE arangodb_process_statistics_virtual_memory_size gauge -arangodb_process_statistics_virtual_memory_size{}1628155904 +arangodb_process_statistics_virtual_memory_size{}1564565504 # HELP arangodb_server_statistics_physical_memory Physical memory in bytes # TYPE arangodb_server_statistics_physical_memory gauge -arangodb_server_statistics_physical_memory{}73638338560 +arangodb_server_statistics_physical_memory{}67512832000 # HELP arangodb_server_statistics_server_uptime_total Number of seconds elapsed since server start # TYPE arangodb_server_statistics_server_uptime_total counter -arangodb_server_statistics_server_uptime_total{}7.168232 +arangodb_server_statistics_server_uptime_total{}17.871615 # HELP arangodb_server_statistics_cpu_cores Number of CPU cores visible to the arangod process # TYPE arangodb_server_statistics_cpu_cores gauge -arangodb_server_statistics_cpu_cores{}36 +arangodb_server_statistics_cpu_cores{}32 # HELP arangodb_server_statistics_user_percent Percentage of time that the system CPUs have spent in user mode # TYPE arangodb_server_statistics_user_percent gauge -arangodb_server_statistics_user_percent{}5.882353 +arangodb_server_statistics_user_percent{}6.451613 # HELP arangodb_server_statistics_system_percent Percentage of time that the system CPUs have spent in kernel mode # TYPE arangodb_server_statistics_system_percent gauge arangodb_server_statistics_system_percent{}0.000000 # HELP arangodb_server_statistics_idle_percent Percentage of time that the system CPUs have been idle # TYPE arangodb_server_statistics_idle_percent gauge -arangodb_server_statistics_idle_percent{}94.117647 +arangodb_server_statistics_idle_percent{}90.322581 # HELP arangodb_server_statistics_iowait_percent Percentage of time that the system CPUs have been waiting for I/O # TYPE arangodb_server_statistics_iowait_percent gauge -arangodb_server_statistics_iowait_percent{}0.000000 +arangodb_server_statistics_iowait_percent{}3.225806 # HELP arangodb_client_connection_statistics_client_connections The number of client connections that are currently open # TYPE arangodb_client_connection_statistics_client_connections gauge arangodb_client_connection_statistics_client_connections{}2 @@ -795,80 +795,80 @@ arangodb_client_connection_statistics_connection_time_count{}0 arangodb_client_connection_statistics_connection_time_sum{}0 # HELP arangodb_client_connection_statistics_total_time Total time needed to answer a request # TYPE arangodb_client_connection_statistics_total_time histogram -arangodb_client_connection_statistics_total_time_bucket{le="0.01"}33458 -arangodb_client_connection_statistics_total_time_bucket{le="0.05"}33463 -arangodb_client_connection_statistics_total_time_bucket{le="0.1"}33463 -arangodb_client_connection_statistics_total_time_bucket{le="0.2"}33463 -arangodb_client_connection_statistics_total_time_bucket{le="0.5"}33463 -arangodb_client_connection_statistics_total_time_bucket{le="1.0"}33464 -arangodb_client_connection_statistics_total_time_bucket{le="5.0"}33464 -arangodb_client_connection_statistics_total_time_bucket{le="15.0"}33464 -arangodb_client_connection_statistics_total_time_bucket{le="30.0"}33464 -arangodb_client_connection_statistics_total_time_bucket{le="+Inf"}33464 -arangodb_client_connection_statistics_total_time_count{}33464 -arangodb_client_connection_statistics_total_time_sum{}33464 +arangodb_client_connection_statistics_total_time_bucket{le="0.01"}33462 +arangodb_client_connection_statistics_total_time_bucket{le="0.05"}33468 +arangodb_client_connection_statistics_total_time_bucket{le="0.1"}33470 +arangodb_client_connection_statistics_total_time_bucket{le="0.2"}33470 +arangodb_client_connection_statistics_total_time_bucket{le="0.5"}33471 +arangodb_client_connection_statistics_total_time_bucket{le="1.0"}33472 +arangodb_client_connection_statistics_total_time_bucket{le="5.0"}33472 +arangodb_client_connection_statistics_total_time_bucket{le="15.0"}33472 +arangodb_client_connection_statistics_total_time_bucket{le="30.0"}33472 +arangodb_client_connection_statistics_total_time_bucket{le="+Inf"}33472 +arangodb_client_connection_statistics_total_time_count{}33472 +arangodb_client_connection_statistics_total_time_sum{}33472 # HELP arangodb_client_connection_statistics_request_time Request time needed to answer a request # TYPE arangodb_client_connection_statistics_request_time histogram -arangodb_client_connection_statistics_request_time_bucket{le="0.01"}33458 -arangodb_client_connection_statistics_request_time_bucket{le="0.05"}33463 -arangodb_client_connection_statistics_request_time_bucket{le="0.1"}33463 -arangodb_client_connection_statistics_request_time_bucket{le="0.2"}33463 -arangodb_client_connection_statistics_request_time_bucket{le="0.5"}33463 -arangodb_client_connection_statistics_request_time_bucket{le="1.0"}33464 -arangodb_client_connection_statistics_request_time_bucket{le="5.0"}33464 -arangodb_client_connection_statistics_request_time_bucket{le="15.0"}33464 -arangodb_client_connection_statistics_request_time_bucket{le="30.0"}33464 -arangodb_client_connection_statistics_request_time_bucket{le="+Inf"}33464 -arangodb_client_connection_statistics_request_time_count{}33464 -arangodb_client_connection_statistics_request_time_sum{}33464 +arangodb_client_connection_statistics_request_time_bucket{le="0.01"}33462 +arangodb_client_connection_statistics_request_time_bucket{le="0.05"}33468 +arangodb_client_connection_statistics_request_time_bucket{le="0.1"}33470 +arangodb_client_connection_statistics_request_time_bucket{le="0.2"}33470 +arangodb_client_connection_statistics_request_time_bucket{le="0.5"}33471 +arangodb_client_connection_statistics_request_time_bucket{le="1.0"}33472 +arangodb_client_connection_statistics_request_time_bucket{le="5.0"}33472 +arangodb_client_connection_statistics_request_time_bucket{le="15.0"}33472 +arangodb_client_connection_statistics_request_time_bucket{le="30.0"}33472 +arangodb_client_connection_statistics_request_time_bucket{le="+Inf"}33472 +arangodb_client_connection_statistics_request_time_count{}33472 +arangodb_client_connection_statistics_request_time_sum{}33472 # HELP arangodb_client_connection_statistics_queue_time Request time needed to answer a request # TYPE arangodb_client_connection_statistics_queue_time histogram -arangodb_client_connection_statistics_queue_time_bucket{le="0.01"}33464 -arangodb_client_connection_statistics_queue_time_bucket{le="0.05"}33464 -arangodb_client_connection_statistics_queue_time_bucket{le="0.1"}33464 -arangodb_client_connection_statistics_queue_time_bucket{le="0.2"}33464 -arangodb_client_connection_statistics_queue_time_bucket{le="0.5"}33464 -arangodb_client_connection_statistics_queue_time_bucket{le="1.0"}33464 -arangodb_client_connection_statistics_queue_time_bucket{le="5.0"}33464 -arangodb_client_connection_statistics_queue_time_bucket{le="15.0"}33464 -arangodb_client_connection_statistics_queue_time_bucket{le="30.0"}33464 -arangodb_client_connection_statistics_queue_time_bucket{le="+Inf"}33464 -arangodb_client_connection_statistics_queue_time_count{}33464 -arangodb_client_connection_statistics_queue_time_sum{}33464 +arangodb_client_connection_statistics_queue_time_bucket{le="0.01"}33472 +arangodb_client_connection_statistics_queue_time_bucket{le="0.05"}33472 +arangodb_client_connection_statistics_queue_time_bucket{le="0.1"}33472 +arangodb_client_connection_statistics_queue_time_bucket{le="0.2"}33472 +arangodb_client_connection_statistics_queue_time_bucket{le="0.5"}33472 +arangodb_client_connection_statistics_queue_time_bucket{le="1.0"}33472 +arangodb_client_connection_statistics_queue_time_bucket{le="5.0"}33472 +arangodb_client_connection_statistics_queue_time_bucket{le="15.0"}33472 +arangodb_client_connection_statistics_queue_time_bucket{le="30.0"}33472 +arangodb_client_connection_statistics_queue_time_bucket{le="+Inf"}33472 +arangodb_client_connection_statistics_queue_time_count{}33472 +arangodb_client_connection_statistics_queue_time_sum{}33472 # HELP arangodb_client_connection_statistics_io_time Request time needed to answer a request # TYPE arangodb_client_connection_statistics_io_time histogram -arangodb_client_connection_statistics_io_time_bucket{le="0.01"}33464 -arangodb_client_connection_statistics_io_time_bucket{le="0.05"}33464 -arangodb_client_connection_statistics_io_time_bucket{le="0.1"}33464 -arangodb_client_connection_statistics_io_time_bucket{le="0.2"}33464 -arangodb_client_connection_statistics_io_time_bucket{le="0.5"}33464 -arangodb_client_connection_statistics_io_time_bucket{le="1.0"}33464 -arangodb_client_connection_statistics_io_time_bucket{le="5.0"}33464 -arangodb_client_connection_statistics_io_time_bucket{le="15.0"}33464 -arangodb_client_connection_statistics_io_time_bucket{le="30.0"}33464 -arangodb_client_connection_statistics_io_time_bucket{le="+Inf"}33464 -arangodb_client_connection_statistics_io_time_count{}33464 -arangodb_client_connection_statistics_io_time_sum{}33464 +arangodb_client_connection_statistics_io_time_bucket{le="0.01"}33472 +arangodb_client_connection_statistics_io_time_bucket{le="0.05"}33472 +arangodb_client_connection_statistics_io_time_bucket{le="0.1"}33472 +arangodb_client_connection_statistics_io_time_bucket{le="0.2"}33472 +arangodb_client_connection_statistics_io_time_bucket{le="0.5"}33472 +arangodb_client_connection_statistics_io_time_bucket{le="1.0"}33472 +arangodb_client_connection_statistics_io_time_bucket{le="5.0"}33472 +arangodb_client_connection_statistics_io_time_bucket{le="15.0"}33472 +arangodb_client_connection_statistics_io_time_bucket{le="30.0"}33472 +arangodb_client_connection_statistics_io_time_bucket{le="+Inf"}33472 +arangodb_client_connection_statistics_io_time_count{}33472 +arangodb_client_connection_statistics_io_time_sum{}33472 # HELP arangodb_client_connection_statistics_bytes_sent Bytes sent for a request # TYPE arangodb_client_connection_statistics_bytes_sent histogram -arangodb_client_connection_statistics_bytes_sent_bucket{le="250"}145 -arangodb_client_connection_statistics_bytes_sent_bucket{le="1000"}32956 -arangodb_client_connection_statistics_bytes_sent_bucket{le="2000"}33426 -arangodb_client_connection_statistics_bytes_sent_bucket{le="5000"}33458 -arangodb_client_connection_statistics_bytes_sent_bucket{le="10000"}33461 -arangodb_client_connection_statistics_bytes_sent_bucket{le="+Inf"}33464 -arangodb_client_connection_statistics_bytes_sent_count{}33464 -arangodb_client_connection_statistics_bytes_sent_sum{}33464 +arangodb_client_connection_statistics_bytes_sent_bucket{le="250"}146 +arangodb_client_connection_statistics_bytes_sent_bucket{le="1000"}32959 +arangodb_client_connection_statistics_bytes_sent_bucket{le="2000"}33433 +arangodb_client_connection_statistics_bytes_sent_bucket{le="5000"}33465 +arangodb_client_connection_statistics_bytes_sent_bucket{le="10000"}33468 +arangodb_client_connection_statistics_bytes_sent_bucket{le="+Inf"}33472 +arangodb_client_connection_statistics_bytes_sent_count{}33472 +arangodb_client_connection_statistics_bytes_sent_sum{}33472 # HELP arangodb_client_connection_statistics_bytes_received Bytes received for a request # TYPE arangodb_client_connection_statistics_bytes_received histogram -arangodb_client_connection_statistics_bytes_received_bucket{le="250"}32042 -arangodb_client_connection_statistics_bytes_received_bucket{le="1000"}33464 -arangodb_client_connection_statistics_bytes_received_bucket{le="2000"}33464 -arangodb_client_connection_statistics_bytes_received_bucket{le="5000"}33464 -arangodb_client_connection_statistics_bytes_received_bucket{le="10000"}33464 -arangodb_client_connection_statistics_bytes_received_bucket{le="+Inf"}33464 -arangodb_client_connection_statistics_bytes_received_count{}33464 -arangodb_client_connection_statistics_bytes_received_sum{}33464 +arangodb_client_connection_statistics_bytes_received_bucket{le="250"}32052 +arangodb_client_connection_statistics_bytes_received_bucket{le="1000"}33472 +arangodb_client_connection_statistics_bytes_received_bucket{le="2000"}33472 +arangodb_client_connection_statistics_bytes_received_bucket{le="5000"}33472 +arangodb_client_connection_statistics_bytes_received_bucket{le="10000"}33472 +arangodb_client_connection_statistics_bytes_received_bucket{le="+Inf"}33472 +arangodb_client_connection_statistics_bytes_received_count{}33472 +arangodb_client_connection_statistics_bytes_received_sum{}33472 # HELP arangodb_http_request_statistics_async_requests_total Number of asynchronously executed HTTP requests # TYPE arangodb_http_request_statistics_async_requests_total counter arangodb_http_request_statistics_async_requests_total{}0 @@ -877,7 +877,7 @@ arangodb_http_request_statistics_async_requests_total{}0 arangodb_http_request_statistics_http_delete_requests_total{}124 # HELP arangodb_http_request_statistics_http_get_requests_total Number of HTTP GET requests # TYPE arangodb_http_request_statistics_http_get_requests_total counter -arangodb_http_request_statistics_http_get_requests_total{}1104 +arangodb_http_request_statistics_http_get_requests_total{}1111 # HELP arangodb_http_request_statistics_http_head_requests_total Number of HTTP HEAD requests # TYPE arangodb_http_request_statistics_http_head_requests_total counter arangodb_http_request_statistics_http_head_requests_total{}0 @@ -892,22 +892,22 @@ arangodb_http_request_statistics_http_patch_requests_total{}2 arangodb_http_request_statistics_http_post_requests_total{}32202 # HELP arangodb_http_request_statistics_http_put_requests_total Number of HTTP PUT requests # TYPE arangodb_http_request_statistics_http_put_requests_total counter -arangodb_http_request_statistics_http_put_requests_total{}32 +arangodb_http_request_statistics_http_put_requests_total{}33 # HELP arangodb_http_request_statistics_other_http_requests_total Number of other HTTP requests # TYPE arangodb_http_request_statistics_other_http_requests_total counter arangodb_http_request_statistics_other_http_requests_total{}0 # HELP arangodb_http_request_statistics_total_requests_total Total number of HTTP requests # TYPE arangodb_http_request_statistics_total_requests_total counter -arangodb_http_request_statistics_total_requests_total{}33464 +arangodb_http_request_statistics_total_requests_total{}33472 # HELP arangodb_http_request_statistics_superuser_requests_total Total number of HTTP requests executed by superuser/JWT # TYPE arangodb_http_request_statistics_superuser_requests_total counter arangodb_http_request_statistics_superuser_requests_total{}0 # HELP arangodb_http_request_statistics_user_requests_total Total number of HTTP requests executed by clients # TYPE arangodb_http_request_statistics_user_requests_total counter -arangodb_http_request_statistics_user_requests_total{}33464 +arangodb_http_request_statistics_user_requests_total{}33472 # HELP arangodb_v8_context_alive Number of V8 contexts currently alive # TYPE arangodb_v8_context_alive gauge -arangodb_v8_context_alive{}2 +arangodb_v8_context_alive{}1 # HELP arangodb_v8_context_busy Number of V8 contexts currently busy # TYPE arangodb_v8_context_busy gauge arangodb_v8_context_busy{}0 @@ -916,7 +916,7 @@ arangodb_v8_context_busy{}0 arangodb_v8_context_dirty{}0 # HELP arangodb_v8_context_free Number of V8 contexts currently free # TYPE arangodb_v8_context_free gauge -arangodb_v8_context_free{}2 +arangodb_v8_context_free{}1 # HELP arangodb_v8_context_min Minimum number of concurrent V8 contexts # TYPE arangodb_v8_context_min gauge arangodb_v8_context_min{}1 @@ -934,15 +934,15 @@ rocksdb_cache_allocated 1355016 # HELP rocksdb_cache_hit_rate_lifetime rocksdb_cache_hit_rate_lifetime # TYPE rocksdb_cache_hit_rate_lifetime gauge -rocksdb_cache_hit_rate_lifetime 12 +rocksdb_cache_hit_rate_lifetime 8 # HELP rocksdb_cache_hit_rate_recent rocksdb_cache_hit_rate_recent # TYPE rocksdb_cache_hit_rate_recent gauge -rocksdb_cache_hit_rate_recent 12 +rocksdb_cache_hit_rate_recent 8 # HELP rocksdb_cache_limit rocksdb_cache_limit # TYPE rocksdb_cache_limit gauge -rocksdb_cache_limit 17872713728 +rocksdb_cache_limit 16341337088 # HELP rocksdb_cache_unused_memory rocksdb_cache_unused_memory # TYPE rocksdb_cache_unused_memory gauge @@ -966,7 +966,7 @@ rocksdb_base_level 6 # HELP rocksdb_block_cache_capacity rocksdb_block_cache_capacity # TYPE rocksdb_block_cache_capacity gauge -rocksdb_block_cache_capacity 21447256473 +rocksdb_block_cache_capacity 19609604505 # HELP rocksdb_block_cache_pinned_usage rocksdb_block_cache_pinned_usage # TYPE rocksdb_block_cache_pinned_usage gauge @@ -974,7 +974,7 @@ rocksdb_block_cache_pinned_usage 96 # HELP rocksdb_block_cache_usage rocksdb_block_cache_usage # TYPE rocksdb_block_cache_usage gauge -rocksdb_block_cache_usage 94848 +rocksdb_block_cache_usage 94864 # HELP rocksdb_compaction_pending rocksdb_compaction_pending # TYPE rocksdb_compaction_pending gauge @@ -1018,7 +1018,7 @@ rocksdb_cur_size_all_mem_tables 18432 # HELP rocksdb_estimate_live_data_size rocksdb_estimate_live_data_size # TYPE rocksdb_estimate_live_data_size gauge -rocksdb_estimate_live_data_size 1530733 +rocksdb_estimate_live_data_size 1547560 # HELP rocksdb_estimate_num_keys rocksdb_estimate_num_keys # TYPE rocksdb_estimate_num_keys gauge @@ -1034,11 +1034,11 @@ rocksdb_estimate_table_readers_mem 11739 # HELP rocksdb_free_disk_space rocksdb_free_disk_space # TYPE rocksdb_free_disk_space gauge -rocksdb_free_disk_space 212562464768 +rocksdb_free_disk_space 342147805184 # HELP rocksdb_free_inodes rocksdb_free_inodes # TYPE rocksdb_free_inodes gauge -rocksdb_free_inodes 31676537 +rocksdb_free_inodes 26495961 # HELP rocksdb_is_file_deletions_enabled rocksdb_is_file_deletions_enabled # TYPE rocksdb_is_file_deletions_enabled gauge @@ -1050,7 +1050,7 @@ rocksdb_is_write_stopped 0 # HELP rocksdb_live_sst_files_size rocksdb_live_sst_files_size # TYPE rocksdb_live_sst_files_size gauge -rocksdb_live_sst_files_size 1530733 +rocksdb_live_sst_files_size 1547560 # HELP rocksdb_mem_table_flush_pending rocksdb_mem_table_flush_pending # TYPE rocksdb_mem_table_flush_pending gauge @@ -1138,23 +1138,23 @@ rocksdb_read_only 0 # HELP rocksdb_size_all_mem_tables rocksdb_size_all_mem_tables # TYPE rocksdb_size_all_mem_tables gauge -rocksdb_size_all_mem_tables 69058192 +rocksdb_size_all_mem_tables 69101136 # HELP rocksdb_total_disk_space rocksdb_total_disk_space # TYPE rocksdb_total_disk_space gauge -rocksdb_total_disk_space 266402316288 +rocksdb_total_disk_space 491180957696 # HELP rocksdb_total_inodes rocksdb_total_inodes # TYPE rocksdb_total_inodes gauge -rocksdb_total_inodes 32768000 +rocksdb_total_inodes 30531584 # HELP rocksdb_total_sst_files_size rocksdb_total_sst_files_size # TYPE rocksdb_total_sst_files_size gauge -rocksdb_total_sst_files_size 1530733 +rocksdb_total_sst_files_size 1547560 # HELP rocksdb_wal_sequence rocksdb_wal_sequence # TYPE rocksdb_wal_sequence gauge -rocksdb_wal_sequence 177375 +rocksdb_wal_sequence 177399 # HELP rocksdb_engine_throttle_bps rocksdb_engine_throttle_bps # TYPE rocksdb_engine_throttle_bps gauge diff --git a/3.11/generated/Examples/RestAdminStatistics1.generated b/3.11/generated/Examples/RestAdminStatistics1.generated index c15560bfa5..dd554ca14c 100644 --- a/3.11/generated/Examples/RestAdminStatistics1.generated +++ b/3.11/generated/Examples/RestAdminStatistics1.generated @@ -3,23 +3,23 @@ HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive -content-length: 2272 +content-length: 2163 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "time" : 1665062310.2752194, + "time" : 1666268266.007145, "enabled" : true, "system" : { - "minorPageFaults" : 70741, + "minorPageFaults" : 77097, "majorPageFaults" : 0, - "userTime" : 3.6, - "systemTime" : 0.94, - "numberOfThreads" : 88, - "residentSize" : 325943296, - "residentSizePercent" : 0.004426271727117033, - "virtualSize" : 1636544512 + "userTime" : 9.54, + "systemTime" : 2.65, + "numberOfThreads" : 82, + "residentSize" : 320073728, + "residentSizePercent" : 0.00474093173872487, + "virtualSize" : 1564565504 }, "client" : { "httpConnections" : 2, @@ -34,15 +34,15 @@ x-content-type-options: nosniff ] }, "totalTime" : { - "sum" : 2.7286782264709473, - "count" : 33464, + "sum" : 8.767060041427612, + "count" : 33472, "counts" : [ - 33458, - 5, - 0, - 0, + 33462, + 6, + 2, 0, 1, + 1, 0, 0, 0, @@ -50,15 +50,15 @@ x-content-type-options: nosniff ] }, "requestTime" : { - "sum" : 1.9095096588134766, - "count" : 33464, + "sum" : 5.846109628677368, + "count" : 33472, "counts" : [ - 33458, - 5, - 0, - 0, + 33462, + 6, + 2, 0, 1, + 1, 0, 0, 0, @@ -66,10 +66,10 @@ x-content-type-options: nosniff ] }, "queueTime" : { - "sum" : 0.16988611221313477, - "count" : 33464, + "sum" : 0.5836331844329834, + "count" : 33472, "counts" : [ - 33464, + 33472, 0, 0, 0, @@ -82,10 +82,10 @@ x-content-type-options: nosniff ] }, "ioTime" : { - "sum" : 0.6492824554443359, - "count" : 33464, + "sum" : 2.3373172283172607, + "count" : 33472, "counts" : [ - 33464, + 33472, 0, 0, 0, @@ -98,23 +98,23 @@ x-content-type-options: nosniff ] }, "bytesSent" : { - "sum" : 11468845, - "count" : 33464, + "sum" : 11562531, + "count" : 33472, "counts" : [ - 145, - 32811, - 470, + 146, + 32813, + 474, 32, 3, - 3 + 4 ] }, "bytesReceived" : { - "sum" : 7837864, - "count" : 33464, + "sum" : 7839162, + "count" : 33472, "counts" : [ - 32042, - 1422, + 32052, + 1420, 0, 0, 0, @@ -135,15 +135,15 @@ x-content-type-options: nosniff ] }, "totalTime" : { - "sum" : 2.7286782264709473, - "count" : 33464, + "sum" : 8.767060041427612, + "count" : 33472, "counts" : [ - 33458, - 5, - 0, - 0, + 33462, + 6, + 2, 0, 1, + 1, 0, 0, 0, @@ -151,15 +151,15 @@ x-content-type-options: nosniff ] }, "requestTime" : { - "sum" : 1.9095096588134766, - "count" : 33464, + "sum" : 5.846109628677368, + "count" : 33472, "counts" : [ - 33458, - 5, - 0, - 0, + 33462, + 6, + 2, 0, 1, + 1, 0, 0, 0, @@ -167,10 +167,10 @@ x-content-type-options: nosniff ] }, "queueTime" : { - "sum" : 0.16988611221313477, - "count" : 33464, + "sum" : 0.5836331844329834, + "count" : 33472, "counts" : [ - 33464, + 33472, 0, 0, 0, @@ -183,10 +183,10 @@ x-content-type-options: nosniff ] }, "ioTime" : { - "sum" : 0.6492824554443359, - "count" : 33464, + "sum" : 2.3373172283172607, + "count" : 33472, "counts" : [ - 33464, + 33472, 0, 0, 0, @@ -199,23 +199,23 @@ x-content-type-options: nosniff ] }, "bytesSent" : { - "sum" : 11468845, - "count" : 33464, + "sum" : 11562531, + "count" : 33472, "counts" : [ - 145, - 32811, - 470, + 146, + 32813, + 474, 32, 3, - 3 + 4 ] }, "bytesReceived" : { - "sum" : 7837864, - "count" : 33464, + "sum" : 7839162, + "count" : 33472, "counts" : [ - 32042, - 1422, + 32052, + 1420, 0, 0, 0, @@ -224,61 +224,53 @@ x-content-type-options: nosniff } }, "http" : { - "requestsTotal" : 33464, + "requestsTotal" : 33472, "requestsSuperuser" : 0, - "requestsUser" : 33464, + "requestsUser" : 33472, "requestsAsync" : 0, - "requestsGet" : 1104, + "requestsGet" : 1111, "requestsHead" : 0, "requestsPost" : 32202, - "requestsPut" : 32, + "requestsPut" : 33, "requestsPatch" : 2, "requestsDelete" : 124, "requestsOptions" : 0, "requestsOther" : 0 }, "server" : { - "uptime" : 7.17175030708313, - "physicalMemory" : 73638338560, + "uptime" : 17.879122495651245, + "physicalMemory" : 67512832000, "transactions" : { "started" : 32547, "aborted" : 255, - "committed" : 33517, + "committed" : 33518, "intermediateCommits" : 0, - "readOnly" : 1320, + "readOnly" : 1321, "dirtyReadOnly" : 0 }, "v8Context" : { - "available" : 2, + "available" : 1, "busy" : 0, "dirty" : 0, - "free" : 2, + "free" : 1, "max" : 16, "min" : 1, "memory" : [ { "contextId" : 0, - "tMax" : 1665062303.640943, - "countOfTimes" : 8, - "heapMax" : 14882384, - "heapMin" : 0, - "invocations" : 18 - }, - { - "contextId" : 1, - "tMax" : 1665062309.971019, + "tMax" : 1666268249.0739605, "countOfTimes" : 8, - "heapMax" : 14910232, + "heapMax" : 14847200, "heapMin" : 0, - "invocations" : 3 + "invocations" : 28 } ] }, "threads" : { "scheduler-threads" : 4, "blocked" : 0, - "queued" : 1, - "in-progress" : 1, + "queued" : 2, + "in-progress" : 2, "direct-exec" : 0 } }, diff --git a/3.11/generated/Examples/RestAdminStatus_cluster.generated b/3.11/generated/Examples/RestAdminStatus_cluster.generated index e5b431ec6a..6493d60aca 100644 --- a/3.11/generated/Examples/RestAdminStatus_cluster.generated +++ b/3.11/generated/Examples/RestAdminStatus_cluster.generated @@ -3,7 +3,7 @@ HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive -content-length: 755 +content-length: 720 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -11,13 +11,13 @@ x-content-type-options: nosniff { "server" : "arango", "version" : "3.11.0-devel", - "pid" : 1178, + "pid" : 1096, "license" : "enterprise", "mode" : "server", "operationMode" : "server", "foxxApi" : true, - "host" : "EC2 (AWS X86) - AWS X86 (i-0b5d8b5656eea7058)", - "hostname" : "21067cf3b9a8", + "host" : "hw06-linux", + "hostname" : "db11cfa91dc0", "serverInfo" : { "progress" : { "phase" : "in wait", @@ -28,22 +28,22 @@ x-content-type-options: nosniff "role" : "COORDINATOR", "writeOpsEnabled" : true, "readOnly" : false, - "persistedId" : "CRDN-f953def1-7f1f-4c94-9bcb-bfab675410da", + "persistedId" : "CRDN-8250e7ea-7e27-450f-8462-bc42f275d0f4", "rebootId" : 1, - "address" : "tcp://127.0.0.1:21626", - "serverId" : "CRDN-f953def1-7f1f-4c94-9bcb-bfab675410da", + "address" : "tcp://127.0.0.1:32300", + "serverId" : "CRDN-8250e7ea-7e27-450f-8462-bc42f275d0f4", "state" : "SERVING" }, "coordinator" : { - "foxxmaster" : "CRDN-f953def1-7f1f-4c94-9bcb-bfab675410da", + "foxxmaster" : "CRDN-8250e7ea-7e27-450f-8462-bc42f275d0f4", "isFoxxmaster" : true }, "agency" : { "agencyComm" : { "endpoints" : [ - "tcp://127.0.0.1:19344", - "tcp://127.0.0.1:22438", - "tcp://127.0.0.1:22092" + "tcp://127.0.0.1:29758", + "tcp://127.0.0.1:13455", + "tcp://127.0.0.1:17949" ] } } diff --git a/3.11/generated/Examples/RestAdminSupportInfo.generated b/3.11/generated/Examples/RestAdminSupportInfo.generated index 9fec430948..6937bdd6d4 100644 --- a/3.11/generated/Examples/RestAdminSupportInfo.generated +++ b/3.11/generated/Examples/RestAdminSupportInfo.generated @@ -3,7 +3,7 @@ HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive -content-length: 1103 +content-length: 1129 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -17,41 +17,41 @@ x-content-type-options: nosniff "maintenance" : false, "readOnly" : false, "version" : "3.11.0-devel", - "build" : "heads/devel-0-g8ae4fcb38aa", + "build" : "heads/documentation/api-fixes-2022-10-06-0-g97e257108e1", "license" : "enterprise", - "os" : "Linux version 5.13.0-1031-aws (buildd@lcy02-amd64-083) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #35~20.04.1-Ubuntu SMP Mon Jun 13 22:30:30 UTC 2022", + "os" : "Linux version 4.15.0-176-generic (buildd@lcy02-amd64-020) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #185-Ubuntu SMP Tue Mar 29 17:40:04 UTC 2022", "platform" : "linux", "physicalMemory" : { - "value" : 73638338560, + "value" : 67512832000, "overridden" : false }, "numberOfCores" : { - "value" : 36, + "value" : 32, "overridden" : false }, "processStats" : { - "processUptime" : 7.1969029903411865, - "numberOfThreads" : 88, - "virtualSize" : 1636544512, - "residentSetSize" : 325943296 + "processUptime" : 17.960835933685303, + "numberOfThreads" : 82, + "virtualSize" : 1574920192, + "residentSetSize" : 321536000 }, "cpuStats" : { - "userPercent" : 4.901960784313726, - "systemPercent" : 0, - "idlePercent" : 95.09803921568627, - "iowaitPercent" : 0 + "userPercent" : 7.446808510638298, + "systemPercent" : 0.3546099290780142, + "idlePercent" : 90.78014184397163, + "iowaitPercent" : 1.4184397163120568 }, "engineStats" : { - "cache.limit" : 17872713728, + "cache.limit" : 16341337088, "cache.allocated" : 1355016, "rocksdb.estimate-num-keys" : 61, - "rocksdb.estimate-live-data-size" : 480878, - "rocksdb.live-sst-files-size" : 480878, - "rocksdb.block-cache-capacity" : 21447256473, - "rocksdb.block-cache-usage" : 95504, - "rocksdb.free-disk-space" : 212563390464, - "rocksdb.total-disk-space" : 266402316288 + "rocksdb.estimate-live-data-size" : 480881, + "rocksdb.live-sst-files-size" : 480881, + "rocksdb.block-cache-capacity" : 19609604505, + "rocksdb.block-cache-usage" : 95520, + "rocksdb.free-disk-space" : 342148890624, + "rocksdb.total-disk-space" : 491180957696 } }, - "date" : "2022-10-06T13:18:30Z" + "date" : "2022-10-20T12:17:46Z" } diff --git a/3.11/generated/Examples/RestAdminSupportInfo_cluster.generated b/3.11/generated/Examples/RestAdminSupportInfo_cluster.generated index d4d58d0408..6c05a18bed 100644 --- a/3.11/generated/Examples/RestAdminSupportInfo_cluster.generated +++ b/3.11/generated/Examples/RestAdminSupportInfo_cluster.generated @@ -3,7 +3,7 @@ HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive -content-length: 3529 +content-length: 3508 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -12,125 +12,125 @@ x-content-type-options: nosniff "deployment" : { "type" : "cluster", "servers" : { - "CRDN-f953def1-7f1f-4c94-9bcb-bfab675410da" : { - "id" : "CRDN-f953def1-7f1f-4c94-9bcb-bfab675410da", + "CRDN-8250e7ea-7e27-450f-8462-bc42f275d0f4" : { + "id" : "CRDN-8250e7ea-7e27-450f-8462-bc42f275d0f4", "alias" : "Coordinator0001", - "endpoint" : "tcp://127.0.0.1:21626", + "endpoint" : "tcp://127.0.0.1:32300", "role" : "COORDINATOR", "maintenance" : false, "readOnly" : false, "version" : "3.11.0-devel", - "build" : "heads/devel-0-g8ae4fcb38aa", + "build" : "heads/documentation/api-fixes-2022-10-06-0-g97e257108e1", "license" : "enterprise", - "os" : "Linux version 5.13.0-1031-aws (buildd@lcy02-amd64-083) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #35~20.04.1-Ubuntu SMP Mon Jun 13 22:30:30 UTC 2022", + "os" : "Linux version 4.15.0-176-generic (buildd@lcy02-amd64-020) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #185-Ubuntu SMP Tue Mar 29 17:40:04 UTC 2022", "platform" : "linux", "physicalMemory" : { - "value" : 73638338560, + "value" : 67512832000, "overridden" : false }, "numberOfCores" : { - "value" : 36, + "value" : 32, "overridden" : false }, "processStats" : { - "processUptime" : 3.258213520050049, - "numberOfThreads" : 49, - "virtualSize" : 830971904, - "residentSetSize" : 113442816 + "processUptime" : 4.6650168895721436, + "numberOfThreads" : 48, + "virtualSize" : 822644736, + "residentSetSize" : 113639424 }, "cpuStats" : { - "userPercent" : 11.447553103603445, - "systemPercent" : 3.216320057041856, - "idlePercent" : 84.5638671378519, - "iowaitPercent" : 0.6472445855053552 + "userPercent" : 9.59040510878971, + "systemPercent" : 1.1652808974089761, + "idlePercent" : 88.9001746611885, + "iowaitPercent" : 0.3074572184492692 } }, - "PRMR-33c112ad-ed25-42b4-99ba-0778c3ecfba5" : { - "id" : "PRMR-33c112ad-ed25-42b4-99ba-0778c3ecfba5", + "PRMR-4945ebe5-8408-45d7-85c2-02b658710d19" : { + "id" : "PRMR-4945ebe5-8408-45d7-85c2-02b658710d19", "alias" : "DBServer0001", - "endpoint" : "tcp://127.0.0.1:11503", + "endpoint" : "tcp://127.0.0.1:23112", "role" : "PRIMARY", "maintenance" : false, "readOnly" : false, "version" : "3.11.0-devel", - "build" : "heads/devel-0-g8ae4fcb38aa", + "build" : "heads/documentation/api-fixes-2022-10-06-0-g97e257108e1", "license" : "enterprise", - "os" : "Linux version 5.13.0-1031-aws (buildd@lcy02-amd64-083) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #35~20.04.1-Ubuntu SMP Mon Jun 13 22:30:30 UTC 2022", + "os" : "Linux version 4.15.0-176-generic (buildd@lcy02-amd64-020) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #185-Ubuntu SMP Tue Mar 29 17:40:04 UTC 2022", "platform" : "linux", "physicalMemory" : { - "value" : 73638338560, + "value" : 67512832000, "overridden" : false }, "numberOfCores" : { - "value" : 36, + "value" : 32, "overridden" : false }, "processStats" : { - "processUptime" : 4.263449192047119, - "numberOfThreads" : 99, - "virtualSize" : 1281028096, - "residentSetSize" : 164151296 + "processUptime" : 5.671706676483154, + "numberOfThreads" : 91, + "virtualSize" : 1238507520, + "residentSetSize" : 168816640 }, "cpuStats" : { - "userPercent" : 11.447552331529058, - "systemPercent" : 3.2163198401187887, - "idlePercent" : 84.56386817893402, - "iowaitPercent" : 0.6472445418522739 + "userPercent" : 9.590405103606736, + "systemPercent" : 1.1652808967792194, + "idlePercent" : 88.90017466718722, + "iowaitPercent" : 0.30745721828310907 }, "engineStats" : { - "cache.limit" : 17872713728, + "cache.limit" : 16341337088, "cache.allocated" : 1090824, - "rocksdb.estimate-num-keys" : 74, + "rocksdb.estimate-num-keys" : 48, "rocksdb.estimate-live-data-size" : 0, "rocksdb.live-sst-files-size" : 0, - "rocksdb.block-cache-capacity" : 21447256473, + "rocksdb.block-cache-capacity" : 19609604505, "rocksdb.block-cache-usage" : 96, - "rocksdb.free-disk-space" : 212517654528, - "rocksdb.total-disk-space" : 266402316288 + "rocksdb.free-disk-space" : 342105890816, + "rocksdb.total-disk-space" : 491180957696 } }, - "PRMR-f7b5d16d-cc41-42cf-a1cf-647dd645125e" : { - "id" : "PRMR-f7b5d16d-cc41-42cf-a1cf-647dd645125e", + "PRMR-10e22c93-4c5c-43df-93e8-1bd4245cb705" : { + "id" : "PRMR-10e22c93-4c5c-43df-93e8-1bd4245cb705", "alias" : "DBServer0002", - "endpoint" : "tcp://127.0.0.1:9761", + "endpoint" : "tcp://127.0.0.1:24461", "role" : "PRIMARY", "maintenance" : false, "readOnly" : false, "version" : "3.11.0-devel", - "build" : "heads/devel-0-g8ae4fcb38aa", + "build" : "heads/documentation/api-fixes-2022-10-06-0-g97e257108e1", "license" : "enterprise", - "os" : "Linux version 5.13.0-1031-aws (buildd@lcy02-amd64-083) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #35~20.04.1-Ubuntu SMP Mon Jun 13 22:30:30 UTC 2022", + "os" : "Linux version 4.15.0-176-generic (buildd@lcy02-amd64-020) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #185-Ubuntu SMP Tue Mar 29 17:40:04 UTC 2022", "platform" : "linux", "physicalMemory" : { - "value" : 73638338560, + "value" : 67512832000, "overridden" : false }, "numberOfCores" : { - "value" : 36, + "value" : 32, "overridden" : false }, "processStats" : { - "processUptime" : 3.760688304901123, - "numberOfThreads" : 98, - "virtualSize" : 1296216064, - "residentSetSize" : 169181184 + "processUptime" : 5.173421382904053, + "numberOfThreads" : 92, + "virtualSize" : 1219649536, + "residentSetSize" : 163942400 }, "cpuStats" : { - "userPercent" : 11.447553103603445, - "systemPercent" : 3.216320057041856, - "idlePercent" : 84.5638671378519, - "iowaitPercent" : 0.6472445855053552 + "userPercent" : 9.590405103606736, + "systemPercent" : 1.1652808967792194, + "idlePercent" : 88.90017466718722, + "iowaitPercent" : 0.30745721828310907 }, "engineStats" : { - "cache.limit" : 17872713728, + "cache.limit" : 16341337088, "cache.allocated" : 1090824, - "rocksdb.estimate-num-keys" : 74, + "rocksdb.estimate-num-keys" : 73, "rocksdb.estimate-live-data-size" : 0, "rocksdb.live-sst-files-size" : 0, - "rocksdb.block-cache-capacity" : 21447256473, + "rocksdb.block-cache-capacity" : 19609604505, "rocksdb.block-cache-usage" : 96, - "rocksdb.free-disk-space" : 212517654528, - "rocksdb.total-disk-space" : 266402316288 + "rocksdb.free-disk-space" : 342105890816, + "rocksdb.total-disk-space" : 491180957696 } } }, @@ -147,5 +147,5 @@ x-content-type-options: nosniff "servers" : 2 } }, - "date" : "2022-10-06T13:19:28Z" + "date" : "2022-10-20T12:19:02Z" } diff --git a/3.11/generated/Examples/RestAnalyzersGet.generated b/3.11/generated/Examples/RestAnalyzersGet.generated index c7a52e573d..93203838e0 100644 --- a/3.11/generated/Examples/RestAnalyzersGet.generated +++ b/3.11/generated/Examples/RestAnalyzersGet.generated @@ -13,14 +13,14 @@ x-content-type-options: nosniff "code" : 200, "result" : [ { - "name" : "text_zh", + "name" : "text_ru", "type" : "text", "properties" : { - "locale" : "zh", + "locale" : "ru", "case" : "lower", "stopwords" : [ ], "accent" : false, - "stemming" : false + "stemming" : true }, "features" : [ "frequency", @@ -29,10 +29,10 @@ x-content-type-options: nosniff ] }, { - "name" : "text_sv", + "name" : "text_pt", "type" : "text", "properties" : { - "locale" : "sv", + "locale" : "pt", "case" : "lower", "stopwords" : [ ], "accent" : false, @@ -45,14 +45,14 @@ x-content-type-options: nosniff ] }, { - "name" : "text_ru", + "name" : "text_zh", "type" : "text", "properties" : { - "locale" : "ru", + "locale" : "zh", "case" : "lower", "stopwords" : [ ], "accent" : false, - "stemming" : true + "stemming" : false }, "features" : [ "frequency", @@ -61,10 +61,10 @@ x-content-type-options: nosniff ] }, { - "name" : "text_no", + "name" : "text_nl", "type" : "text", "properties" : { - "locale" : "no", + "locale" : "nl", "case" : "lower", "stopwords" : [ ], "accent" : false, @@ -77,10 +77,10 @@ x-content-type-options: nosniff ] }, { - "name" : "text_nl", + "name" : "text_fr", "type" : "text", "properties" : { - "locale" : "nl", + "locale" : "fr", "case" : "lower", "stopwords" : [ ], "accent" : false, @@ -93,10 +93,10 @@ x-content-type-options: nosniff ] }, { - "name" : "text_it", + "name" : "text_sv", "type" : "text", "properties" : { - "locale" : "it", + "locale" : "sv", "case" : "lower", "stopwords" : [ ], "accent" : false, @@ -109,10 +109,10 @@ x-content-type-options: nosniff ] }, { - "name" : "text_es", + "name" : "text_no", "type" : "text", "properties" : { - "locale" : "es", + "locale" : "no", "case" : "lower", "stopwords" : [ ], "accent" : false, @@ -125,10 +125,10 @@ x-content-type-options: nosniff ] }, { - "name" : "text_fr", + "name" : "text_it", "type" : "text", "properties" : { - "locale" : "fr", + "locale" : "it", "case" : "lower", "stopwords" : [ ], "accent" : false, @@ -157,10 +157,10 @@ x-content-type-options: nosniff ] }, { - "name" : "text_fi", + "name" : "text_de", "type" : "text", "properties" : { - "locale" : "fi", + "locale" : "de", "case" : "lower", "stopwords" : [ ], "accent" : false, @@ -173,10 +173,10 @@ x-content-type-options: nosniff ] }, { - "name" : "text_de", + "name" : "text_fi", "type" : "text", "properties" : { - "locale" : "de", + "locale" : "fi", "case" : "lower", "stopwords" : [ ], "accent" : false, @@ -189,10 +189,10 @@ x-content-type-options: nosniff ] }, { - "name" : "text_pt", + "name" : "text_es", "type" : "text", "properties" : { - "locale" : "pt", + "locale" : "es", "case" : "lower", "stopwords" : [ ], "accent" : false, diff --git a/3.11/generated/Examples/RestApiCollectionCompact.generated b/3.11/generated/Examples/RestApiCollectionCompact.generated index 8e592e96f9..71d83bc2ba 100644 --- a/3.11/generated/Examples/RestApiCollectionCompact.generated +++ b/3.11/generated/Examples/RestApiCollectionCompact.generated @@ -16,6 +16,6 @@ x-content-type-options: nosniff "type" : 2, "name" : "testCollection", "isSystem" : false, - "id" : "67709", - "globallyUniqueId" : "hEF6AA70B1DE7/67709" + "id" : "67710", + "globallyUniqueId" : "h3E4B04F558E8/67710" } diff --git a/3.11/generated/Examples/RestBackupCreateBackup.generated b/3.11/generated/Examples/RestBackupCreateBackup.generated index 659a7870dd..4eed993391 100644 --- a/3.11/generated/Examples/RestBackupCreateBackup.generated +++ b/3.11/generated/Examples/RestBackupCreateBackup.generated @@ -16,10 +16,10 @@ x-content-type-options: nosniff "error" : false, "code" : 201, "result" : { - "id" : "2022-10-06T13.18.30Z_foo", + "id" : "2022-10-20T12.17.46Z_foo", "potentiallyInconsistent" : false, - "sizeInBytes" : 68897, - "datetime" : "2022-10-06T13:18:30Z", + "sizeInBytes" : 68902, + "datetime" : "2022-10-20T12:17:46Z", "nrDBServers" : 1, "nrFiles" : 21 } diff --git a/3.11/generated/Examples/RestBackupDeleteBackup.generated b/3.11/generated/Examples/RestBackupDeleteBackup.generated index d91b35703a..2c51b26f24 100644 --- a/3.11/generated/Examples/RestBackupDeleteBackup.generated +++ b/3.11/generated/Examples/RestBackupDeleteBackup.generated @@ -1,6 +1,6 @@ shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_admin/backup/delete <<EOF { - "id" : "2022-10-06T13.18.30Z_4e29dd0f-31b8-4490-9f89-40651ff33c2b" + "id" : "2022-10-20T12.17.46Z_6e3ddb43-1fa7-4d33-89bd-df44ac986188" } EOF diff --git a/3.11/generated/Examples/RestBackupDownloadBackup.generated b/3.11/generated/Examples/RestBackupDownloadBackup.generated index e0931ef2b0..9380596da9 100644 --- a/3.11/generated/Examples/RestBackupDownloadBackup.generated +++ b/3.11/generated/Examples/RestBackupDownloadBackup.generated @@ -1,6 +1,6 @@ shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_admin/backup/download <<EOF { - "id" : "2022-10-06T13.18.30Z_e6a91880-a5be-4d50-89d2-8b0ed15a2b1d", + "id" : "2022-10-20T12.17.46Z_d8899273-b36f-427a-80d6-2a8b01ac55b4", "remoteRepository" : "local://tmp/backups", "config" : { "local" : { @@ -22,6 +22,6 @@ x-content-type-options: nosniff "error" : false, "code" : 202, "result" : { - "downloadId" : "67738" + "downloadId" : "67739" } } diff --git a/3.11/generated/Examples/RestBackupDownloadBackupStarted.generated b/3.11/generated/Examples/RestBackupDownloadBackupStarted.generated index f05586bb3a..9eb35bd3ff 100644 --- a/3.11/generated/Examples/RestBackupDownloadBackupStarted.generated +++ b/3.11/generated/Examples/RestBackupDownloadBackupStarted.generated @@ -1,6 +1,6 @@ shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_admin/backup/download <<EOF { - "downloadId" : "67745" + "downloadId" : "67750" } EOF @@ -16,10 +16,10 @@ x-content-type-options: nosniff "error" : false, "code" : 200, "result" : { - "Timestamp" : "2022-10-06T13:19:01Z", - "DownloadId" : "67745", + "Timestamp" : "2022-10-20T12:18:18Z", + "DownloadId" : "67750", "Cancelled" : false, - "BackupId" : "2022-10-06T13.18.45Z_006cf4b8-7338-4e38-abf2-a8c552b8367d", + "BackupId" : "2022-10-20T12.18.02Z_5bd6b223-8bfc-473d-9a28-37845f26abb8", "DBServers" : { "SNGL" : { "Status" : "STARTED" diff --git a/3.11/generated/Examples/RestBackupListBackup.generated b/3.11/generated/Examples/RestBackupListBackup.generated index 153137485c..d5a1342060 100644 --- a/3.11/generated/Examples/RestBackupListBackup.generated +++ b/3.11/generated/Examples/RestBackupListBackup.generated @@ -15,14 +15,14 @@ x-content-type-options: nosniff "error" : false, "code" : 200, "result" : { - "server" : "SNGL-a58f5d9a-74f7-422b-b479-196f357a3721", + "server" : "SNGL-3091181d-c757-44e3-ac28-353600609c0e", "list" : { - "2022-10-06T13.19.01Z_06ac8bff-bdf1-46a5-bb0a-1730f21c9583" : { - "id" : "2022-10-06T13.19.01Z_06ac8bff-bdf1-46a5-bb0a-1730f21c9583", + "2022-10-20T12.18.18Z_5678c714-a45e-47be-a887-c44203821474" : { + "id" : "2022-10-20T12.18.18Z_5678c714-a45e-47be-a887-c44203821474", "version" : "3.11.0-devel", - "datetime" : "2022-10-06T13:19:01Z", + "datetime" : "2022-10-20T12:18:18Z", "keys" : [ ], - "sizeInBytes" : 81303, + "sizeInBytes" : 85006, "nrFiles" : 21, "nrDBServers" : 1, "available" : true, @@ -30,12 +30,12 @@ x-content-type-options: nosniff "potentiallyInconsistent" : false, "countIncludesFilesOnly" : true }, - "2022-10-06T13.18.30Z_foo" : { - "id" : "2022-10-06T13.18.30Z_foo", + "2022-10-20T12.17.46Z_foo" : { + "id" : "2022-10-20T12.17.46Z_foo", "version" : "3.11.0-devel", - "datetime" : "2022-10-06T13:18:30Z", + "datetime" : "2022-10-20T12:17:46Z", "keys" : [ ], - "sizeInBytes" : 68897, + "sizeInBytes" : 68902, "nrFiles" : 21, "nrDBServers" : 1, "available" : true, @@ -43,12 +43,12 @@ x-content-type-options: nosniff "potentiallyInconsistent" : false, "countIncludesFilesOnly" : true }, - "2022-10-06T13.19.01Z_709ee30e-b061-4c69-87ff-31d3fecf07e9" : { - "id" : "2022-10-06T13.19.01Z_709ee30e-b061-4c69-87ff-31d3fecf07e9", + "2022-10-20T12.18.18Z_9b6106cb-fd96-4988-a041-a6d52e3af9d9" : { + "id" : "2022-10-20T12.18.18Z_9b6106cb-fd96-4988-a041-a6d52e3af9d9", "version" : "3.11.0-devel", - "datetime" : "2022-10-06T13:19:01Z", + "datetime" : "2022-10-20T12:18:18Z", "keys" : [ ], - "sizeInBytes" : 84646, + "sizeInBytes" : 88349, "nrFiles" : 23, "nrDBServers" : 1, "available" : true, diff --git a/3.11/generated/Examples/RestBackupRestoreBackup.generated b/3.11/generated/Examples/RestBackupRestoreBackup.generated index e74e42918c..b9900c0719 100644 --- a/3.11/generated/Examples/RestBackupRestoreBackup.generated +++ b/3.11/generated/Examples/RestBackupRestoreBackup.generated @@ -1,6 +1,6 @@ shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_admin/backup/restore <<EOF { - "id" : "2022-10-06T13.19.01Z_f03038f0-aeb1-4366-a9ca-5f4ce87f803c" + "id" : "2022-10-20T12.18.18Z_407cb60c-1fab-4704-9058-3748d77d0b8d" } EOF @@ -16,6 +16,6 @@ x-content-type-options: nosniff "error" : false, "code" : 200, "result" : { - "previous" : "/tmp/arangosh_naeIdK/rocksdb-clusterOrNot/single_0/data/backups/DIRECTORY_TO_DELETE" + "previous" : "/tmp/arangosh_maFbLK/rocksdb-clusterOrNot/single_0/data/backups/DIRECTORY_TO_DELETE" } } diff --git a/3.11/generated/Examples/RestBackupUploadBackup.generated b/3.11/generated/Examples/RestBackupUploadBackup.generated index eb7d85a160..6e1f0281a0 100644 --- a/3.11/generated/Examples/RestBackupUploadBackup.generated +++ b/3.11/generated/Examples/RestBackupUploadBackup.generated @@ -1,6 +1,6 @@ shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_admin/backup/upload <<EOF { - "id" : "2022-10-06T13.19.03Z_54e19fd1-ea77-4c93-8658-bf5a8ec8dacf", + "id" : "2022-10-20T12.18.28Z_d1a33e6f-70a3-4b61-be04-95c69b95ec68", "remoteRepository" : "local://tmp/backups", "config" : { "local" : { @@ -22,6 +22,6 @@ x-content-type-options: nosniff "error" : false, "code" : 202, "result" : { - "uploadId" : "67769" + "uploadId" : "67774" } } diff --git a/3.11/generated/Examples/RestBackupUploadBackupStarted.generated b/3.11/generated/Examples/RestBackupUploadBackupStarted.generated index c4440ad037..60f10319c4 100644 --- a/3.11/generated/Examples/RestBackupUploadBackupStarted.generated +++ b/3.11/generated/Examples/RestBackupUploadBackupStarted.generated @@ -1,6 +1,6 @@ shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_admin/backup/upload <<EOF { - "uploadId" : "67771" + "uploadId" : "67776" } EOF @@ -16,10 +16,10 @@ x-content-type-options: nosniff "error" : false, "code" : 200, "result" : { - "Timestamp" : "2022-10-06T13:19:03Z", - "UploadId" : "67771", + "Timestamp" : "2022-10-20T12:18:28Z", + "UploadId" : "67776", "Cancelled" : false, - "BackupId" : "2022-10-06T13.19.03Z_da4d398e-e0bb-42e9-a66f-6328569b87e0", + "BackupId" : "2022-10-20T12.18.28Z_40ccaaf8-eaae-44bd-9df8-bb204724fb28", "DBServers" : { "SNGL" : { "Status" : "STARTED" diff --git a/3.11/generated/Examples/RestBatchMultipartHeader.generated b/3.11/generated/Examples/RestBatchMultipartHeader.generated index c1ef22a220..47afc303f4 100644 --- a/3.11/generated/Examples/RestBatchMultipartHeader.generated +++ b/3.11/generated/Examples/RestBatchMultipartHeader.generated @@ -96,8 +96,8 @@ Content-Length: 446 "cacheEnabled" : false, "isSystem" : false, "internalValidatorType" : 0, - "globallyUniqueId" : "hEF6AA70B1DE7/67775", - "id" : "67775", + "globallyUniqueId" : "h3E4B04F558E8/67780", + "id" : "67780", "isSmartChild" : false, "schema" : null, "keyOptions" : { @@ -107,7 +107,7 @@ Content-Length: 446 }, "name" : "products", "computedValues" : null, - "objectId" : "67774", + "objectId" : "67779", "type" : 2, "status" : 3, "statusString" : "loaded" @@ -148,10 +148,10 @@ Content-Length: 565 "cacheSize" : 0, "cacheUsage" : 0 }, - "id" : "67775", + "id" : "67780", "isSmartChild" : false, "schema" : null, - "globallyUniqueId" : "hEF6AA70B1DE7/67775", + "globallyUniqueId" : "h3E4B04F558E8/67780", "keyOptions" : { "allowUserKeys" : true, "type" : "traditional", @@ -159,7 +159,7 @@ Content-Length: 565 }, "name" : "products", "computedValues" : null, - "objectId" : "67774" + "objectId" : "67779" }↩ --SomeBoundaryValue @@ -175,7 +175,7 @@ Content-Length: 39 { "error" : false, "code" : 200, - "id" : "67775" + "id" : "67780" }↩ --SomeBoundaryValue-- diff --git a/3.11/generated/Examples/RestCollectionCreateCollection.generated b/3.11/generated/Examples/RestCollectionCreateCollection.generated index c9189e0c62..11b8213dc7 100644 --- a/3.11/generated/Examples/RestCollectionCreateCollection.generated +++ b/3.11/generated/Examples/RestCollectionCreateCollection.generated @@ -22,8 +22,8 @@ x-content-type-options: nosniff "cacheEnabled" : false, "isSystem" : false, "internalValidatorType" : 0, - "globallyUniqueId" : "hEF6AA70B1DE7/67783", - "id" : "67783", + "globallyUniqueId" : "h3E4B04F558E8/67788", + "id" : "67788", "isSmartChild" : false, "schema" : null, "keyOptions" : { @@ -33,7 +33,7 @@ x-content-type-options: nosniff }, "name" : "testCollectionBasics", "computedValues" : null, - "objectId" : "67782", + "objectId" : "67787", "type" : 2, "status" : 3, "statusString" : "loaded" @@ -63,8 +63,8 @@ x-content-type-options: nosniff "cacheEnabled" : false, "isSystem" : false, "internalValidatorType" : 0, - "globallyUniqueId" : "hEF6AA70B1DE7/67788", - "id" : "67788", + "globallyUniqueId" : "h3E4B04F558E8/67793", + "id" : "67793", "isSmartChild" : false, "schema" : null, "keyOptions" : { @@ -74,7 +74,7 @@ x-content-type-options: nosniff }, "name" : "testCollectionEdges", "computedValues" : null, - "objectId" : "67787", + "objectId" : "67792", "type" : 3, "status" : 3, "statusString" : "loaded" diff --git a/3.11/generated/Examples/RestCollectionCreateKeyopt.generated b/3.11/generated/Examples/RestCollectionCreateKeyopt.generated index 034e6722a7..fe6f74ab6a 100644 --- a/3.11/generated/Examples/RestCollectionCreateKeyopt.generated +++ b/3.11/generated/Examples/RestCollectionCreateKeyopt.generated @@ -27,8 +27,8 @@ x-content-type-options: nosniff "cacheEnabled" : false, "isSystem" : false, "internalValidatorType" : 0, - "globallyUniqueId" : "hEF6AA70B1DE7/67798", - "id" : "67798", + "globallyUniqueId" : "h3E4B04F558E8/67803", + "id" : "67803", "isSmartChild" : false, "schema" : null, "keyOptions" : { @@ -40,7 +40,7 @@ x-content-type-options: nosniff }, "name" : "testCollectionUsers", "computedValues" : null, - "objectId" : "67797", + "objectId" : "67802", "type" : 2, "status" : 3, "statusString" : "loaded" diff --git a/3.11/generated/Examples/RestCollectionDeleteCollectionIdentifier.generated b/3.11/generated/Examples/RestCollectionDeleteCollectionIdentifier.generated index 477d8ac482..edc14da649 100644 --- a/3.11/generated/Examples/RestCollectionDeleteCollectionIdentifier.generated +++ b/3.11/generated/Examples/RestCollectionDeleteCollectionIdentifier.generated @@ -1,4 +1,4 @@ -shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/collection/67805 +shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/collection/67810 HTTP/1.1 200 OK content-type: application/json @@ -11,5 +11,5 @@ x-content-type-options: nosniff { "error" : false, "code" : 200, - "id" : "67805" + "id" : "67810" } diff --git a/3.11/generated/Examples/RestCollectionDeleteCollectionName.generated b/3.11/generated/Examples/RestCollectionDeleteCollectionName.generated index fc0f698528..1de376413d 100644 --- a/3.11/generated/Examples/RestCollectionDeleteCollectionName.generated +++ b/3.11/generated/Examples/RestCollectionDeleteCollectionName.generated @@ -11,5 +11,5 @@ x-content-type-options: nosniff { "error" : false, "code" : 200, - "id" : "67812" + "id" : "67817" } diff --git a/3.11/generated/Examples/RestCollectionDeleteCollectionSystem.generated b/3.11/generated/Examples/RestCollectionDeleteCollectionSystem.generated index 93d5178e71..8677994174 100644 --- a/3.11/generated/Examples/RestCollectionDeleteCollectionSystem.generated +++ b/3.11/generated/Examples/RestCollectionDeleteCollectionSystem.generated @@ -11,5 +11,5 @@ x-content-type-options: nosniff { "error" : false, "code" : 200, - "id" : "67819" + "id" : "67824" } diff --git a/3.11/generated/Examples/RestCollectionGetAllCollections.generated b/3.11/generated/Examples/RestCollectionGetAllCollections.generated index bf2089b247..0455c8c59f 100644 --- a/3.11/generated/Examples/RestCollectionGetAllCollections.generated +++ b/3.11/generated/Examples/RestCollectionGetAllCollections.generated @@ -13,44 +13,36 @@ x-content-type-options: nosniff "code" : 200, "result" : [ { - "id" : "28", - "name" : "_jobs", + "id" : "34", + "name" : "_appbundles", "status" : 3, "type" : 2, "isSystem" : true, - "globallyUniqueId" : "_jobs" - }, - { - "id" : "91", - "name" : "demo", - "status" : 3, - "type" : 2, - "isSystem" : false, - "globallyUniqueId" : "hEF6AA70B1DE7/91" + "globallyUniqueId" : "_appbundles" }, { - "id" : "10", - "name" : "_statistics", + "id" : "7", + "name" : "_graphs", "status" : 3, "type" : 2, "isSystem" : true, - "globallyUniqueId" : "_statistics" + "globallyUniqueId" : "_graphs" }, { - "id" : "4", - "name" : "_users", + "id" : "13", + "name" : "_statistics15", "status" : 3, "type" : 2, "isSystem" : true, - "globallyUniqueId" : "_users" + "globallyUniqueId" : "_statistics15" }, { - "id" : "97", - "name" : "animals", + "id" : "19", + "name" : "_analyzers", "status" : 3, "type" : 2, - "isSystem" : false, - "globallyUniqueId" : "hEF6AA70B1DE7/97" + "isSystem" : true, + "globallyUniqueId" : "_analyzers" }, { "id" : "25", @@ -60,14 +52,6 @@ x-content-type-options: nosniff "isSystem" : true, "globallyUniqueId" : "_queues" }, - { - "id" : "19", - "name" : "_analyzers", - "status" : 3, - "type" : 2, - "isSystem" : true, - "globallyUniqueId" : "_analyzers" - }, { "id" : "37", "name" : "_frontend", @@ -85,28 +69,36 @@ x-content-type-options: nosniff "globallyUniqueId" : "_apps" }, { - "id" : "7", - "name" : "_graphs", + "id" : "91", + "name" : "demo", "status" : 3, "type" : 2, - "isSystem" : true, - "globallyUniqueId" : "_graphs" + "isSystem" : false, + "globallyUniqueId" : "h3E4B04F558E8/91" }, { - "id" : "13", - "name" : "_statistics15", + "id" : "4", + "name" : "_users", "status" : 3, "type" : 2, "isSystem" : true, - "globallyUniqueId" : "_statistics15" + "globallyUniqueId" : "_users" }, { - "id" : "22", - "name" : "_aqlfunctions", + "id" : "10", + "name" : "_statistics", "status" : 3, "type" : 2, "isSystem" : true, - "globallyUniqueId" : "_aqlfunctions" + "globallyUniqueId" : "_statistics" + }, + { + "id" : "97", + "name" : "animals", + "status" : 3, + "type" : 2, + "isSystem" : false, + "globallyUniqueId" : "h3E4B04F558E8/97" }, { "id" : "16", @@ -117,12 +109,20 @@ x-content-type-options: nosniff "globallyUniqueId" : "_statisticsRaw" }, { - "id" : "34", - "name" : "_appbundles", + "id" : "22", + "name" : "_aqlfunctions", "status" : 3, "type" : 2, "isSystem" : true, - "globallyUniqueId" : "_appbundles" + "globallyUniqueId" : "_aqlfunctions" + }, + { + "id" : "28", + "name" : "_jobs", + "status" : 3, + "type" : 2, + "isSystem" : true, + "globallyUniqueId" : "_jobs" } ] } diff --git a/3.11/generated/Examples/RestCollectionGetCollectionChecksum.generated b/3.11/generated/Examples/RestCollectionGetCollectionChecksum.generated index 44974855e2..99ef2fca0b 100644 --- a/3.11/generated/Examples/RestCollectionGetCollectionChecksum.generated +++ b/3.11/generated/Examples/RestCollectionGetCollectionChecksum.generated @@ -3,7 +3,7 @@ HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive -content-length: 194 +content-length: 193 location: /_db/_system/_api/collection/products/checksum server: ArangoDB x-arango-queue-time-seconds: 0.000000 @@ -16,8 +16,8 @@ x-content-type-options: nosniff "status" : 3, "type" : 2, "name" : "products", - "id" : "67826", - "revision" : "_e4zxDTa--_", - "globallyUniqueId" : "hEF6AA70B1DE7/67826", - "checksum" : "17465741539385138817" + "id" : "67831", + "revision" : "_e9TSnUi---", + "globallyUniqueId" : "h3E4B04F558E8/67831", + "checksum" : "2266360742894690723" } diff --git a/3.11/generated/Examples/RestCollectionGetCollectionChecksumNoRev.generated b/3.11/generated/Examples/RestCollectionGetCollectionChecksumNoRev.generated index 467325f327..6b0bf0ff9b 100644 --- a/3.11/generated/Examples/RestCollectionGetCollectionChecksumNoRev.generated +++ b/3.11/generated/Examples/RestCollectionGetCollectionChecksumNoRev.generated @@ -16,8 +16,8 @@ x-content-type-options: nosniff "status" : 3, "type" : 2, "name" : "products", - "id" : "67836", - "revision" : "_e4zxDTq--_", - "globallyUniqueId" : "hEF6AA70B1DE7/67836", - "checksum" : "598031403152869122" + "id" : "67841", + "revision" : "_e9TSnVW---", + "globallyUniqueId" : "h3E4B04F558E8/67841", + "checksum" : "629226094156115460" } diff --git a/3.11/generated/Examples/RestCollectionGetCollectionCount.generated b/3.11/generated/Examples/RestCollectionGetCollectionCount.generated index b3c98f061e..1101c8fd05 100644 --- a/3.11/generated/Examples/RestCollectionGetCollectionCount.generated +++ b/3.11/generated/Examples/RestCollectionGetCollectionCount.generated @@ -21,18 +21,18 @@ x-content-type-options: nosniff "internalValidatorType" : 0, "cacheEnabled" : false, "count" : 100, - "globallyUniqueId" : "hEF6AA70B1DE7/67846", - "id" : "67846", + "globallyUniqueId" : "h3E4B04F558E8/67851", + "id" : "67851", "isSmartChild" : false, "schema" : null, "keyOptions" : { "allowUserKeys" : true, "type" : "traditional", - "lastValue" : 68049 + "lastValue" : 68054 }, "name" : "products", "computedValues" : null, - "objectId" : "67845", + "objectId" : "67850", "type" : 2, "status" : 3 } diff --git a/3.11/generated/Examples/RestCollectionGetCollectionFigures.generated b/3.11/generated/Examples/RestCollectionGetCollectionFigures.generated index 65b47d209d..f30e5d7f59 100644 --- a/3.11/generated/Examples/RestCollectionGetCollectionFigures.generated +++ b/3.11/generated/Examples/RestCollectionGetCollectionFigures.generated @@ -3,7 +3,7 @@ HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive -content-length: 573 +content-length: 571 location: /_db/_system/_api/collection/products/figures server: ArangoDB x-arango-queue-time-seconds: 0.000000 @@ -28,21 +28,21 @@ x-content-type-options: nosniff "count" : 1, "size" : 31 }, - "documentsSize" : 1092, + "documentsSize" : 84, "cacheInUse" : false, "cacheSize" : 0, "cacheUsage" : 0 }, - "id" : "68054", + "id" : "68059", "isSmartChild" : false, "schema" : null, - "globallyUniqueId" : "hEF6AA70B1DE7/68054", + "globallyUniqueId" : "h3E4B04F558E8/68059", "keyOptions" : { "allowUserKeys" : true, "type" : "traditional", - "lastValue" : 68059 + "lastValue" : 68064 }, "name" : "products", "computedValues" : null, - "objectId" : "68053" + "objectId" : "68058" } diff --git a/3.11/generated/Examples/RestCollectionGetCollectionFiguresDetails.generated b/3.11/generated/Examples/RestCollectionGetCollectionFiguresDetails.generated index 66d5e4f644..f3c04cbd09 100644 --- a/3.11/generated/Examples/RestCollectionGetCollectionFiguresDetails.generated +++ b/3.11/generated/Examples/RestCollectionGetCollectionFiguresDetails.generated @@ -3,7 +3,7 @@ HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive -content-length: 644 +content-length: 645 location: /_db/_system/_api/collection/products/figures server: ArangoDB x-arango-queue-time-seconds: 0.000000 @@ -28,7 +28,7 @@ x-content-type-options: nosniff "count" : 1, "size" : 31 }, - "documentsSize" : 87, + "documentsSize" : 261, "cacheInUse" : false, "cacheSize" : 0, "cacheUsage" : 0, @@ -43,16 +43,16 @@ x-content-type-options: nosniff ] } }, - "id" : "68064", + "id" : "68069", "isSmartChild" : false, "schema" : null, - "globallyUniqueId" : "hEF6AA70B1DE7/68064", + "globallyUniqueId" : "h3E4B04F558E8/68069", "keyOptions" : { "allowUserKeys" : true, "type" : "traditional", - "lastValue" : 68069 + "lastValue" : 68074 }, "name" : "products", "computedValues" : null, - "objectId" : "68063" + "objectId" : "68068" } diff --git a/3.11/generated/Examples/RestCollectionGetCollectionIdentifier.generated b/3.11/generated/Examples/RestCollectionGetCollectionIdentifier.generated index bf0bbd5d70..4f6eca872c 100644 --- a/3.11/generated/Examples/RestCollectionGetCollectionIdentifier.generated +++ b/3.11/generated/Examples/RestCollectionGetCollectionIdentifier.generated @@ -1,10 +1,10 @@ -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/collection/68074/properties +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/collection/68079/properties HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive content-length: 445 -location: /_db/_system/_api/collection/68074/properties +location: /_db/_system/_api/collection/68079/properties server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -19,8 +19,8 @@ x-content-type-options: nosniff "cacheEnabled" : false, "isSystem" : false, "internalValidatorType" : 0, - "globallyUniqueId" : "hEF6AA70B1DE7/68074", - "id" : "68074", + "globallyUniqueId" : "h3E4B04F558E8/68079", + "id" : "68079", "isSmartChild" : false, "schema" : null, "keyOptions" : { @@ -30,7 +30,7 @@ x-content-type-options: nosniff }, "name" : "products", "computedValues" : null, - "objectId" : "68073", + "objectId" : "68078", "type" : 2, "status" : 3, "statusString" : "loaded" diff --git a/3.11/generated/Examples/RestCollectionGetCollectionName.generated b/3.11/generated/Examples/RestCollectionGetCollectionName.generated index 9561606b9f..21cd4464c1 100644 --- a/3.11/generated/Examples/RestCollectionGetCollectionName.generated +++ b/3.11/generated/Examples/RestCollectionGetCollectionName.generated @@ -19,8 +19,8 @@ x-content-type-options: nosniff "cacheEnabled" : false, "isSystem" : false, "internalValidatorType" : 0, - "globallyUniqueId" : "hEF6AA70B1DE7/68082", - "id" : "68082", + "globallyUniqueId" : "h3E4B04F558E8/68087", + "id" : "68087", "isSmartChild" : false, "schema" : null, "keyOptions" : { @@ -30,7 +30,7 @@ x-content-type-options: nosniff }, "name" : "products", "computedValues" : null, - "objectId" : "68081", + "objectId" : "68086", "type" : 2, "status" : 3, "statusString" : "loaded" diff --git a/3.11/generated/Examples/RestCollectionGetCollectionRevision.generated b/3.11/generated/Examples/RestCollectionGetCollectionRevision.generated index 1c83dfd65c..802f390df3 100644 --- a/3.11/generated/Examples/RestCollectionGetCollectionRevision.generated +++ b/3.11/generated/Examples/RestCollectionGetCollectionRevision.generated @@ -19,17 +19,17 @@ x-content-type-options: nosniff "statusString" : "loaded", "schema" : null, "revision" : "54", - "id" : "68090", + "id" : "68095", "isSmartChild" : false, "name" : "products", "type" : 2, "status" : 3, "cacheEnabled" : false, "isSystem" : false, - "objectId" : "68089", + "objectId" : "68094", "computedValues" : null, "internalValidatorType" : 0, - "globallyUniqueId" : "hEF6AA70B1DE7/68090", + "globallyUniqueId" : "h3E4B04F558E8/68095", "keyOptions" : { "allowUserKeys" : true, "type" : "traditional", diff --git a/3.11/generated/Examples/RestCollectionIdentifierLoad.generated b/3.11/generated/Examples/RestCollectionIdentifierLoad.generated index 38caab18df..5e01f90f58 100644 --- a/3.11/generated/Examples/RestCollectionIdentifierLoad.generated +++ b/3.11/generated/Examples/RestCollectionIdentifierLoad.generated @@ -16,7 +16,7 @@ x-content-type-options: nosniff "type" : 2, "name" : "products", "isSystem" : false, - "id" : "68098", - "globallyUniqueId" : "hEF6AA70B1DE7/68098", + "id" : "68103", + "globallyUniqueId" : "h3E4B04F558E8/68103", "count" : 0 } diff --git a/3.11/generated/Examples/RestCollectionIdentifierPropertiesSync.generated b/3.11/generated/Examples/RestCollectionIdentifierPropertiesSync.generated index b5e28d06b6..b77dfa9935 100644 --- a/3.11/generated/Examples/RestCollectionIdentifierPropertiesSync.generated +++ b/3.11/generated/Examples/RestCollectionIdentifierPropertiesSync.generated @@ -23,8 +23,8 @@ x-content-type-options: nosniff "cacheEnabled" : false, "isSystem" : false, "internalValidatorType" : 0, - "globallyUniqueId" : "hEF6AA70B1DE7/68114", - "id" : "68114", + "globallyUniqueId" : "h3E4B04F558E8/68119", + "id" : "68119", "isSmartChild" : false, "schema" : null, "keyOptions" : { @@ -34,7 +34,7 @@ x-content-type-options: nosniff }, "name" : "products", "computedValues" : null, - "objectId" : "68113", + "objectId" : "68118", "type" : 2, "status" : 3, "statusString" : "loaded" diff --git a/3.11/generated/Examples/RestCollectionIdentifierRename.generated b/3.11/generated/Examples/RestCollectionIdentifierRename.generated index e033eebab6..b2f64e6017 100644 --- a/3.11/generated/Examples/RestCollectionIdentifierRename.generated +++ b/3.11/generated/Examples/RestCollectionIdentifierRename.generated @@ -20,6 +20,6 @@ x-content-type-options: nosniff "type" : 2, "name" : "newname", "isSystem" : false, - "id" : "68123", - "globallyUniqueId" : "hEF6AA70B1DE7/68123" + "id" : "68128", + "globallyUniqueId" : "h3E4B04F558E8/68128" } diff --git a/3.11/generated/Examples/RestCollectionIdentifierTruncate.generated b/3.11/generated/Examples/RestCollectionIdentifierTruncate.generated index e1be60d366..35d63ab758 100644 --- a/3.11/generated/Examples/RestCollectionIdentifierTruncate.generated +++ b/3.11/generated/Examples/RestCollectionIdentifierTruncate.generated @@ -16,6 +16,6 @@ x-content-type-options: nosniff "type" : 2, "name" : "products", "isSystem" : false, - "id" : "68132", - "globallyUniqueId" : "hEF6AA70B1DE7/68132" + "id" : "68137", + "globallyUniqueId" : "h3E4B04F558E8/68137" } diff --git a/3.11/generated/Examples/RestCollectionIdentifierUnload.generated b/3.11/generated/Examples/RestCollectionIdentifierUnload.generated index dd29695ceb..8a2b683555 100644 --- a/3.11/generated/Examples/RestCollectionIdentifierUnload.generated +++ b/3.11/generated/Examples/RestCollectionIdentifierUnload.generated @@ -16,6 +16,6 @@ x-content-type-options: nosniff "type" : 2, "name" : "products", "isSystem" : false, - "id" : "68140", - "globallyUniqueId" : "hEF6AA70B1DE7/68140" + "id" : "68145", + "globallyUniqueId" : "h3E4B04F558E8/68145" } diff --git a/3.11/generated/Examples/RestCursorCreateCursorForLimitReturn.generated b/3.11/generated/Examples/RestCursorCreateCursorForLimitReturn.generated index 3427d2af81..f78538a26d 100644 --- a/3.11/generated/Examples/RestCursorCreateCursorForLimitReturn.generated +++ b/3.11/generated/Examples/RestCursorCreateCursorForLimitReturn.generated @@ -9,7 +9,7 @@ EOF HTTP/1.1 201 Created content-type: application/json connection: Keep-Alive -content-length: 531 +content-length: 532 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -17,20 +17,20 @@ x-content-type-options: nosniff { "result" : [ { - "_key" : "68156", - "_id" : "products/68156", - "_rev" : "_e4zxDmi--_", + "_key" : "68161", + "_id" : "products/68161", + "_rev" : "_e9TSoTG---", "hello1" : "world1" }, { - "_key" : "68158", - "_id" : "products/68158", - "_rev" : "_e4zxDmm---", + "_key" : "68163", + "_id" : "products/68163", + "_rev" : "_e9TSoTK---", "hello2" : "world1" } ], "hasMore" : true, - "id" : "68167", + "id" : "68172", "count" : 5, "extra" : { "warnings" : [ ], @@ -45,7 +45,7 @@ x-content-type-options: nosniff "cacheMisses" : 0, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.00009322199912276119, + "executionTime" : 0.00025034300051629543, "peakMemoryUsage" : 0, "intermediateCommits" : 0 } diff --git a/3.11/generated/Examples/RestCursorCreateCursorForLimitReturnSingle.generated b/3.11/generated/Examples/RestCursorCreateCursorForLimitReturnSingle.generated index 6c966fe613..d2ffbdd101 100644 --- a/3.11/generated/Examples/RestCursorCreateCursorForLimitReturnSingle.generated +++ b/3.11/generated/Examples/RestCursorCreateCursorForLimitReturnSingle.generated @@ -17,15 +17,15 @@ x-content-type-options: nosniff { "result" : [ { - "_key" : "68176", - "_id" : "products/68176", - "_rev" : "_e4zxDmy--_", + "_key" : "68181", + "_id" : "products/68181", + "_rev" : "_e9TSoUW---", "hello1" : "world1" }, { - "_key" : "68178", - "_id" : "products/68178", - "_rev" : "_e4zxDmy--A", + "_key" : "68183", + "_id" : "products/68183", + "_rev" : "_e9TSoUa---", "hello2" : "world1" } ], @@ -45,7 +45,7 @@ x-content-type-options: nosniff "cacheMisses" : 0, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.00006913899960636627, + "executionTime" : 0.0002604860346764326, "peakMemoryUsage" : 0, "intermediateCommits" : 0 } diff --git a/3.11/generated/Examples/RestCursorCreateCursorOption.generated b/3.11/generated/Examples/RestCursorCreateCursorOption.generated index f283cfb4f3..5cc95013cd 100644 --- a/3.11/generated/Examples/RestCursorCreateCursorOption.generated +++ b/3.11/generated/Examples/RestCursorCreateCursorOption.generated @@ -11,7 +11,7 @@ EOF HTTP/1.1 201 Created content-type: application/json connection: Keep-Alive -content-length: 423 +content-length: 424 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -46,7 +46,7 @@ x-content-type-options: nosniff "filtered" : 500, "httpRequests" : 0, "fullCount" : 500, - "executionTime" : 0.000226053000005777, + "executionTime" : 0.0008194600231945515, "peakMemoryUsage" : 32768, "intermediateCommits" : 0 } diff --git a/3.11/generated/Examples/RestCursorDelete.generated b/3.11/generated/Examples/RestCursorDelete.generated index c228967824..28f1095942 100644 --- a/3.11/generated/Examples/RestCursorDelete.generated +++ b/3.11/generated/Examples/RestCursorDelete.generated @@ -9,7 +9,7 @@ EOF HTTP/1.1 201 Created content-type: application/json connection: Keep-Alive -content-length: 530 +content-length: 532 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -17,20 +17,20 @@ x-content-type-options: nosniff { "result" : [ { - "_key" : "68196", - "_id" : "products/68196", - "_rev" : "_e4zxDnO--_", + "_key" : "68201", + "_id" : "products/68201", + "_rev" : "_e9TSoWW---", "hello1" : "world1" }, { - "_key" : "68198", - "_id" : "products/68198", - "_rev" : "_e4zxDnS---", + "_key" : "68203", + "_id" : "products/68203", + "_rev" : "_e9TSoWa---", "hello2" : "world1" } ], "hasMore" : true, - "id" : "68207", + "id" : "68212", "count" : 5, "extra" : { "warnings" : [ ], @@ -45,7 +45,7 @@ x-content-type-options: nosniff "cacheMisses" : 0, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.0000651340014883317, + "executionTime" : 0.00023789913393557072, "peakMemoryUsage" : 0, "intermediateCommits" : 0 } @@ -54,5 +54,5 @@ x-content-type-options: nosniff "error" : false, "code" : 201 } -shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/cursor/68207 +shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/cursor/68212 diff --git a/3.11/generated/Examples/RestCursorDeleteIgnore.generated b/3.11/generated/Examples/RestCursorDeleteIgnore.generated index 438543bcaf..6146c91f07 100644 --- a/3.11/generated/Examples/RestCursorDeleteIgnore.generated +++ b/3.11/generated/Examples/RestCursorDeleteIgnore.generated @@ -7,7 +7,7 @@ EOF HTTP/1.1 201 Created content-type: application/json connection: Keep-Alive -content-length: 351 +content-length: 352 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -29,7 +29,7 @@ x-content-type-options: nosniff "cacheMisses" : 0, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.0000808770000730874, + "executionTime" : 0.0003131928388029337, "peakMemoryUsage" : 0, "intermediateCommits" : 0 } diff --git a/3.11/generated/Examples/RestCursorDeleteQuery.generated b/3.11/generated/Examples/RestCursorDeleteQuery.generated index 8fdb863ed5..84b5ad097c 100644 --- a/3.11/generated/Examples/RestCursorDeleteQuery.generated +++ b/3.11/generated/Examples/RestCursorDeleteQuery.generated @@ -7,7 +7,7 @@ EOF HTTP/1.1 201 Created content-type: application/json connection: Keep-Alive -content-length: 353 +content-length: 352 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -29,7 +29,7 @@ x-content-type-options: nosniff "cacheMisses" : 0, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.00016976699953374919, + "executionTime" : 0.0006100009195506573, "peakMemoryUsage" : 0, "intermediateCommits" : 0 } diff --git a/3.11/generated/Examples/RestCursorForLimitReturnCont.generated b/3.11/generated/Examples/RestCursorForLimitReturnCont.generated index 85b4c60b64..4a6be4362a 100644 --- a/3.11/generated/Examples/RestCursorForLimitReturnCont.generated +++ b/3.11/generated/Examples/RestCursorForLimitReturnCont.generated @@ -6,7 +6,7 @@ } EOF -shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/cursor/68260 +shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/cursor/68265 HTTP/1.1 200 OK content-type: application/json @@ -19,20 +19,20 @@ x-content-type-options: nosniff { "result" : [ { - "_key" : "68253", - "_id" : "products/68253", - "_rev" : "_e4zxDo---B", + "_key" : "68258", + "_id" : "products/68258", + "_rev" : "_e9TSoZi--_", "hello3" : "world1" }, { - "_key" : "68255", - "_id" : "products/68255", - "_rev" : "_e4zxDo---C", + "_key" : "68260", + "_id" : "products/68260", + "_rev" : "_e9TSoZm---", "hello4" : "world1" } ], "hasMore" : true, - "id" : "68260", + "id" : "68265", "count" : 5, "extra" : { "warnings" : [ ], @@ -47,7 +47,7 @@ x-content-type-options: nosniff "cacheMisses" : 0, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.00007163400005083531, + "executionTime" : 0.0002417159266769886, "peakMemoryUsage" : 0, "intermediateCommits" : 0 } diff --git a/3.11/generated/Examples/RestCursorOptimizerRules.generated b/3.11/generated/Examples/RestCursorOptimizerRules.generated index f74ee6f903..8921e230be 100644 --- a/3.11/generated/Examples/RestCursorOptimizerRules.generated +++ b/3.11/generated/Examples/RestCursorOptimizerRules.generated @@ -17,7 +17,7 @@ EOF HTTP/1.1 201 Created content-type: application/json connection: Keep-Alive -content-length: 383 +content-length: 384 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -51,7 +51,7 @@ x-content-type-options: nosniff "cacheMisses" : 0, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.00006526600009237882, + "executionTime" : 0.00023546908050775528, "peakMemoryUsage" : 0, "intermediateCommits" : 0 } diff --git a/3.11/generated/Examples/RestCursorPostForLimitReturnCont.generated b/3.11/generated/Examples/RestCursorPostForLimitReturnCont.generated index 14fd66deca..1358955eb7 100644 --- a/3.11/generated/Examples/RestCursorPostForLimitReturnCont.generated +++ b/3.11/generated/Examples/RestCursorPostForLimitReturnCont.generated @@ -6,12 +6,12 @@ } EOF -shell> curl -X POST --header 'accept: application/json' --dump - http://localhost:8529/_api/cursor/68285 +shell> curl -X POST --header 'accept: application/json' --dump - http://localhost:8529/_api/cursor/68290 HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive -content-length: 531 +content-length: 532 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -19,20 +19,20 @@ x-content-type-options: nosniff { "result" : [ { - "_key" : "68278", - "_id" : "products/68278", - "_rev" : "_e4zxDoi---", + "_key" : "68283", + "_id" : "products/68283", + "_rev" : "_e9TSobe---", "hello3" : "world1" }, { - "_key" : "68280", - "_id" : "products/68280", - "_rev" : "_e4zxDoi--_", + "_key" : "68285", + "_id" : "products/68285", + "_rev" : "_e9TSobe--_", "hello4" : "world1" } ], "hasMore" : true, - "id" : "68285", + "id" : "68290", "count" : 5, "extra" : { "warnings" : [ ], @@ -47,7 +47,7 @@ x-content-type-options: nosniff "cacheMisses" : 0, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.00006284499977482483, + "executionTime" : 0.00023159896954894066, "peakMemoryUsage" : 0, "intermediateCommits" : 0 } diff --git a/3.11/generated/Examples/RestCursorProfileQuery.generated b/3.11/generated/Examples/RestCursorProfileQuery.generated index cc5f11311d..210ad2e63e 100644 --- a/3.11/generated/Examples/RestCursorProfileQuery.generated +++ b/3.11/generated/Examples/RestCursorProfileQuery.generated @@ -11,7 +11,7 @@ EOF HTTP/1.1 201 Created content-type: application/json connection: Keep-Alive -content-length: 2951 +content-length: 2949 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -36,7 +36,7 @@ x-content-type-options: nosniff "cacheMisses" : 0, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.7595430269993813, + "executionTime" : 0.757226032903418, "peakMemoryUsage" : 0, "intermediateCommits" : 0, "nodes" : [ @@ -45,35 +45,35 @@ x-content-type-options: nosniff "calls" : 1, "items" : 1, "filtered" : 0, - "runtime" : 0.0000018720002117333934 + "runtime" : 0.000006960006430745125 }, { "id" : 2, "calls" : 1, "items" : 1, "filtered" : 0, - "runtime" : 0.25306840099983674 + "runtime" : 0.2521234971936792 }, { "id" : 3, "calls" : 1, "items" : 1, "filtered" : 0, - "runtime" : 0.7594232770006784 + "runtime" : 0.7568863239139318 }, { "id" : 4, "calls" : 1, "items" : 1, "filtered" : 0, - "runtime" : 0.0000030459996196441352 + "runtime" : 0.000011493917554616928 }, { "id" : 5, "calls" : 1, "items" : 1, "filtered" : 0, - "runtime" : 0.7594298900003196 + "runtime" : 0.7568961360957474 } ] }, @@ -233,14 +233,14 @@ x-content-type-options: nosniff "isModificationQuery" : false }, "profile" : { - "initializing" : 4.169996827840805e-7, - "parsing" : 0.000014387000192073174, - "optimizing ast" : 0.0000021729993022745475, - "loading collections" : 5.160000000614673e-7, - "instantiating plan" : 0.00000538099993718788, - "optimizing plan" : 0.0000605710010859184, - "executing" : 0.7594447989995388, - "finalizing" : 0.00004050600000482518 + "initializing" : 0.0000020260922610759735, + "parsing" : 0.00004588998854160309, + "optimizing ast" : 0.000008133938536047935, + "loading collections" : 0.000004505971446633339, + "instantiating plan" : 0.0000186101533472538, + "optimizing plan" : 0.0002085389569401741, + "executing" : 0.7569165539462119, + "finalizing" : 0.000047425972297787666 } }, "error" : false, diff --git a/3.11/generated/Examples/RestDocumentHandlerDeleteDocument.generated b/3.11/generated/Examples/RestDocumentHandlerDeleteDocument.generated index 8516ccf43c..46109f507f 100644 --- a/3.11/generated/Examples/RestDocumentHandlerDeleteDocument.generated +++ b/3.11/generated/Examples/RestDocumentHandlerDeleteDocument.generated @@ -1,17 +1,17 @@ -shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/68428 +shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/68437 HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive content-length: 60 -etag: "_e4zxEcG---" -location: /_db/_system/_api/document/products/68428 +etag: "_e9TSpVK---" +location: /_db/_system/_api/document/products/68437 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "_id" : "products/68428", - "_key" : "68428", - "_rev" : "_e4zxEcG---" + "_id" : "products/68437", + "_key" : "68437", + "_rev" : "_e9TSpVK---" } diff --git a/3.11/generated/Examples/RestDocumentHandlerDeleteDocumentIdentifierMulti.generated b/3.11/generated/Examples/RestDocumentHandlerDeleteDocumentIdentifierMulti.generated index 6d895e680c..08977f97c3 100644 --- a/3.11/generated/Examples/RestDocumentHandlerDeleteDocumentIdentifierMulti.generated +++ b/3.11/generated/Examples/RestDocumentHandlerDeleteDocumentIdentifierMulti.generated @@ -17,11 +17,11 @@ x-content-type-options: nosniff { "_id" : "products/1", "_key" : "1", - "_rev" : "_e4zxEcy---" + "_rev" : "_e9TSpXC---" }, { "_id" : "products/2", "_key" : "2", - "_rev" : "_e4zxEcy--_" + "_rev" : "_e9TSpXC--_" } ] diff --git a/3.11/generated/Examples/RestDocumentHandlerDeleteDocumentIfMatchOther.generated b/3.11/generated/Examples/RestDocumentHandlerDeleteDocumentIfMatchOther.generated index 500b4fcbaa..3284cf6f6b 100644 --- a/3.11/generated/Examples/RestDocumentHandlerDeleteDocumentIfMatchOther.generated +++ b/3.11/generated/Examples/RestDocumentHandlerDeleteDocumentIfMatchOther.generated @@ -1,10 +1,10 @@ -shell> curl -X DELETE --header 'If-Match: "_e4zxEdO--A"' --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/68447 +shell> curl -X DELETE --header 'If-Match: "_e9TSpYW---"' --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/68456 HTTP/1.1 412 Precondition Failed content-type: application/json connection: Keep-Alive content-length: 152 -etag: "_e4zxEdO--_" +etag: "_e9TSpYS---" server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -14,7 +14,7 @@ x-content-type-options: nosniff "code" : 412, "errorNum" : 1200, "errorMessage" : "conflict, _rev values do not match", - "_id" : "products/68447", - "_key" : "68447", - "_rev" : "_e4zxEdO--_" + "_id" : "products/68456", + "_key" : "68456", + "_rev" : "_e9TSpYS---" } diff --git a/3.11/generated/Examples/RestDocumentHandlerDeleteDocumentKeyMulti.generated b/3.11/generated/Examples/RestDocumentHandlerDeleteDocumentKeyMulti.generated index e3c69e07fa..7ee556d47f 100644 --- a/3.11/generated/Examples/RestDocumentHandlerDeleteDocumentKeyMulti.generated +++ b/3.11/generated/Examples/RestDocumentHandlerDeleteDocumentKeyMulti.generated @@ -17,11 +17,11 @@ x-content-type-options: nosniff { "_id" : "products/1", "_key" : "1", - "_rev" : "_e4zxEda---" + "_rev" : "_e9TSpZC---" }, { "_id" : "products/2", "_key" : "2", - "_rev" : "_e4zxEda--_" + "_rev" : "_e9TSpZC--_" } ] diff --git a/3.11/generated/Examples/RestDocumentHandlerDeleteDocumentObjectMulti.generated b/3.11/generated/Examples/RestDocumentHandlerDeleteDocumentObjectMulti.generated index 379376d427..3564626ed2 100644 --- a/3.11/generated/Examples/RestDocumentHandlerDeleteDocumentObjectMulti.generated +++ b/3.11/generated/Examples/RestDocumentHandlerDeleteDocumentObjectMulti.generated @@ -21,11 +21,11 @@ x-content-type-options: nosniff { "_id" : "products/1", "_key" : "1", - "_rev" : "_e4zxEdy--_" + "_rev" : "_e9TSpaW---" }, { "_id" : "products/2", "_key" : "2", - "_rev" : "_e4zxEdy--A" + "_rev" : "_e9TSpaW--_" } ] diff --git a/3.11/generated/Examples/RestDocumentHandlerDeleteDocumentRevMulti.generated b/3.11/generated/Examples/RestDocumentHandlerDeleteDocumentRevMulti.generated index 65cecf0d52..521c8b0250 100644 --- a/3.11/generated/Examples/RestDocumentHandlerDeleteDocumentRevMulti.generated +++ b/3.11/generated/Examples/RestDocumentHandlerDeleteDocumentRevMulti.generated @@ -2,11 +2,11 @@ [ { "_key" : "1", - "_rev" : "_e4zxEee--_" + "_rev" : "_e9TSpcu---" }, { "_key" : "2", - "_rev" : "_e4zxEee--A" + "_rev" : "_e9TSpcu--_" } ] EOF @@ -23,11 +23,11 @@ x-content-type-options: nosniff { "_id" : "products/1", "_key" : "1", - "_rev" : "_e4zxEee--_" + "_rev" : "_e9TSpcu---" }, { "_id" : "products/2", "_key" : "2", - "_rev" : "_e4zxEee--A" + "_rev" : "_e9TSpcu--_" } ] diff --git a/3.11/generated/Examples/RestDocumentHandlerDeleteDocumentUnknownHandle.generated b/3.11/generated/Examples/RestDocumentHandlerDeleteDocumentUnknownHandle.generated index c87c22c167..72007da999 100644 --- a/3.11/generated/Examples/RestDocumentHandlerDeleteDocumentUnknownHandle.generated +++ b/3.11/generated/Examples/RestDocumentHandlerDeleteDocumentUnknownHandle.generated @@ -1,4 +1,4 @@ -shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/68496 +shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/68505 HTTP/1.1 404 Not Found content-type: application/json diff --git a/3.11/generated/Examples/RestDocumentHandlerPatchDocument.generated b/3.11/generated/Examples/RestDocumentHandlerPatchDocument.generated index 3c9fe0286b..e648e9a9ab 100644 --- a/3.11/generated/Examples/RestDocumentHandlerPatchDocument.generated +++ b/3.11/generated/Examples/RestDocumentHandlerPatchDocument.generated @@ -1,4 +1,4 @@ -shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/68524 <<EOF +shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/68533 <<EOF { "hello" : "world" } @@ -8,19 +8,19 @@ HTTP/1.1 202 A content-type: application/json connection: Keep-Alive content-length: 84 -etag: "_e4zxEgS--A" -location: /_db/_system/_api/document/products/68524 +etag: "_e9TSphi---" +location: /_db/_system/_api/document/products/68533 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "_id" : "products/68524", - "_key" : "68524", - "_rev" : "_e4zxEgS--A", - "_oldRev" : "_e4zxEgS--_" + "_id" : "products/68533", + "_key" : "68533", + "_rev" : "_e9TSphi---", + "_oldRev" : "_e9TSphe---" } -shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/68524 <<EOF +shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/68533 <<EOF { "numbers" : { "one" : 1, @@ -35,33 +35,33 @@ HTTP/1.1 202 A content-type: application/json connection: Keep-Alive content-length: 84 -etag: "_e4zxEgW---" -location: /_db/_system/_api/document/products/68524 +etag: "_e9TSphu---" +location: /_db/_system/_api/document/products/68533 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "_id" : "products/68524", - "_key" : "68524", - "_rev" : "_e4zxEgW---", - "_oldRev" : "_e4zxEgS--A" + "_id" : "products/68533", + "_key" : "68533", + "_rev" : "_e9TSphu---", + "_oldRev" : "_e9TSphi---" } -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/68524 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/68533 HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive content-length: 141 -etag: "_e4zxEgW---" +etag: "_e9TSphu---" server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "_key" : "68524", - "_id" : "products/68524", - "_rev" : "_e4zxEgW---", + "_key" : "68533", + "_id" : "products/68533", + "_rev" : "_e9TSphu---", "one" : "world", "hello" : "world", "numbers" : { @@ -71,7 +71,7 @@ x-content-type-options: nosniff "empty" : null } } -shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/68524?keepNull=false <<EOF +shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/68533?keepNull=false <<EOF { "hello" : null, "numbers" : { @@ -84,33 +84,33 @@ HTTP/1.1 202 A content-type: application/json connection: Keep-Alive content-length: 84 -etag: "_e4zxEge---" -location: /_db/_system/_api/document/products/68524 +etag: "_e9TSpiO---" +location: /_db/_system/_api/document/products/68533 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "_id" : "products/68524", - "_key" : "68524", - "_rev" : "_e4zxEge---", - "_oldRev" : "_e4zxEgW---" + "_id" : "products/68533", + "_key" : "68533", + "_rev" : "_e9TSpiO---", + "_oldRev" : "_e9TSphu---" } -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/68524 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/68533 HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive content-length: 134 -etag: "_e4zxEge---" +etag: "_e9TSpiO---" server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "_key" : "68524", - "_id" : "products/68524", - "_rev" : "_e4zxEge---", + "_key" : "68533", + "_id" : "products/68533", + "_rev" : "_e9TSpiO---", "one" : "world", "numbers" : { "empty" : null, diff --git a/3.11/generated/Examples/RestDocumentHandlerPatchDocumentMerge.generated b/3.11/generated/Examples/RestDocumentHandlerPatchDocumentMerge.generated index 064b806b94..910b81f321 100644 --- a/3.11/generated/Examples/RestDocumentHandlerPatchDocumentMerge.generated +++ b/3.11/generated/Examples/RestDocumentHandlerPatchDocumentMerge.generated @@ -1,25 +1,25 @@ -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/68538 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/68547 HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive content-length: 130 -etag: "_e4zxEgq--_" +etag: "_e9TSpjG---" server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "_key" : "68538", - "_id" : "products/68538", - "_rev" : "_e4zxEgq--_", + "_key" : "68547", + "_id" : "products/68547", + "_rev" : "_e9TSpjG---", "inhabitants" : { "china" : 1366980000, "india" : 1263590000, "usa" : 319220000 } } -shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/68538?mergeObjects=true <<EOF +shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/68547?mergeObjects=true <<EOF { "inhabitants" : { "indonesia" : 252164800, @@ -28,21 +28,21 @@ x-content-type-options: nosniff } EOF -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/68538 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/68547 HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive content-length: 171 -etag: "_e4zxEgu---" +etag: "_e9TSpja---" server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "_key" : "68538", - "_id" : "products/68538", - "_rev" : "_e4zxEgu---", + "_key" : "68547", + "_id" : "products/68547", + "_rev" : "_e9TSpja---", "inhabitants" : { "china" : 1366980000, "india" : 1263590000, @@ -51,7 +51,7 @@ x-content-type-options: nosniff "brazil" : 203553000 } } -shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/68538?mergeObjects=false <<EOF +shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/68547?mergeObjects=false <<EOF { "inhabitants" : { "pakistan" : 188346000 @@ -63,33 +63,33 @@ HTTP/1.1 202 A content-type: application/json connection: Keep-Alive content-length: 84 -etag: "_e4zxEg2---" -location: /_db/_system/_api/document/products/68538 +etag: "_e9TSpjy---" +location: /_db/_system/_api/document/products/68547 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "_id" : "products/68538", - "_key" : "68538", - "_rev" : "_e4zxEg2---", - "_oldRev" : "_e4zxEgu---" + "_id" : "products/68547", + "_key" : "68547", + "_rev" : "_e9TSpjy---", + "_oldRev" : "_e9TSpja---" } -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/68538 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/68547 HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive content-length: 97 -etag: "_e4zxEg2---" +etag: "_e9TSpjy---" server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "_key" : "68538", - "_id" : "products/68538", - "_rev" : "_e4zxEg2---", + "_key" : "68547", + "_id" : "products/68547", + "_rev" : "_e9TSpjy---", "inhabitants" : { "pakistan" : 188346000 } diff --git a/3.11/generated/Examples/RestDocumentHandlerPostAccept1.generated b/3.11/generated/Examples/RestDocumentHandlerPostAccept1.generated index 81a31a24ae..71caec23e8 100644 --- a/3.11/generated/Examples/RestDocumentHandlerPostAccept1.generated +++ b/3.11/generated/Examples/RestDocumentHandlerPostAccept1.generated @@ -6,14 +6,14 @@ HTTP/1.1 202 A content-type: application/json connection: Keep-Alive content-length: 60 -etag: "_e4zxEhC--_" -location: /_db/_system/_api/document/products/68552 +etag: "_e9TSpku---" +location: /_db/_system/_api/document/products/68561 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "_id" : "products/68552", - "_key" : "68552", - "_rev" : "_e4zxEhC--_" + "_id" : "products/68561", + "_key" : "68561", + "_rev" : "_e9TSpku---" } diff --git a/3.11/generated/Examples/RestDocumentHandlerPostBadJsonMulti.generated b/3.11/generated/Examples/RestDocumentHandlerPostBadJsonMulti.generated index 14007ad40b..16ee4cbba3 100644 --- a/3.11/generated/Examples/RestDocumentHandlerPostBadJsonMulti.generated +++ b/3.11/generated/Examples/RestDocumentHandlerPostBadJsonMulti.generated @@ -20,6 +20,6 @@ x-content-type-options: nosniff { "_id" : "products/abc", "_key" : "abc", - "_rev" : "_e4zxEhS--_" + "_rev" : "_e9TSpm----" } ] diff --git a/3.11/generated/Examples/RestDocumentHandlerPostCreate1.generated b/3.11/generated/Examples/RestDocumentHandlerPostCreate1.generated index 9450aaf4e7..5048fc646f 100644 --- a/3.11/generated/Examples/RestDocumentHandlerPostCreate1.generated +++ b/3.11/generated/Examples/RestDocumentHandlerPostCreate1.generated @@ -6,14 +6,14 @@ HTTP/1.1 201 C content-type: application/json connection: Keep-Alive content-length: 60 -etag: "_e4zxEhe---" -location: /_db/_system/_api/document/products/68576 +etag: "_e9TSpmi---" +location: /_db/_system/_api/document/products/68585 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "_id" : "products/68576", - "_key" : "68576", - "_rev" : "_e4zxEhe---" + "_id" : "products/68585", + "_key" : "68585", + "_rev" : "_e9TSpmi---" } diff --git a/3.11/generated/Examples/RestDocumentHandlerPostMulti1.generated b/3.11/generated/Examples/RestDocumentHandlerPostMulti1.generated index 00ed47423a..92d42fbb05 100644 --- a/3.11/generated/Examples/RestDocumentHandlerPostMulti1.generated +++ b/3.11/generated/Examples/RestDocumentHandlerPostMulti1.generated @@ -12,18 +12,18 @@ x-content-type-options: nosniff [ { - "_id" : "products/68585", - "_key" : "68585", - "_rev" : "_e4zxEhu--_" + "_id" : "products/68594", + "_key" : "68594", + "_rev" : "_e9TSpnq---" }, { - "_id" : "products/68586", - "_key" : "68586", - "_rev" : "_e4zxEhu--A" + "_id" : "products/68595", + "_key" : "68595", + "_rev" : "_e9TSpnq--_" }, { - "_id" : "products/68587", - "_key" : "68587", - "_rev" : "_e4zxEhu--B" + "_id" : "products/68596", + "_key" : "68596", + "_rev" : "_e9TSpnu---" } ] diff --git a/3.11/generated/Examples/RestDocumentHandlerPostMulti2.generated b/3.11/generated/Examples/RestDocumentHandlerPostMulti2.generated index 96f4b45a9d..4100907d28 100644 --- a/3.11/generated/Examples/RestDocumentHandlerPostMulti2.generated +++ b/3.11/generated/Examples/RestDocumentHandlerPostMulti2.generated @@ -12,35 +12,35 @@ x-content-type-options: nosniff [ { - "_id" : "products/68596", - "_key" : "68596", - "_rev" : "_e4zxEh6---", + "_id" : "products/68605", + "_key" : "68605", + "_rev" : "_e9TSpoW---", "new" : { - "_key" : "68596", - "_id" : "products/68596", - "_rev" : "_e4zxEh6---", + "_key" : "68605", + "_id" : "products/68605", + "_rev" : "_e9TSpoW---", "Hello" : "Earth" } }, { - "_id" : "products/68597", - "_key" : "68597", - "_rev" : "_e4zxEh6--_", + "_id" : "products/68606", + "_key" : "68606", + "_rev" : "_e9TSpoW--_", "new" : { - "_key" : "68597", - "_id" : "products/68597", - "_rev" : "_e4zxEh6--_", + "_key" : "68606", + "_id" : "products/68606", + "_rev" : "_e9TSpoW--_", "Hello" : "Venus" } }, { - "_id" : "products/68598", - "_key" : "68598", - "_rev" : "_e4zxEh6--A", + "_id" : "products/68607", + "_key" : "68607", + "_rev" : "_e9TSpoW--A", "new" : { - "_key" : "68598", - "_id" : "products/68598", - "_rev" : "_e4zxEh6--A", + "_key" : "68607", + "_id" : "products/68607", + "_rev" : "_e9TSpoW--A", "Hello" : "Mars" } } diff --git a/3.11/generated/Examples/RestDocumentHandlerPostOverwrite.generated b/3.11/generated/Examples/RestDocumentHandlerPostOverwrite.generated index 314138fa9f..c365f15123 100644 --- a/3.11/generated/Examples/RestDocumentHandlerPostOverwrite.generated +++ b/3.11/generated/Examples/RestDocumentHandlerPostOverwrite.generated @@ -6,7 +6,7 @@ HTTP/1.1 201 C content-type: application/json connection: Keep-Alive content-length: 58 -etag: "_e4zxEiC--_" +etag: "_e9TSppC---" location: /_db/_system/_api/document/products/lock server: ArangoDB x-arango-queue-time-seconds: 0.000000 @@ -15,7 +15,7 @@ x-content-type-options: nosniff { "_id" : "products/lock", "_key" : "lock", - "_rev" : "_e4zxEiC--_" + "_rev" : "_e9TSppC---" } shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products?overwrite=true <<EOF { "Hello": "Universe", "_key" : "lock" } @@ -25,7 +25,7 @@ HTTP/1.1 201 C content-type: application/json connection: Keep-Alive content-length: 82 -etag: "_e4zxEiS---" +etag: "_e9TSppa---" location: /_db/_system/_api/document/products/lock server: ArangoDB x-arango-queue-time-seconds: 0.000000 @@ -34,6 +34,6 @@ x-content-type-options: nosniff { "_id" : "products/lock", "_key" : "lock", - "_rev" : "_e4zxEiS---", - "_oldRev" : "_e4zxEiC--_" + "_rev" : "_e9TSppa---", + "_oldRev" : "_e9TSppC---" } diff --git a/3.11/generated/Examples/RestDocumentHandlerPostReturnNew.generated b/3.11/generated/Examples/RestDocumentHandlerPostReturnNew.generated index 5152475c1f..9273df5fb9 100644 --- a/3.11/generated/Examples/RestDocumentHandlerPostReturnNew.generated +++ b/3.11/generated/Examples/RestDocumentHandlerPostReturnNew.generated @@ -6,20 +6,20 @@ HTTP/1.1 202 A content-type: application/json connection: Keep-Alive content-length: 143 -etag: "_e4zxEii--_" -location: /_db/_system/_api/document/products/68616 +etag: "_e9TSpqW---" +location: /_db/_system/_api/document/products/68625 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "_id" : "products/68616", - "_key" : "68616", - "_rev" : "_e4zxEii--_", + "_id" : "products/68625", + "_key" : "68625", + "_rev" : "_e9TSpqW---", "new" : { - "_key" : "68616", - "_id" : "products/68616", - "_rev" : "_e4zxEii--_", + "_key" : "68625", + "_id" : "products/68625", + "_rev" : "_e9TSpqW---", "Hello" : "World" } } diff --git a/3.11/generated/Examples/RestDocumentHandlerPostWait1.generated b/3.11/generated/Examples/RestDocumentHandlerPostWait1.generated index 1e916d3a2c..fc51858b7f 100644 --- a/3.11/generated/Examples/RestDocumentHandlerPostWait1.generated +++ b/3.11/generated/Examples/RestDocumentHandlerPostWait1.generated @@ -6,14 +6,14 @@ HTTP/1.1 201 C content-type: application/json connection: Keep-Alive content-length: 60 -etag: "_e4zxEiy---" -location: /_db/_system/_api/document/products/68627 +etag: "_e9TSpra---" +location: /_db/_system/_api/document/products/68636 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "_id" : "products/68627", - "_key" : "68627", - "_rev" : "_e4zxEiy---" + "_id" : "products/68636", + "_key" : "68636", + "_rev" : "_e9TSpra---" } diff --git a/3.11/generated/Examples/RestDocumentHandlerReadDocument.generated b/3.11/generated/Examples/RestDocumentHandlerReadDocument.generated index 5ec2ec6cb7..facf0d654c 100644 --- a/3.11/generated/Examples/RestDocumentHandlerReadDocument.generated +++ b/3.11/generated/Examples/RestDocumentHandlerReadDocument.generated @@ -1,17 +1,17 @@ -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/68636 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/68645 HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive content-length: 76 -etag: "_e4zxEjG--_" +etag: "_e9TSpsK---" server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "_key" : "68636", - "_id" : "products/68636", - "_rev" : "_e4zxEjG--_", + "_key" : "68645", + "_id" : "products/68645", + "_rev" : "_e9TSpsK---", "hello" : "world" } diff --git a/3.11/generated/Examples/RestDocumentHandlerReadDocumentHead.generated b/3.11/generated/Examples/RestDocumentHandlerReadDocumentHead.generated index 759321d054..29a4901b30 100644 --- a/3.11/generated/Examples/RestDocumentHandlerReadDocumentHead.generated +++ b/3.11/generated/Examples/RestDocumentHandlerReadDocumentHead.generated @@ -1,2 +1,2 @@ -shell> curl -X HEAD --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/68646 +shell> curl -X HEAD --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/68655 diff --git a/3.11/generated/Examples/RestDocumentHandlerReadDocumentIfNoneMatch.generated b/3.11/generated/Examples/RestDocumentHandlerReadDocumentIfNoneMatch.generated index 846cc0a1af..b13741d425 100644 --- a/3.11/generated/Examples/RestDocumentHandlerReadDocumentIfNoneMatch.generated +++ b/3.11/generated/Examples/RestDocumentHandlerReadDocumentIfNoneMatch.generated @@ -1,2 +1,2 @@ -shell> curl --header 'If-None-Match: "_e4zxEjW--_"' --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/68656 +shell> curl --header 'If-None-Match: "_e9TSpta---"' --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/68665 diff --git a/3.11/generated/Examples/RestDocumentHandlerReadMultiDocument.generated b/3.11/generated/Examples/RestDocumentHandlerReadMultiDocument.generated index c88be45cda..cb5b797fc0 100644 --- a/3.11/generated/Examples/RestDocumentHandlerReadMultiDocument.generated +++ b/3.11/generated/Examples/RestDocumentHandlerReadMultiDocument.generated @@ -14,13 +14,13 @@ x-content-type-options: nosniff { "_key" : "doc1", "_id" : "products/doc1", - "_rev" : "_e4zxEji--_", + "_rev" : "_e9TSpuO---", "hello" : "world" }, { "_key" : "doc2", "_id" : "products/doc2", - "_rev" : "_e4zxEji--A", + "_rev" : "_e9TSpuO--_", "say" : "hi to mom" } ] diff --git a/3.11/generated/Examples/RestDocumentHandlerUpdateDocument.generated b/3.11/generated/Examples/RestDocumentHandlerUpdateDocument.generated index b26015f882..fb49507099 100644 --- a/3.11/generated/Examples/RestDocumentHandlerUpdateDocument.generated +++ b/3.11/generated/Examples/RestDocumentHandlerUpdateDocument.generated @@ -1,4 +1,4 @@ -shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/68678 <<EOF +shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/68687 <<EOF {"Hello": "you"} EOF @@ -6,15 +6,15 @@ HTTP/1.1 202 A content-type: application/json connection: Keep-Alive content-length: 84 -etag: "_e4zxEjq--A" -location: /_db/_system/_api/document/products/68678 +etag: "_e9TSpu6---" +location: /_db/_system/_api/document/products/68687 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "_id" : "products/68678", - "_key" : "68678", - "_rev" : "_e4zxEjq--A", - "_oldRev" : "_e4zxEjq--_" + "_id" : "products/68687", + "_key" : "68687", + "_rev" : "_e9TSpu6---", + "_oldRev" : "_e9TSpu2---" } diff --git a/3.11/generated/Examples/RestDocumentHandlerUpdateDocumentIfMatchOther.generated b/3.11/generated/Examples/RestDocumentHandlerUpdateDocumentIfMatchOther.generated index 5617cb5e06..b9bd893303 100644 --- a/3.11/generated/Examples/RestDocumentHandlerUpdateDocumentIfMatchOther.generated +++ b/3.11/generated/Examples/RestDocumentHandlerUpdateDocumentIfMatchOther.generated @@ -1,4 +1,4 @@ -shell> curl -X PUT --header 'If-Match: "_e4zxEjy--A"' --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/68688 <<EOF +shell> curl -X PUT --header 'If-Match: "_e9TSpva---"' --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/68697 <<EOF {"other":"content"} EOF @@ -6,7 +6,7 @@ HTTP/1.1 412 P content-type: application/json connection: Keep-Alive content-length: 152 -etag: "_e4zxEjy--_" +etag: "_e9TSpvW--_" server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -16,7 +16,7 @@ x-content-type-options: nosniff "code" : 412, "errorNum" : 1200, "errorMessage" : "conflict, _rev values do not match", - "_id" : "products/68688", - "_key" : "68688", - "_rev" : "_e4zxEjy--_" + "_id" : "products/68697", + "_key" : "68697", + "_rev" : "_e9TSpvW--_" } diff --git a/3.11/generated/Examples/RestDocumentHandlerUpdateDocumentUnknownHandle.generated b/3.11/generated/Examples/RestDocumentHandlerUpdateDocumentUnknownHandle.generated index 77a3fdef92..65ed5f2017 100644 --- a/3.11/generated/Examples/RestDocumentHandlerUpdateDocumentUnknownHandle.generated +++ b/3.11/generated/Examples/RestDocumentHandlerUpdateDocumentUnknownHandle.generated @@ -1,4 +1,4 @@ -shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/68701 <<EOF +shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/68710 <<EOF {} EOF diff --git a/3.11/generated/Examples/RestEdgesReadEdgesAny.generated b/3.11/generated/Examples/RestEdgesReadEdgesAny.generated index c7c7d1cc7c..18a4e99298 100644 --- a/3.11/generated/Examples/RestEdgesReadEdgesAny.generated +++ b/3.11/generated/Examples/RestEdgesReadEdgesAny.generated @@ -3,7 +3,7 @@ HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive -content-length: 630 +content-length: 629 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -15,7 +15,7 @@ x-content-type-options: nosniff "_id" : "edges/5", "_from" : "vertices/1", "_to" : "vertices/3", - "_rev" : "_e4zxEkG--C", + "_rev" : "_e9TSpwy---", "$label" : "v1 -> v3" }, { @@ -23,7 +23,7 @@ x-content-type-options: nosniff "_id" : "edges/6", "_from" : "vertices/2", "_to" : "vertices/1", - "_rev" : "_e4zxEkG--D", + "_rev" : "_e9TSpw2---", "$label" : "v2 -> v1" }, { @@ -31,7 +31,7 @@ x-content-type-options: nosniff "_id" : "edges/7", "_from" : "vertices/4", "_to" : "vertices/1", - "_rev" : "_e4zxEkG--E", + "_rev" : "_e9TSpw6---", "$label" : "v4 -> v1" } ], @@ -48,7 +48,7 @@ x-content-type-options: nosniff "cacheMisses" : 2, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.00023805700038792565, + "executionTime" : 0.0009072329849004745, "peakMemoryUsage" : 32768, "intermediateCommits" : 0 } diff --git a/3.11/generated/Examples/RestEdgesReadEdgesIn.generated b/3.11/generated/Examples/RestEdgesReadEdgesIn.generated index 890e074999..a36cb37a6a 100644 --- a/3.11/generated/Examples/RestEdgesReadEdgesIn.generated +++ b/3.11/generated/Examples/RestEdgesReadEdgesIn.generated @@ -3,7 +3,7 @@ HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive -content-length: 516 +content-length: 515 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -15,7 +15,7 @@ x-content-type-options: nosniff "_id" : "edges/6", "_from" : "vertices/2", "_to" : "vertices/1", - "_rev" : "_e4zxEkW--E", + "_rev" : "_e9TSpyK---", "$label" : "v2 -> v1" }, { @@ -23,7 +23,7 @@ x-content-type-options: nosniff "_id" : "edges/7", "_from" : "vertices/4", "_to" : "vertices/1", - "_rev" : "_e4zxEka---", + "_rev" : "_e9TSpyK--_", "$label" : "v4 -> v1" } ], @@ -40,7 +40,7 @@ x-content-type-options: nosniff "cacheMisses" : 1, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.00012567400153784547, + "executionTime" : 0.0003189810086041689, "peakMemoryUsage" : 0, "intermediateCommits" : 0 } diff --git a/3.11/generated/Examples/RestEdgesReadEdgesOut.generated b/3.11/generated/Examples/RestEdgesReadEdgesOut.generated index 272dab9a30..3cf08c2745 100644 --- a/3.11/generated/Examples/RestEdgesReadEdgesOut.generated +++ b/3.11/generated/Examples/RestEdgesReadEdgesOut.generated @@ -3,7 +3,7 @@ HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive -content-length: 406 +content-length: 405 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -15,7 +15,7 @@ x-content-type-options: nosniff "_id" : "edges/5", "_from" : "vertices/1", "_to" : "vertices/3", - "_rev" : "_e4zxEkm--D", + "_rev" : "_e9TSpzK---", "$label" : "v1 -> v3" } ], @@ -32,7 +32,7 @@ x-content-type-options: nosniff "cacheMisses" : 1, "filtered" : 0, "httpRequests" : 0, - "executionTime" : 0.00010586999997030944, + "executionTime" : 0.0003310318570584059, "peakMemoryUsage" : 0, "intermediateCommits" : 0 } diff --git a/3.11/generated/Examples/RestEndpointGet.generated b/3.11/generated/Examples/RestEndpointGet.generated index cb560b434a..f574857aa2 100644 --- a/3.11/generated/Examples/RestEndpointGet.generated +++ b/3.11/generated/Examples/RestEndpointGet.generated @@ -10,6 +10,6 @@ x-content-type-options: nosniff [ { - "endpoint" : "http://127.0.0.1:14406" + "endpoint" : "http://127.0.0.1:10138" } ] diff --git a/3.11/generated/Examples/RestExplainAllPlans.generated b/3.11/generated/Examples/RestExplainAllPlans.generated index d1aa374156..7a97cd0c96 100644 --- a/3.11/generated/Examples/RestExplainAllPlans.generated +++ b/3.11/generated/Examples/RestExplainAllPlans.generated @@ -56,9 +56,9 @@ x-content-type-options: nosniff "indexCoversProjections" : false, "indexes" : [ { - "id" : "68786", + "id" : "68795", "type" : "persistent", - "name" : "idx_1745944413815701505", + "name" : "idx_1747208960897712128", "fields" : [ "id" ], diff --git a/3.11/generated/Examples/RestExplainOptimizerRules.generated b/3.11/generated/Examples/RestExplainOptimizerRules.generated index 79e66ff3b9..039ef46bf5 100644 --- a/3.11/generated/Examples/RestExplainOptimizerRules.generated +++ b/3.11/generated/Examples/RestExplainOptimizerRules.generated @@ -54,9 +54,9 @@ x-content-type-options: nosniff "indexCoversProjections" : false, "indexes" : [ { - "id" : "68817", + "id" : "68826", "type" : "persistent", - "name" : "idx_1745944413827235841", + "name" : "idx_1747208960937558016", "fields" : [ "id" ], diff --git a/3.11/generated/Examples/RestExplainOptions.generated b/3.11/generated/Examples/RestExplainOptions.generated index ea8f6e9996..061d27bf8c 100644 --- a/3.11/generated/Examples/RestExplainOptions.generated +++ b/3.11/generated/Examples/RestExplainOptions.generated @@ -64,9 +64,9 @@ x-content-type-options: nosniff "indexCoversProjections" : false, "indexes" : [ { - "id" : "68850", + "id" : "68859", "type" : "persistent", - "name" : "idx_1745944413835624449", + "name" : "idx_1747208960969015296", "fields" : [ "id" ], diff --git a/3.11/generated/Examples/RestFetchUserDatabaseListFull.generated b/3.11/generated/Examples/RestFetchUserDatabaseListFull.generated index b5085301f7..340f095258 100644 --- a/3.11/generated/Examples/RestFetchUserDatabaseListFull.generated +++ b/3.11/generated/Examples/RestFetchUserDatabaseListFull.generated @@ -15,20 +15,20 @@ x-content-type-options: nosniff "_system" : { "permission" : "rw", "collections" : { - "_jobs" : "undefined", - "demo" : "undefined", - "_statistics" : "undefined", - "_users" : "undefined", - "animals" : "undefined", - "_queues" : "undefined", + "_appbundles" : "undefined", + "_graphs" : "undefined", + "_statistics15" : "undefined", "_analyzers" : "undefined", + "_queues" : "undefined", "_frontend" : "undefined", "_apps" : "undefined", - "_graphs" : "undefined", - "_statistics15" : "undefined", - "_aqlfunctions" : "undefined", + "demo" : "undefined", + "_users" : "undefined", + "_statistics" : "undefined", + "animals" : "undefined", "_statisticsRaw" : "undefined", - "_appbundles" : "undefined", + "_aqlfunctions" : "undefined", + "_jobs" : "undefined", "*" : "undefined" } }, diff --git a/3.11/generated/Examples/RestGetShardsWithDetails_cluster.generated b/3.11/generated/Examples/RestGetShardsWithDetails_cluster.generated index ae6f265582..9b51825232 100644 --- a/3.11/generated/Examples/RestGetShardsWithDetails_cluster.generated +++ b/3.11/generated/Examples/RestGetShardsWithDetails_cluster.generated @@ -9,4 +9,4 @@ server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff -"{\"error\":false,\"code\":200,\"shards\":{\"s10056\":[\"PRMR-33c112ad-ed25-42b4-99ba-0778c3ecfba5\",\"PRMR-f7b5d16d-cc41-42cf-a1cf-647dd645125e\"],\"s10057\":[\"PRMR-f7b5d16d-cc41-42cf-a1cf-647dd645125e\",\"PRMR-33c112ad-ed25-42b4-99ba-0778c3ecfba5\"],\"s10058\":[\"PRMR-33c112ad-ed25-42b4-99ba-0778c3ecfba5\",\"PRMR-f7b5d16d-cc41-42cf-a1cf-647dd645125e\"]},\"writeConcern\":1,\"waitForSync\":false,\"usesRevisionsAsDocumentIds\":true,\"syncByRevision\":true,\"shardingStrategy\":\"hash\",\"schema\":null,\"numberOfShards\":3,\"minReplicationFactor\":1,\"id\":\"10055\",\"isSmartChild\":false,\"name\":\"testCollection\",\"statusString\":\"loaded\",\"isSmart\":false,\"replicationFactor\":2,\"type\":2,\"status\":3,\"cacheEnabled\":false,\"isSystem\":false,\"computedValues\":null,\"internalValidatorType\":0,\"globallyUniqueId\":\"c10055/\",\"shardKeys\":[\"_key\"],\"isDisjoint\":false,\"keyOptions\":{\"allowUserKeys\":true,\"type\":\"traditional\"}}" +"{\"error\":false,\"code\":200,\"shards\":{\"s10056\":[\"PRMR-10e22c93-4c5c-43df-93e8-1bd4245cb705\",\"PRMR-4945ebe5-8408-45d7-85c2-02b658710d19\"],\"s10057\":[\"PRMR-4945ebe5-8408-45d7-85c2-02b658710d19\",\"PRMR-10e22c93-4c5c-43df-93e8-1bd4245cb705\"],\"s10058\":[\"PRMR-10e22c93-4c5c-43df-93e8-1bd4245cb705\",\"PRMR-4945ebe5-8408-45d7-85c2-02b658710d19\"]},\"writeConcern\":1,\"waitForSync\":false,\"usesRevisionsAsDocumentIds\":true,\"syncByRevision\":true,\"shardingStrategy\":\"hash\",\"schema\":null,\"numberOfShards\":3,\"minReplicationFactor\":1,\"id\":\"10055\",\"isSmartChild\":false,\"name\":\"testCollection\",\"statusString\":\"loaded\",\"isSmart\":false,\"replicationFactor\":2,\"type\":2,\"status\":3,\"cacheEnabled\":false,\"isSystem\":false,\"computedValues\":null,\"internalValidatorType\":0,\"globallyUniqueId\":\"c10055/\",\"shardKeys\":[\"_key\"],\"isDisjoint\":false,\"keyOptions\":{\"allowUserKeys\":true,\"type\":\"traditional\"}}" diff --git a/3.11/generated/Examples/RestIndexAllIndexes.generated b/3.11/generated/Examples/RestIndexAllIndexes.generated index ef6216404f..1cdfac4710 100644 --- a/3.11/generated/Examples/RestIndexAllIndexes.generated +++ b/3.11/generated/Examples/RestIndexAllIndexes.generated @@ -30,8 +30,8 @@ x-content-type-options: nosniff "fields" : [ "name" ], - "id" : "products/69101", - "name" : "idx_1745944413905879041", + "id" : "products/69110", + "name" : "idx_1747208961232207872", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -44,8 +44,8 @@ x-content-type-options: nosniff "fields" : [ "price" ], - "id" : "products/69105", - "name" : "idx_1745944413906927616", + "id" : "products/69114", + "name" : "idx_1747208961234305024", "selectivityEstimate" : 1, "sparse" : true, "type" : "persistent", @@ -64,29 +64,29 @@ x-content-type-options: nosniff "type" : "primary", "unique" : true }, - "products/69101" : { + "products/69110" : { "cacheEnabled" : false, "deduplicate" : true, "estimates" : true, "fields" : [ "name" ], - "id" : "products/69101", - "name" : "idx_1745944413905879041", + "id" : "products/69110", + "name" : "idx_1747208961232207872", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", "unique" : false }, - "products/69105" : { + "products/69114" : { "cacheEnabled" : false, "deduplicate" : true, "estimates" : true, "fields" : [ "price" ], - "id" : "products/69105", - "name" : "idx_1745944413906927616", + "id" : "products/69114", + "name" : "idx_1747208961234305024", "selectivityEstimate" : 1, "sparse" : true, "type" : "persistent", diff --git a/3.11/generated/Examples/RestIndexCreateGeoLatitudeLongitude.generated b/3.11/generated/Examples/RestIndexCreateGeoLatitudeLongitude.generated index f27dc6ac3b..15d635275d 100644 --- a/3.11/generated/Examples/RestIndexCreateGeoLatitudeLongitude.generated +++ b/3.11/generated/Examples/RestIndexCreateGeoLatitudeLongitude.generated @@ -23,11 +23,11 @@ x-content-type-options: nosniff "f" ], "geoJson" : false, - "id" : "products/69117", + "id" : "products/69126", "isNewlyCreated" : true, "legacyPolygons" : false, "maxNumCoverCells" : 8, - "name" : "idx_1745944413910073345", + "name" : "idx_1747208961250033664", "sparse" : true, "type" : "geo", "unique" : false, diff --git a/3.11/generated/Examples/RestIndexCreateGeoLocation.generated b/3.11/generated/Examples/RestIndexCreateGeoLocation.generated index b738f35b6e..5907ab3950 100644 --- a/3.11/generated/Examples/RestIndexCreateGeoLocation.generated +++ b/3.11/generated/Examples/RestIndexCreateGeoLocation.generated @@ -21,11 +21,11 @@ x-content-type-options: nosniff "b" ], "geoJson" : false, - "id" : "products/69128", + "id" : "products/69137", "isNewlyCreated" : true, "legacyPolygons" : false, "maxNumCoverCells" : 8, - "name" : "idx_1745944413914267649", + "name" : "idx_1747208961261568000", "sparse" : true, "type" : "geo", "unique" : false, diff --git a/3.11/generated/Examples/RestIndexCreateNewFulltext.generated b/3.11/generated/Examples/RestIndexCreateNewFulltext.generated index b96dece435..9fb19a22ce 100644 --- a/3.11/generated/Examples/RestIndexCreateNewFulltext.generated +++ b/3.11/generated/Examples/RestIndexCreateNewFulltext.generated @@ -19,10 +19,10 @@ x-content-type-options: nosniff "fields" : [ "text" ], - "id" : "products/69139", + "id" : "products/69148", "isNewlyCreated" : true, "minLength" : 2, - "name" : "idx_1745944413916364801", + "name" : "idx_1747208961272053760", "sparse" : true, "type" : "fulltext", "unique" : false, diff --git a/3.11/generated/Examples/RestIndexCreateNewInverted.generated b/3.11/generated/Examples/RestIndexCreateNewInverted.generated index b0dd6231db..021cedfad8 100644 --- a/3.11/generated/Examples/RestIndexCreateNewInverted.generated +++ b/3.11/generated/Examples/RestIndexCreateNewInverted.generated @@ -50,10 +50,10 @@ x-content-type-options: nosniff "name" : "b" } ], - "id" : "products/69150", + "id" : "products/69159", "includeAllFields" : false, "isNewlyCreated" : true, - "name" : "idx_1745944413918461953", + "name" : "idx_1747208961279393792", "primarySort" : { "fields" : [ ], "compression" : "lz4" diff --git a/3.11/generated/Examples/RestIndexCreateNewPersistent.generated b/3.11/generated/Examples/RestIndexCreateNewPersistent.generated index 3b2fb9c3e8..14da6fe118 100644 --- a/3.11/generated/Examples/RestIndexCreateNewPersistent.generated +++ b/3.11/generated/Examples/RestIndexCreateNewPersistent.generated @@ -25,9 +25,9 @@ x-content-type-options: nosniff "a", "b" ], - "id" : "products/69160", + "id" : "products/69169", "isNewlyCreated" : true, - "name" : "idx_1745944413926850561", + "name" : "idx_1747208961298268160", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", diff --git a/3.11/generated/Examples/RestIndexCreateNewTtlIndex.generated b/3.11/generated/Examples/RestIndexCreateNewTtlIndex.generated index efc7f90fd5..82aad43ce3 100644 --- a/3.11/generated/Examples/RestIndexCreateNewTtlIndex.generated +++ b/3.11/generated/Examples/RestIndexCreateNewTtlIndex.generated @@ -22,9 +22,9 @@ x-content-type-options: nosniff "fields" : [ "createdAt" ], - "id" : "sessions/69171", + "id" : "sessions/69180", "isNewlyCreated" : true, - "name" : "idx_1745944413929996289", + "name" : "idx_1747208961310851072", "sparse" : true, "type" : "ttl", "unique" : false, diff --git a/3.11/generated/Examples/RestIndexCreateNewZkd.generated b/3.11/generated/Examples/RestIndexCreateNewZkd.generated index 0952d62e2a..acb571b232 100644 --- a/3.11/generated/Examples/RestIndexCreateNewZkd.generated +++ b/3.11/generated/Examples/RestIndexCreateNewZkd.generated @@ -22,9 +22,9 @@ x-content-type-options: nosniff "from", "to" ], - "id" : "intervals/69182", + "id" : "intervals/69191", "isNewlyCreated" : true, - "name" : "idx_1745944413932093441", + "name" : "idx_1747208961321336832", "sparse" : false, "type" : "zkd", "unique" : false, diff --git a/3.11/generated/Examples/RestIndexCreateSparsePersistent.generated b/3.11/generated/Examples/RestIndexCreateSparsePersistent.generated index f60c58677e..0fe2fa7e55 100644 --- a/3.11/generated/Examples/RestIndexCreateSparsePersistent.generated +++ b/3.11/generated/Examples/RestIndexCreateSparsePersistent.generated @@ -24,9 +24,9 @@ x-content-type-options: nosniff "fields" : [ "a" ], - "id" : "products/69193", + "id" : "products/69202", "isNewlyCreated" : true, - "name" : "idx_1745944413935239168", + "name" : "idx_1747208961333919744", "selectivityEstimate" : 1, "sparse" : true, "type" : "persistent", diff --git a/3.11/generated/Examples/RestIndexDeleteUniquePersistent.generated b/3.11/generated/Examples/RestIndexDeleteUniquePersistent.generated index 06f5e250cd..f5847f2e43 100644 --- a/3.11/generated/Examples/RestIndexDeleteUniquePersistent.generated +++ b/3.11/generated/Examples/RestIndexDeleteUniquePersistent.generated @@ -1,4 +1,4 @@ -shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/index/products/69204 +shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/index/products/69213 HTTP/1.1 200 OK content-type: application/json @@ -9,7 +9,7 @@ x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "id" : "products/69204", + "id" : "products/69213", "error" : false, "code" : 200 } diff --git a/3.11/generated/Examples/RestPregelCancelConnectedComponents.generated b/3.11/generated/Examples/RestPregelCancelConnectedComponents.generated index f2bee3bc03..6582a0ff6e 100644 --- a/3.11/generated/Examples/RestPregelCancelConnectedComponents.generated +++ b/3.11/generated/Examples/RestPregelCancelConnectedComponents.generated @@ -1,4 +1,4 @@ -shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/control_pregel/69347 +shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/control_pregel/69356 HTTP/1.1 200 OK content-type: application/json diff --git a/3.11/generated/Examples/RestPregelStartConnectedComponents.generated b/3.11/generated/Examples/RestPregelStartConnectedComponents.generated index c746d2903f..6f61a369ee 100644 --- a/3.11/generated/Examples/RestPregelStartConnectedComponents.generated +++ b/3.11/generated/Examples/RestPregelStartConnectedComponents.generated @@ -17,4 +17,4 @@ server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff -"69494" +"69503" diff --git a/3.11/generated/Examples/RestPregelStatusAllConnectedComponents.generated b/3.11/generated/Examples/RestPregelStatusAllConnectedComponents.generated index 6d299134f6..2a4e0063ad 100644 --- a/3.11/generated/Examples/RestPregelStatusAllConnectedComponents.generated +++ b/3.11/generated/Examples/RestPregelStatusAllConnectedComponents.generated @@ -3,22 +3,22 @@ HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive -content-length: 3515 +content-length: 3525 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff [ { - "id" : "69642", + "id" : "69651", "database" : "_system", "algorithm" : "wcc", - "created" : "2022-10-06T13:19:06Z", + "created" : "2022-10-20T12:18:32Z", "ttl" : 600, "state" : "loading", "gss" : 0, - "totalRuntime" : 0.000122586, - "startupTime" : 0.000123067, + "totalRuntime" : 0.000414021, + "startupTime" : 0.000415661, "gssTimes" : [ ], "aggregators" : { }, @@ -30,13 +30,13 @@ x-content-type-options: nosniff "useMemoryMaps" : true, "detail" : { "aggregatedStatus" : { - "timeStamp" : "2022-10-06T13:19:06Z", + "timeStamp" : "2022-10-20T12:18:32Z", "graphStoreStatus" : { } }, "workerStatus" : { "" : { - "timeStamp" : "2022-10-06T13:19:06Z", + "timeStamp" : "2022-10-20T12:18:32Z", "graphStoreStatus" : { } } @@ -44,30 +44,30 @@ x-content-type-options: nosniff } }, { - "id" : "69494", + "id" : "69503", "database" : "_system", "algorithm" : "wcc", - "created" : "2022-10-06T13:19:05Z", - "expires" : "2022-10-06T13:29:05Z", + "created" : "2022-10-20T12:18:32Z", + "expires" : "2022-10-20T12:28:32Z", "ttl" : 600, "state" : "done", "gss" : 11, - "totalRuntime" : 0.056111811, - "startupTime" : 0.054826204, - "computationTime" : 0.000718706, - "storageTime" : 0.000566321, + "totalRuntime" : 0.103756397, + "startupTime" : 0.099477989, + "computationTime" : 0.002248629, + "storageTime" : 0.002028836, "gssTimes" : [ - 0.000095258, - 0.000086274, - 0.000067811, - 0.000048737, - 0.000074232, - 0.000049521, - 0.000048137, - 0.000035455, - 0.000037958, - 0.000056658, - 0.000041778 + 0.000191923, + 0.000169984, + 0.000117093, + 0.000316276, + 0.00018417, + 0.00015714, + 0.00012335, + 0.000234804, + 0.000169097, + 0.000162956, + 0.000145583 ], "aggregators" : { }, @@ -79,7 +79,7 @@ x-content-type-options: nosniff "useMemoryMaps" : true, "detail" : { "aggregatedStatus" : { - "timeStamp" : "2022-10-06T13:19:05Z", + "timeStamp" : "2022-10-20T12:18:32Z", "graphStoreStatus" : { "verticesLoaded" : 36, "edgesLoaded" : 36, @@ -159,7 +159,7 @@ x-content-type-options: nosniff }, "workerStatus" : { "" : { - "timeStamp" : "2022-10-06T13:19:05Z", + "timeStamp" : "2022-10-20T12:18:32Z", "graphStoreStatus" : { "verticesLoaded" : 36, "edgesLoaded" : 36, diff --git a/3.11/generated/Examples/RestPregelStatusConnectedComponents.generated b/3.11/generated/Examples/RestPregelStatusConnectedComponents.generated index 4dd1a8487c..ef30e61334 100644 --- a/3.11/generated/Examples/RestPregelStatusConnectedComponents.generated +++ b/3.11/generated/Examples/RestPregelStatusConnectedComponents.generated @@ -1,38 +1,38 @@ -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/control_pregel/69789 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/control_pregel/69798 HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive -content-length: 3042 +content-length: 3056 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "id" : "69789", + "id" : "69798", "database" : "_system", "algorithm" : "wcc", - "created" : "2022-10-06T13:19:06Z", - "expires" : "2022-10-06T13:29:06Z", + "created" : "2022-10-20T12:18:32Z", + "expires" : "2022-10-20T12:28:33Z", "ttl" : 600, "state" : "done", "gss" : 11, - "totalRuntime" : 0.055537304, - "startupTime" : 0.05432668, - "computationTime" : 0.000686429, - "storageTime" : 0.00052373, + "totalRuntime" : 0.106121988, + "startupTime" : 0.102271871, + "computationTime" : 0.002077355, + "storageTime" : 0.001771988, "gssTimes" : [ - 0.000086794, - 0.000091756, - 0.000064073, - 0.000057888, - 0.000050292, - 0.000057699, - 0.000043784, - 0.000039228, - 0.000045717, - 0.000046049, - 0.000040196 + 0.000288872, + 0.000297028, + 0.000146749, + 0.000159701, + 0.000115314, + 0.000143948, + 0.00015582, + 0.000103375, + 0.000139879, + 0.000153369, + 0.000115472 ], "aggregators" : { }, @@ -44,7 +44,7 @@ x-content-type-options: nosniff "useMemoryMaps" : true, "detail" : { "aggregatedStatus" : { - "timeStamp" : "2022-10-06T13:19:06Z", + "timeStamp" : "2022-10-20T12:18:33Z", "graphStoreStatus" : { "verticesLoaded" : 36, "edgesLoaded" : 36, @@ -124,7 +124,7 @@ x-content-type-options: nosniff }, "workerStatus" : { "" : { - "timeStamp" : "2022-10-06T13:19:06Z", + "timeStamp" : "2022-10-20T12:18:33Z", "graphStoreStatus" : { "verticesLoaded" : 36, "edgesLoaded" : 36, diff --git a/3.11/generated/Examples/RestReplicationApplierStart.generated b/3.11/generated/Examples/RestReplicationApplierStart.generated index 592ea6cbc4..7e1c429afd 100644 --- a/3.11/generated/Examples/RestReplicationApplierStart.generated +++ b/3.11/generated/Examples/RestReplicationApplierStart.generated @@ -3,7 +3,7 @@ HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive -content-length: 718 +content-length: 717 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -19,7 +19,7 @@ x-content-type-options: nosniff "safeResumeTick" : null, "ticksBehind" : 0, "progress" : { - "time" : "2022-10-06T13:19:03Z", + "time" : "2022-10-20T12:18:20Z", "message" : "applier initially created for database '_system'", "failedConnects" : 0 }, @@ -37,11 +37,11 @@ x-content-type-options: nosniff "lastError" : { "errorNum" : 0 }, - "time" : "2022-10-06T13:19:06Z" + "time" : "2022-10-20T12:18:33Z" }, "server" : { "version" : "3.11.0-devel", - "serverId" : "263241348095463" + "serverId" : "68491926657256" }, "endpoint" : "tcp://127.0.0.1:8529", "database" : "_system" diff --git a/3.11/generated/Examples/RestReplicationApplierStateNotRunning.generated b/3.11/generated/Examples/RestReplicationApplierStateNotRunning.generated index a8b0a42315..ee898986b7 100644 --- a/3.11/generated/Examples/RestReplicationApplierStateNotRunning.generated +++ b/3.11/generated/Examples/RestReplicationApplierStateNotRunning.generated @@ -3,14 +3,14 @@ HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive -content-length: 693 +content-length: 692 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { "state" : { - "started" : "2022-10-06T13:19:06Z", + "started" : "2022-10-20T12:18:33Z", "running" : false, "phase" : "inactive", "lastAppliedContinuousTick" : null, @@ -18,7 +18,7 @@ x-content-type-options: nosniff "lastAvailableContinuousTick" : null, "safeResumeTick" : null, "progress" : { - "time" : "2022-10-06T13:19:07Z", + "time" : "2022-10-20T12:18:34Z", "message" : "applier shut down", "failedConnects" : 1 }, @@ -36,11 +36,11 @@ x-content-type-options: nosniff "lastError" : { "errorNum" : 0 }, - "time" : "2022-10-06T13:19:07Z" + "time" : "2022-10-20T12:18:34Z" }, "server" : { "version" : "3.11.0-devel", - "serverId" : "263241348095463" + "serverId" : "68491926657256" }, "endpoint" : "tcp://127.0.0.1:8529", "database" : "_system" diff --git a/3.11/generated/Examples/RestReplicationApplierStateRunning.generated b/3.11/generated/Examples/RestReplicationApplierStateRunning.generated index 5531417ee5..5ea8c5df47 100644 --- a/3.11/generated/Examples/RestReplicationApplierStateRunning.generated +++ b/3.11/generated/Examples/RestReplicationApplierStateRunning.generated @@ -3,14 +3,14 @@ HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive -content-length: 723 +content-length: 722 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { "state" : { - "started" : "2022-10-06T13:19:06Z", + "started" : "2022-10-20T12:18:33Z", "running" : true, "phase" : "running", "lastAppliedContinuousTick" : null, @@ -19,7 +19,7 @@ x-content-type-options: nosniff "safeResumeTick" : null, "ticksBehind" : 0, "progress" : { - "time" : "2022-10-06T13:19:07Z", + "time" : "2022-10-20T12:18:34Z", "message" : "fetching leader state information", "failedConnects" : 0 }, @@ -37,11 +37,11 @@ x-content-type-options: nosniff "lastError" : { "errorNum" : 0 }, - "time" : "2022-10-06T13:19:07Z" + "time" : "2022-10-20T12:18:34Z" }, "server" : { "version" : "3.11.0-devel", - "serverId" : "263241348095463" + "serverId" : "68491926657256" }, "endpoint" : "tcp://127.0.0.1:8529", "database" : "_system" diff --git a/3.11/generated/Examples/RestReplicationApplierStop.generated b/3.11/generated/Examples/RestReplicationApplierStop.generated index e8a0802e52..dde70afede 100644 --- a/3.11/generated/Examples/RestReplicationApplierStop.generated +++ b/3.11/generated/Examples/RestReplicationApplierStop.generated @@ -3,14 +3,14 @@ HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive -content-length: 693 +content-length: 692 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { "state" : { - "started" : "2022-10-06T13:19:06Z", + "started" : "2022-10-20T12:18:33Z", "running" : false, "phase" : "inactive", "lastAppliedContinuousTick" : null, @@ -18,7 +18,7 @@ x-content-type-options: nosniff "lastAvailableContinuousTick" : null, "safeResumeTick" : null, "progress" : { - "time" : "2022-10-06T13:19:08Z", + "time" : "2022-10-20T12:18:35Z", "message" : "applier shut down", "failedConnects" : 0 }, @@ -36,11 +36,11 @@ x-content-type-options: nosniff "lastError" : { "errorNum" : 0 }, - "time" : "2022-10-06T13:19:08Z" + "time" : "2022-10-20T12:18:35Z" }, "server" : { "version" : "3.11.0-devel", - "serverId" : "263241348095463" + "serverId" : "68491926657256" }, "endpoint" : "tcp://127.0.0.1:8529", "database" : "_system" diff --git a/3.11/generated/Examples/RestReplicationLoggerFirstTick.generated b/3.11/generated/Examples/RestReplicationLoggerFirstTick.generated index cfd639aa9a..f3f61c8d25 100644 --- a/3.11/generated/Examples/RestReplicationLoggerFirstTick.generated +++ b/3.11/generated/Examples/RestReplicationLoggerFirstTick.generated @@ -9,5 +9,5 @@ x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "firstTick" : "177764" + "firstTick" : "177758" } diff --git a/3.11/generated/Examples/RestReplicationLoggerFollowBufferLimit.generated b/3.11/generated/Examples/RestReplicationLoggerFollowBufferLimit.generated index 4e0b87b207..95df6d5467 100644 --- a/3.11/generated/Examples/RestReplicationLoggerFollowBufferLimit.generated +++ b/3.11/generated/Examples/RestReplicationLoggerFollowBufferLimit.generated @@ -1,4 +1,4 @@ -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/logger-follow?from=182846&chunkSize=400 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/logger-follow?from=182853&chunkSize=400 HTTP/1.1 200 OK content-type: application/x-arango-dump @@ -9,13 +9,13 @@ x-arango-queue-time-seconds: 0.000000 x-arango-replication-active: true x-arango-replication-checkmore: true x-arango-replication-frompresent: true -x-arango-replication-lastincluded: 182851 -x-arango-replication-lastscanned: 182848 -x-arango-replication-lasttick: 182880 +x-arango-replication-lastincluded: 182858 +x-arango-replication-lastscanned: 182855 +x-arango-replication-lasttick: 182885 x-content-type-options: nosniff { - "tick" : "182849", + "tick" : "182856", "type" : 2300, "database" : "1", "tid" : "0", @@ -24,14 +24,14 @@ x-content-type-options: nosniff "data" : { "_key" : "89", "_id" : "_users/89", - "_rev" : "_e4zxHnC---", + "_rev" : "_e9TStjS---", "user" : "root", "source" : "LOCAL", "authData" : { "active" : true, "simple" : { - "hash" : "a2a3729f0cd4a1d363b65050fdbfa433ffafa9bf4b1151a92744edfc5814dc22", - "salt" : "000890d4", + "hash" : "890fbc4aa4cca8d65772cdbe9f9be9b3e1658b3355b13c55d05fede37f87cf63", + "salt" : "41ac5236", "method" : "sha256" } }, diff --git a/3.11/generated/Examples/RestReplicationLoggerFollowEmpty.generated b/3.11/generated/Examples/RestReplicationLoggerFollowEmpty.generated index f8fb11bf0b..a3d519bccf 100644 --- a/3.11/generated/Examples/RestReplicationLoggerFollowEmpty.generated +++ b/3.11/generated/Examples/RestReplicationLoggerFollowEmpty.generated @@ -1,4 +1,4 @@ -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/logger-follow?from=182880 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/logger-follow?from=182885 HTTP/1.1 204 No Content content-type: application/x-arango-dump @@ -10,7 +10,7 @@ x-arango-replication-active: true x-arango-replication-checkmore: false x-arango-replication-frompresent: true x-arango-replication-lastincluded: 0 -x-arango-replication-lastscanned: 182878 -x-arango-replication-lasttick: 182880 +x-arango-replication-lastscanned: 182885 +x-arango-replication-lasttick: 182885 x-content-type-options: nosniff diff --git a/3.11/generated/Examples/RestReplicationLoggerFollowSome.generated b/3.11/generated/Examples/RestReplicationLoggerFollowSome.generated index 73c329f0a8..1e7848fef4 100644 --- a/3.11/generated/Examples/RestReplicationLoggerFollowSome.generated +++ b/3.11/generated/Examples/RestReplicationLoggerFollowSome.generated @@ -1,4 +1,4 @@ -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/logger-follow?from=182880 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/logger-follow?from=182885 HTTP/1.1 200 OK content-type: application/x-arango-dump @@ -9,13 +9,13 @@ x-arango-queue-time-seconds: 0.000000 x-arango-replication-active: true x-arango-replication-checkmore: false x-arango-replication-frompresent: true -x-arango-replication-lastincluded: 182906 -x-arango-replication-lastscanned: 182903 -x-arango-replication-lasttick: 182906 +x-arango-replication-lastincluded: 182911 +x-arango-replication-lastscanned: 182908 +x-arango-replication-lasttick: 182911 x-content-type-options: nosniff { - "tick" : "182883", + "tick" : "182888", "type" : 2300, "database" : "1", "tid" : "0", @@ -24,14 +24,14 @@ x-content-type-options: nosniff "data" : { "_key" : "89", "_id" : "_users/89", - "_rev" : "_e4zxIm6---", + "_rev" : "_e9TSule---", "user" : "root", "source" : "LOCAL", "authData" : { "active" : true, "simple" : { - "hash" : "a2a3729f0cd4a1d363b65050fdbfa433ffafa9bf4b1151a92744edfc5814dc22", - "salt" : "000890d4", + "hash" : "890fbc4aa4cca8d65772cdbe9f9be9b3e1658b3355b13c55d05fede37f87cf63", + "salt" : "41ac5236", "method" : "sha256" } }, @@ -92,18 +92,18 @@ x-content-type-options: nosniff } }↩ { - "tick" : "182896", + "tick" : "182901", "type" : 2001, "database" : "1", - "cuid" : "hEF6AA70B1DE7/69846", - "cid" : "69846", + "cuid" : "h3E4B04F558E8/69851", + "cid" : "69851", "data" : { - "id" : "69846", + "id" : "69851", "name" : "" } }↩ { - "tick" : "182904", + "tick" : "182909", "type" : 2300, "database" : "1", "tid" : "0", @@ -112,14 +112,14 @@ x-content-type-options: nosniff "data" : { "_key" : "89", "_id" : "_users/89", - "_rev" : "_e4zxIm6--D", + "_rev" : "_e9TSulq---", "user" : "root", "source" : "LOCAL", "authData" : { "active" : true, "simple" : { - "hash" : "a2a3729f0cd4a1d363b65050fdbfa433ffafa9bf4b1151a92744edfc5814dc22", - "salt" : "000890d4", + "hash" : "890fbc4aa4cca8d65772cdbe9f9be9b3e1658b3355b13c55d05fede37f87cf63", + "salt" : "41ac5236", "method" : "sha256" } }, diff --git a/3.11/generated/Examples/RestReplicationLoggerStateActive.generated b/3.11/generated/Examples/RestReplicationLoggerStateActive.generated index 96d477deb3..42f4b2825b 100644 --- a/3.11/generated/Examples/RestReplicationLoggerStateActive.generated +++ b/3.11/generated/Examples/RestReplicationLoggerStateActive.generated @@ -3,7 +3,7 @@ HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive -content-length: 231 +content-length: 230 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -11,14 +11,14 @@ x-content-type-options: nosniff { "state" : { "running" : true, - "lastLogTick" : "182906", - "lastUncommittedLogTick" : "182906", - "totalEvents" : 182906, - "time" : "2022-10-06T13:19:10Z" + "lastLogTick" : "182911", + "lastUncommittedLogTick" : "182911", + "totalEvents" : 182911, + "time" : "2022-10-20T12:18:37Z" }, "server" : { "version" : "3.11.0-devel", - "serverId" : "263241348095463", + "serverId" : "68491926657256", "engine" : "rocksdb" }, "clients" : [ ] diff --git a/3.11/generated/Examples/RestReplicationLoggerTickRanges.generated b/3.11/generated/Examples/RestReplicationLoggerTickRanges.generated index 601b7146cb..39f186fb67 100644 --- a/3.11/generated/Examples/RestReplicationLoggerTickRanges.generated +++ b/3.11/generated/Examples/RestReplicationLoggerTickRanges.generated @@ -12,19 +12,19 @@ x-content-type-options: nosniff { "datafile" : "/archive/000086.log", "status" : "collected", - "tickMin" : "177764", - "tickMax" : "177811" + "tickMin" : "177758", + "tickMax" : "177848" }, { "datafile" : "/archive/000110.log", "status" : "collected", - "tickMin" : "177811", - "tickMax" : "177854" + "tickMin" : "177848", + "tickMax" : "177891" }, { "datafile" : "/000117.log", "status" : "open", - "tickMin" : "177854", - "tickMax" : "182906" + "tickMin" : "177891", + "tickMax" : "182911" } ] diff --git a/3.11/generated/Examples/RestReplicationServerId.generated b/3.11/generated/Examples/RestReplicationServerId.generated index d95e89e379..9a73a9133f 100644 --- a/3.11/generated/Examples/RestReplicationServerId.generated +++ b/3.11/generated/Examples/RestReplicationServerId.generated @@ -3,11 +3,11 @@ HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive -content-length: 30 +content-length: 29 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "serverId" : "263241348095463" + "serverId" : "68491926657256" } diff --git a/3.11/generated/Examples/RestTasksCreate.generated b/3.11/generated/Examples/RestTasksCreate.generated index 364b046919..f36364a102 100644 --- a/3.11/generated/Examples/RestTasksCreate.generated +++ b/3.11/generated/Examples/RestTasksCreate.generated @@ -13,20 +13,20 @@ EOF HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive -content-length: 236 +content-length: 240 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "id" : "69877", + "id" : "69882", "name" : "SampleTask", - "created" : 1665062350.483639, + "created" : 1666268317.3702197, "type" : "periodic", "period" : 2, "offset" : 0, "command" : "(function (params) { (function(params) { require('@arangodb').print(params); })(params) } )(params);", "database" : "_system" } -shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/tasks/69877 +shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/tasks/69882 diff --git a/3.11/generated/Examples/RestTasksListOne.generated b/3.11/generated/Examples/RestTasksListOne.generated index 929e692cc0..d3a3264943 100644 --- a/3.11/generated/Examples/RestTasksListOne.generated +++ b/3.11/generated/Examples/RestTasksListOne.generated @@ -15,7 +15,7 @@ x-content-type-options: nosniff { "id" : "testTask", "name" : "user-defined task", - "created" : 1665062350.4915464, + "created" : 1666268317.4019392, "type" : "timed", "offset" : 10000, "command" : "(function (params) { console.log('Hello from task!'); } )(params);", diff --git a/3.11/generated/Examples/RestTasksPutWithId.generated b/3.11/generated/Examples/RestTasksPutWithId.generated index ae3d41ffea..8b72363442 100644 --- a/3.11/generated/Examples/RestTasksPutWithId.generated +++ b/3.11/generated/Examples/RestTasksPutWithId.generated @@ -22,7 +22,7 @@ x-content-type-options: nosniff { "id" : "sampleTask", "name" : "SampleTask", - "created" : 1665062350.4938285, + "created" : 1666268317.4095867, "type" : "periodic", "period" : 2, "offset" : 0, diff --git a/3.11/generated/Examples/RestTransactionBeginAbort.generated b/3.11/generated/Examples/RestTransactionBeginAbort.generated index 29c7f59507..f3edd2232e 100644 --- a/3.11/generated/Examples/RestTransactionBeginAbort.generated +++ b/3.11/generated/Examples/RestTransactionBeginAbort.generated @@ -1,4 +1,4 @@ -shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/transaction/69909 +shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/transaction/69914 HTTP/1.1 200 OK content-type: application/json @@ -12,7 +12,7 @@ x-content-type-options: nosniff "code" : 200, "error" : false, "result" : { - "id" : "69909", + "id" : "69914", "status" : "committed" } } diff --git a/3.11/generated/Examples/RestTransactionBeginCommit.generated b/3.11/generated/Examples/RestTransactionBeginCommit.generated index 111eb3a477..8157f5abf0 100644 --- a/3.11/generated/Examples/RestTransactionBeginCommit.generated +++ b/3.11/generated/Examples/RestTransactionBeginCommit.generated @@ -1,4 +1,4 @@ -shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/transaction/69917 +shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/transaction/69922 HTTP/1.1 200 OK content-type: application/json @@ -12,7 +12,7 @@ x-content-type-options: nosniff "code" : 200, "error" : false, "result" : { - "id" : "69917", + "id" : "69922", "status" : "aborted" } } diff --git a/3.11/generated/Examples/RestTransactionBeginSingle.generated b/3.11/generated/Examples/RestTransactionBeginSingle.generated index 5df7798942..145b3010c7 100644 --- a/3.11/generated/Examples/RestTransactionBeginSingle.generated +++ b/3.11/generated/Examples/RestTransactionBeginSingle.generated @@ -18,7 +18,7 @@ x-content-type-options: nosniff "code" : 201, "error" : false, "result" : { - "id" : "69927", + "id" : "69932", "status" : "running" } } diff --git a/3.11/generated/Examples/RestTransactionGet.generated b/3.11/generated/Examples/RestTransactionGet.generated index 46217c89bb..4b4922bda6 100644 --- a/3.11/generated/Examples/RestTransactionGet.generated +++ b/3.11/generated/Examples/RestTransactionGet.generated @@ -1,4 +1,4 @@ -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/transaction/69935 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/transaction/69940 HTTP/1.1 200 OK content-type: application/json @@ -12,7 +12,7 @@ x-content-type-options: nosniff "code" : 200, "error" : false, "result" : { - "id" : "69935", + "id" : "69940", "status" : "running" } } diff --git a/3.11/generated/Examples/RestTransactionsGet.generated b/3.11/generated/Examples/RestTransactionsGet.generated index 134e9f8280..ab7f048205 100644 --- a/3.11/generated/Examples/RestTransactionsGet.generated +++ b/3.11/generated/Examples/RestTransactionsGet.generated @@ -11,7 +11,7 @@ x-content-type-options: nosniff { "transactions" : [ { - "id" : "69974", + "id" : "69979", "state" : "running" } ] diff --git a/3.11/generated/Examples/RestVersionDetails.generated b/3.11/generated/Examples/RestVersionDetails.generated index fee8b48c97..540c2385cd 100644 --- a/3.11/generated/Examples/RestVersionDetails.generated +++ b/3.11/generated/Examples/RestVersionDetails.generated @@ -3,7 +3,7 @@ HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive -content-length: 1793 +content-length: 1816 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -21,22 +21,22 @@ x-content-type-options: nosniff "avx" : "true", "avx2" : "false", "boost-version" : "1.78.0", - "build-date" : "2022-10-06 12:42:30", - "build-repository" : "heads/devel-0-g8ae4fcb38aa", + "build-date" : "2022-10-20 11:59:49", + "build-repository" : "heads/documentation/api-fixes-2022-10-06-0-g97e257108e1", "compiler" : "gcc [11.2.1 20220219]", "cplusplus" : "202002", "curl-version" : "none", "debug" : "false", "endianness" : "little", - "enterprise-build-repository" : "heads/devel-0-g560580de", + "enterprise-build-repository" : "heads/devel-0-g5f508307", "enterprise-version" : "enterprise", "failure-tests" : "false", "fd-client-event-handler" : "poll", "fd-setsize" : "1024", - "full-version-string" : "ArangoDB 3.11.0-devel enterprise [linux] 64bit, using jemalloc, build heads/devel-0-g8ae4fcb38aa, VPack 0.1.36, RocksDB 7.2.0, ICU 64.2, V8 7.9.317, OpenSSL 1.1.1q 5 Jul 2022", + "full-version-string" : "ArangoDB 3.11.0-devel enterprise [linux] 64bit, using jemalloc, build heads/documentation/api-fixes-2022-10-06-0-g97e257108e1, VPack 0.1.36, RocksDB 7.2.0, ICU 64.2, V8 7.9.317, OpenSSL 1.1.1q 5 Jul 2022", "icu-version" : "64.2", "ipo" : "true", - "iresearch-version" : "1.2.0.0", + "iresearch-version" : "1.3.0.0", "jemalloc" : "true", "libunwind" : "true", "license" : "enterprise", @@ -64,6 +64,6 @@ x-content-type-options: nosniff "zlib-version" : "1.2.12", "mode" : "server", "role" : "SINGLE", - "host" : "EC2 (AWS X86) - AWS X86 (i-0b5d8b5656eea7058)" + "host" : "hw06-linux" } } diff --git a/3.11/generated/Examples/RestViewDeleteViewIdentifierArangoSearch.generated b/3.11/generated/Examples/RestViewDeleteViewIdentifierArangoSearch.generated index fb990d346c..e8c2ffbb7c 100644 --- a/3.11/generated/Examples/RestViewDeleteViewIdentifierArangoSearch.generated +++ b/3.11/generated/Examples/RestViewDeleteViewIdentifierArangoSearch.generated @@ -1,4 +1,4 @@ -shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/view/69984 +shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/view/69989 HTTP/1.1 200 OK content-type: application/json diff --git a/3.11/generated/Examples/RestViewGetAllViews.generated b/3.11/generated/Examples/RestViewGetAllViews.generated index 7af43fd234..9c48b28d76 100644 --- a/3.11/generated/Examples/RestViewGetAllViews.generated +++ b/3.11/generated/Examples/RestViewGetAllViews.generated @@ -13,7 +13,7 @@ x-content-type-options: nosniff "code" : 200, "result" : [ { - "globallyUniqueId" : "hEF6AA70B1DE7/101", + "globallyUniqueId" : "h3E4B04F558E8/101", "id" : "101", "name" : "demoView", "type" : "arangosearch" diff --git a/3.11/generated/Examples/RestViewGetViewIdentifierArangoSearch.generated b/3.11/generated/Examples/RestViewGetViewIdentifierArangoSearch.generated index 4784635347..685b41a492 100644 --- a/3.11/generated/Examples/RestViewGetViewIdentifierArangoSearch.generated +++ b/3.11/generated/Examples/RestViewGetViewIdentifierArangoSearch.generated @@ -1,4 +1,4 @@ -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/view/69994 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/view/69999 HTTP/1.1 200 OK content-type: application/json @@ -13,6 +13,6 @@ x-content-type-options: nosniff "code" : 200, "type" : "arangosearch", "name" : "testView", - "id" : "69994", - "globallyUniqueId" : "hEF6AA70B1DE7/69994" + "id" : "69999", + "globallyUniqueId" : "h3E4B04F558E8/69999" } diff --git a/3.11/generated/Examples/RestViewGetViewNameArangoSearch.generated b/3.11/generated/Examples/RestViewGetViewNameArangoSearch.generated index 20ceb7a63b..04ca30ce3d 100644 --- a/3.11/generated/Examples/RestViewGetViewNameArangoSearch.generated +++ b/3.11/generated/Examples/RestViewGetViewNameArangoSearch.generated @@ -13,6 +13,6 @@ x-content-type-options: nosniff "code" : 200, "type" : "arangosearch", "name" : "testView", - "id" : "69999", - "globallyUniqueId" : "hEF6AA70B1DE7/69999" + "id" : "70004", + "globallyUniqueId" : "h3E4B04F558E8/70004" } diff --git a/3.11/generated/Examples/RestViewGetViewPropertiesIdentifierArangoSearch.generated b/3.11/generated/Examples/RestViewGetViewPropertiesIdentifierArangoSearch.generated index 06bafb53df..0766cb04a5 100644 --- a/3.11/generated/Examples/RestViewGetViewPropertiesIdentifierArangoSearch.generated +++ b/3.11/generated/Examples/RestViewGetViewPropertiesIdentifierArangoSearch.generated @@ -1,4 +1,4 @@ -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/view/70004/properties +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/view/70009/properties HTTP/1.1 200 OK content-type: application/json @@ -28,10 +28,10 @@ x-content-type-options: nosniff "commitIntervalMsec" : 1000, "links" : { }, - "id" : "70004", + "id" : "70009", "storedValues" : [ ], "cleanupIntervalStep" : 2, - "globallyUniqueId" : "hEF6AA70B1DE7/70004", + "globallyUniqueId" : "h3E4B04F558E8/70009", "primarySort" : [ ], "primarySortCompression" : "lz4" } diff --git a/3.11/generated/Examples/RestViewGetViewPropertiesNameArangoSearch.generated b/3.11/generated/Examples/RestViewGetViewPropertiesNameArangoSearch.generated index f52e665180..c0080c93ee 100644 --- a/3.11/generated/Examples/RestViewGetViewPropertiesNameArangoSearch.generated +++ b/3.11/generated/Examples/RestViewGetViewPropertiesNameArangoSearch.generated @@ -28,10 +28,10 @@ x-content-type-options: nosniff "commitIntervalMsec" : 1000, "links" : { }, - "id" : "70010", + "id" : "70015", "storedValues" : [ ], "cleanupIntervalStep" : 2, - "globallyUniqueId" : "hEF6AA70B1DE7/70010", + "globallyUniqueId" : "h3E4B04F558E8/70015", "primarySort" : [ ], "primarySortCompression" : "lz4" } diff --git a/3.11/generated/Examples/RestViewPatchPropertiesArangoSearch.generated b/3.11/generated/Examples/RestViewPatchPropertiesArangoSearch.generated index 53a2be238a..0d3d28e8de 100644 --- a/3.11/generated/Examples/RestViewPatchPropertiesArangoSearch.generated +++ b/3.11/generated/Examples/RestViewPatchPropertiesArangoSearch.generated @@ -13,8 +13,8 @@ x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "globallyUniqueId" : "hEF6AA70B1DE7/70016", - "id" : "70016", + "globallyUniqueId" : "h3E4B04F558E8/70021", + "id" : "70021", "name" : "products", "type" : "arangosearch", "cleanupIntervalStep" : 2, diff --git a/3.11/generated/Examples/RestViewPatchPropertiesSearchAlias.generated b/3.11/generated/Examples/RestViewPatchPropertiesSearchAlias.generated index 05962a760d..e0171148a9 100644 --- a/3.11/generated/Examples/RestViewPatchPropertiesSearchAlias.generated +++ b/3.11/generated/Examples/RestViewPatchPropertiesSearchAlias.generated @@ -18,8 +18,8 @@ x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "globallyUniqueId" : "hEF6AA70B1DE7/70033", - "id" : "70033", + "globallyUniqueId" : "h3E4B04F558E8/70038", + "id" : "70038", "name" : "products", "type" : "search-alias", "indexes" : [ diff --git a/3.11/generated/Examples/RestViewPostViewArangoSearch.generated b/3.11/generated/Examples/RestViewPostViewArangoSearch.generated index 15cb8e52d0..9ec7b2e052 100644 --- a/3.11/generated/Examples/RestViewPostViewArangoSearch.generated +++ b/3.11/generated/Examples/RestViewPostViewArangoSearch.generated @@ -14,8 +14,8 @@ x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "globallyUniqueId" : "hEF6AA70B1DE7/70036", - "id" : "70036", + "globallyUniqueId" : "h3E4B04F558E8/70041", + "id" : "70041", "name" : "testViewBasics", "type" : "arangosearch", "cleanupIntervalStep" : 2, diff --git a/3.11/generated/Examples/RestViewPostViewSearchAlias.generated b/3.11/generated/Examples/RestViewPostViewSearchAlias.generated index c8e5b52f1e..e555faa84e 100644 --- a/3.11/generated/Examples/RestViewPostViewSearchAlias.generated +++ b/3.11/generated/Examples/RestViewPostViewSearchAlias.generated @@ -14,8 +14,8 @@ x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "globallyUniqueId" : "hEF6AA70B1DE7/70041", - "id" : "70041", + "globallyUniqueId" : "h3E4B04F558E8/70046", + "id" : "70046", "name" : "testViewBasics", "type" : "search-alias", "indexes" : [ ] diff --git a/3.11/generated/Examples/RestViewPutPropertiesArangoSearch.generated b/3.11/generated/Examples/RestViewPutPropertiesArangoSearch.generated index f0d82bdfc3..3505e04bc5 100644 --- a/3.11/generated/Examples/RestViewPutPropertiesArangoSearch.generated +++ b/3.11/generated/Examples/RestViewPutPropertiesArangoSearch.generated @@ -13,8 +13,8 @@ x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "globallyUniqueId" : "hEF6AA70B1DE7/70043", - "id" : "70043", + "globallyUniqueId" : "h3E4B04F558E8/70048", + "id" : "70048", "name" : "products", "type" : "arangosearch", "cleanupIntervalStep" : 2, diff --git a/3.11/generated/Examples/RestViewPutPropertiesSearchAlias.generated b/3.11/generated/Examples/RestViewPutPropertiesSearchAlias.generated index a3fa2f72bf..a4d53b666f 100644 --- a/3.11/generated/Examples/RestViewPutPropertiesSearchAlias.generated +++ b/3.11/generated/Examples/RestViewPutPropertiesSearchAlias.generated @@ -18,8 +18,8 @@ x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "globallyUniqueId" : "hEF6AA70B1DE7/70061", - "id" : "70061", + "globallyUniqueId" : "h3E4B04F558E8/70066", + "id" : "70066", "name" : "products", "type" : "search-alias", "indexes" : [ diff --git a/3.11/generated/Examples/RestViewPutRename.generated b/3.11/generated/Examples/RestViewPutRename.generated index cb65f5ac89..c95dd68549 100644 --- a/3.11/generated/Examples/RestViewPutRename.generated +++ b/3.11/generated/Examples/RestViewPutRename.generated @@ -17,6 +17,6 @@ x-content-type-options: nosniff "code" : 200, "type" : "arangosearch", "name" : "viewNewName", - "id" : "70064", - "globallyUniqueId" : "hEF6AA70B1DE7/70064" + "id" : "70069", + "globallyUniqueId" : "h3E4B04F558E8/70069" } diff --git a/3.11/generated/Examples/RestWalAccessFirstTick.generated b/3.11/generated/Examples/RestWalAccessFirstTick.generated index 014fb6503f..c294fd19c7 100644 --- a/3.11/generated/Examples/RestWalAccessFirstTick.generated +++ b/3.11/generated/Examples/RestWalAccessFirstTick.generated @@ -3,16 +3,16 @@ HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive -content-length: 112 +content-length: 111 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "time" : "2022-10-06T13:19:10Z", - "tick" : "183202", + "time" : "2022-10-20T12:18:37Z", + "tick" : "183207", "server" : { "version" : "3.11.0-devel", - "serverId" : "263241348095463" + "serverId" : "68491926657256" } } diff --git a/3.11/generated/Examples/RestWalAccessTailingBufferLimit.generated b/3.11/generated/Examples/RestWalAccessTailingBufferLimit.generated index 6a7ac0e574..3bcb769af6 100644 --- a/3.11/generated/Examples/RestWalAccessTailingBufferLimit.generated +++ b/3.11/generated/Examples/RestWalAccessTailingBufferLimit.generated @@ -1,4 +1,4 @@ -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/wal/tail?from=183202&chunkSize=400 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/wal/tail?from=183207&chunkSize=400 HTTP/1.1 200 OK content-type: application/x-arango-dump @@ -8,14 +8,14 @@ server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-arango-replication-checkmore: true x-arango-replication-frompresent: true -x-arango-replication-lastincluded: 183218 -x-arango-replication-lastscanned: 183233 -x-arango-replication-lasttick: 183233 +x-arango-replication-lastincluded: 183223 +x-arango-replication-lastscanned: 183236 +x-arango-replication-lasttick: 183236 x-content-type-options: nosniff { - "tick" : "183218", + "tick" : "183223", "type" : 2001, "db" : "_system", - "cuid" : "hEF6AA70B1DE7/70073" + "cuid" : "h3E4B04F558E8/70078" } diff --git a/3.11/generated/Examples/RestWalAccessTailingEmpty.generated b/3.11/generated/Examples/RestWalAccessTailingEmpty.generated index b381067cdb..47d89c6b05 100644 --- a/3.11/generated/Examples/RestWalAccessTailingEmpty.generated +++ b/3.11/generated/Examples/RestWalAccessTailingEmpty.generated @@ -1,4 +1,4 @@ -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/wal/tail?from=183233 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/wal/tail?from=183236 HTTP/1.1 204 No Content content-type: application/x-arango-dump @@ -9,7 +9,7 @@ x-arango-queue-time-seconds: 0.000000 x-arango-replication-checkmore: false x-arango-replication-frompresent: true x-arango-replication-lastincluded: 0 -x-arango-replication-lastscanned: 183233 -x-arango-replication-lasttick: 183233 +x-arango-replication-lastscanned: 183236 +x-arango-replication-lasttick: 183236 x-content-type-options: nosniff diff --git a/3.11/generated/Examples/RestWalAccessTailingSome.generated b/3.11/generated/Examples/RestWalAccessTailingSome.generated index e167d910a0..5b83d9f9b6 100644 --- a/3.11/generated/Examples/RestWalAccessTailingSome.generated +++ b/3.11/generated/Examples/RestWalAccessTailingSome.generated @@ -1,4 +1,4 @@ -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/wal/tail?from=183233 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/wal/tail?from=183236 HTTP/1.1 200 OK content-type: application/x-arango-dump @@ -8,14 +8,14 @@ server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-arango-replication-checkmore: true x-arango-replication-frompresent: true -x-arango-replication-lastincluded: 183249 -x-arango-replication-lastscanned: 183259 -x-arango-replication-lasttick: 183259 +x-arango-replication-lastincluded: 183252 +x-arango-replication-lastscanned: 183262 +x-arango-replication-lasttick: 183262 x-content-type-options: nosniff { - "tick" : "183249", + "tick" : "183252", "type" : 2001, "db" : "_system", - "cuid" : "hEF6AA70B1DE7/70085" + "cuid" : "h3E4B04F558E8/70090" }↩ diff --git a/3.11/generated/Examples/RestWalAccessTickRange.generated b/3.11/generated/Examples/RestWalAccessTickRange.generated index 84203ce1c4..aabefd071f 100644 --- a/3.11/generated/Examples/RestWalAccessTickRange.generated +++ b/3.11/generated/Examples/RestWalAccessTickRange.generated @@ -3,17 +3,17 @@ HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive -content-length: 134 +content-length: 133 server: ArangoDB x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff { - "time" : "2022-10-06T13:19:12Z", - "tickMin" : "177764", - "tickMax" : "183259", + "time" : "2022-10-20T12:18:39Z", + "tickMin" : "177758", + "tickMax" : "183262", "server" : { "version" : "3.11.0-devel", - "serverId" : "263241348095463" + "serverId" : "68491926657256" } } diff --git a/3.11/generated/Examples/accessViaGeoIndex.generated b/3.11/generated/Examples/accessViaGeoIndex.generated deleted file mode 100644 index 709d8bc5f0..0000000000 --- a/3.11/generated/Examples/accessViaGeoIndex.generated +++ /dev/null @@ -1,32 +0,0 @@ -arangosh> for (i = -90; i <= 90; i += 10) { -........> for (j = -180; j <= 180; j += 10) { -........> db.example.insert({ name : "Name/" + i + "/" + j, -........> home : [ i, j ], -........> work : [ -i, -j ] }); -........> } -........> } -........> -arangosh> db.example.ensureIndex({ type: "geo", fields: [ "home" ] }); -{ - "bestIndexedLevel" : 17, - "fields" : [ - "home" - ], - "geoJson" : false, - "id" : "example/71527", - "isNewlyCreated" : true, - "legacyPolygons" : false, - "maxNumCoverCells" : 8, - "name" : "idx_1745944421547900928", - "sparse" : true, - "type" : "geo", - "unique" : false, - "worstIndexedLevel" : 4, - "code" : 201 -} -arangosh> items = db.example.getIndexes().map(function(x) { return x.id; }); -........> db.example.index(items[1]); -[ - "example/0", - "example/71527" -] diff --git a/3.11/generated/Examples/analyzerAqlCollapse.generated b/3.11/generated/Examples/analyzerAqlCollapse.generated index 9efd8e677a..20898f8844 100644 --- a/3.11/generated/Examples/analyzerAqlCollapse.generated +++ b/3.11/generated/Examples/analyzerAqlCollapse.generated @@ -12,9 +12,9 @@ arangosh> var view = db._createView("FOR d IN view SEARCH PHRASE(d.text, {TERM: 'B'}, 1, {TERM: 'D'}, 'uncollapsed') RETURN d"); [ { - "_key" : "71552", - "_id" : "coll/71552", - "_rev" : "_e4zxLyq---", + "_key" : "70138", + "_id" : "coll/70138", + "_rev" : "_e9TSyDW---", "text" : "A-B-C-D" } ] @@ -22,9 +22,9 @@ arangosh> db._query("FOR d IN view SEARCH PHRA arangosh> db._query("FOR d IN view SEARCH PHRASE(d.text, {TERM: 'B'}, -1, {TERM: 'D'}, 'uncollapsed') RETURN d"); [ { - "_key" : "71552", - "_id" : "coll/71552", - "_rev" : "_e4zxLyq---", + "_key" : "70138", + "_id" : "coll/70138", + "_rev" : "_e9TSyDW---", "text" : "A-B-C-D" } ] @@ -34,9 +34,9 @@ arangosh> db._query("FOR d IN view SEARCH PHRA arangosh> db._query("FOR d IN view SEARCH PHRASE(d.text, {TERM: 'B'}, -1, {TERM: 'D'}, 'collapsed') RETURN d"); [ { - "_key" : "71552", - "_id" : "coll/71552", - "_rev" : "_e4zxLyq---", + "_key" : "70138", + "_id" : "coll/70138", + "_rev" : "_e9TSyDW---", "text" : "A-B-C-D" } ] diff --git a/3.11/generated/Examples/analyzerAqlFilter.generated b/3.11/generated/Examples/analyzerAqlFilter.generated index 07acf25796..88482a3eab 100644 --- a/3.11/generated/Examples/analyzerAqlFilter.generated +++ b/3.11/generated/Examples/analyzerAqlFilter.generated @@ -10,9 +10,9 @@ arangosh> var view = db._createView("FOR doc IN view SEARCH ANALYZER(doc.value IN ['regular', 'irregular'], 'filter') RETURN doc"); [ { - "_key" : "71629", - "_id" : "coll/71629", - "_rev" : "_e4zxL1a---", + "_key" : "70215", + "_id" : "coll/70215", + "_rev" : "_e9TSyKa--_", "value" : "regular" } ] diff --git a/3.11/generated/Examples/analyzerCollation.generated b/3.11/generated/Examples/analyzerCollation.generated index 21b44c1c97..cd8d3c31ee 100644 --- a/3.11/generated/Examples/analyzerCollation.generated +++ b/3.11/generated/Examples/analyzerCollation.generated @@ -10,24 +10,24 @@ arangosh> db.test.save([ ........> ]); [ { - "_id" : "test/71692", - "_key" : "71692", - "_rev" : "_e4zxL3u--_" + "_id" : "test/70278", + "_key" : "70278", + "_rev" : "_e9TSySG---" }, { - "_id" : "test/71693", - "_key" : "71693", - "_rev" : "_e4zxL3u--A" + "_id" : "test/70279", + "_key" : "70279", + "_rev" : "_e9TSySG--_" }, { - "_id" : "test/71694", - "_key" : "71694", - "_rev" : "_e4zxL3u--B" + "_id" : "test/70280", + "_key" : "70280", + "_rev" : "_e9TSySG--A" }, { - "_id" : "test/71695", - "_key" : "71695", - "_rev" : "_e4zxL3u--C" + "_id" : "test/70281", + "_key" : "70281", + "_rev" : "_e9TSySG--B" } ] arangosh> var view = db._createView("view", "arangosearch", diff --git a/3.11/generated/Examples/analyzerGeoJSON.generated b/3.11/generated/Examples/analyzerGeoJSON.generated index aaa99cfdb9..2b2faa715b 100644 --- a/3.11/generated/Examples/analyzerGeoJSON.generated +++ b/3.11/generated/Examples/analyzerGeoJSON.generated @@ -1,7 +1,7 @@ arangosh> var analyzers = require("@arangodb/analyzers"); arangosh> var a = analyzers.save("geo_json", "geojson", {}, ["frequency", "norm", "position"]); arangosh> db._create("geo"); -[ArangoCollection 71728, "geo" (type document, status loaded)] +[ArangoCollection 70314, "geo" (type document, status loaded)] arangosh> db.geo.save([ ........> { location: { type: "Point", coordinates: [6.937, 50.932] } }, ........> { location: { type: "Point", coordinates: [6.956, 50.941] } }, @@ -9,19 +9,19 @@ arangosh> db.geo.save([ ........> ]); [ { - "_id" : "geo/71733", - "_key" : "71733", - "_rev" : "_e4zxL6a--_" + "_id" : "geo/70319", + "_key" : "70319", + "_rev" : "_e9TSyaK---" }, { - "_id" : "geo/71734", - "_key" : "71734", - "_rev" : "_e4zxL6a--A" + "_id" : "geo/70320", + "_key" : "70320", + "_rev" : "_e9TSyaK--_" }, { - "_id" : "geo/71735", - "_key" : "71735", - "_rev" : "_e4zxL6a--B" + "_id" : "geo/70321", + "_key" : "70321", + "_rev" : "_e9TSyaK--A" } ] arangosh> db._createView("geo_view", "arangosearch", { @@ -35,16 +35,16 @@ arangosh> db._createView("geo_view"71736, "geo_view" (type arangosearch)] +[ArangoView 70322, "geo_view" (type arangosearch)] arangosh> db._query(`LET point = GEO_POINT(6.93, 50.94) ........> FOR doc IN geo_view ........> SEARCH ANALYZER(GEO_DISTANCE(doc.location, point) < 2000, "geo_json") ........> RETURN MERGE(doc, { distance: GEO_DISTANCE(doc.location, point) })`).toArray(); [ { - "_id" : "geo/71733", - "_key" : "71733", - "_rev" : "_e4zxL6a--_", + "_id" : "geo/70319", + "_key" : "70319", + "_rev" : "_e9TSyaK---", "location" : { "type" : "Point", "coordinates" : [ @@ -55,9 +55,9 @@ arangosh> db._query(`LET point = GEO_POINT(6.93, 50 "distance" : 1015.8355739436823 }, { - "_id" : "geo/71734", - "_key" : "71734", - "_rev" : "_e4zxL6a--A", + "_id" : "geo/70320", + "_key" : "70320", + "_rev" : "_e9TSyaK--_", "location" : { "type" : "Point", "coordinates" : [ diff --git a/3.11/generated/Examples/analyzerGeoPointLatLng.generated b/3.11/generated/Examples/analyzerGeoPointLatLng.generated index 00e2963751..27817b78d2 100644 --- a/3.11/generated/Examples/analyzerGeoPointLatLng.generated +++ b/3.11/generated/Examples/analyzerGeoPointLatLng.generated @@ -4,7 +4,7 @@ arangosh> var a = analyzers.save("lng"] ........> }, ["frequency", "norm", "position"]); arangosh> db._create("geo"); -[ArangoCollection 71753, "geo" (type document, status loaded)] +[ArangoCollection 70339, "geo" (type document, status loaded)] arangosh> db.geo.save([ ........> { location: { lat: 50.932, lng: 6.937 } }, ........> { location: { lat: 50.941, lng: 6.956 } }, @@ -12,19 +12,19 @@ arangosh> db.geo.save([ ........> ]); [ { - "_id" : "geo/71758", - "_key" : "71758", - "_rev" : "_e4zxL8W---" + "_id" : "geo/70344", + "_key" : "70344", + "_rev" : "_e9TSygW---" }, { - "_id" : "geo/71759", - "_key" : "71759", - "_rev" : "_e4zxL8W--_" + "_id" : "geo/70345", + "_key" : "70345", + "_rev" : "_e9TSygW--_" }, { - "_id" : "geo/71760", - "_key" : "71760", - "_rev" : "_e4zxL8W--A" + "_id" : "geo/70346", + "_key" : "70346", + "_rev" : "_e9TSygW--A" } ] arangosh> db._createView("geo_view", "arangosearch", { @@ -38,16 +38,16 @@ arangosh> db._createView("geo_view"71761, "geo_view" (type arangosearch)] +[ArangoView 70347, "geo_view" (type arangosearch)] arangosh> db._query(`LET point = GEO_POINT(6.93, 50.94) ........> FOR doc IN geo_view ........> SEARCH ANALYZER(GEO_DISTANCE(doc.location, point) < 2000, "geo_latlng") ........> RETURN MERGE(doc, { distance: GEO_DISTANCE([doc.location.lng, doc.location.lat], point) })`).toArray(); [ { - "_id" : "geo/71758", - "_key" : "71758", - "_rev" : "_e4zxL8W---", + "_id" : "geo/70344", + "_key" : "70344", + "_rev" : "_e9TSygW---", "location" : { "lat" : 50.932, "lng" : 6.937 @@ -55,9 +55,9 @@ arangosh> db._query(`LET point = GEO_POINT(6.93, 50 "distance" : 1015.8355739436823 }, { - "_id" : "geo/71759", - "_key" : "71759", - "_rev" : "_e4zxL8W--_", + "_id" : "geo/70345", + "_key" : "70345", + "_rev" : "_e9TSygW--_", "location" : { "lat" : 50.941, "lng" : 6.956 diff --git a/3.11/generated/Examples/analyzerGeoPointPair.generated b/3.11/generated/Examples/analyzerGeoPointPair.generated index 335cfd5f81..3d23691b05 100644 --- a/3.11/generated/Examples/analyzerGeoPointPair.generated +++ b/3.11/generated/Examples/analyzerGeoPointPair.generated @@ -1,7 +1,7 @@ arangosh> var analyzers = require("@arangodb/analyzers"); arangosh> var a = analyzers.save("geo_pair", "geopoint", {}, ["frequency", "norm", "position"]); arangosh> db._create("geo"); -[ArangoCollection 71778, "geo" (type document, status loaded)] +[ArangoCollection 70364, "geo" (type document, status loaded)] arangosh> db.geo.save([ ........> { location: [50.932, 6.937] }, ........> { location: [50.941, 6.956] }, @@ -9,19 +9,19 @@ arangosh> db.geo.save([ ........> ]); [ { - "_id" : "geo/71783", - "_key" : "71783", - "_rev" : "_e4zxM-a---" + "_id" : "geo/70369", + "_key" : "70369", + "_rev" : "_e9TSymi--_" }, { - "_id" : "geo/71784", - "_key" : "71784", - "_rev" : "_e4zxM-a--_" + "_id" : "geo/70370", + "_key" : "70370", + "_rev" : "_e9TSymi--A" }, { - "_id" : "geo/71785", - "_key" : "71785", - "_rev" : "_e4zxM-a--A" + "_id" : "geo/70371", + "_key" : "70371", + "_rev" : "_e9TSymm---" } ] arangosh> db._createView("geo_view", "arangosearch", { @@ -35,16 +35,16 @@ arangosh> db._createView("geo_view"71786, "geo_view" (type arangosearch)] +[ArangoView 70372, "geo_view" (type arangosearch)] arangosh> db._query(`LET point = GEO_POINT(6.93, 50.94) ........> FOR doc IN geo_view ........> SEARCH ANALYZER(GEO_DISTANCE(doc.location, point) < 2000, "geo_pair") ........> RETURN MERGE(doc, { distance: GEO_DISTANCE([doc.location[1], doc.location[0]], point) })`).toArray(); [ { - "_id" : "geo/71783", - "_key" : "71783", - "_rev" : "_e4zxM-a---", + "_id" : "geo/70369", + "_key" : "70369", + "_rev" : "_e9TSymi--_", "location" : [ 50.932, 6.937 @@ -52,9 +52,9 @@ arangosh> db._query(`LET point = GEO_POINT(6.93, 50 "distance" : 1015.8355739436823 }, { - "_id" : "geo/71784", - "_key" : "71784", - "_rev" : "_e4zxM-a--_", + "_id" : "geo/70370", + "_key" : "70370", + "_rev" : "_e9TSymi--A", "location" : [ 50.941, 6.956 diff --git a/3.11/generated/Examples/analyzerList.generated b/3.11/generated/Examples/analyzerList.generated index 24d8b316de..78d9b7a0a1 100644 --- a/3.11/generated/Examples/analyzerList.generated +++ b/3.11/generated/Examples/analyzerList.generated @@ -1,19 +1,19 @@ arangosh> var analyzers = require("@arangodb/analyzers"); arangosh> analyzers.toArray(); [ + [ArangoAnalyzer "text_ru" (type text)], + [ArangoAnalyzer "text_pt" (type text)], [ArangoAnalyzer "text_zh" (type text)], + [ArangoAnalyzer "text_nl" (type text)], + [ArangoAnalyzer "text_fr" (type text)], [ArangoAnalyzer "text_sv" (type text)], - [ArangoAnalyzer "text_ru" (type text)], [ArangoAnalyzer "text_no" (type text)], - [ArangoAnalyzer "text_nl" (type text)], [ArangoAnalyzer "text_it" (type text)], - [ArangoAnalyzer "text_es" (type text)], - [ArangoAnalyzer "text_fr" (type text)], [ArangoAnalyzer "text_en" (type text)], - [ArangoAnalyzer "text_fi" (type text)], [ArangoAnalyzer "text_de" (type text)], - [ArangoAnalyzer "text_pt" (type text)], + [ArangoAnalyzer "text_fi" (type text)], + [ArangoAnalyzer "text_es" (type text)], [ArangoAnalyzer "identity" (type identity)], - [ArangoAnalyzer "_system::custom" (type text)], - [ArangoAnalyzer "_system::delimiter_hyphen" (type delimiter)] + [ArangoAnalyzer "_system::delimiter_hyphen" (type delimiter)], + [ArangoAnalyzer "_system::custom" (type text)] ] diff --git a/3.11/generated/Examples/aqlArrayInterleave_3.generated b/3.11/generated/Examples/aqlArrayInterleave_3.generated index ae7fd9adf4..d3aaa3af6c 100644 --- a/3.11/generated/Examples/aqlArrayInterleave_3.generated +++ b/3.11/generated/Examples/aqlArrayInterleave_3.generated @@ -6,39 +6,39 @@ RETURN INTERLEAVE(p.vertices[*]._id, p.edges[*]._id) [ [ "places/Toronto", - "connections/72004", + "connections/70594", "places/Winnipeg" ], [ "places/Toronto", - "connections/72004", + "connections/70594", "places/Winnipeg", - "connections/72008", + "connections/70598", "places/Saskatoon" ], [ "places/Toronto", - "connections/72004", + "connections/70594", "places/Winnipeg", - "connections/72008", + "connections/70598", "places/Saskatoon", - "connections/72012", + "connections/70602", "places/Edmonton" ], [ "places/Toronto", - "connections/72004", + "connections/70594", "places/Winnipeg", - "connections/72008", + "connections/70598", "places/Saskatoon", - "connections/72010", + "connections/70600", "places/Winnipeg" ], [ "places/Toronto", - "connections/72004", + "connections/70594", "places/Winnipeg", - "connections/72006", + "connections/70596", "places/Toronto" ] ] \ No newline at end of file diff --git a/3.11/generated/Examples/aqlDateTimeToLocal_3.generated b/3.11/generated/Examples/aqlDateTimeToLocal_3.generated index b55f01935b..c64437dc9b 100644 --- a/3.11/generated/Examples/aqlDateTimeToLocal_3.generated +++ b/3.11/generated/Examples/aqlDateTimeToLocal_3.generated @@ -4,7 +4,7 @@ @R [ { - "local": "2022-10-06T14:19:13.086", + "local": "2022-10-20T13:18:41.006", "tzdb": "2022a", "zoneInfo": { "name": "WAT", diff --git a/3.11/generated/Examples/aqlMinHashCount.generated b/3.11/generated/Examples/aqlMinHashCount.generated index ebf9c3622a..a0640b874c 100644 --- a/3.11/generated/Examples/aqlMinHashCount.generated +++ b/3.11/generated/Examples/aqlMinHashCount.generated @@ -1,7 +1,7 @@ @Q: - RETURN MINHASH_ERROR(0.05) + RETURN MINHASH_COUNT(0.05) @R [ - null + 400 ] \ No newline at end of file diff --git a/3.11/generated/Examples/aqlRandomToken.generated b/3.11/generated/Examples/aqlRandomToken.generated index a070eee27d..59d849091f 100644 --- a/3.11/generated/Examples/aqlRandomToken.generated +++ b/3.11/generated/Examples/aqlRandomToken.generated @@ -7,7 +7,7 @@ RETURN [ @R [ [ - "XdQwZp0r", - "KrsQn9jo" + "90hGBpi6", + "TVJ9QYPE" ] ] \ No newline at end of file diff --git a/3.11/generated/Examples/aqlUuid.generated b/3.11/generated/Examples/aqlUuid.generated index e09f6ad110..b8495cbefc 100644 --- a/3.11/generated/Examples/aqlUuid.generated +++ b/3.11/generated/Examples/aqlUuid.generated @@ -4,7 +4,7 @@ FOR i IN 1..3 @R [ - "b2ed5fa2-7e24-426f-b58d-9edbfe9e0a5f", - "2cd2b648-42c2-46f4-8567-32e4fcc78a40", - "66f6d4cf-e0e9-4f62-a57c-e6a51b25b307" + "6a8a5d0c-1614-4ae3-9781-5c215e88d8f5", + "b3aae1d9-12ab-4957-9fba-302bd4eb1f96", + "c228e530-f4d4-4277-b6d2-82c674937481" ] \ No newline at end of file diff --git a/3.11/generated/Examples/col_dropIndex.generated b/3.11/generated/Examples/col_dropIndex.generated index 99ce945465..6010afecbe 100644 --- a/3.11/generated/Examples/col_dropIndex.generated +++ b/3.11/generated/Examples/col_dropIndex.generated @@ -7,9 +7,9 @@ arangosh> db.example.ensureIndex({ type: "a", "b" ], - "id" : "example/72850", + "id" : "example/71440", "isNewlyCreated" : true, - "name" : "idx_1745944422105743361", + "name" : "idx_1747208971518738432", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -38,8 +38,8 @@ arangosh> indexInfo; "a", "b" ], - "id" : "example/72850", - "name" : "idx_1745944422105743361", + "id" : "example/71440", + "name" : "idx_1747208971518738432", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", diff --git a/3.11/generated/Examples/collectionDatabaseCollectionName.generated b/3.11/generated/Examples/collectionDatabaseCollectionName.generated index a592b4398a..2c7b44cbf2 100644 --- a/3.11/generated/Examples/collectionDatabaseCollectionName.generated +++ b/3.11/generated/Examples/collectionDatabaseCollectionName.generated @@ -1,2 +1,2 @@ arangosh> db.example; -[ArangoCollection 72868, "example" (type document, status loaded)] +[ArangoCollection 71458, "example" (type document, status loaded)] diff --git a/3.11/generated/Examples/collectionDatabaseCreateKey.generated b/3.11/generated/Examples/collectionDatabaseCreateKey.generated index 3de34f4810..ae06539fea 100644 --- a/3.11/generated/Examples/collectionDatabaseCreateKey.generated +++ b/3.11/generated/Examples/collectionDatabaseCreateKey.generated @@ -1,21 +1,21 @@ arangosh> db._create("users", ........> { keyOptions: { type: "autoincrement", offset: 10, increment: 5 } }); -[ArangoCollection 72875, "users" (type document, status loaded)] +[ArangoCollection 71465, "users" (type document, status loaded)] arangosh> db.users.save({ name: "user 1" }); { "_id" : "users/10", "_key" : "10", - "_rev" : "_e4zxMTe--_" + "_rev" : "_e9TSzvW---" } arangosh> db.users.save({ name: "user 2" }); { "_id" : "users/15", "_key" : "15", - "_rev" : "_e4zxMTi---" + "_rev" : "_e9TSzva---" } arangosh> db.users.save({ name: "user 3" }); { "_id" : "users/20", "_key" : "20", - "_rev" : "_e4zxMTi--_" + "_rev" : "_e9TSzve---" } diff --git a/3.11/generated/Examples/collectionDatabaseCreateProperties.generated b/3.11/generated/Examples/collectionDatabaseCreateProperties.generated index 4f965b68c1..ed3b5b8da5 100644 --- a/3.11/generated/Examples/collectionDatabaseCreateProperties.generated +++ b/3.11/generated/Examples/collectionDatabaseCreateProperties.generated @@ -1,8 +1,8 @@ arangosh> c = db._create("users", { waitForSync: true }); -[ArangoCollection 72885, "users" (type document, status loaded)] +[ArangoCollection 71475, "users" (type document, status loaded)] arangosh> c.properties(); { - "globallyUniqueId" : "hEF6AA70B1DE7/72885", + "globallyUniqueId" : "h3E4B04F558E8/71475", "isSystem" : false, "waitForSync" : true, "keyOptions" : { diff --git a/3.11/generated/Examples/collectionDatabaseCreateSpecialKey.generated b/3.11/generated/Examples/collectionDatabaseCreateSpecialKey.generated index 88b8a08594..4c74c6f4c9 100644 --- a/3.11/generated/Examples/collectionDatabaseCreateSpecialKey.generated +++ b/3.11/generated/Examples/collectionDatabaseCreateSpecialKey.generated @@ -1,16 +1,16 @@ arangosh> db._create("users", { keyOptions: { allowUserKeys: false } }); -[ArangoCollection 72893, "users" (type document, status loaded)] +[ArangoCollection 71483, "users" (type document, status loaded)] arangosh> db.users.save({ name: "user 1" }); { - "_id" : "users/72898", - "_key" : "72898", - "_rev" : "_e4zxMTu--_" + "_id" : "users/71488", + "_key" : "71488", + "_rev" : "_e9TSzwa---" } arangosh> db.users.save({ name: "user 2", _key: "myuser" }); [ArangoError 1222: unexpected document key] arangosh> db.users.save({ name: "user 3" }); { - "_id" : "users/72901", - "_key" : "72901", - "_rev" : "_e4zxMTu--A" + "_id" : "users/71491", + "_key" : "71491", + "_rev" : "_e9TSzwi---" } diff --git a/3.11/generated/Examples/collectionDatabaseCreateSuccess.generated b/3.11/generated/Examples/collectionDatabaseCreateSuccess.generated index ba67d08356..33386994d5 100644 --- a/3.11/generated/Examples/collectionDatabaseCreateSuccess.generated +++ b/3.11/generated/Examples/collectionDatabaseCreateSuccess.generated @@ -1,8 +1,8 @@ arangosh> c = db._create("users"); -[ArangoCollection 72905, "users" (type document, status loaded)] +[ArangoCollection 71495, "users" (type document, status loaded)] arangosh> c.properties(); { - "globallyUniqueId" : "hEF6AA70B1DE7/72905", + "globallyUniqueId" : "h3E4B04F558E8/71495", "isSystem" : false, "waitForSync" : false, "keyOptions" : { diff --git a/3.11/generated/Examples/collectionDatabaseDropByObject.generated b/3.11/generated/Examples/collectionDatabaseDropByObject.generated index 46ed5d03b3..239df104f8 100644 --- a/3.11/generated/Examples/collectionDatabaseDropByObject.generated +++ b/3.11/generated/Examples/collectionDatabaseDropByObject.generated @@ -1,5 +1,5 @@ arangosh> col = db.example; -[ArangoCollection 72913, "example" (type document, status loaded)] +[ArangoCollection 71503, "example" (type document, status loaded)] arangosh> db._drop(col); arangosh> col; -[ArangoCollection 72913, "example" (type document, status loaded)] +[ArangoCollection 71503, "example" (type document, status loaded)] diff --git a/3.11/generated/Examples/collectionDatabaseDropName.generated b/3.11/generated/Examples/collectionDatabaseDropName.generated index 964168fafc..8819d823fb 100644 --- a/3.11/generated/Examples/collectionDatabaseDropName.generated +++ b/3.11/generated/Examples/collectionDatabaseDropName.generated @@ -1,5 +1,5 @@ arangosh> col = db.example; -[ArangoCollection 72920, "example" (type document, status loaded)] +[ArangoCollection 71510, "example" (type document, status loaded)] arangosh> db._drop("example"); arangosh> col; -[ArangoCollection 72920, "example" (type document, status deleted)] +[ArangoCollection 71510, "example" (type document, status deleted)] diff --git a/3.11/generated/Examples/collectionDatabaseDropSystem.generated b/3.11/generated/Examples/collectionDatabaseDropSystem.generated index 1243385ca7..3ed9288674 100644 --- a/3.11/generated/Examples/collectionDatabaseDropSystem.generated +++ b/3.11/generated/Examples/collectionDatabaseDropSystem.generated @@ -1,5 +1,5 @@ arangosh> col = db._example; -[ArangoCollection 72927, "_example" (type document, status loaded)] +[ArangoCollection 71517, "_example" (type document, status loaded)] arangosh> db._drop("_example", { isSystem: true }); arangosh> col; -[ArangoCollection 72927, "_example" (type document, status deleted)] +[ArangoCollection 71517, "_example" (type document, status deleted)] diff --git a/3.11/generated/Examples/collectionDatabaseTruncateByObject.generated b/3.11/generated/Examples/collectionDatabaseTruncateByObject.generated index 7d6d577e8b..b9093b0326 100644 --- a/3.11/generated/Examples/collectionDatabaseTruncateByObject.generated +++ b/3.11/generated/Examples/collectionDatabaseTruncateByObject.generated @@ -1,10 +1,10 @@ arangosh> col = db.example; -[ArangoCollection 72935, "example" (type document, status loaded)] +[ArangoCollection 71525, "example" (type document, status loaded)] arangosh> col.save({ "Hello" : "World" }); { - "_id" : "example/72940", - "_key" : "72940", - "_rev" : "_e4zxMUW--_" + "_id" : "example/71530", + "_key" : "71530", + "_rev" : "_e9TSzyu---" } arangosh> col.count(); 1 diff --git a/3.11/generated/Examples/collectionDatabaseTruncateName.generated b/3.11/generated/Examples/collectionDatabaseTruncateName.generated index c467848e00..9d590b01b7 100644 --- a/3.11/generated/Examples/collectionDatabaseTruncateName.generated +++ b/3.11/generated/Examples/collectionDatabaseTruncateName.generated @@ -1,10 +1,10 @@ arangosh> col = db.example; -[ArangoCollection 72947, "example" (type document, status loaded)] +[ArangoCollection 71537, "example" (type document, status loaded)] arangosh> col.save({ "Hello" : "World" }); { - "_id" : "example/72952", - "_key" : "72952", - "_rev" : "_e4zxMVe--_" + "_id" : "example/71542", + "_key" : "71542", + "_rev" : "_e9TSz1S---" } arangosh> col.count(); 1 diff --git a/3.11/generated/Examples/collectionDrop.generated b/3.11/generated/Examples/collectionDrop.generated index 358d833c8e..673d0368fc 100644 --- a/3.11/generated/Examples/collectionDrop.generated +++ b/3.11/generated/Examples/collectionDrop.generated @@ -1,5 +1,5 @@ arangosh> col = db.example; -[ArangoCollection 72959, "example" (type document, status loaded)] +[ArangoCollection 71549, "example" (type document, status loaded)] arangosh> col.drop(); arangosh> col; -[ArangoCollection 72959, "example" (type document, status deleted)] +[ArangoCollection 71549, "example" (type document, status deleted)] diff --git a/3.11/generated/Examples/collectionDropSystem.generated b/3.11/generated/Examples/collectionDropSystem.generated index 15e512bc59..b97f42ce4f 100644 --- a/3.11/generated/Examples/collectionDropSystem.generated +++ b/3.11/generated/Examples/collectionDropSystem.generated @@ -1,5 +1,5 @@ arangosh> col = db._example; -[ArangoCollection 72966, "_example" (type document, status loaded)] +[ArangoCollection 71556, "_example" (type document, status loaded)] arangosh> col.drop({ isSystem: true }); arangosh> col; -[ArangoCollection 72966, "_example" (type document, status deleted)] +[ArangoCollection 71556, "_example" (type document, status deleted)] diff --git a/3.11/generated/Examples/collectionEnsureIndex.generated b/3.11/generated/Examples/collectionEnsureIndex.generated index f49012a963..094bd50126 100644 --- a/3.11/generated/Examples/collectionEnsureIndex.generated +++ b/3.11/generated/Examples/collectionEnsureIndex.generated @@ -6,9 +6,9 @@ arangosh> db.test.ensureIndex({ type: "fields" : [ "a" ], - "id" : "test/72977", + "id" : "test/71567", "isNewlyCreated" : true, - "name" : "idx_1745944422162366465", + "name" : "idx_1747208971688607744", "selectivityEstimate" : 1, "sparse" : true, "type" : "persistent", @@ -24,9 +24,9 @@ arangosh> db.test.ensureIndex({ type: "a", "b" ], - "id" : "test/72981", + "id" : "test/71571", "isNewlyCreated" : true, - "name" : "idx_1745944422164463616", + "name" : "idx_1747208971690704896", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", diff --git a/3.11/generated/Examples/collectionFigures.generated b/3.11/generated/Examples/collectionFigures.generated index 94d152fc06..d6fb965a7d 100644 --- a/3.11/generated/Examples/collectionFigures.generated +++ b/3.11/generated/Examples/collectionFigures.generated @@ -2,9 +2,9 @@ arangosh> db.demo.figures() { "indexes" : { "count" : 1, - "size" : 2076 + "size" : 2197 }, - "documentsSize" : 14001, + "documentsSize" : 293, "cacheInUse" : false, "cacheSize" : 0, "cacheUsage" : 0 diff --git a/3.11/generated/Examples/collectionFiguresDetails.generated b/3.11/generated/Examples/collectionFiguresDetails.generated index e0d01c9dbd..04ce87b6fa 100644 --- a/3.11/generated/Examples/collectionFiguresDetails.generated +++ b/3.11/generated/Examples/collectionFiguresDetails.generated @@ -2,9 +2,9 @@ arangosh> db.demo.figures(true) { "indexes" : { "count" : 1, - "size" : 2076 + "size" : 2197 }, - "documentsSize" : 14001, + "documentsSize" : 8976, "cacheInUse" : false, "cacheSize" : 0, "cacheUsage" : 0, diff --git a/3.11/generated/Examples/collectionFirstExample.generated b/3.11/generated/Examples/collectionFirstExample.generated index e497b48562..1ac9ff05bb 100644 --- a/3.11/generated/Examples/collectionFirstExample.generated +++ b/3.11/generated/Examples/collectionFirstExample.generated @@ -1,7 +1,7 @@ arangosh> db.users.firstExample("name", "Angela"); { - "_key" : "73000", - "_id" : "users/73000", - "_rev" : "_e4zxMXW--_", + "_key" : "71590", + "_id" : "users/71590", + "_rev" : "_e9TSz6G---", "name" : "Angela" } diff --git a/3.11/generated/Examples/collectionGetIndexes.generated b/3.11/generated/Examples/collectionGetIndexes.generated index 67cbf40558..d12af6b848 100644 --- a/3.11/generated/Examples/collectionGetIndexes.generated +++ b/3.11/generated/Examples/collectionGetIndexes.generated @@ -8,9 +8,9 @@ arangosh> db.test.ensureIndex({ type: "attribute", "secondAttribute.subAttribute" ], - "id" : "test/73019", + "id" : "test/71609", "isNewlyCreated" : true, - "name" : "idx_1745944422181240832", + "name" : "idx_1747208971742085120", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -37,8 +37,8 @@ arangosh> db.test.getIndexes(); "fields" : [ "attribute" ], - "id" : "test/73011", - "name" : "idx_1745944422180192256", + "id" : "test/71601", + "name" : "idx_1747208971737890816", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -51,8 +51,8 @@ arangosh> db.test.getIndexes(); "fields" : [ "uniqueAttribute" ], - "id" : "test/73015", - "name" : "idx_1745944422180192257", + "id" : "test/71605", + "name" : "idx_1747208971739987968", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -66,8 +66,8 @@ arangosh> db.test.getIndexes(); "attribute", "secondAttribute.subAttribute" ], - "id" : "test/73019", - "name" : "idx_1745944422181240832", + "id" : "test/71609", + "name" : "idx_1747208971742085120", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", diff --git a/3.11/generated/Examples/collectionGetIndexesStats.generated b/3.11/generated/Examples/collectionGetIndexesStats.generated index 6731473c67..3367e01a82 100644 --- a/3.11/generated/Examples/collectionGetIndexesStats.generated +++ b/3.11/generated/Examples/collectionGetIndexesStats.generated @@ -5,7 +5,7 @@ arangosh> db.coll.indexes(true, "_key" ], "figures" : { - "memory" : 136, + "memory" : 68, "cacheInUse" : false, "cacheSize" : 0, "cacheUsage" : 0 @@ -46,7 +46,7 @@ arangosh> db.coll.indexes(true, "numFiles" : 6, "indexSize" : 727 }, - "id" : "coll/73035", + "id" : "coll/71625", "includeAllFields" : false, "name" : "inv-idx", "primarySort" : { @@ -77,11 +77,11 @@ arangosh> db.coll.indexes(true, "numFiles" : 6, "indexSize" : 1239 }, - "id" : "coll/73039", + "id" : "coll/71629", "includeAllFields" : true, "storeValues" : "none", "trackListPositions" : false, "type" : "arangosearch", - "view" : "hEF6AA70B1DE7/73037" + "view" : "h3E4B04F558E8/71627" } ] diff --git a/3.11/generated/Examples/collectionIterate.generated b/3.11/generated/Examples/collectionIterate.generated new file mode 100644 index 0000000000..a4977fbeb3 --- /dev/null +++ b/3.11/generated/Examples/collectionIterate.generated @@ -0,0 +1,22 @@ +arangosh> var arr = []; +arangosh> for (var i = 0; i < 10; i++) { +........> arr.push({ i }); +........> } +arangosh> var meta = db.example.save(arr); +arangosh> var data = []; +arangosh> db.example.iterate( (doc, idx) => data.push({ idx, i: doc.i }), { probability: 0.25, limit: 5 }); +arangosh> data; +[ + { + "idx" : 0, + "i" : 1 + }, + { + "idx" : 1, + "i" : 4 + }, + { + "idx" : 2, + "i" : 8 + } +] diff --git a/3.11/generated/Examples/collectionLoad.generated b/3.11/generated/Examples/collectionLoad.generated index ea3884e955..398786679c 100644 --- a/3.11/generated/Examples/collectionLoad.generated +++ b/3.11/generated/Examples/collectionLoad.generated @@ -1,5 +1,5 @@ arangosh> col = db.example; -[ArangoCollection 73052, "example" (type document, status loaded)] +[ArangoCollection 71662, "example" (type document, status loaded)] arangosh> col.load(); arangosh> col; -[ArangoCollection 73052, "example" (type document, status loaded)] +[ArangoCollection 71662, "example" (type document, status loaded)] diff --git a/3.11/generated/Examples/collectionLookupByKeys.generated b/3.11/generated/Examples/collectionLookupByKeys.generated index 2dc9452887..02dc6e4023 100644 --- a/3.11/generated/Examples/collectionLookupByKeys.generated +++ b/3.11/generated/Examples/collectionLookupByKeys.generated @@ -10,61 +10,61 @@ arangosh> db.example.documents(keys); { "_key" : "test0", "_id" : "example/test0", - "_rev" : "_e4zxMa6---", + "_rev" : "_e9TS0G2---", "value" : 0 }, { "_key" : "test1", "_id" : "example/test1", - "_rev" : "_e4zxMa6--_", + "_rev" : "_e9TS0G6---", "value" : 1 }, { "_key" : "test2", "_id" : "example/test2", - "_rev" : "_e4zxMa6--A", + "_rev" : "_e9TS0H----", "value" : 2 }, { "_key" : "test3", "_id" : "example/test3", - "_rev" : "_e4zxMa6--B", + "_rev" : "_e9TS0HC---", "value" : 3 }, { "_key" : "test4", "_id" : "example/test4", - "_rev" : "_e4zxMa6--C", + "_rev" : "_e9TS0HG---", "value" : 4 }, { "_key" : "test5", "_id" : "example/test5", - "_rev" : "_e4zxMa6--D", + "_rev" : "_e9TS0HG--_", "value" : 5 }, { "_key" : "test6", "_id" : "example/test6", - "_rev" : "_e4zxMa6--E", + "_rev" : "_e9TS0HK---", "value" : 6 }, { "_key" : "test7", "_id" : "example/test7", - "_rev" : "_e4zxMa6--F", + "_rev" : "_e9TS0HO---", "value" : 7 }, { "_key" : "test8", "_id" : "example/test8", - "_rev" : "_e4zxMb----", + "_rev" : "_e9TS0HS---", "value" : 8 }, { "_key" : "test9", "_id" : "example/test9", - "_rev" : "_e4zxMb---_", + "_rev" : "_e9TS0HS--_", "value" : 9 } ] diff --git a/3.11/generated/Examples/collectionProperties.generated b/3.11/generated/Examples/collectionProperties.generated index e3907a2f02..64ae33eca9 100644 --- a/3.11/generated/Examples/collectionProperties.generated +++ b/3.11/generated/Examples/collectionProperties.generated @@ -1,6 +1,6 @@ arangosh> db.example.properties(); { - "globallyUniqueId" : "hEF6AA70B1DE7/73079", + "globallyUniqueId" : "h3E4B04F558E8/71689", "isSystem" : false, "waitForSync" : false, "keyOptions" : { diff --git a/3.11/generated/Examples/collectionProperty.generated b/3.11/generated/Examples/collectionProperty.generated index 6dc491113d..e25a12441d 100644 --- a/3.11/generated/Examples/collectionProperty.generated +++ b/3.11/generated/Examples/collectionProperty.generated @@ -1,6 +1,6 @@ arangosh> db.example.properties({ waitForSync : true }); { - "globallyUniqueId" : "hEF6AA70B1DE7/73087", + "globallyUniqueId" : "h3E4B04F558E8/71697", "isSystem" : false, "waitForSync" : true, "keyOptions" : { diff --git a/3.11/generated/Examples/collectionRename.generated b/3.11/generated/Examples/collectionRename.generated index 542a96c886..4cbd22a65f 100644 --- a/3.11/generated/Examples/collectionRename.generated +++ b/3.11/generated/Examples/collectionRename.generated @@ -1,5 +1,5 @@ arangosh> c = db.example; -[ArangoCollection 73115, "example" (type document, status loaded)] +[ArangoCollection 71725, "example" (type document, status loaded)] arangosh> c.rename("better-example"); arangosh> c; -[ArangoCollection 73115, "better-example" (type document, status loaded)] +[ArangoCollection 71725, "better-example" (type document, status loaded)] diff --git a/3.11/generated/Examples/collectionTruncate.generated b/3.11/generated/Examples/collectionTruncate.generated index ddd2fbf92c..a56067d4ca 100644 --- a/3.11/generated/Examples/collectionTruncate.generated +++ b/3.11/generated/Examples/collectionTruncate.generated @@ -1,10 +1,10 @@ arangosh> col = db.example; -[ArangoCollection 73124, "example" (type document, status loaded)] +[ArangoCollection 71734, "example" (type document, status loaded)] arangosh> col.save({ "Hello" : "World" }); { - "_id" : "example/73129", - "_key" : "73129", - "_rev" : "_e4zxMbi--_" + "_id" : "example/71739", + "_key" : "71739", + "_rev" : "_e9TS0KO---" } arangosh> col.count(); 1 diff --git a/3.11/generated/Examples/collectionsDatabaseName.generated b/3.11/generated/Examples/collectionsDatabaseName.generated index aa02c41ab2..4b3e677763 100644 --- a/3.11/generated/Examples/collectionsDatabaseName.generated +++ b/3.11/generated/Examples/collectionsDatabaseName.generated @@ -14,5 +14,5 @@ arangosh> db._collections(); [ArangoCollection 4, "_users" (type document, status loaded)], [ArangoCollection 97, "animals" (type document, status loaded)], [ArangoCollection 91, "demo" (type document, status loaded)], - [ArangoCollection 73136, "example" (type document, status loaded)] + [ArangoCollection 71746, "example" (type document, status loaded)] ] diff --git a/3.11/generated/Examples/computedValuesCombine.generated b/3.11/generated/Examples/computedValuesCombine.generated index c48a31177d..212a952100 100644 --- a/3.11/generated/Examples/computedValuesCombine.generated +++ b/3.11/generated/Examples/computedValuesCombine.generated @@ -12,9 +12,9 @@ arangosh> var idx = db.users.ensureIndex({ arangosh> db._query(`FOR u IN users FILTER "avocados" IN u.searchTags RETURN u`).toArray(); [ { - "_key" : "73156", - "_id" : "users/73156", - "_rev" : "_e4zxMd----", + "_key" : "71766", + "_id" : "users/71766", + "_rev" : "_e9TS0Na---", "name" : "Paula Plant", "is" : [ { diff --git a/3.11/generated/Examples/computedValuesCreatedAt.generated b/3.11/generated/Examples/computedValuesCreatedAt.generated index 11183755ca..a4e40e3eb9 100644 --- a/3.11/generated/Examples/computedValuesCreatedAt.generated +++ b/3.11/generated/Examples/computedValuesCreatedAt.generated @@ -12,10 +12,10 @@ arangosh> var doc = db.users.save({ "_key" : "73183", - "_id" : "users/73183", - "_rev" : "_e4zxMdW---", + "_key" : "71793", + "_id" : "users/71793", + "_rev" : "_e9TS0OO---", "name" : "Paula Plant", - "createdAt" : 1665062353398 + "createdAt" : 1666268322052 } ] diff --git a/3.11/generated/Examples/computedValuesKeepNull.generated b/3.11/generated/Examples/computedValuesKeepNull.generated index a1e867d813..372f7f09e9 100644 --- a/3.11/generated/Examples/computedValuesKeepNull.generated +++ b/3.11/generated/Examples/computedValuesKeepNull.generated @@ -16,23 +16,23 @@ arangosh> var docs = db.users.save([ arangosh> db.users.toArray(); [ { - "_key" : "73207", - "_id" : "users/73207", - "_rev" : "_e4zxMde--_", + "_key" : "71817", + "_id" : "users/71817", + "_rev" : "_e9TS0Oy---", "firstName" : "Paula", "lastName" : "Plant", "fullName" : "Paula Plant" }, { - "_key" : "73208", - "_id" : "users/73208", - "_rev" : "_e4zxMde--A", + "_key" : "71818", + "_id" : "users/71818", + "_rev" : "_e9TS0Oy--_", "firstName" : "James" }, { - "_key" : "73209", - "_id" : "users/73209", - "_rev" : "_e4zxMde--B", + "_key" : "71819", + "_id" : "users/71819", + "_rev" : "_e9TS0Oy--A", "lastName" : "Barrett", "fullName" : "Andy J. Barrett" } diff --git a/3.11/generated/Examples/computedValuesModifiedAt.generated b/3.11/generated/Examples/computedValuesModifiedAt.generated index d865bcfa86..e63f4de65a 100644 --- a/3.11/generated/Examples/computedValuesModifiedAt.generated +++ b/3.11/generated/Examples/computedValuesModifiedAt.generated @@ -13,20 +13,20 @@ arangosh> doc = db.users.update("123""_id" : "users/123", "_key" : "123", - "_rev" : "_e4zxMdq--A", - "_oldRev" : "_e4zxMdq--_" + "_rev" : "_e9TS0Pm---", + "_oldRev" : "_e9TS0Pi---" } arangosh> db.users.toArray(); [ { "_key" : "123", "_id" : "users/123", - "_rev" : "_e4zxMdq--A", + "_rev" : "_e9TS0Pm---", "name" : "Paula Plant", "email" : "gardener@arangodb.com", "modifiedAt" : { - "date" : "2022-10-06", - "time" : "13:19:13.403Z" + "date" : "2022-10-20", + "time" : "12:18:42.074Z" } } ] @@ -34,15 +34,15 @@ arangosh> doc = db.users.update("123""_id" : "users/123", "_key" : "123", - "_rev" : "_e4zxMdu---", - "_oldRev" : "_e4zxMdq--A" + "_rev" : "_e9TS0Pu---", + "_oldRev" : "_e9TS0Pm---" } arangosh> db.users.toArray(); [ { "_key" : "123", "_id" : "users/123", - "_rev" : "_e4zxMdu---", + "_rev" : "_e9TS0Pu---", "name" : "Paula Plant", "email" : "greenhouse@arangodb.com", "modifiedAt" : { diff --git a/3.11/generated/Examples/computedValuesSubattribute.generated b/3.11/generated/Examples/computedValuesSubattribute.generated index ecf471464c..858138699e 100644 --- a/3.11/generated/Examples/computedValuesSubattribute.generated +++ b/3.11/generated/Examples/computedValuesSubattribute.generated @@ -14,17 +14,17 @@ arangosh> var docs = db.users.save([ arangosh> db.users.toArray(); [ { - "_key" : "73261", - "_id" : "users/73261", - "_rev" : "_e4zxMd2--_", + "_key" : "71871", + "_id" : "users/71871", + "_rev" : "_e9TS0Qa---", "name" : { "first" : "James" } }, { - "_key" : "73262", - "_id" : "users/73262", - "_rev" : "_e4zxMd2--A", + "_key" : "71872", + "_id" : "users/71872", + "_rev" : "_e9TS0Qe---", "name" : { "first" : "Paula", "last" : "Plant", diff --git a/3.11/generated/Examples/cursorHasNext.generated b/3.11/generated/Examples/cursorHasNext.generated index 9ef70c6f07..47e65a1484 100644 --- a/3.11/generated/Examples/cursorHasNext.generated +++ b/3.11/generated/Examples/cursorHasNext.generated @@ -1,32 +1,32 @@ arangosh> var a = db._query("FOR x IN five RETURN x"); arangosh> while (a.hasNext()) print(a.next()); { - "_key" : "73278", - "_id" : "five/73278", - "_rev" : "_e4zxMe---_", + "_key" : "71888", + "_id" : "five/71888", + "_rev" : "_e9TS0RG---", "name" : "one" } { - "_key" : "73280", - "_id" : "five/73280", - "_rev" : "_e4zxMeC---", + "_key" : "71890", + "_id" : "five/71890", + "_rev" : "_e9TS0RK---", "name" : "two" } { - "_key" : "73282", - "_id" : "five/73282", - "_rev" : "_e4zxMeC--_", + "_key" : "71892", + "_id" : "five/71892", + "_rev" : "_e9TS0RO---", "name" : "three" } { - "_key" : "73284", - "_id" : "five/73284", - "_rev" : "_e4zxMeC--A", + "_key" : "71894", + "_id" : "five/71894", + "_rev" : "_e9TS0RS---", "name" : "four" } { - "_key" : "73286", - "_id" : "five/73286", - "_rev" : "_e4zxMeC--B", + "_key" : "71896", + "_id" : "five/71896", + "_rev" : "_e9TS0RW---", "name" : "five" } diff --git a/3.11/generated/Examples/cursorNext.generated b/3.11/generated/Examples/cursorNext.generated index 3388b50d07..66d03f04b4 100644 --- a/3.11/generated/Examples/cursorNext.generated +++ b/3.11/generated/Examples/cursorNext.generated @@ -1,7 +1,7 @@ arangosh> db._query("FOR x IN five RETURN x").next(); { - "_key" : "73297", - "_id" : "five/73297", - "_rev" : "_e4zxMeK--_", + "_key" : "71907", + "_id" : "five/71907", + "_rev" : "_e9TS0S----", "name" : "one" } diff --git a/3.11/generated/Examples/documentDocumentRemoveConflict.generated b/3.11/generated/Examples/documentDocumentRemoveConflict.generated index b10aa9f937..073bb958b4 100644 --- a/3.11/generated/Examples/documentDocumentRemoveConflict.generated +++ b/3.11/generated/Examples/documentDocumentRemoveConflict.generated @@ -1,23 +1,23 @@ arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/73389", - "_key" : "73389", - "_rev" : "_e4zxMfS--_" + "_id" : "example/71999", + "_key" : "71999", + "_rev" : "_e9TS0XG---" } arangosh> a2 = db.example.replace(a1, { a : 2 }); { - "_id" : "example/73389", - "_key" : "73389", - "_rev" : "_e4zxMfS--A", - "_oldRev" : "_e4zxMfS--_" + "_id" : "example/71999", + "_key" : "71999", + "_rev" : "_e9TS0XO---", + "_oldRev" : "_e9TS0XG---" } arangosh> db.example.remove(a1); [ArangoError 1200: conflict, _rev values do not match] arangosh> db.example.remove(a1, true); { - "_id" : "example/73389", - "_key" : "73389", - "_rev" : "_e4zxMfS--A" + "_id" : "example/71999", + "_key" : "71999", + "_rev" : "_e9TS0XO---" } arangosh> db.example.document(a1); [ArangoError 1202: document not found] diff --git a/3.11/generated/Examples/documentDocumentRemoveSimple.generated b/3.11/generated/Examples/documentDocumentRemoveSimple.generated index 3089f63be9..65b9ef470b 100644 --- a/3.11/generated/Examples/documentDocumentRemoveSimple.generated +++ b/3.11/generated/Examples/documentDocumentRemoveSimple.generated @@ -1,21 +1,21 @@ arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/73403", - "_key" : "73403", - "_rev" : "_e4zxMfa--_" + "_id" : "example/72013", + "_key" : "72013", + "_rev" : "_e9TS0X2---" } arangosh> db.example.document(a1); { - "_key" : "73403", - "_id" : "example/73403", - "_rev" : "_e4zxMfa--_", + "_key" : "72013", + "_id" : "example/72013", + "_rev" : "_e9TS0X2---", "a" : 1 } arangosh> db.example.remove(a1); { - "_id" : "example/73403", - "_key" : "73403", - "_rev" : "_e4zxMfa--_" + "_id" : "example/72013", + "_key" : "72013", + "_rev" : "_e9TS0X2---" } arangosh> db.example.document(a1); [ArangoError 1202: document not found] diff --git a/3.11/generated/Examples/documentDocumentUpdate.generated b/3.11/generated/Examples/documentDocumentUpdate.generated index 3a7251cf10..43615f8c56 100644 --- a/3.11/generated/Examples/documentDocumentUpdate.generated +++ b/3.11/generated/Examples/documentDocumentUpdate.generated @@ -1,15 +1,15 @@ arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/73415", - "_key" : "73415", - "_rev" : "_e4zxMfi--_" + "_id" : "example/72025", + "_key" : "72025", + "_rev" : "_e9TS0Ya---" } arangosh> a2 = db._update(a1, { b : 2 }); { - "_id" : "example/73415", - "_key" : "73415", - "_rev" : "_e4zxMfi--A", - "_oldRev" : "_e4zxMfi--_" + "_id" : "example/72025", + "_key" : "72025", + "_rev" : "_e9TS0Ye---", + "_oldRev" : "_e9TS0Ya---" } arangosh> a3 = db._update(a1, { c : 3 }); [ArangoError 1200: conflict, _rev values do not match] diff --git a/3.11/generated/Examples/documentsCollectionInsertMulti.generated b/3.11/generated/Examples/documentsCollectionInsertMulti.generated index a280187e0b..fd29d5660b 100644 --- a/3.11/generated/Examples/documentsCollectionInsertMulti.generated +++ b/3.11/generated/Examples/documentsCollectionInsertMulti.generated @@ -1,26 +1,26 @@ arangosh> db.example.insert([{ Hello : "World" }, {Hello: "there"}]) [ { - "_id" : "example/73427", - "_key" : "73427", - "_rev" : "_e4zxMfq--_" + "_id" : "example/72037", + "_key" : "72037", + "_rev" : "_e9TS0Y6---" }, { - "_id" : "example/73428", - "_key" : "73428", - "_rev" : "_e4zxMfq--A" + "_id" : "example/72038", + "_key" : "72038", + "_rev" : "_e9TS0Y6--_" } ] arangosh> db.example.insert([{ Hello : "World" }, {}], {waitForSync: true}); [ { - "_id" : "example/73430", - "_key" : "73430", - "_rev" : "_e4zxMfq--B" + "_id" : "example/72040", + "_key" : "72040", + "_rev" : "_e9TS0Z----" }, { - "_id" : "example/73431", - "_key" : "73431", - "_rev" : "_e4zxMfq--C" + "_id" : "example/72041", + "_key" : "72041", + "_rev" : "_e9TS0Z---_" } ] diff --git a/3.11/generated/Examples/documentsCollectionInsertSingle.generated b/3.11/generated/Examples/documentsCollectionInsertSingle.generated index a3bd9c6ef0..fc44543af4 100644 --- a/3.11/generated/Examples/documentsCollectionInsertSingle.generated +++ b/3.11/generated/Examples/documentsCollectionInsertSingle.generated @@ -1,12 +1,12 @@ arangosh> db.example.insert({ Hello : "World" }); { - "_id" : "example/73440", - "_key" : "73440", - "_rev" : "_e4zxMg---_" + "_id" : "example/72050", + "_key" : "72050", + "_rev" : "_e9TS0Z2---" } arangosh> db.example.insert({ Hello : "World" }, {waitForSync: true}); { - "_id" : "example/73442", - "_key" : "73442", - "_rev" : "_e4zxMg---A" + "_id" : "example/72052", + "_key" : "72052", + "_rev" : "_e9TS0Z6---" } diff --git a/3.11/generated/Examples/documentsCollectionInsertSingleOverwrite.generated b/3.11/generated/Examples/documentsCollectionInsertSingleOverwrite.generated index fdcfb87a7d..ebcb9cc943 100644 --- a/3.11/generated/Examples/documentsCollectionInsertSingleOverwrite.generated +++ b/3.11/generated/Examples/documentsCollectionInsertSingleOverwrite.generated @@ -2,18 +2,18 @@ arangosh> db.example.insert({ _key : "_id" : "example/666", "_key" : "666", - "_rev" : "_e4zxMgO--_" + "_rev" : "_e9TS0ae---" } arangosh> db.example.insert({ _key : "666", Hello : "Universe" }, {overwrite: true, returnOld: true}); { "_id" : "example/666", "_key" : "666", - "_rev" : "_e4zxMgO--A", - "_oldRev" : "_e4zxMgO--_", + "_rev" : "_e9TS0ai---", + "_oldRev" : "_e9TS0ae---", "old" : { "_key" : "666", "_id" : "example/666", - "_rev" : "_e4zxMgO--_", + "_rev" : "_e9TS0ae---", "Hello" : "World" } } diff --git a/3.11/generated/Examples/documentsCollectionNameValidByKey.generated b/3.11/generated/Examples/documentsCollectionNameValidByKey.generated index 64a57ab70d..93c57826d7 100644 --- a/3.11/generated/Examples/documentsCollectionNameValidByKey.generated +++ b/3.11/generated/Examples/documentsCollectionNameValidByKey.generated @@ -2,5 +2,5 @@ arangosh> db.example.document("2873916""_key" : "2873916", "_id" : "example/2873916", - "_rev" : "_e4zxMge--_" + "_rev" : "_e9TS0bu---" } diff --git a/3.11/generated/Examples/documentsCollectionNameValidByObject.generated b/3.11/generated/Examples/documentsCollectionNameValidByObject.generated index 636a8a3657..19630188c5 100644 --- a/3.11/generated/Examples/documentsCollectionNameValidByObject.generated +++ b/3.11/generated/Examples/documentsCollectionNameValidByObject.generated @@ -2,5 +2,5 @@ arangosh> db.example.document({_id: "_key" : "2873916", "_id" : "example/2873916", - "_rev" : "_e4zxMgm---" + "_rev" : "_e9TS0cG---" } diff --git a/3.11/generated/Examples/documentsCollectionNameValidMulti.generated b/3.11/generated/Examples/documentsCollectionNameValidMulti.generated index 51074afba9..326d780697 100644 --- a/3.11/generated/Examples/documentsCollectionNameValidMulti.generated +++ b/3.11/generated/Examples/documentsCollectionNameValidMulti.generated @@ -3,11 +3,11 @@ arangosh> db.example.document(["2873916"< { "_key" : "2873916", "_id" : "example/2873916", - "_rev" : "_e4zxMgq--_" + "_rev" : "_e9TS0ce---" }, { "_key" : "2873917", "_id" : "example/2873917", - "_rev" : "_e4zxMgq--A" + "_rev" : "_e9TS0ci---" } ] diff --git a/3.11/generated/Examples/documentsCollectionNameValidPlain.generated b/3.11/generated/Examples/documentsCollectionNameValidPlain.generated index 3fc0896ec8..9f7c181d98 100644 --- a/3.11/generated/Examples/documentsCollectionNameValidPlain.generated +++ b/3.11/generated/Examples/documentsCollectionNameValidPlain.generated @@ -2,5 +2,5 @@ arangosh> db.example.document("example/2873916 { "_key" : "2873916", "_id" : "example/2873916", - "_rev" : "_e4zxMgy---" + "_rev" : "_e9TS0d----" } diff --git a/3.11/generated/Examples/documentsCollectionRemoveConflict.generated b/3.11/generated/Examples/documentsCollectionRemoveConflict.generated index d7b9839155..e16cd1a621 100644 --- a/3.11/generated/Examples/documentsCollectionRemoveConflict.generated +++ b/3.11/generated/Examples/documentsCollectionRemoveConflict.generated @@ -1,23 +1,23 @@ arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/73513", - "_key" : "73513", - "_rev" : "_e4zxMg2--_" + "_id" : "example/72123", + "_key" : "72123", + "_rev" : "_e9TS0dS---" } arangosh> a2 = db._replace(a1, { a : 2 }); { - "_id" : "example/73513", - "_key" : "73513", - "_rev" : "_e4zxMg2--A", - "_oldRev" : "_e4zxMg2--_" + "_id" : "example/72123", + "_key" : "72123", + "_rev" : "_e9TS0dW---", + "_oldRev" : "_e9TS0dS---" } arangosh> db._remove(a1); [ArangoError 1200: conflict, _rev values do not match] arangosh> db._remove(a1, {overwrite: true} ); { - "_id" : "example/73513", - "_key" : "73513", - "_rev" : "_e4zxMg2--A" + "_id" : "example/72123", + "_key" : "72123", + "_rev" : "_e9TS0dW---" } arangosh> db._document(a1); [ArangoError 1202: document not found] diff --git a/3.11/generated/Examples/documentsCollectionRemoveSignature.generated b/3.11/generated/Examples/documentsCollectionRemoveSignature.generated index 9e6d67daa6..6152bd2bd9 100644 --- a/3.11/generated/Examples/documentsCollectionRemoveSignature.generated +++ b/3.11/generated/Examples/documentsCollectionRemoveSignature.generated @@ -2,12 +2,12 @@ arangosh> db.example.insert({ _key: "_id" : "example/11265325374", "_key" : "11265325374", - "_rev" : "_e4zxMh---_" + "_rev" : "_e9TS0e----" } arangosh> db.example.remove("example/11265325374", ........> { overwrite: true, waitForSync: false}) { "_id" : "example/11265325374", "_key" : "11265325374", - "_rev" : "_e4zxMh---_" + "_rev" : "_e9TS0e----" } diff --git a/3.11/generated/Examples/documentsCollectionRemoveSuccess.generated b/3.11/generated/Examples/documentsCollectionRemoveSuccess.generated index b6d26d2f6b..77972d3552 100644 --- a/3.11/generated/Examples/documentsCollectionRemoveSuccess.generated +++ b/3.11/generated/Examples/documentsCollectionRemoveSuccess.generated @@ -1,14 +1,14 @@ arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/73536", - "_key" : "73536", - "_rev" : "_e4zxMhG--_" + "_id" : "example/72146", + "_key" : "72146", + "_rev" : "_e9TS0ea---" } arangosh> db._remove(a1); { - "_id" : "example/73536", - "_key" : "73536", - "_rev" : "_e4zxMhG--_" + "_id" : "example/72146", + "_key" : "72146", + "_rev" : "_e9TS0ea---" } arangosh> db._remove(a1); [ArangoError 1202: document not found] diff --git a/3.11/generated/Examples/documentsCollectionReplace1.generated b/3.11/generated/Examples/documentsCollectionReplace1.generated index a7b53336a6..5839621ffc 100644 --- a/3.11/generated/Examples/documentsCollectionReplace1.generated +++ b/3.11/generated/Examples/documentsCollectionReplace1.generated @@ -1,15 +1,15 @@ arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/73548", - "_key" : "73548", - "_rev" : "_e4zxMhO---" + "_id" : "example/72158", + "_key" : "72158", + "_rev" : "_e9TS0e6---" } arangosh> a2 = db.example.replace(a1, { a : 2 }); { - "_id" : "example/73548", - "_key" : "73548", - "_rev" : "_e4zxMhO--_", - "_oldRev" : "_e4zxMhO---" + "_id" : "example/72158", + "_key" : "72158", + "_rev" : "_e9TS0f----", + "_oldRev" : "_e9TS0e6---" } arangosh> a3 = db.example.replace(a1, { a : 3 }); [ArangoError 1200: conflict, _rev values do not match] diff --git a/3.11/generated/Examples/documentsCollectionReplaceHandle.generated b/3.11/generated/Examples/documentsCollectionReplaceHandle.generated index 78886d40ea..b65a60eab3 100644 --- a/3.11/generated/Examples/documentsCollectionReplaceHandle.generated +++ b/3.11/generated/Examples/documentsCollectionReplaceHandle.generated @@ -2,12 +2,12 @@ arangosh> a1 = db.example.insert({ a : "_id" : "example/3903045", "_key" : "3903045", - "_rev" : "_e4zxMhS--A" + "_rev" : "_e9TS0fa---" } arangosh> a2 = db.example.replace("example/3903044", { a : 2 }); { "_id" : "example/3903044", "_key" : "3903044", - "_rev" : "_e4zxMhW---", - "_oldRev" : "_e4zxMhS--_" + "_rev" : "_e9TS0fe---", + "_oldRev" : "_e9TS0fW---" } diff --git a/3.11/generated/Examples/documentsCollection_UpdateDocument.generated b/3.11/generated/Examples/documentsCollection_UpdateDocument.generated index a7c522e18e..ea955d74be 100644 --- a/3.11/generated/Examples/documentsCollection_UpdateDocument.generated +++ b/3.11/generated/Examples/documentsCollection_UpdateDocument.generated @@ -1,30 +1,30 @@ arangosh> a1 = db.example.insert({"a" : 1}); { - "_id" : "example/73571", - "_key" : "73571", - "_rev" : "_e4zxMha--_" + "_id" : "example/72181", + "_key" : "72181", + "_rev" : "_e9TS0fy---" } arangosh> a2 = db.example.update(a1, {"b" : 2, "c" : 3}); { - "_id" : "example/73571", - "_key" : "73571", - "_rev" : "_e4zxMha--A", - "_oldRev" : "_e4zxMha--_" + "_id" : "example/72181", + "_key" : "72181", + "_rev" : "_e9TS0f2---", + "_oldRev" : "_e9TS0fy---" } arangosh> a3 = db.example.update(a1, {"d" : 4}); [ArangoError 1200: conflict, _rev values do not match] arangosh> a4 = db.example.update(a2, {"e" : 5, "f" : 6 }); { - "_id" : "example/73571", - "_key" : "73571", - "_rev" : "_e4zxMhe---", - "_oldRev" : "_e4zxMha--A" + "_id" : "example/72181", + "_key" : "72181", + "_rev" : "_e9TS0g----", + "_oldRev" : "_e9TS0f2---" } arangosh> db.example.document(a4); { - "_key" : "73571", - "_id" : "example/73571", - "_rev" : "_e4zxMhe---", + "_key" : "72181", + "_id" : "example/72181", + "_rev" : "_e9TS0g----", "a" : 1, "b" : 2, "c" : 3, @@ -33,16 +33,16 @@ arangosh> db.example.document(a4); } arangosh> a5 = db.example.update(a4, {"a" : 1, c : 9, e : 42 }); { - "_id" : "example/73571", - "_key" : "73571", - "_rev" : "_e4zxMhe--_", - "_oldRev" : "_e4zxMhe---" + "_id" : "example/72181", + "_key" : "72181", + "_rev" : "_e9TS0gG---", + "_oldRev" : "_e9TS0g----" } arangosh> db.example.document(a5); { - "_key" : "73571", - "_id" : "example/73571", - "_rev" : "_e4zxMhe--_", + "_key" : "72181", + "_id" : "example/72181", + "_rev" : "_e9TS0gG---", "a" : 1, "b" : 2, "c" : 9, diff --git a/3.11/generated/Examples/documentsCollection_UpdateHandleArray.generated b/3.11/generated/Examples/documentsCollection_UpdateHandleArray.generated index 24127572ca..68b36624e0 100644 --- a/3.11/generated/Examples/documentsCollection_UpdateHandleArray.generated +++ b/3.11/generated/Examples/documentsCollection_UpdateHandleArray.generated @@ -3,26 +3,26 @@ arangosh> db.example.insert({"a" { "_id" : "example/20774804", "_key" : "20774804", - "_rev" : "_e4zxMhm--A" + "_rev" : "_e9TS0gu---" } arangosh> db.example.update("example/20774803", {"a" : { "four" : 4 }, ........> "b" : { "b1" : 1 }}); { "_id" : "example/20774803", "_key" : "20774803", - "_rev" : "_e4zxMhq---", - "_oldRev" : "_e4zxMhm--_" + "_rev" : "_e9TS0gy---", + "_oldRev" : "_e9TS0gq---" } arangosh> db.example.document("example/20774803"); { "_key" : "20774803", "_id" : "example/20774803", - "_rev" : "_e4zxMhq---", - "a" : { - "four" : 4 - }, + "_rev" : "_e9TS0gy---", "b" : { "b1" : 1 + }, + "a" : { + "four" : 4 } } arangosh> db.example.update("example/20774803", { "a" : { "one" : null }, @@ -31,14 +31,14 @@ arangosh> db.example.update("example/20774803& { "_id" : "example/20774803", "_key" : "20774803", - "_rev" : "_e4zxMhq--_", - "_oldRev" : "_e4zxMhq---" + "_rev" : "_e9TS0g2---", + "_oldRev" : "_e9TS0gy---" } arangosh> db.example.document("example/20774803"); { "_key" : "20774803", "_id" : "example/20774803", - "_rev" : "_e4zxMhq--_", + "_rev" : "_e9TS0g2---", "a" : { "four" : 4 } diff --git a/3.11/generated/Examples/documentsCollection_UpdateHandleKeepNull.generated b/3.11/generated/Examples/documentsCollection_UpdateHandleKeepNull.generated index af09f5aee3..53bc27f918 100644 --- a/3.11/generated/Examples/documentsCollection_UpdateHandleKeepNull.generated +++ b/3.11/generated/Examples/documentsCollection_UpdateHandleKeepNull.generated @@ -2,39 +2,39 @@ arangosh> db.example.insert({"a" : { "_id" : "example/19988372", "_key" : "19988372", - "_rev" : "_e4zxMhy--A" + "_rev" : "_e9TS0ha---" } arangosh> db.example.update("example/19988371", ........> { "b" : null, "c" : null, "d" : 3 }); { "_id" : "example/19988371", "_key" : "19988371", - "_rev" : "_e4zxMhy--B", - "_oldRev" : "_e4zxMhy--_" + "_rev" : "_e9TS0he---", + "_oldRev" : "_e9TS0hW---" } arangosh> db.example.document("example/19988371"); { "_key" : "19988371", "_id" : "example/19988371", - "_rev" : "_e4zxMhy--B", - "d" : 3, + "_rev" : "_e9TS0he---", "c" : null, + "d" : 3, "b" : null } arangosh> db.example.update("example/19988371", { "a" : null }, false, false); { "_id" : "example/19988371", "_key" : "19988371", - "_rev" : "_e4zxMhy--C", - "_oldRev" : "_e4zxMhy--B" + "_rev" : "_e9TS0hm---", + "_oldRev" : "_e9TS0he---" } arangosh> db.example.document("example/19988371"); { "_key" : "19988371", "_id" : "example/19988371", - "_rev" : "_e4zxMhy--C", - "d" : 3, + "_rev" : "_e9TS0hm---", "c" : null, + "d" : 3, "b" : null } arangosh> db.example.update("example/19988371", @@ -42,12 +42,12 @@ arangosh> db.example.update("example/19988371& { "_id" : "example/19988371", "_key" : "19988371", - "_rev" : "_e4zxMh2---", - "_oldRev" : "_e4zxMhy--C" + "_rev" : "_e9TS0hq---", + "_oldRev" : "_e9TS0hm---" } arangosh> db.example.document("example/19988371"); { "_key" : "19988371", "_id" : "example/19988371", - "_rev" : "_e4zxMh2---" + "_rev" : "_e9TS0hq---" } diff --git a/3.11/generated/Examples/documentsCollection_UpdateHandleSingle.generated b/3.11/generated/Examples/documentsCollection_UpdateHandleSingle.generated index 7e1d84e8b4..c934d4d1fd 100644 --- a/3.11/generated/Examples/documentsCollection_UpdateHandleSingle.generated +++ b/3.11/generated/Examples/documentsCollection_UpdateHandleSingle.generated @@ -2,12 +2,12 @@ arangosh> a1 = db.example.insert({"a""_id" : "example/18612116", "_key" : "18612116", - "_rev" : "_e4zxMi---_" + "_rev" : "_e9TS0ia---" } arangosh> a2 = db.example.update("example/18612115", { "x" : 1, "y" : 2 }); { "_id" : "example/18612115", "_key" : "18612115", - "_rev" : "_e4zxMi---A", - "_oldRev" : "_e4zxMi----" + "_rev" : "_e9TS0ie---", + "_oldRev" : "_e9TS0iS---" } diff --git a/3.11/generated/Examples/documentsDocumentName.generated b/3.11/generated/Examples/documentsDocumentName.generated index 0d92636cc0..2f92ef337c 100644 --- a/3.11/generated/Examples/documentsDocumentName.generated +++ b/3.11/generated/Examples/documentsDocumentName.generated @@ -2,5 +2,5 @@ arangosh> db._document("example/12345""_key" : "12345", "_id" : "example/12345", - "_rev" : "_e4zxMiG--_" + "_rev" : "_e9TS0i2---" } diff --git a/3.11/generated/Examples/documentsDocumentReplace.generated b/3.11/generated/Examples/documentsDocumentReplace.generated index d815583548..579a238525 100644 --- a/3.11/generated/Examples/documentsDocumentReplace.generated +++ b/3.11/generated/Examples/documentsDocumentReplace.generated @@ -1,15 +1,15 @@ arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/73637", - "_key" : "73637", - "_rev" : "_e4zxMiK--_" + "_id" : "example/72247", + "_key" : "72247", + "_rev" : "_e9TS0jS---" } arangosh> a2 = db._replace(a1, { a : 2 }); { - "_id" : "example/73637", - "_key" : "73637", - "_rev" : "_e4zxMiK--A", - "_oldRev" : "_e4zxMiK--_" + "_id" : "example/72247", + "_key" : "72247", + "_rev" : "_e9TS0jW---", + "_oldRev" : "_e9TS0jS---" } arangosh> a3 = db._replace(a1, { a : 3 }); [ArangoError 1200: conflict, _rev values do not match] diff --git a/3.11/generated/Examples/dropIndex.generated b/3.11/generated/Examples/dropIndex.generated index 7a43f03d23..71e8a6b9a0 100644 --- a/3.11/generated/Examples/dropIndex.generated +++ b/3.11/generated/Examples/dropIndex.generated @@ -7,9 +7,9 @@ arangosh> db.example.ensureIndex({ type: "a", "b" ], - "id" : "example/73649", + "id" : "example/72259", "isNewlyCreated" : true, - "name" : "idx_1745944422359498753", + "name" : "idx_1747208972428902400", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -38,8 +38,8 @@ arangosh> indexInfo; "a", "b" ], - "id" : "example/73649", - "name" : "idx_1745944422359498753", + "id" : "example/72259", + "name" : "idx_1747208972428902400", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", diff --git a/3.11/generated/Examples/ensureFulltextIndex.generated b/3.11/generated/Examples/ensureFulltextIndex.generated index 17664ed9ff..24f9a79943 100644 --- a/3.11/generated/Examples/ensureFulltextIndex.generated +++ b/3.11/generated/Examples/ensureFulltextIndex.generated @@ -3,10 +3,10 @@ arangosh> db.example.ensureIndex({ type: "fields" : [ "text" ], - "id" : "example/73664", + "id" : "example/72274", "isNewlyCreated" : true, "minLength" : 3, - "name" : "idx_1745944422362644481", + "name" : "idx_1747208972443582464", "sparse" : true, "type" : "fulltext", "unique" : false, @@ -14,79 +14,79 @@ arangosh> db.example.ensureIndex({ type: text : "the quick brown", b : { c : 1 } }); { - "_id" : "example/73668", - "_key" : "73668", - "_rev" : "_e4zxMie--A" + "_id" : "example/72278", + "_key" : "72278", + "_rev" : "_e9TS0k6---" } arangosh> db.example.save({ text : "quick brown fox", b : { c : 2 } }); { - "_id" : "example/73670", - "_key" : "73670", - "_rev" : "_e4zxMii---" + "_id" : "example/72280", + "_key" : "72280", + "_rev" : "_e9TS0l----" } arangosh> db.example.save({ text : "brown fox jums", b : { c : 3 } }); { - "_id" : "example/73672", - "_key" : "73672", - "_rev" : "_e4zxMii--_" + "_id" : "example/72282", + "_key" : "72282", + "_rev" : "_e9TS0lC---" } arangosh> db.example.save({ text : "fox jumps over", b : { c : 4 } }); { - "_id" : "example/73674", - "_key" : "73674", - "_rev" : "_e4zxMii--A" + "_id" : "example/72284", + "_key" : "72284", + "_rev" : "_e9TS0lG---" } arangosh> db.example.save({ text : "jumps over the", b : { c : 5 } }); { - "_id" : "example/73676", - "_key" : "73676", - "_rev" : "_e4zxMii--B" + "_id" : "example/72286", + "_key" : "72286", + "_rev" : "_e9TS0lK---" } arangosh> db.example.save({ text : "over the lazy", b : { c : 6 } }); { - "_id" : "example/73678", - "_key" : "73678", - "_rev" : "_e4zxMii--C" + "_id" : "example/72288", + "_key" : "72288", + "_rev" : "_e9TS0lO---" } arangosh> db.example.save({ text : "the lazy dog", b : { c : 7 } }); { - "_id" : "example/73680", - "_key" : "73680", - "_rev" : "_e4zxMii--D" + "_id" : "example/72290", + "_key" : "72290", + "_rev" : "_e9TS0lS---" } arangosh> db._query("FOR document IN FULLTEXT(example, 'text', 'the') RETURN document"); [ { - "_key" : "73668", - "_id" : "example/73668", - "_rev" : "_e4zxMie--A", + "_key" : "72278", + "_id" : "example/72278", + "_rev" : "_e9TS0k6---", "text" : "the quick brown", "b" : { "c" : 1 } }, { - "_key" : "73676", - "_id" : "example/73676", - "_rev" : "_e4zxMii--B", + "_key" : "72286", + "_id" : "example/72286", + "_rev" : "_e9TS0lK---", "text" : "jumps over the", "b" : { "c" : 5 } }, { - "_key" : "73678", - "_id" : "example/73678", - "_rev" : "_e4zxMii--C", + "_key" : "72288", + "_id" : "example/72288", + "_rev" : "_e9TS0lO---", "text" : "over the lazy", "b" : { "c" : 6 } }, { - "_key" : "73680", - "_id" : "example/73680", - "_rev" : "_e4zxMii--D", + "_key" : "72290", + "_id" : "example/72290", + "_rev" : "_e9TS0lS---", "text" : "the lazy dog", "b" : { "c" : 7 diff --git a/3.11/generated/Examples/ensurePersistent.generated b/3.11/generated/Examples/ensurePersistent.generated index f8d30b956e..796a59513c 100644 --- a/3.11/generated/Examples/ensurePersistent.generated +++ b/3.11/generated/Examples/ensurePersistent.generated @@ -6,9 +6,9 @@ arangosh> db.names.ensureIndex({ type: "fields" : [ "first" ], - "id" : "names/73691", + "id" : "names/72301", "isNewlyCreated" : true, - "name" : "idx_1745944422367887360", + "name" : "idx_1747208972464553984", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -17,31 +17,31 @@ arangosh> db.names.ensureIndex({ type: "first" : "Tim" }); { - "_id" : "names/73695", - "_key" : "73695", - "_rev" : "_e4zxMiy--_" + "_id" : "names/72305", + "_key" : "72305", + "_rev" : "_e9TS0mO---" } arangosh> db.names.save({ "first" : "Tom" }); { - "_id" : "names/73697", - "_key" : "73697", - "_rev" : "_e4zxMiy--A" + "_id" : "names/72307", + "_key" : "72307", + "_rev" : "_e9TS0mS---" } arangosh> db.names.save({ "first" : "John" }); { - "_id" : "names/73699", - "_key" : "73699", - "_rev" : "_e4zxMiy--B" + "_id" : "names/72309", + "_key" : "72309", + "_rev" : "_e9TS0mS--_" } arangosh> db.names.save({ "first" : "Tim" }); { - "_id" : "names/73701", - "_key" : "73701", - "_rev" : "_e4zxMiy--C" + "_id" : "names/72311", + "_key" : "72311", + "_rev" : "_e9TS0mW---" } arangosh> db.names.save({ "first" : "Tom" }); { - "_id" : "names/73703", - "_key" : "73703", - "_rev" : "_e4zxMi2---" + "_id" : "names/72313", + "_key" : "72313", + "_rev" : "_e9TS0ma---" } diff --git a/3.11/generated/Examples/ensureTtlIndex.generated b/3.11/generated/Examples/ensureTtlIndex.generated index 2c5128a61e..2b2b3ad1cb 100644 --- a/3.11/generated/Examples/ensureTtlIndex.generated +++ b/3.11/generated/Examples/ensureTtlIndex.generated @@ -5,9 +5,9 @@ arangosh> db.test.ensureIndex({ type: "fields" : [ "creationDate" ], - "id" : "test/73712", + "id" : "test/72322", "isNewlyCreated" : true, - "name" : "idx_1745944422371033089", + "name" : "idx_1747208972477136896", "sparse" : true, "type" : "ttl", "unique" : false, diff --git a/3.11/generated/Examples/ensureUniquePersistentMultiColmun.generated b/3.11/generated/Examples/ensureUniquePersistentMultiColmun.generated index 7c3ab9afc7..dced636fd6 100644 --- a/3.11/generated/Examples/ensureUniquePersistentMultiColmun.generated +++ b/3.11/generated/Examples/ensureUniquePersistentMultiColmun.generated @@ -7,9 +7,9 @@ arangosh> db.ids.ensureIndex({ type: "name.first", "name.last" ], - "id" : "ids/73923", + "id" : "ids/72533", "isNewlyCreated" : true, - "name" : "idx_1745944422383616000", + "name" : "idx_1747208972533760000", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -18,21 +18,21 @@ arangosh> db.ids.ensureIndex({ type: "name" : { "first" : "hans", "last": "hansen" }}); { - "_id" : "ids/73927", - "_key" : "73927", - "_rev" : "_e4zxMju--_" + "_id" : "ids/72537", + "_key" : "72537", + "_rev" : "_e9TS0qW---" } arangosh> db.ids.save({ "name" : { "first" : "jens", "last": "jensen" }}); { - "_id" : "ids/73929", - "_key" : "73929", - "_rev" : "_e4zxMju--A" + "_id" : "ids/72539", + "_key" : "72539", + "_rev" : "_e9TS0qa---" } arangosh> db.ids.save({ "name" : { "first" : "hans", "last": "jensen" }}); { - "_id" : "ids/73931", - "_key" : "73931", - "_rev" : "_e4zxMju--B" + "_id" : "ids/72541", + "_key" : "72541", + "_rev" : "_e9TS0qe---" } arangosh> db.ids.save({ "name" : { "first" : "hans", "last": "hansen" }}); -[ArangoError 1210: unique constraint violated - in index idx_1745944422383616000 of type persistent over 'name.first, name.last'; conflicting key: 73927] +[ArangoError 1210: unique constraint violated - in index idx_1747208972533760000 of type persistent over 'name.first, name.last'; conflicting key: 72537] diff --git a/3.11/generated/Examples/ensureUniquePersistentSingle.generated b/3.11/generated/Examples/ensureUniquePersistentSingle.generated index 945778aa39..3db60ef320 100644 --- a/3.11/generated/Examples/ensureUniquePersistentSingle.generated +++ b/3.11/generated/Examples/ensureUniquePersistentSingle.generated @@ -6,9 +6,9 @@ arangosh> db.ids.ensureIndex({ type: "fields" : [ "myId" ], - "id" : "ids/73942", + "id" : "ids/72552", "isNewlyCreated" : true, - "name" : "idx_1745944422386761728", + "name" : "idx_1747208972550537216", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -17,21 +17,21 @@ arangosh> db.ids.ensureIndex({ type: "myId": 123 }); { - "_id" : "ids/73946", - "_key" : "73946", - "_rev" : "_e4zxMj6--_" + "_id" : "ids/72556", + "_key" : "72556", + "_rev" : "_e9TS0rW---" } arangosh> db.ids.save({ "myId": 456 }); { - "_id" : "ids/73948", - "_key" : "73948", - "_rev" : "_e4zxMj6--A" + "_id" : "ids/72558", + "_key" : "72558", + "_rev" : "_e9TS0ra---" } arangosh> db.ids.save({ "myId": 789 }); { - "_id" : "ids/73950", - "_key" : "73950", - "_rev" : "_e4zxMj6--B" + "_id" : "ids/72560", + "_key" : "72560", + "_rev" : "_e9TS0re---" } arangosh> db.ids.save({ "myId": 123 }); -[ArangoError 1210: unique constraint violated - in index idx_1745944422386761728 of type persistent over 'myId'; conflicting key: 73946] +[ArangoError 1210: unique constraint violated - in index idx_1747208972550537216 of type persistent over 'myId'; conflicting key: 72556] diff --git a/3.11/generated/Examples/ensureVertexCentricIndex.generated b/3.11/generated/Examples/ensureVertexCentricIndex.generated index fc69db2bde..8ddf68fe72 100644 --- a/3.11/generated/Examples/ensureVertexCentricIndex.generated +++ b/3.11/generated/Examples/ensureVertexCentricIndex.generated @@ -7,9 +7,9 @@ arangosh> db.collection.ensureIndex({ type: "_from", "type" ], - "id" : "collection/73963", + "id" : "collection/72573", "isNewlyCreated" : true, - "name" : "idx_1745944422389907457", + "name" : "idx_1747208972565217280", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", diff --git a/3.11/generated/Examples/enterpriseGraphModify4_cluster.generated b/3.11/generated/Examples/enterpriseGraphModify4_cluster.generated index dd2e43edf7..e51a94cf0d 100644 --- a/3.11/generated/Examples/enterpriseGraphModify4_cluster.generated +++ b/3.11/generated/Examples/enterpriseGraphModify4_cluster.generated @@ -4,4 +4,4 @@ arangosh> var graph = graph_module._create( arangosh> graph._deleteEdgeDefinition("edges"); arangosh> graph._removeVertexCollection("vertices"); arangosh> db._drop("vertices"); -[ArangoError 1485: Collection 'vertices' must not be dropped while '_local_edges', '_from_edges', '_to_edges', 'edges' have distributeShardsLike set to 'vertices'.] +[ArangoError 1485: Collection 'vertices' must not be dropped while '_from_edges', 'edges', '_local_edges', '_to_edges' have distributeShardsLike set to 'vertices'.] diff --git a/3.11/generated/Examples/enterpriseGraphModify6_cluster.generated b/3.11/generated/Examples/enterpriseGraphModify6_cluster.generated index 3fed1d6bba..48c46ae414 100644 --- a/3.11/generated/Examples/enterpriseGraphModify6_cluster.generated +++ b/3.11/generated/Examples/enterpriseGraphModify6_cluster.generated @@ -4,5 +4,5 @@ arangosh> var graph = graph_module._create( arangosh> graph._deleteEdgeDefinition("edges", true); arangosh> graph_module._graph("myGraph"); {[EnterpriseGraph] - "vertices" : [ArangoCollection 10585, "vertices" (type document, status loaded)] + "vertices" : [ArangoCollection 10586, "vertices" (type document, status loaded)] } diff --git a/3.11/generated/Examples/executeQueryBatchSize.generated b/3.11/generated/Examples/executeQueryBatchSize.generated index 63125ca3e0..85eca7d13a 100644 --- a/3.11/generated/Examples/executeQueryBatchSize.generated +++ b/3.11/generated/Examples/executeQueryBatchSize.generated @@ -13,41 +13,41 @@ arangosh> var result = [ ]; ........> print(result); [ { - "_key" : "73974", - "_id" : "users/73974", - "_rev" : "_e4zxMkO--_", + "_key" : "72584", + "_id" : "users/72584", + "_rev" : "_e9TS0su---", "name" : "Gerhard" }, { - "_key" : "73976", - "_id" : "users/73976", - "_rev" : "_e4zxMkO--A", + "_key" : "72586", + "_id" : "users/72586", + "_rev" : "_e9TS0sy---", "name" : "Helmut" }, { - "_key" : "73978", - "_id" : "users/73978", - "_rev" : "_e4zxMkO--B", + "_key" : "72588", + "_id" : "users/72588", + "_rev" : "_e9TS0sy--_", "name" : "Angela" } ] [ { - "_key" : "73974", - "_id" : "users/73974", - "_rev" : "_e4zxMkO--_", + "_key" : "72584", + "_id" : "users/72584", + "_rev" : "_e9TS0su---", "name" : "Gerhard" }, { - "_key" : "73976", - "_id" : "users/73976", - "_rev" : "_e4zxMkO--A", + "_key" : "72586", + "_id" : "users/72586", + "_rev" : "_e9TS0sy---", "name" : "Helmut" }, { - "_key" : "73978", - "_id" : "users/73978", - "_rev" : "_e4zxMkO--B", + "_key" : "72588", + "_id" : "users/72588", + "_rev" : "_e9TS0sy--_", "name" : "Angela" } ] diff --git a/3.11/generated/Examples/executeQueryNoBatchSize.generated b/3.11/generated/Examples/executeQueryNoBatchSize.generated index 9367b80306..0df004c68d 100644 --- a/3.11/generated/Examples/executeQueryNoBatchSize.generated +++ b/3.11/generated/Examples/executeQueryNoBatchSize.generated @@ -8,41 +8,41 @@ arangosh> var result = db.users.all().toArr ........> print(result); [ { - "_key" : "73993", - "_id" : "users/73993", - "_rev" : "_e4zxMka--_", + "_key" : "72603", + "_id" : "users/72603", + "_rev" : "_e9TS0tq---", "name" : "Gerhard" }, { - "_key" : "73995", - "_id" : "users/73995", - "_rev" : "_e4zxMka--A", + "_key" : "72605", + "_id" : "users/72605", + "_rev" : "_e9TS0tu---", "name" : "Helmut" }, { - "_key" : "73997", - "_id" : "users/73997", - "_rev" : "_e4zxMka--B", + "_key" : "72607", + "_id" : "users/72607", + "_rev" : "_e9TS0tu--_", "name" : "Angela" } ] [ { - "_key" : "73993", - "_id" : "users/73993", - "_rev" : "_e4zxMka--_", + "_key" : "72603", + "_id" : "users/72603", + "_rev" : "_e9TS0tq---", "name" : "Gerhard" }, { - "_key" : "73995", - "_id" : "users/73995", - "_rev" : "_e4zxMka--A", + "_key" : "72605", + "_id" : "users/72605", + "_rev" : "_e9TS0tu---", "name" : "Helmut" }, { - "_key" : "73997", - "_id" : "users/73997", - "_rev" : "_e4zxMka--B", + "_key" : "72607", + "_id" : "users/72607", + "_rev" : "_e9TS0tu--_", "name" : "Angela" } ] diff --git a/3.11/generated/Examples/generalGraphCreateGraph2.generated b/3.11/generated/Examples/generalGraphCreateGraph2.generated index 2b0ade933a..3504147dfc 100644 --- a/3.11/generated/Examples/generalGraphCreateGraph2.generated +++ b/3.11/generated/Examples/generalGraphCreateGraph2.generated @@ -2,8 +2,8 @@ arangosh> var graph_module = "myGraph", ........> [graph_module._relation("myRelation", ["male", "female"], ["male", "female"])], ["sessions"]); {[GeneralGraph] - "myRelation" : [ArangoCollection 74021, "myRelation" (type edge, status loaded)], - "female" : [ArangoCollection 74018, "female" (type document, status loaded)], - "male" : [ArangoCollection 74015, "male" (type document, status loaded)], - "sessions" : [ArangoCollection 74012, "sessions" (type document, status loaded)] + "myRelation" : [ArangoCollection 72631, "myRelation" (type edge, status loaded)], + "female" : [ArangoCollection 72628, "female" (type document, status loaded)], + "male" : [ArangoCollection 72625, "male" (type document, status loaded)], + "sessions" : [ArangoCollection 72622, "sessions" (type document, status loaded)] } diff --git a/3.11/generated/Examples/generalGraphCreateGraphHowTo2.generated b/3.11/generated/Examples/generalGraphCreateGraphHowTo2.generated index 0cb195b714..218779239e 100644 --- a/3.11/generated/Examples/generalGraphCreateGraphHowTo2.generated +++ b/3.11/generated/Examples/generalGraphCreateGraphHowTo2.generated @@ -1,6 +1,9 @@ arangosh> graph._addVertexCollection("shop"); arangosh> graph._addVertexCollection("customer"); arangosh> graph._addVertexCollection("pet"); -arangosh> graph; +arangosh> graph = graph_module._graph("myGraph"); {[GeneralGraph] + "customer" : [ArangoCollection 72702, "customer" (type document, status loaded)], + "pet" : [ArangoCollection 72711, "pet" (type document, status loaded)], + "shop" : [ArangoCollection 72693, "shop" (type document, status loaded)] } diff --git a/3.11/generated/Examples/generalGraphCreateGraphHowTo3.generated b/3.11/generated/Examples/generalGraphCreateGraphHowTo3.generated index 5b3bf14d99..f8a9dfb51c 100644 --- a/3.11/generated/Examples/generalGraphCreateGraphHowTo3.generated +++ b/3.11/generated/Examples/generalGraphCreateGraphHowTo3.generated @@ -1,5 +1,9 @@ arangosh> var rel = graph_module._relation("isCustomer", ["shop"], ["customer"]); arangosh> graph._extendEdgeDefinitions(rel); -arangosh> graph; +arangosh> graph = graph_module._graph("myGraph"); {[GeneralGraph] + "isCustomer" : [ArangoCollection 72776, "isCustomer" (type edge, status loaded)], + "shop" : [ArangoCollection 72770, "shop" (type document, status loaded)], + "customer" : [ArangoCollection 72773, "customer" (type document, status loaded)], + "pet" : [ArangoCollection 72759, "pet" (type document, status loaded)] } diff --git a/3.11/generated/Examples/generalGraphCreateGraphSingle.generated b/3.11/generated/Examples/generalGraphCreateGraphSingle.generated index bcebf4a688..e24dc5d472 100644 --- a/3.11/generated/Examples/generalGraphCreateGraphSingle.generated +++ b/3.11/generated/Examples/generalGraphCreateGraphSingle.generated @@ -2,6 +2,6 @@ arangosh> var graph_module = var edgeDefinitions = [ { collection: "edges", "from": [ "vertices" ], "to" : [ "vertices" ] } ]; arangosh> graph = graph_module._create("myGraph", edgeDefinitions); {[GeneralGraph] - "edges" : [ArangoCollection 74222, "edges" (type edge, status loaded)], - "vertices" : [ArangoCollection 74219, "vertices" (type document, status loaded)] + "edges" : [ArangoCollection 72836, "edges" (type edge, status loaded)], + "vertices" : [ArangoCollection 72833, "vertices" (type document, status loaded)] } diff --git a/3.11/generated/Examples/generalGraphDropGraphKeep.generated b/3.11/generated/Examples/generalGraphDropGraphKeep.generated index 8d4c00a8e9..3f80f26dcc 100644 --- a/3.11/generated/Examples/generalGraphDropGraphKeep.generated +++ b/3.11/generated/Examples/generalGraphDropGraphKeep.generated @@ -1,8 +1,8 @@ arangosh> var graph_module = require("@arangodb/general-graph"); arangosh> graph_module._drop("social"); arangosh> db._collection("female"); -[ArangoCollection 74305, "female" (type document, status loaded)] +[ArangoCollection 72919, "female" (type document, status loaded)] arangosh> db._collection("male"); -[ArangoCollection 74310, "male" (type document, status loaded)] +[ArangoCollection 72924, "male" (type document, status loaded)] arangosh> db._collection("relation"); -[ArangoCollection 74315, "relation" (type edge, status loaded)] +[ArangoCollection 72929, "relation" (type edge, status loaded)] diff --git a/3.11/generated/Examples/generalGraphEdgeCollectionRemove.generated b/3.11/generated/Examples/generalGraphEdgeCollectionRemove.generated index e5e228e7aa..b0cde80ae5 100644 --- a/3.11/generated/Examples/generalGraphEdgeCollectionRemove.generated +++ b/3.11/generated/Examples/generalGraphEdgeCollectionRemove.generated @@ -4,7 +4,7 @@ arangosh> graph.relation.save("female/alice&qu { "_id" : "relation/aliceAndDiana", "_key" : "aliceAndDiana", - "_rev" : "_e4zxMmu---" + "_rev" : "_e9TS03e---" } arangosh> db._exists("relation/aliceAndDiana") true diff --git a/3.11/generated/Examples/generalGraphEdgeCollectionReplace.generated b/3.11/generated/Examples/generalGraphEdgeCollectionReplace.generated index 16d7f034ae..a8f4a63233 100644 --- a/3.11/generated/Examples/generalGraphEdgeCollectionReplace.generated +++ b/3.11/generated/Examples/generalGraphEdgeCollectionReplace.generated @@ -4,12 +4,12 @@ arangosh> graph.relation.save("female/alice&qu { "_id" : "relation/aliceAndDiana", "_key" : "aliceAndDiana", - "_rev" : "_e4zxMnG--E" + "_rev" : "_e9TS05i---" } arangosh> graph.relation.replace("relation/aliceAndDiana", {type: "knows", _from: "female/alice", _to: "female/diana"}); { "_id" : "relation/aliceAndDiana", "_key" : "aliceAndDiana", - "_rev" : "_e4zxMnK---", - "_oldRev" : "_e4zxMnG--E" + "_rev" : "_e9TS05m---", + "_oldRev" : "_e9TS05i---" } diff --git a/3.11/generated/Examples/generalGraphEdgeCollectionSave1.generated b/3.11/generated/Examples/generalGraphEdgeCollectionSave1.generated index 1a4b98ea20..bc1007af21 100644 --- a/3.11/generated/Examples/generalGraphEdgeCollectionSave1.generated +++ b/3.11/generated/Examples/generalGraphEdgeCollectionSave1.generated @@ -7,5 +7,5 @@ arangosh> graph.relation.save({ { "_id" : "relation/bobAndAlice", "_key" : "bobAndAlice", - "_rev" : "_e4zxMni---" + "_rev" : "_e9TS07O---" } diff --git a/3.11/generated/Examples/generalGraphEdgeCollectionUpdate.generated b/3.11/generated/Examples/generalGraphEdgeCollectionUpdate.generated index 810b1c5565..23653d7e93 100644 --- a/3.11/generated/Examples/generalGraphEdgeCollectionUpdate.generated +++ b/3.11/generated/Examples/generalGraphEdgeCollectionUpdate.generated @@ -4,12 +4,12 @@ arangosh> graph.relation.save("female/alice&qu { "_id" : "relation/aliceAndDiana", "_key" : "aliceAndDiana", - "_rev" : "_e4zxMoK--_" + "_rev" : "_e9TS1-G---" } arangosh> graph.relation.update("relation/aliceAndDiana", {type: "quarreled", _key: "aliceAndDiana"}); { "_id" : "relation/aliceAndDiana", "_key" : "aliceAndDiana", - "_rev" : "_e4zxMoK--A", - "_oldRev" : "_e4zxMoK--_" + "_rev" : "_e9TS1-K---", + "_oldRev" : "_e9TS1-G---" } diff --git a/3.11/generated/Examples/generalGraphGetFromVertex.generated b/3.11/generated/Examples/generalGraphGetFromVertex.generated index 5ef5d40aa1..0894541e3b 100644 --- a/3.11/generated/Examples/generalGraphGetFromVertex.generated +++ b/3.11/generated/Examples/generalGraphGetFromVertex.generated @@ -5,6 +5,6 @@ arangosh> graph._fromVertex("relation/""_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxMoi---", + "_rev" : "_e9TS1_2---", "name" : "Alice" } diff --git a/3.11/generated/Examples/generalGraphGetToVertex.generated b/3.11/generated/Examples/generalGraphGetToVertex.generated index 3d050ed72d..1d6fc7f2d7 100644 --- a/3.11/generated/Examples/generalGraphGetToVertex.generated +++ b/3.11/generated/Examples/generalGraphGetToVertex.generated @@ -3,8 +3,8 @@ arangosh> var graph = examples.loadGraph(var any = require("@arangodb").db.relation.any(); arangosh> graph._toVertex("relation/" + any._key); { - "_key" : "bob", - "_id" : "male/bob", - "_rev" : "_e4zxMo6--_", - "name" : "Bob" + "_key" : "charly", + "_id" : "male/charly", + "_rev" : "_e9TS1Bm---", + "name" : "Charly" } diff --git a/3.11/generated/Examples/generalGraphList.generated b/3.11/generated/Examples/generalGraphList.generated index 0d023cd229..ef10b457e5 100644 --- a/3.11/generated/Examples/generalGraphList.generated +++ b/3.11/generated/Examples/generalGraphList.generated @@ -1,3 +1,6 @@ arangosh> var graph_module = require("@arangodb/general-graph"); arangosh> graph_module._list(); -[ ] +[ + "myGraph", + "myStore" +] diff --git a/3.11/generated/Examples/generalGraphListObjects.generated b/3.11/generated/Examples/generalGraphListObjects.generated new file mode 100644 index 0000000000..ab80c3aa30 --- /dev/null +++ b/3.11/generated/Examples/generalGraphListObjects.generated @@ -0,0 +1,51 @@ +arangosh> var graph_module = require("@arangodb/general-graph"); +arangosh> graph_module._listObjects(); +[ + { + "_id" : "_graphs/myGraph", + "_key" : "myGraph", + "_rev" : "_e9TS1DO---", + "edgeDefinitions" : [ + { + "collection" : "edges", + "from" : [ + "vertices" + ], + "to" : [ + "vertices" + ] + } + ], + "orphanCollections" : [ ], + "name" : "myGraph" + }, + { + "_id" : "_graphs/myStore", + "_key" : "myStore", + "_rev" : "_e9TS1Da--_", + "edgeDefinitions" : [ + { + "collection" : "friend_of", + "from" : [ + "Customer" + ], + "to" : [ + "Customer" + ] + }, + { + "collection" : "has_bought", + "from" : [ + "Company", + "Customer" + ], + "to" : [ + "Electronics", + "Groceries" + ] + } + ], + "orphanCollections" : [ ], + "name" : "myStore" + } +] diff --git a/3.11/generated/Examples/generalGraphLoadGraph.generated b/3.11/generated/Examples/generalGraphLoadGraph.generated index ad574303cb..9f641a84b9 100644 --- a/3.11/generated/Examples/generalGraphLoadGraph.generated +++ b/3.11/generated/Examples/generalGraphLoadGraph.generated @@ -1,7 +1,7 @@ arangosh> var graph_module = require("@arangodb/general-graph"); arangosh> graph = graph_module._graph("social"); {[GeneralGraph] - "relation" : [ArangoCollection 74798, "relation" (type edge, status loaded)], - "female" : [ArangoCollection 74788, "female" (type document, status loaded)], - "male" : [ArangoCollection 74793, "male" (type document, status loaded)] + "relation" : [ArangoCollection 73538, "relation" (type edge, status loaded)], + "female" : [ArangoCollection 73528, "female" (type document, status loaded)], + "male" : [ArangoCollection 73533, "male" (type document, status loaded)] } diff --git a/3.11/generated/Examples/generalGraphModulePaths1.generated b/3.11/generated/Examples/generalGraphModulePaths1.generated index a0b91cc7e2..d5556a4833 100644 --- a/3.11/generated/Examples/generalGraphModulePaths1.generated +++ b/3.11/generated/Examples/generalGraphModulePaths1.generated @@ -6,13 +6,13 @@ arangosh> g._paths(); "source" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7----", + "_rev" : "_e9TS2Pu---", "name" : "Alice" }, "destination" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7----", + "_rev" : "_e9TS2Pu---", "name" : "Alice" }, "edges" : [ ], @@ -20,7 +20,7 @@ arangosh> g._paths(); { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7----", + "_rev" : "_e9TS2Pu---", "name" : "Alice" } ] @@ -29,22 +29,22 @@ arangosh> g._paths(); "source" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7----", + "_rev" : "_e9TS2Pu---", "name" : "Alice" }, "destination" : { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxM7---A", + "_rev" : "_e9TS2Py--_", "name" : "Charly" }, "edges" : [ { - "_key" : "77848", - "_id" : "relation/77848", + "_key" : "76588", + "_id" : "relation/76588", "_from" : "female/alice", "_to" : "male/charly", - "_rev" : "_e4zxM7---D", + "_rev" : "_e9TS2P6--_", "type" : "friend", "vertex" : "alice" } @@ -53,13 +53,13 @@ arangosh> g._paths(); { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7----", + "_rev" : "_e9TS2Pu---", "name" : "Alice" }, { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxM7---A", + "_rev" : "_e9TS2Py--_", "name" : "Charly" } ] @@ -68,31 +68,31 @@ arangosh> g._paths(); "source" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7----", + "_rev" : "_e9TS2Pu---", "name" : "Alice" }, "destination" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7---B", + "_rev" : "_e9TS2P2---", "name" : "Diana" }, "edges" : [ { - "_key" : "77848", - "_id" : "relation/77848", + "_key" : "76588", + "_id" : "relation/76588", "_from" : "female/alice", "_to" : "male/charly", - "_rev" : "_e4zxM7---D", + "_rev" : "_e9TS2P6--_", "type" : "friend", "vertex" : "alice" }, { - "_key" : "77850", - "_id" : "relation/77850", + "_key" : "76590", + "_id" : "relation/76590", "_from" : "male/charly", "_to" : "female/diana", - "_rev" : "_e4zxM7---E", + "_rev" : "_e9TS2Q----", "type" : "married", "vertex" : "charly" } @@ -101,19 +101,19 @@ arangosh> g._paths(); { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7----", + "_rev" : "_e9TS2Pu---", "name" : "Alice" }, { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxM7---A", + "_rev" : "_e9TS2Py--_", "name" : "Charly" }, { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7---B", + "_rev" : "_e9TS2P2---", "name" : "Diana" } ] @@ -122,22 +122,22 @@ arangosh> g._paths(); "source" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7----", + "_rev" : "_e9TS2Pu---", "name" : "Alice" }, "destination" : { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxM7---_", + "_rev" : "_e9TS2Py---", "name" : "Bob" }, "edges" : [ { - "_key" : "77846", - "_id" : "relation/77846", + "_key" : "76586", + "_id" : "relation/76586", "_from" : "female/alice", "_to" : "male/bob", - "_rev" : "_e4zxM7---C", + "_rev" : "_e9TS2P6---", "type" : "married", "vertex" : "alice" } @@ -146,13 +146,13 @@ arangosh> g._paths(); { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7----", + "_rev" : "_e9TS2Pu---", "name" : "Alice" }, { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxM7---_", + "_rev" : "_e9TS2Py---", "name" : "Bob" } ] @@ -161,31 +161,31 @@ arangosh> g._paths(); "source" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7----", + "_rev" : "_e9TS2Pu---", "name" : "Alice" }, "destination" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7---B", + "_rev" : "_e9TS2P2---", "name" : "Diana" }, "edges" : [ { - "_key" : "77846", - "_id" : "relation/77846", + "_key" : "76586", + "_id" : "relation/76586", "_from" : "female/alice", "_to" : "male/bob", - "_rev" : "_e4zxM7---C", + "_rev" : "_e9TS2P6---", "type" : "married", "vertex" : "alice" }, { - "_key" : "77852", - "_id" : "relation/77852", + "_key" : "76592", + "_id" : "relation/76592", "_from" : "male/bob", "_to" : "female/diana", - "_rev" : "_e4zxM7---F", + "_rev" : "_e9TS2Q---_", "type" : "friend", "vertex" : "bob" } @@ -194,19 +194,19 @@ arangosh> g._paths(); { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7----", + "_rev" : "_e9TS2Pu---", "name" : "Alice" }, { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxM7---_", + "_rev" : "_e9TS2Py---", "name" : "Bob" }, { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7---B", + "_rev" : "_e9TS2P2---", "name" : "Diana" } ] @@ -215,13 +215,13 @@ arangosh> g._paths(); "source" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7---B", + "_rev" : "_e9TS2P2---", "name" : "Diana" }, "destination" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7---B", + "_rev" : "_e9TS2P2---", "name" : "Diana" }, "edges" : [ ], @@ -229,7 +229,7 @@ arangosh> g._paths(); { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7---B", + "_rev" : "_e9TS2P2---", "name" : "Diana" } ] @@ -238,13 +238,13 @@ arangosh> g._paths(); "source" : { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxM7---_", + "_rev" : "_e9TS2Py---", "name" : "Bob" }, "destination" : { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxM7---_", + "_rev" : "_e9TS2Py---", "name" : "Bob" }, "edges" : [ ], @@ -252,7 +252,7 @@ arangosh> g._paths(); { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxM7---_", + "_rev" : "_e9TS2Py---", "name" : "Bob" } ] @@ -261,22 +261,22 @@ arangosh> g._paths(); "source" : { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxM7---_", + "_rev" : "_e9TS2Py---", "name" : "Bob" }, "destination" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7---B", + "_rev" : "_e9TS2P2---", "name" : "Diana" }, "edges" : [ { - "_key" : "77852", - "_id" : "relation/77852", + "_key" : "76592", + "_id" : "relation/76592", "_from" : "male/bob", "_to" : "female/diana", - "_rev" : "_e4zxM7---F", + "_rev" : "_e9TS2Q---_", "type" : "friend", "vertex" : "bob" } @@ -285,13 +285,13 @@ arangosh> g._paths(); { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxM7---_", + "_rev" : "_e9TS2Py---", "name" : "Bob" }, { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7---B", + "_rev" : "_e9TS2P2---", "name" : "Diana" } ] @@ -300,13 +300,13 @@ arangosh> g._paths(); "source" : { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxM7---A", + "_rev" : "_e9TS2Py--_", "name" : "Charly" }, "destination" : { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxM7---A", + "_rev" : "_e9TS2Py--_", "name" : "Charly" }, "edges" : [ ], @@ -314,7 +314,7 @@ arangosh> g._paths(); { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxM7---A", + "_rev" : "_e9TS2Py--_", "name" : "Charly" } ] @@ -323,22 +323,22 @@ arangosh> g._paths(); "source" : { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxM7---A", + "_rev" : "_e9TS2Py--_", "name" : "Charly" }, "destination" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7---B", + "_rev" : "_e9TS2P2---", "name" : "Diana" }, "edges" : [ { - "_key" : "77850", - "_id" : "relation/77850", + "_key" : "76590", + "_id" : "relation/76590", "_from" : "male/charly", "_to" : "female/diana", - "_rev" : "_e4zxM7---E", + "_rev" : "_e9TS2Q----", "type" : "married", "vertex" : "charly" } @@ -347,13 +347,13 @@ arangosh> g._paths(); { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxM7---A", + "_rev" : "_e9TS2Py--_", "name" : "Charly" }, { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7---B", + "_rev" : "_e9TS2P2---", "name" : "Diana" } ] diff --git a/3.11/generated/Examples/generalGraphModulePaths2.generated b/3.11/generated/Examples/generalGraphModulePaths2.generated index 656dcd5ea2..d509a2d1a1 100644 --- a/3.11/generated/Examples/generalGraphModulePaths2.generated +++ b/3.11/generated/Examples/generalGraphModulePaths2.generated @@ -6,22 +6,22 @@ arangosh> g._paths({direction : "source" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7m--B", + "_rev" : "_e9TS2SS---", "name" : "Diana" }, "destination" : { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxM7m--_", + "_rev" : "_e9TS2SO---", "name" : "Bob" }, "edges" : [ { - "_key" : "77914", - "_id" : "relation/77914", + "_key" : "76654", + "_id" : "relation/76654", "_from" : "male/bob", "_to" : "female/diana", - "_rev" : "_e4zxM7m--F", + "_rev" : "_e9TS2Se---", "type" : "friend", "vertex" : "bob" } @@ -30,13 +30,13 @@ arangosh> g._paths({direction : "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7m--B", + "_rev" : "_e9TS2SS---", "name" : "Diana" }, { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxM7m--_", + "_rev" : "_e9TS2SO---", "name" : "Bob" } ] @@ -45,31 +45,31 @@ arangosh> g._paths({direction : "source" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7m--B", + "_rev" : "_e9TS2SS---", "name" : "Diana" }, "destination" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7m---", + "_rev" : "_e9TS2SK---", "name" : "Alice" }, "edges" : [ { - "_key" : "77914", - "_id" : "relation/77914", + "_key" : "76654", + "_id" : "relation/76654", "_from" : "male/bob", "_to" : "female/diana", - "_rev" : "_e4zxM7m--F", + "_rev" : "_e9TS2Se---", "type" : "friend", "vertex" : "bob" }, { - "_key" : "77908", - "_id" : "relation/77908", + "_key" : "76648", + "_id" : "relation/76648", "_from" : "female/alice", "_to" : "male/bob", - "_rev" : "_e4zxM7m--C", + "_rev" : "_e9TS2SW---", "type" : "married", "vertex" : "alice" } @@ -78,19 +78,19 @@ arangosh> g._paths({direction : "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7m--B", + "_rev" : "_e9TS2SS---", "name" : "Diana" }, { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxM7m--_", + "_rev" : "_e9TS2SO---", "name" : "Bob" }, { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7m---", + "_rev" : "_e9TS2SK---", "name" : "Alice" } ] @@ -99,22 +99,22 @@ arangosh> g._paths({direction : "source" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7m--B", + "_rev" : "_e9TS2SS---", "name" : "Diana" }, "destination" : { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxM7m--A", + "_rev" : "_e9TS2SO--_", "name" : "Charly" }, "edges" : [ { - "_key" : "77912", - "_id" : "relation/77912", + "_key" : "76652", + "_id" : "relation/76652", "_from" : "male/charly", "_to" : "female/diana", - "_rev" : "_e4zxM7m--E", + "_rev" : "_e9TS2Sa--_", "type" : "married", "vertex" : "charly" } @@ -123,13 +123,13 @@ arangosh> g._paths({direction : "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7m--B", + "_rev" : "_e9TS2SS---", "name" : "Diana" }, { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxM7m--A", + "_rev" : "_e9TS2SO--_", "name" : "Charly" } ] @@ -138,31 +138,31 @@ arangosh> g._paths({direction : "source" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7m--B", + "_rev" : "_e9TS2SS---", "name" : "Diana" }, "destination" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7m---", + "_rev" : "_e9TS2SK---", "name" : "Alice" }, "edges" : [ { - "_key" : "77912", - "_id" : "relation/77912", + "_key" : "76652", + "_id" : "relation/76652", "_from" : "male/charly", "_to" : "female/diana", - "_rev" : "_e4zxM7m--E", + "_rev" : "_e9TS2Sa--_", "type" : "married", "vertex" : "charly" }, { - "_key" : "77910", - "_id" : "relation/77910", + "_key" : "76650", + "_id" : "relation/76650", "_from" : "female/alice", "_to" : "male/charly", - "_rev" : "_e4zxM7m--D", + "_rev" : "_e9TS2Sa---", "type" : "friend", "vertex" : "alice" } @@ -171,19 +171,19 @@ arangosh> g._paths({direction : "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7m--B", + "_rev" : "_e9TS2SS---", "name" : "Diana" }, { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxM7m--A", + "_rev" : "_e9TS2SO--_", "name" : "Charly" }, { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7m---", + "_rev" : "_e9TS2SK---", "name" : "Alice" } ] @@ -192,22 +192,22 @@ arangosh> g._paths({direction : "source" : { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxM7m--_", + "_rev" : "_e9TS2SO---", "name" : "Bob" }, "destination" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7m---", + "_rev" : "_e9TS2SK---", "name" : "Alice" }, "edges" : [ { - "_key" : "77908", - "_id" : "relation/77908", + "_key" : "76648", + "_id" : "relation/76648", "_from" : "female/alice", "_to" : "male/bob", - "_rev" : "_e4zxM7m--C", + "_rev" : "_e9TS2SW---", "type" : "married", "vertex" : "alice" } @@ -216,13 +216,13 @@ arangosh> g._paths({direction : "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxM7m--_", + "_rev" : "_e9TS2SO---", "name" : "Bob" }, { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7m---", + "_rev" : "_e9TS2SK---", "name" : "Alice" } ] @@ -231,22 +231,22 @@ arangosh> g._paths({direction : "source" : { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxM7m--A", + "_rev" : "_e9TS2SO--_", "name" : "Charly" }, "destination" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7m---", + "_rev" : "_e9TS2SK---", "name" : "Alice" }, "edges" : [ { - "_key" : "77910", - "_id" : "relation/77910", + "_key" : "76650", + "_id" : "relation/76650", "_from" : "female/alice", "_to" : "male/charly", - "_rev" : "_e4zxM7m--D", + "_rev" : "_e9TS2Sa---", "type" : "friend", "vertex" : "alice" } @@ -255,13 +255,13 @@ arangosh> g._paths({direction : "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxM7m--A", + "_rev" : "_e9TS2SO--_", "name" : "Charly" }, { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7m---", + "_rev" : "_e9TS2SK---", "name" : "Alice" } ] diff --git a/3.11/generated/Examples/generalGraphModuleShortestPaths1.generated b/3.11/generated/Examples/generalGraphModuleShortestPaths1.generated index 4da9072ca7..5f78a72b41 100644 --- a/3.11/generated/Examples/generalGraphModuleShortestPaths1.generated +++ b/3.11/generated/Examples/generalGraphModuleShortestPaths1.generated @@ -10,11 +10,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78484", - "_id" : "frenchHighway/78484", + "_key" : "77224", + "_id" : "frenchHighway/77224", "_from" : "frenchCity/Paris", "_to" : "frenchCity/Lyon", - "_rev" : "_e4zxN_K--B", + "_rev" : "_e9TS2he---", "distance" : 550 } ], @@ -27,11 +27,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78486", - "_id" : "internationalHighway/78486", + "_key" : "77226", + "_id" : "internationalHighway/77226", "_from" : "germanCity/Berlin", "_to" : "frenchCity/Lyon", - "_rev" : "_e4zxN_K--C", + "_rev" : "_e9TS2hi---", "distance" : 1100 } ], @@ -44,11 +44,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78494", - "_id" : "internationalHighway/78494", + "_key" : "77234", + "_id" : "internationalHighway/77234", "_from" : "germanCity/Cologne", "_to" : "frenchCity/Lyon", - "_rev" : "_e4zxN_O---", + "_rev" : "_e9TS2hu---", "distance" : 700 } ], @@ -61,11 +61,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78492", - "_id" : "internationalHighway/78492", + "_key" : "77232", + "_id" : "internationalHighway/77232", "_from" : "germanCity/Hamburg", "_to" : "frenchCity/Lyon", - "_rev" : "_e4zxN_K--F", + "_rev" : "_e9TS2hq---", "distance" : 1300 } ], @@ -78,11 +78,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78484", - "_id" : "frenchHighway/78484", + "_key" : "77224", + "_id" : "frenchHighway/77224", "_from" : "frenchCity/Paris", "_to" : "frenchCity/Lyon", - "_rev" : "_e4zxN_K--B", + "_rev" : "_e9TS2he---", "distance" : 550 } ], @@ -95,11 +95,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78488", - "_id" : "internationalHighway/78488", + "_key" : "77228", + "_id" : "internationalHighway/77228", "_from" : "germanCity/Berlin", "_to" : "frenchCity/Paris", - "_rev" : "_e4zxN_K--D", + "_rev" : "_e9TS2hm---", "distance" : 1200 } ], @@ -112,11 +112,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78496", - "_id" : "internationalHighway/78496", + "_key" : "77236", + "_id" : "internationalHighway/77236", "_from" : "germanCity/Cologne", "_to" : "frenchCity/Paris", - "_rev" : "_e4zxN_O--_", + "_rev" : "_e9TS2hu--_", "distance" : 550 } ], @@ -129,11 +129,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78490", - "_id" : "internationalHighway/78490", + "_key" : "77230", + "_id" : "internationalHighway/77230", "_from" : "germanCity/Hamburg", "_to" : "frenchCity/Paris", - "_rev" : "_e4zxN_K--E", + "_rev" : "_e9TS2hm--_", "distance" : 900 } ], @@ -146,11 +146,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78486", - "_id" : "internationalHighway/78486", + "_key" : "77226", + "_id" : "internationalHighway/77226", "_from" : "germanCity/Berlin", "_to" : "frenchCity/Lyon", - "_rev" : "_e4zxN_K--C", + "_rev" : "_e9TS2hi---", "distance" : 1100 } ], @@ -163,11 +163,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78488", - "_id" : "internationalHighway/78488", + "_key" : "77228", + "_id" : "internationalHighway/77228", "_from" : "germanCity/Berlin", "_to" : "frenchCity/Paris", - "_rev" : "_e4zxN_K--D", + "_rev" : "_e9TS2hm---", "distance" : 1200 } ], @@ -180,11 +180,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78478", - "_id" : "germanHighway/78478", + "_key" : "77218", + "_id" : "germanHighway/77218", "_from" : "germanCity/Berlin", "_to" : "germanCity/Cologne", - "_rev" : "_e4zxN_K---", + "_rev" : "_e9TS2hW---", "distance" : 850 } ], @@ -197,11 +197,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78480", - "_id" : "germanHighway/78480", + "_key" : "77220", + "_id" : "germanHighway/77220", "_from" : "germanCity/Berlin", "_to" : "germanCity/Hamburg", - "_rev" : "_e4zxN_K--_", + "_rev" : "_e9TS2ha---", "distance" : 400 } ], @@ -214,11 +214,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78494", - "_id" : "internationalHighway/78494", + "_key" : "77234", + "_id" : "internationalHighway/77234", "_from" : "germanCity/Cologne", "_to" : "frenchCity/Lyon", - "_rev" : "_e4zxN_O---", + "_rev" : "_e9TS2hu---", "distance" : 700 } ], @@ -231,11 +231,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78496", - "_id" : "internationalHighway/78496", + "_key" : "77236", + "_id" : "internationalHighway/77236", "_from" : "germanCity/Cologne", "_to" : "frenchCity/Paris", - "_rev" : "_e4zxN_O--_", + "_rev" : "_e9TS2hu--_", "distance" : 550 } ], @@ -248,11 +248,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78478", - "_id" : "germanHighway/78478", + "_key" : "77218", + "_id" : "germanHighway/77218", "_from" : "germanCity/Berlin", "_to" : "germanCity/Cologne", - "_rev" : "_e4zxN_K---", + "_rev" : "_e9TS2hW---", "distance" : 850 } ], @@ -265,11 +265,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78482", - "_id" : "germanHighway/78482", + "_key" : "77222", + "_id" : "germanHighway/77222", "_from" : "germanCity/Hamburg", "_to" : "germanCity/Cologne", - "_rev" : "_e4zxN_K--A", + "_rev" : "_e9TS2ha--_", "distance" : 500 } ], @@ -282,11 +282,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78492", - "_id" : "internationalHighway/78492", + "_key" : "77232", + "_id" : "internationalHighway/77232", "_from" : "germanCity/Hamburg", "_to" : "frenchCity/Lyon", - "_rev" : "_e4zxN_K--F", + "_rev" : "_e9TS2hq---", "distance" : 1300 } ], @@ -299,11 +299,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78490", - "_id" : "internationalHighway/78490", + "_key" : "77230", + "_id" : "internationalHighway/77230", "_from" : "germanCity/Hamburg", "_to" : "frenchCity/Paris", - "_rev" : "_e4zxN_K--E", + "_rev" : "_e9TS2hm--_", "distance" : 900 } ], @@ -316,11 +316,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78480", - "_id" : "germanHighway/78480", + "_key" : "77220", + "_id" : "germanHighway/77220", "_from" : "germanCity/Berlin", "_to" : "germanCity/Hamburg", - "_rev" : "_e4zxN_K--_", + "_rev" : "_e9TS2ha---", "distance" : 400 } ], @@ -333,11 +333,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78482", - "_id" : "germanHighway/78482", + "_key" : "77222", + "_id" : "germanHighway/77222", "_from" : "germanCity/Hamburg", "_to" : "germanCity/Cologne", - "_rev" : "_e4zxN_K--A", + "_rev" : "_e9TS2ha--_", "distance" : 500 } ], diff --git a/3.11/generated/Examples/generalGraphModuleShortestPaths2.generated b/3.11/generated/Examples/generalGraphModuleShortestPaths2.generated index 9ecda6fc95..a676a721d8 100644 --- a/3.11/generated/Examples/generalGraphModuleShortestPaths2.generated +++ b/3.11/generated/Examples/generalGraphModuleShortestPaths2.generated @@ -10,11 +10,11 @@ arangosh> g._shortestPath([{_id: "edges" : [ { - "_key" : "78593", - "_id" : "internationalHighway/78593", + "_key" : "77333", + "_id" : "internationalHighway/77333", "_from" : "germanCity/Cologne", "_to" : "frenchCity/Lyon", - "_rev" : "_e4zxNA---D", + "_rev" : "_e9TS2lK--_", "distance" : 700 } ], diff --git a/3.11/generated/Examples/generalGraphVertexCollectionRemove.generated b/3.11/generated/Examples/generalGraphVertexCollectionRemove.generated index 079bef534c..cb0b32d512 100644 --- a/3.11/generated/Examples/generalGraphVertexCollectionRemove.generated +++ b/3.11/generated/Examples/generalGraphVertexCollectionRemove.generated @@ -4,7 +4,7 @@ arangosh> graph.male.save({name: "_id" : "male/kermit", "_key" : "kermit", - "_rev" : "_e4zxNAi--B" + "_rev" : "_e9TS2nm---" } arangosh> db._exists("male/kermit") true diff --git a/3.11/generated/Examples/generalGraphVertexCollectionReplace.generated b/3.11/generated/Examples/generalGraphVertexCollectionReplace.generated index 2114579777..904ffeb565 100644 --- a/3.11/generated/Examples/generalGraphVertexCollectionReplace.generated +++ b/3.11/generated/Examples/generalGraphVertexCollectionReplace.generated @@ -4,12 +4,12 @@ arangosh> graph.male.save({neym: "_id" : "male/john", "_key" : "john", - "_rev" : "_e4zxNB----" + "_rev" : "_e9TS2pe---" } arangosh> graph.male.replace("male/john", {name: "John"}); { "_id" : "male/john", "_key" : "john", - "_rev" : "_e4zxNB---_", - "_oldRev" : "_e4zxNB----" + "_rev" : "_e9TS2pi---", + "_oldRev" : "_e9TS2pe---" } diff --git a/3.11/generated/Examples/generalGraphVertexCollectionSave.generated b/3.11/generated/Examples/generalGraphVertexCollectionSave.generated index 32d83e71e2..fa3b603046 100644 --- a/3.11/generated/Examples/generalGraphVertexCollectionSave.generated +++ b/3.11/generated/Examples/generalGraphVertexCollectionSave.generated @@ -4,5 +4,5 @@ arangosh> graph.male.save({name: "_id" : "male/floyd", "_key" : "floyd", - "_rev" : "_e4zxNBS--D" + "_rev" : "_e9TS2rC---" } diff --git a/3.11/generated/Examples/generalGraphVertexCollectionUpdate.generated b/3.11/generated/Examples/generalGraphVertexCollectionUpdate.generated index 15dfce99c4..3c8f033461 100644 --- a/3.11/generated/Examples/generalGraphVertexCollectionUpdate.generated +++ b/3.11/generated/Examples/generalGraphVertexCollectionUpdate.generated @@ -4,12 +4,12 @@ arangosh> graph.female.save({name: "_id" : "female/linda", "_key" : "linda", - "_rev" : "_e4zxNBm--G" + "_rev" : "_e9TS2se---" } arangosh> graph.female.update("female/linda", {name: "Linda", _key: "linda"}); { "_id" : "female/linda", "_key" : "linda", - "_rev" : "_e4zxNBq---", - "_oldRev" : "_e4zxNBm--G" + "_rev" : "_e9TS2si---", + "_oldRev" : "_e9TS2se---" } diff --git a/3.11/generated/Examples/general_graph__addVertexCollection.generated b/3.11/generated/Examples/general_graph__addVertexCollection.generated index ab59d933c7..93be5c9c8d 100644 --- a/3.11/generated/Examples/general_graph__addVertexCollection.generated +++ b/3.11/generated/Examples/general_graph__addVertexCollection.generated @@ -2,3 +2,10 @@ arangosh> var graph_module = var ed1 = graph_module._relation("myEC1", ["myVC1"], ["myVC2"]); arangosh> var graph = graph_module._create("myGraph", [ed1]); arangosh> graph._addVertexCollection("myVC3", true); +arangosh> graph = graph_module._graph("myGraph"); +{[GeneralGraph] + "myEC1" : [ArangoCollection 77634, "myEC1" (type edge, status loaded)], + "myVC1" : [ArangoCollection 77631, "myVC1" (type document, status loaded)], + "myVC2" : [ArangoCollection 77628, "myVC2" (type document, status loaded)], + "myVC3" : [ArangoCollection 77647, "myVC3" (type document, status loaded)] +} diff --git a/3.11/generated/Examples/general_graph__deleteEdgeDefinitionNoDrop.generated b/3.11/generated/Examples/general_graph__deleteEdgeDefinitionNoDrop.generated index e577cce224..e0854516e7 100644 --- a/3.11/generated/Examples/general_graph__deleteEdgeDefinitionNoDrop.generated +++ b/3.11/generated/Examples/general_graph__deleteEdgeDefinitionNoDrop.generated @@ -4,4 +4,4 @@ arangosh> var ed2 = graph_module._relation( arangosh> var graph = graph_module._create("myGraph", [ed1, ed2]); arangosh> graph._deleteEdgeDefinition("myEC1"); arangosh> db._collection("myEC1"); -[ArangoCollection 78957, "myEC1" (type edge, status loaded)] +[ArangoCollection 77697, "myEC1" (type edge, status loaded)] diff --git a/3.11/generated/Examples/general_graph__extendEdgeDefinitions.generated b/3.11/generated/Examples/general_graph__extendEdgeDefinitions.generated index 0c874f1fed..e4142162cc 100644 --- a/3.11/generated/Examples/general_graph__extendEdgeDefinitions.generated +++ b/3.11/generated/Examples/general_graph__extendEdgeDefinitions.generated @@ -3,3 +3,11 @@ arangosh> var ed1 = graph_module._relation( arangosh> var ed2 = graph_module._relation("myEC2", ["myVC1"], ["myVC3"]); arangosh> var graph = graph_module._create("myGraph", [ed1]); arangosh> graph._extendEdgeDefinitions(ed2); +arangosh> graph = graph_module._graph("myGraph"); +{[GeneralGraph] + "myEC1" : [ArangoCollection 77873, "myEC1" (type edge, status loaded)], + "myVC1" : [ArangoCollection 77870, "myVC1" (type document, status loaded)], + "myVC2" : [ArangoCollection 77867, "myVC2" (type document, status loaded)], + "myEC2" : [ArangoCollection 77891, "myEC2" (type edge, status loaded)], + "myVC3" : [ArangoCollection 77888, "myVC3" (type document, status loaded)] +} diff --git a/3.11/generated/Examples/general_graph_create_graph_example1.generated b/3.11/generated/Examples/general_graph_create_graph_example1.generated index 011f90bbd8..9f6582beff 100644 --- a/3.11/generated/Examples/general_graph_create_graph_example1.generated +++ b/3.11/generated/Examples/general_graph_create_graph_example1.generated @@ -6,10 +6,10 @@ arangosh> graph_module._extendEdgeDefinitions( ........> "has_bought", ["Customer", "Company"], ["Groceries", "Electronics"])); arangosh> graph_module._create("myStore", edgeDefinitions); {[GeneralGraph] - "friend_of" : [ArangoCollection 79346, "friend_of" (type edge, status loaded)], - "Customer" : [ArangoCollection 79335, "Customer" (type document, status loaded)], - "has_bought" : [ArangoCollection 79341, "has_bought" (type edge, status loaded)], - "Company" : [ArangoCollection 79338, "Company" (type document, status loaded)], - "Electronics" : [ArangoCollection 79332, "Electronics" (type document, status loaded)], - "Groceries" : [ArangoCollection 79329, "Groceries" (type document, status loaded)] + "friend_of" : [ArangoCollection 78083, "friend_of" (type edge, status loaded)], + "Customer" : [ArangoCollection 78072, "Customer" (type document, status loaded)], + "has_bought" : [ArangoCollection 78078, "has_bought" (type edge, status loaded)], + "Company" : [ArangoCollection 78075, "Company" (type document, status loaded)], + "Electronics" : [ArangoCollection 78069, "Electronics" (type document, status loaded)], + "Groceries" : [ArangoCollection 78066, "Groceries" (type document, status loaded)] } diff --git a/3.11/generated/Examples/general_graph_create_graph_example2.generated b/3.11/generated/Examples/general_graph_create_graph_example2.generated index c398b45be3..26c0987f33 100644 --- a/3.11/generated/Examples/general_graph_create_graph_example2.generated +++ b/3.11/generated/Examples/general_graph_create_graph_example2.generated @@ -4,10 +4,10 @@ arangosh> var edgeDefinitions = graph_modu ........> "has_bought", ["Customer", "Company"], ["Groceries", "Electronics"])); arangosh> graph_module._create("myStore", edgeDefinitions); {[GeneralGraph] - "friend_of" : [ArangoCollection 79389, "friend_of" (type edge, status loaded)], - "Customer" : [ArangoCollection 79378, "Customer" (type document, status loaded)], - "has_bought" : [ArangoCollection 79384, "has_bought" (type edge, status loaded)], - "Company" : [ArangoCollection 79381, "Company" (type document, status loaded)], - "Electronics" : [ArangoCollection 79375, "Electronics" (type document, status loaded)], - "Groceries" : [ArangoCollection 79372, "Groceries" (type document, status loaded)] + "friend_of" : [ArangoCollection 78126, "friend_of" (type edge, status loaded)], + "Customer" : [ArangoCollection 78115, "Customer" (type document, status loaded)], + "has_bought" : [ArangoCollection 78121, "has_bought" (type edge, status loaded)], + "Company" : [ArangoCollection 78118, "Company" (type document, status loaded)], + "Electronics" : [ArangoCollection 78112, "Electronics" (type document, status loaded)], + "Groceries" : [ArangoCollection 78109, "Groceries" (type document, status loaded)] } diff --git a/3.11/generated/Examples/geoIndexCreateForArrayAttribute1.generated b/3.11/generated/Examples/geoIndexCreateForArrayAttribute1.generated index 748d1c3fbc..0a85cdf79a 100644 --- a/3.11/generated/Examples/geoIndexCreateForArrayAttribute1.generated +++ b/3.11/generated/Examples/geoIndexCreateForArrayAttribute1.generated @@ -5,11 +5,11 @@ arangosh> db.geo.ensureIndex({ type: "loc" ], "geoJson" : false, - "id" : "geo/79414", + "id" : "geo/78151", "isNewlyCreated" : true, "legacyPolygons" : false, "maxNumCoverCells" : 8, - "name" : "idx_1745944422936215552", + "name" : "idx_1747208974925561856", "sparse" : true, "type" : "geo", "unique" : false, diff --git a/3.11/generated/Examples/geoIndexCreateForArrayAttribute2.generated b/3.11/generated/Examples/geoIndexCreateForArrayAttribute2.generated index 33139a4d80..18cc0043fb 100644 --- a/3.11/generated/Examples/geoIndexCreateForArrayAttribute2.generated +++ b/3.11/generated/Examples/geoIndexCreateForArrayAttribute2.generated @@ -6,11 +6,11 @@ arangosh> db.geo2.ensureIndex({ type: "location.longitude" ], "geoJson" : false, - "id" : "geo2/79425", + "id" : "geo2/78162", "isNewlyCreated" : true, "legacyPolygons" : false, "maxNumCoverCells" : 8, - "name" : "idx_1745944422938312704", + "name" : "idx_1747208974934999040", "sparse" : true, "type" : "geo", "unique" : false, diff --git a/3.11/generated/Examples/geoIndexFilterOptimization.generated b/3.11/generated/Examples/geoIndexFilterOptimization.generated index 789a9290ef..08a23a605b 100644 --- a/3.11/generated/Examples/geoIndexFilterOptimization.generated +++ b/3.11/generated/Examples/geoIndexFilterOptimization.generated @@ -6,11 +6,11 @@ arangosh> db.geoFilter.ensureIndex({ type: "longitude" ], "geoJson" : false, - "id" : "geoFilter/79436", + "id" : "geoFilter/78173", "isNewlyCreated" : true, "legacyPolygons" : false, "maxNumCoverCells" : 8, - "name" : "idx_1745944422940409856", + "name" : "idx_1747208974944436224", "sparse" : true, "type" : "geo", "unique" : false, @@ -35,7 +35,7 @@ Execution plan: Indexes used: By Name Type Collection Unique Sparse Cache Selectivity Fields Stored values Ranges - 6 idx_1745944422940409856 geo geoFilter false true false n/a [ `latitude`, `longitude` ] [ ] (GEO_DISTANCE([ 0, 0 ], [ doc.`longitude`, doc.`latitude` ]) < 2000) + 6 idx_1747208974944436224 geo geoFilter false true false n/a [ `latitude`, `longitude` ] [ ] (GEO_DISTANCE([ 0, 0 ], [ doc.`longitude`, doc.`latitude` ]) < 2000) Optimization rules applied: Id RuleName @@ -48,9 +48,9 @@ Optimization rules applied: arangosh> db._query(query); [ { - "_key" : "80142", - "_id" : "geoFilter/80142", - "_rev" : "_e4zxNH---G", + "_key" : "78879", + "_id" : "geoFilter/78879", + "_rev" : "_e9TS3Dy--_", "name" : "Name/0/0", "latitude" : 0, "longitude" : 0 diff --git a/3.11/generated/Examples/geoIndexSortOptimization.generated b/3.11/generated/Examples/geoIndexSortOptimization.generated index b61f53618b..4e846d599b 100644 --- a/3.11/generated/Examples/geoIndexSortOptimization.generated +++ b/3.11/generated/Examples/geoIndexSortOptimization.generated @@ -6,11 +6,11 @@ arangosh> db.geoSort.ensureIndex({ type: "longitude" ], "geoJson" : false, - "id" : "geoSort/80857", + "id" : "geoSort/79594", "isNewlyCreated" : true, "legacyPolygons" : false, "maxNumCoverCells" : 8, - "name" : "idx_1745944423014858753", + "name" : "idx_1747208975292563456", "sparse" : true, "type" : "geo", "unique" : false, @@ -36,7 +36,7 @@ Execution plan: Indexes used: By Name Type Collection Unique Sparse Cache Selectivity Fields Stored values Ranges - 7 idx_1745944423014858753 geo geoSort false true false n/a [ `latitude`, `longitude` ] [ ] (GEO_DISTANCE([ 0, 0 ], [ doc.`longitude`, doc.`latitude` ]) < "unlimited") + 7 idx_1747208975292563456 geo geoSort false true false n/a [ `latitude`, `longitude` ] [ ] (GEO_DISTANCE([ 0, 0 ], [ doc.`longitude`, doc.`latitude` ]) < "unlimited") Optimization rules applied: Id RuleName @@ -49,41 +49,41 @@ Optimization rules applied: arangosh> db._query(query); [ { - "_key" : "81563", - "_id" : "geoSort/81563", - "_rev" : "_e4zxNLa--H", + "_key" : "80300", + "_id" : "geoSort/80300", + "_rev" : "_e9TS3Yq---", "name" : "Name/0/0", "latitude" : 0, "longitude" : 0 }, { - "_key" : "81637", - "_id" : "geoSort/81637", - "_rev" : "_e4zxNLq--A", + "_key" : "80374", + "_id" : "geoSort/80374", + "_rev" : "_e9TS3Zi--_", "name" : "Name/10/0", "latitude" : 10, "longitude" : 0 }, { - "_key" : "81565", - "_id" : "geoSort/81565", - "_rev" : "_e4zxNLa--I", + "_key" : "80302", + "_id" : "geoSort/80302", + "_rev" : "_e9TS3Yq--_", "name" : "Name/0/10", "latitude" : 0, "longitude" : 10 }, { - "_key" : "81489", - "_id" : "geoSort/81489", - "_rev" : "_e4zxNLO--E", + "_key" : "80226", + "_id" : "geoSort/80226", + "_rev" : "_e9TS3Xu--_", "name" : "Name/-10/0", "latitude" : -10, "longitude" : 0 }, { - "_key" : "81561", - "_id" : "geoSort/81561", - "_rev" : "_e4zxNLa--G", + "_key" : "80298", + "_id" : "geoSort/80298", + "_rev" : "_e9TS3Ym--_", "name" : "Name/0/-10", "latitude" : 0, "longitude" : -10 diff --git a/3.11/generated/Examples/graph_create_cities_sample.generated b/3.11/generated/Examples/graph_create_cities_sample.generated index bcb3b20a90..9971a43791 100644 --- a/3.11/generated/Examples/graph_create_cities_sample.generated +++ b/3.11/generated/Examples/graph_create_cities_sample.generated @@ -5,7 +5,7 @@ arangosh> db.frenchCity.toArray(); { "_key" : "Lyon", "_id" : "frenchCity/Lyon", - "_rev" : "_e4zxNO---B", + "_rev" : "_e9TS3kG---", "population" : 80000, "isCapital" : false, "geometry" : { @@ -19,7 +19,7 @@ arangosh> db.frenchCity.toArray(); { "_key" : "Paris", "_id" : "frenchCity/Paris", - "_rev" : "_e4zxNO---C", + "_rev" : "_e9TS3kK---", "population" : 4000000, "isCapital" : true, "geometry" : { @@ -36,7 +36,7 @@ arangosh> db.germanCity.toArray(); { "_key" : "Berlin", "_id" : "germanCity/Berlin", - "_rev" : "_e4zxNO----", + "_rev" : "_e9TS3j6---", "population" : 3000000, "isCapital" : true, "geometry" : { @@ -50,7 +50,7 @@ arangosh> db.germanCity.toArray(); { "_key" : "Cologne", "_id" : "germanCity/Cologne", - "_rev" : "_e4zxNO---_", + "_rev" : "_e9TS3k----", "population" : 1000000, "isCapital" : false, "geometry" : { @@ -64,7 +64,7 @@ arangosh> db.germanCity.toArray(); { "_key" : "Hamburg", "_id" : "germanCity/Hamburg", - "_rev" : "_e4zxNO---A", + "_rev" : "_e9TS3kC---", "population" : 1000000, "isCapital" : false, "geometry" : { @@ -79,89 +79,89 @@ arangosh> db.germanCity.toArray(); arangosh> db.germanHighway.toArray(); [ { - "_key" : "82318", - "_id" : "germanHighway/82318", + "_key" : "81055", + "_id" : "germanHighway/81055", "_from" : "germanCity/Berlin", "_to" : "germanCity/Cologne", - "_rev" : "_e4zxNOC--_", + "_rev" : "_e9TS3ke---", "distance" : 850 }, { - "_key" : "82320", - "_id" : "germanHighway/82320", + "_key" : "81057", + "_id" : "germanHighway/81057", "_from" : "germanCity/Berlin", "_to" : "germanCity/Hamburg", - "_rev" : "_e4zxNOC--A", + "_rev" : "_e9TS3ki---", "distance" : 400 }, { - "_key" : "82322", - "_id" : "germanHighway/82322", + "_key" : "81059", + "_id" : "germanHighway/81059", "_from" : "germanCity/Hamburg", "_to" : "germanCity/Cologne", - "_rev" : "_e4zxNOC--B", + "_rev" : "_e9TS3km---", "distance" : 500 } ] arangosh> db.frenchHighway.toArray(); [ { - "_key" : "82324", - "_id" : "frenchHighway/82324", + "_key" : "81061", + "_id" : "frenchHighway/81061", "_from" : "frenchCity/Paris", "_to" : "frenchCity/Lyon", - "_rev" : "_e4zxNOC--C", + "_rev" : "_e9TS3kq---", "distance" : 550 } ] arangosh> db.internationalHighway.toArray(); [ { - "_key" : "82326", - "_id" : "internationalHighway/82326", + "_key" : "81063", + "_id" : "internationalHighway/81063", "_from" : "germanCity/Berlin", "_to" : "frenchCity/Lyon", - "_rev" : "_e4zxNOC--D", + "_rev" : "_e9TS3kq--_", "distance" : 1100 }, { - "_key" : "82328", - "_id" : "internationalHighway/82328", + "_key" : "81065", + "_id" : "internationalHighway/81065", "_from" : "germanCity/Berlin", "_to" : "frenchCity/Paris", - "_rev" : "_e4zxNOG---", + "_rev" : "_e9TS3ku---", "distance" : 1200 }, { - "_key" : "82330", - "_id" : "internationalHighway/82330", + "_key" : "81067", + "_id" : "internationalHighway/81067", "_from" : "germanCity/Hamburg", "_to" : "frenchCity/Paris", - "_rev" : "_e4zxNOG--_", + "_rev" : "_e9TS3ky---", "distance" : 900 }, { - "_key" : "82332", - "_id" : "internationalHighway/82332", + "_key" : "81069", + "_id" : "internationalHighway/81069", "_from" : "germanCity/Hamburg", "_to" : "frenchCity/Lyon", - "_rev" : "_e4zxNOG--A", + "_rev" : "_e9TS3k2---", "distance" : 1300 }, { - "_key" : "82334", - "_id" : "internationalHighway/82334", + "_key" : "81071", + "_id" : "internationalHighway/81071", "_from" : "germanCity/Cologne", "_to" : "frenchCity/Lyon", - "_rev" : "_e4zxNOG--B", + "_rev" : "_e9TS3k6---", "distance" : 700 }, { - "_key" : "82336", - "_id" : "internationalHighway/82336", + "_key" : "81073", + "_id" : "internationalHighway/81073", "_from" : "germanCity/Cologne", "_to" : "frenchCity/Paris", - "_rev" : "_e4zxNOG--C", + "_rev" : "_e9TS3k6--_", "distance" : 550 } ] diff --git a/3.11/generated/Examples/graph_create_connectedcomponentsgraph_sample.generated b/3.11/generated/Examples/graph_create_connectedcomponentsgraph_sample.generated index 56f6842a00..728d15e351 100644 --- a/3.11/generated/Examples/graph_create_connectedcomponentsgraph_sample.generated +++ b/3.11/generated/Examples/graph_create_connectedcomponentsgraph_sample.generated @@ -5,437 +5,437 @@ arangosh> db.components.toArray(); { "_key" : "A1", "_id" : "components/A1", - "_rev" : "_e4zxNOm--A" + "_rev" : "_e9TS3nO---" }, { "_key" : "A2", "_id" : "components/A2", - "_rev" : "_e4zxNOq---" + "_rev" : "_e9TS3nS---" }, { "_key" : "A3", "_id" : "components/A3", - "_rev" : "_e4zxNOq--_" + "_rev" : "_e9TS3nW---" }, { "_key" : "A4", "_id" : "components/A4", - "_rev" : "_e4zxNOq--A" + "_rev" : "_e9TS3na---" }, { "_key" : "B1", "_id" : "components/B1", - "_rev" : "_e4zxNOq--B" + "_rev" : "_e9TS3na--_" }, { "_key" : "B3", "_id" : "components/B3", - "_rev" : "_e4zxNOq--C" + "_rev" : "_e9TS3ne---" }, { "_key" : "B2", "_id" : "components/B2", - "_rev" : "_e4zxNOq--D" + "_rev" : "_e9TS3ni---" }, { "_key" : "B4", "_id" : "components/B4", - "_rev" : "_e4zxNOq--E" + "_rev" : "_e9TS3nm---" }, { "_key" : "B6", "_id" : "components/B6", - "_rev" : "_e4zxNOq--F" + "_rev" : "_e9TS3nm--_" }, { "_key" : "B5", "_id" : "components/B5", - "_rev" : "_e4zxNOq--G" + "_rev" : "_e9TS3nq---" }, { "_key" : "B7", "_id" : "components/B7", - "_rev" : "_e4zxNOq--H" + "_rev" : "_e9TS3nu---" }, { "_key" : "B8", "_id" : "components/B8", - "_rev" : "_e4zxNOq--I" + "_rev" : "_e9TS3nu--_" }, { "_key" : "B9", "_id" : "components/B9", - "_rev" : "_e4zxNOu---" + "_rev" : "_e9TS3ny---" }, { "_key" : "B10", "_id" : "components/B10", - "_rev" : "_e4zxNOu--_" + "_rev" : "_e9TS3n2---" }, { "_key" : "B19", "_id" : "components/B19", - "_rev" : "_e4zxNOu--A" + "_rev" : "_e9TS3n2--_" }, { "_key" : "B11", "_id" : "components/B11", - "_rev" : "_e4zxNOu--B" + "_rev" : "_e9TS3n6---" }, { "_key" : "B12", "_id" : "components/B12", - "_rev" : "_e4zxNOu--C" + "_rev" : "_e9TS3n6--_" }, { "_key" : "B13", "_id" : "components/B13", - "_rev" : "_e4zxNOu--D" + "_rev" : "_e9TS3o----" }, { "_key" : "B20", "_id" : "components/B20", - "_rev" : "_e4zxNOu--E" + "_rev" : "_e9TS3o---_" }, { "_key" : "B14", "_id" : "components/B14", - "_rev" : "_e4zxNOu--F" + "_rev" : "_e9TS3oC---" }, { "_key" : "B15", "_id" : "components/B15", - "_rev" : "_e4zxNOu--G" + "_rev" : "_e9TS3oG---" }, { "_key" : "B16", "_id" : "components/B16", - "_rev" : "_e4zxNOu--H" + "_rev" : "_e9TS3oG--_" }, { "_key" : "B17", "_id" : "components/B17", - "_rev" : "_e4zxNOu--I" + "_rev" : "_e9TS3oK---" }, { "_key" : "B18", "_id" : "components/B18", - "_rev" : "_e4zxNOu--J" + "_rev" : "_e9TS3oK--_" }, { "_key" : "B21", "_id" : "components/B21", - "_rev" : "_e4zxNOy---" + "_rev" : "_e9TS3oO---" }, { "_key" : "B22", "_id" : "components/B22", - "_rev" : "_e4zxNOy--_" + "_rev" : "_e9TS3oO--_" }, { "_key" : "C1", "_id" : "components/C1", - "_rev" : "_e4zxNOy--A" + "_rev" : "_e9TS3oS---" }, { "_key" : "C2", "_id" : "components/C2", - "_rev" : "_e4zxNOy--B" + "_rev" : "_e9TS3oS--_" }, { "_key" : "C3", "_id" : "components/C3", - "_rev" : "_e4zxNOy--C" + "_rev" : "_e9TS3oS--A" }, { "_key" : "C4", "_id" : "components/C4", - "_rev" : "_e4zxNOy--D" + "_rev" : "_e9TS3oW---" }, { "_key" : "C5", "_id" : "components/C5", - "_rev" : "_e4zxNOy--E" + "_rev" : "_e9TS3oW--_" }, { "_key" : "C7", "_id" : "components/C7", - "_rev" : "_e4zxNOy--F" + "_rev" : "_e9TS3oa---" }, { "_key" : "C6", "_id" : "components/C6", - "_rev" : "_e4zxNOy--G" + "_rev" : "_e9TS3oa--_" }, { "_key" : "C8", "_id" : "components/C8", - "_rev" : "_e4zxNOy--H" + "_rev" : "_e9TS3oe---" }, { "_key" : "C9", "_id" : "components/C9", - "_rev" : "_e4zxNOy--I" + "_rev" : "_e9TS3oe--_" }, { "_key" : "C10", "_id" : "components/C10", - "_rev" : "_e4zxNO2---" + "_rev" : "_e9TS3oe--A" } ] arangosh> db.connections.toArray(); [ { - "_key" : "82439", - "_id" : "connections/82439", + "_key" : "81176", + "_id" : "connections/81176", "_from" : "components/A1", "_to" : "components/A2", - "_rev" : "_e4zxNO2--_" + "_rev" : "_e9TS3oi---" }, { - "_key" : "82441", - "_id" : "connections/82441", + "_key" : "81178", + "_id" : "connections/81178", "_from" : "components/A2", "_to" : "components/A3", - "_rev" : "_e4zxNO2--A" + "_rev" : "_e9TS3oi--_" }, { - "_key" : "82443", - "_id" : "connections/82443", + "_key" : "81180", + "_id" : "connections/81180", "_from" : "components/A3", "_to" : "components/A4", - "_rev" : "_e4zxNO2--B" + "_rev" : "_e9TS3om---" }, { - "_key" : "82445", - "_id" : "connections/82445", + "_key" : "81182", + "_id" : "connections/81182", "_from" : "components/A4", "_to" : "components/A1", - "_rev" : "_e4zxNO2--C" + "_rev" : "_e9TS3om--_" }, { - "_key" : "82447", - "_id" : "connections/82447", + "_key" : "81184", + "_id" : "connections/81184", "_from" : "components/B1", "_to" : "components/B3", - "_rev" : "_e4zxNO2--D" + "_rev" : "_e9TS3oq---" }, { - "_key" : "82449", - "_id" : "connections/82449", + "_key" : "81186", + "_id" : "connections/81186", "_from" : "components/B2", "_to" : "components/B4", - "_rev" : "_e4zxNO2--E" + "_rev" : "_e9TS3oq--_" }, { - "_key" : "82451", - "_id" : "connections/82451", + "_key" : "81188", + "_id" : "connections/81188", "_from" : "components/B3", "_to" : "components/B6", - "_rev" : "_e4zxNO2--F" + "_rev" : "_e9TS3ou---" }, { - "_key" : "82453", - "_id" : "connections/82453", + "_key" : "81190", + "_id" : "connections/81190", "_from" : "components/B4", "_to" : "components/B3", - "_rev" : "_e4zxNO2--G" + "_rev" : "_e9TS3ou--_" }, { - "_key" : "82455", - "_id" : "connections/82455", + "_key" : "81192", + "_id" : "connections/81192", "_from" : "components/B4", "_to" : "components/B5", - "_rev" : "_e4zxNO6---" + "_rev" : "_e9TS3oy---" }, { - "_key" : "82457", - "_id" : "connections/82457", + "_key" : "81194", + "_id" : "connections/81194", "_from" : "components/B6", "_to" : "components/B7", - "_rev" : "_e4zxNO6--_" + "_rev" : "_e9TS3oy--_" }, { - "_key" : "82459", - "_id" : "connections/82459", + "_key" : "81196", + "_id" : "connections/81196", "_from" : "components/B7", "_to" : "components/B8", - "_rev" : "_e4zxNO6--A" + "_rev" : "_e9TS3o2---" }, { - "_key" : "82461", - "_id" : "connections/82461", + "_key" : "81198", + "_id" : "connections/81198", "_from" : "components/B7", "_to" : "components/B9", - "_rev" : "_e4zxNO6--B" + "_rev" : "_e9TS3o2--_" }, { - "_key" : "82463", - "_id" : "connections/82463", + "_key" : "81200", + "_id" : "connections/81200", "_from" : "components/B7", "_to" : "components/B10", - "_rev" : "_e4zxNO6--C" + "_rev" : "_e9TS3o6---" }, { - "_key" : "82465", - "_id" : "connections/82465", + "_key" : "81202", + "_id" : "connections/81202", "_from" : "components/B7", "_to" : "components/B19", - "_rev" : "_e4zxNO6--D" + "_rev" : "_e9TS3o6--_" }, { - "_key" : "82467", - "_id" : "connections/82467", + "_key" : "81204", + "_id" : "connections/81204", "_from" : "components/B11", "_to" : "components/B10", - "_rev" : "_e4zxNO6--E" + "_rev" : "_e9TS3p----" }, { - "_key" : "82469", - "_id" : "connections/82469", + "_key" : "81206", + "_id" : "connections/81206", "_from" : "components/B12", "_to" : "components/B11", - "_rev" : "_e4zxNO6--F" + "_rev" : "_e9TS3p---_" }, { - "_key" : "82471", - "_id" : "connections/82471", + "_key" : "81208", + "_id" : "connections/81208", "_from" : "components/B13", "_to" : "components/B12", - "_rev" : "_e4zxNO6--G" + "_rev" : "_e9TS3pC---" }, { - "_key" : "82473", - "_id" : "connections/82473", + "_key" : "81210", + "_id" : "connections/81210", "_from" : "components/B13", "_to" : "components/B20", - "_rev" : "_e4zxNO6--H" + "_rev" : "_e9TS3pC--_" }, { - "_key" : "82475", - "_id" : "connections/82475", + "_key" : "81212", + "_id" : "connections/81212", "_from" : "components/B14", "_to" : "components/B13", - "_rev" : "_e4zxNP----" + "_rev" : "_e9TS3pG---" }, { - "_key" : "82477", - "_id" : "connections/82477", + "_key" : "81214", + "_id" : "connections/81214", "_from" : "components/B15", "_to" : "components/B14", - "_rev" : "_e4zxNP---_" + "_rev" : "_e9TS3pG--_" }, { - "_key" : "82479", - "_id" : "connections/82479", + "_key" : "81216", + "_id" : "connections/81216", "_from" : "components/B15", "_to" : "components/B16", - "_rev" : "_e4zxNP---A" + "_rev" : "_e9TS3pG--A" }, { - "_key" : "82481", - "_id" : "connections/82481", + "_key" : "81218", + "_id" : "connections/81218", "_from" : "components/B17", "_to" : "components/B15", - "_rev" : "_e4zxNP---B" + "_rev" : "_e9TS3pK---" }, { - "_key" : "82483", - "_id" : "connections/82483", + "_key" : "81220", + "_id" : "connections/81220", "_from" : "components/B17", "_to" : "components/B18", - "_rev" : "_e4zxNP---C" + "_rev" : "_e9TS3pK--_" }, { - "_key" : "82485", - "_id" : "connections/82485", + "_key" : "81222", + "_id" : "connections/81222", "_from" : "components/B19", "_to" : "components/B17", - "_rev" : "_e4zxNP---D" + "_rev" : "_e9TS3pO---" }, { - "_key" : "82487", - "_id" : "connections/82487", + "_key" : "81224", + "_id" : "connections/81224", "_from" : "components/B20", "_to" : "components/B21", - "_rev" : "_e4zxNP---E" + "_rev" : "_e9TS3pO--_" }, { - "_key" : "82489", - "_id" : "connections/82489", + "_key" : "81226", + "_id" : "connections/81226", "_from" : "components/B20", "_to" : "components/B22", - "_rev" : "_e4zxNP---F" + "_rev" : "_e9TS3pS---" }, { - "_key" : "82491", - "_id" : "connections/82491", + "_key" : "81228", + "_id" : "connections/81228", "_from" : "components/C1", "_to" : "components/C2", - "_rev" : "_e4zxNP---G" + "_rev" : "_e9TS3pS--_" }, { - "_key" : "82493", - "_id" : "connections/82493", + "_key" : "81230", + "_id" : "connections/81230", "_from" : "components/C2", "_to" : "components/C3", - "_rev" : "_e4zxNP---H" + "_rev" : "_e9TS3pS--A" }, { - "_key" : "82495", - "_id" : "connections/82495", + "_key" : "81232", + "_id" : "connections/81232", "_from" : "components/C3", "_to" : "components/C4", - "_rev" : "_e4zxNPC---" + "_rev" : "_e9TS3pW---" }, { - "_key" : "82497", - "_id" : "connections/82497", + "_key" : "81234", + "_id" : "connections/81234", "_from" : "components/C4", "_to" : "components/C5", - "_rev" : "_e4zxNPC--_" + "_rev" : "_e9TS3pW--_" }, { - "_key" : "82499", - "_id" : "connections/82499", + "_key" : "81236", + "_id" : "connections/81236", "_from" : "components/C4", "_to" : "components/C7", - "_rev" : "_e4zxNPC--A" + "_rev" : "_e9TS3pa---" }, { - "_key" : "82501", - "_id" : "connections/82501", + "_key" : "81238", + "_id" : "connections/81238", "_from" : "components/C5", "_to" : "components/C6", - "_rev" : "_e4zxNPC--B" + "_rev" : "_e9TS3pa--_" }, { - "_key" : "82503", - "_id" : "connections/82503", + "_key" : "81240", + "_id" : "connections/81240", "_from" : "components/C5", "_to" : "components/C7", - "_rev" : "_e4zxNPC--C" + "_rev" : "_e9TS3pe---" }, { - "_key" : "82505", - "_id" : "connections/82505", + "_key" : "81242", + "_id" : "connections/81242", "_from" : "components/C7", "_to" : "components/C8", - "_rev" : "_e4zxNPC--D" + "_rev" : "_e9TS3pe--_" }, { - "_key" : "82507", - "_id" : "connections/82507", + "_key" : "81244", + "_id" : "connections/81244", "_from" : "components/C8", "_to" : "components/C9", - "_rev" : "_e4zxNPC--E" + "_rev" : "_e9TS3pe--A" }, { - "_key" : "82509", - "_id" : "connections/82509", + "_key" : "81246", + "_id" : "connections/81246", "_from" : "components/C8", "_to" : "components/C10", - "_rev" : "_e4zxNPC--F" + "_rev" : "_e9TS3pi---" } ] arangosh> examples.dropGraph("connectedComponentsGraph"); diff --git a/3.11/generated/Examples/graph_create_knows_sample.generated b/3.11/generated/Examples/graph_create_knows_sample.generated index 9c1dd46485..ca5d729f31 100644 --- a/3.11/generated/Examples/graph_create_knows_sample.generated +++ b/3.11/generated/Examples/graph_create_knows_sample.generated @@ -5,74 +5,74 @@ arangosh> db.persons.toArray() { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_e4zxNPq---", + "_rev" : "_e9TS3sC---", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_e4zxNPq--_", + "_rev" : "_e9TS3sG---", "name" : "Bob" }, { "_key" : "charlie", "_id" : "persons/charlie", - "_rev" : "_e4zxNPq--A", + "_rev" : "_e9TS3sK---", "name" : "Charlie" }, { "_key" : "dave", "_id" : "persons/dave", - "_rev" : "_e4zxNPq--B", + "_rev" : "_e9TS3sK--_", "name" : "Dave" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_e4zxNPq--C", + "_rev" : "_e9TS3sO---", "name" : "Eve" } ] arangosh> db.knows.toArray(); [ { - "_key" : "82557", - "_id" : "knows/82557", + "_key" : "81294", + "_id" : "knows/81294", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_e4zxNPu---", + "_rev" : "_e9TS3sS---", "vertex" : "alice" }, { - "_key" : "82559", - "_id" : "knows/82559", + "_key" : "81296", + "_id" : "knows/81296", "_from" : "persons/bob", "_to" : "persons/charlie", - "_rev" : "_e4zxNPu--_", + "_rev" : "_e9TS3sW---", "vertex" : "bob" }, { - "_key" : "82561", - "_id" : "knows/82561", + "_key" : "81298", + "_id" : "knows/81298", "_from" : "persons/bob", "_to" : "persons/dave", - "_rev" : "_e4zxNPu--A", + "_rev" : "_e9TS3sW--_", "vertex" : "bob" }, { - "_key" : "82563", - "_id" : "knows/82563", + "_key" : "81300", + "_id" : "knows/81300", "_from" : "persons/eve", "_to" : "persons/alice", - "_rev" : "_e4zxNPu--B", + "_rev" : "_e9TS3sa---", "vertex" : "eve" }, { - "_key" : "82565", - "_id" : "knows/82565", + "_key" : "81302", + "_id" : "knows/81302", "_from" : "persons/eve", "_to" : "persons/bob", - "_rev" : "_e4zxNPu--C", + "_rev" : "_e9TS3se---", "vertex" : "eve" } ] diff --git a/3.11/generated/Examples/graph_create_kshortestpaths_sample.generated b/3.11/generated/Examples/graph_create_kshortestpaths_sample.generated index 0c9fcb17ae..4b2ec2512c 100644 --- a/3.11/generated/Examples/graph_create_kshortestpaths_sample.generated +++ b/3.11/generated/Examples/graph_create_kshortestpaths_sample.generated @@ -5,400 +5,400 @@ arangosh> db.places.toArray(); { "_key" : "Inverness", "_id" : "places/Inverness", - "_rev" : "_e4zxNQC---", + "_rev" : "_e9TS3u----", "label" : "Inverness" }, { "_key" : "Aberdeen", "_id" : "places/Aberdeen", - "_rev" : "_e4zxNQC--_", + "_rev" : "_e9TS3u---_", "label" : "Aberdeen" }, { "_key" : "Leuchars", "_id" : "places/Leuchars", - "_rev" : "_e4zxNQC--A", + "_rev" : "_e9TS3uC---", "label" : "Leuchars" }, { "_key" : "StAndrews", "_id" : "places/StAndrews", - "_rev" : "_e4zxNQC--B", + "_rev" : "_e9TS3uG---", "label" : "StAndrews" }, { "_key" : "Edinburgh", "_id" : "places/Edinburgh", - "_rev" : "_e4zxNQC--C", + "_rev" : "_e9TS3uG--_", "label" : "Edinburgh" }, { "_key" : "Glasgow", "_id" : "places/Glasgow", - "_rev" : "_e4zxNQC--D", + "_rev" : "_e9TS3uK---", "label" : "Glasgow" }, { "_key" : "York", "_id" : "places/York", - "_rev" : "_e4zxNQC--E", + "_rev" : "_e9TS3uK--_", "label" : "York" }, { "_key" : "Carlisle", "_id" : "places/Carlisle", - "_rev" : "_e4zxNQC--F", + "_rev" : "_e9TS3uO---", "label" : "Carlisle" }, { "_key" : "Birmingham", "_id" : "places/Birmingham", - "_rev" : "_e4zxNQC--G", + "_rev" : "_e9TS3uS---", "label" : "Birmingham" }, { "_key" : "London", "_id" : "places/London", - "_rev" : "_e4zxNQC--H", + "_rev" : "_e9TS3uS--_", "label" : "London" }, { "_key" : "Brussels", "_id" : "places/Brussels", - "_rev" : "_e4zxNQG---", + "_rev" : "_e9TS3uW---", "label" : "Brussels" }, { "_key" : "Cologne", "_id" : "places/Cologne", - "_rev" : "_e4zxNQG--_", + "_rev" : "_e9TS3uW--_", "label" : "Cologne" }, { "_key" : "Toronto", "_id" : "places/Toronto", - "_rev" : "_e4zxNQG--A", + "_rev" : "_e9TS3ua---", "label" : "Toronto" }, { "_key" : "Winnipeg", "_id" : "places/Winnipeg", - "_rev" : "_e4zxNQG--B", + "_rev" : "_e9TS3ua--_", "label" : "Winnipeg" }, { "_key" : "Saskatoon", "_id" : "places/Saskatoon", - "_rev" : "_e4zxNQG--C", + "_rev" : "_e9TS3ue---", "label" : "Saskatoon" }, { "_key" : "Edmonton", "_id" : "places/Edmonton", - "_rev" : "_e4zxNQG--D", + "_rev" : "_e9TS3ui---", "label" : "Edmonton" }, { "_key" : "Jasper", "_id" : "places/Jasper", - "_rev" : "_e4zxNQG--E", + "_rev" : "_e9TS3ui--_", "label" : "Jasper" }, { "_key" : "Vancouver", "_id" : "places/Vancouver", - "_rev" : "_e4zxNQG--F", + "_rev" : "_e9TS3um---", "label" : "Vancouver" } ] arangosh> db.connections.toArray(); [ { - "_key" : "82626", - "_id" : "connections/82626", + "_key" : "81363", + "_id" : "connections/81363", "_from" : "places/Inverness", "_to" : "places/Aberdeen", - "_rev" : "_e4zxNQG--G", + "_rev" : "_e9TS3um--_", "travelTime" : 3 }, { - "_key" : "82628", - "_id" : "connections/82628", + "_key" : "81365", + "_id" : "connections/81365", "_from" : "places/Aberdeen", "_to" : "places/Inverness", - "_rev" : "_e4zxNQG--H", + "_rev" : "_e9TS3uq---", "travelTime" : 2.5 }, { - "_key" : "82630", - "_id" : "connections/82630", + "_key" : "81367", + "_id" : "connections/81367", "_from" : "places/Aberdeen", "_to" : "places/Leuchars", - "_rev" : "_e4zxNQG--I", + "_rev" : "_e9TS3uq--_", "travelTime" : 1.5 }, { - "_key" : "82632", - "_id" : "connections/82632", + "_key" : "81369", + "_id" : "connections/81369", "_from" : "places/Leuchars", "_to" : "places/Aberdeen", - "_rev" : "_e4zxNQK---", + "_rev" : "_e9TS3uu---", "travelTime" : 1 }, { - "_key" : "82634", - "_id" : "connections/82634", + "_key" : "81371", + "_id" : "connections/81371", "_from" : "places/Leuchars", "_to" : "places/Edinburgh", - "_rev" : "_e4zxNQK--_", + "_rev" : "_e9TS3uu--_", "travelTime" : 1.5 }, { - "_key" : "82636", - "_id" : "connections/82636", + "_key" : "81373", + "_id" : "connections/81373", "_from" : "places/Edinburgh", "_to" : "places/Leuchars", - "_rev" : "_e4zxNQK--A", + "_rev" : "_e9TS3uy---", "travelTime" : 3 }, { - "_key" : "82638", - "_id" : "connections/82638", + "_key" : "81375", + "_id" : "connections/81375", "_from" : "places/Edinburgh", "_to" : "places/Glasgow", - "_rev" : "_e4zxNQK--B", + "_rev" : "_e9TS3u2---", "travelTime" : 1 }, { - "_key" : "82640", - "_id" : "connections/82640", + "_key" : "81377", + "_id" : "connections/81377", "_from" : "places/Glasgow", "_to" : "places/Edinburgh", - "_rev" : "_e4zxNQK--C", + "_rev" : "_e9TS3u2--_", "travelTime" : 1 }, { - "_key" : "82642", - "_id" : "connections/82642", + "_key" : "81379", + "_id" : "connections/81379", "_from" : "places/Edinburgh", "_to" : "places/York", - "_rev" : "_e4zxNQK--D", + "_rev" : "_e9TS3u6---", "travelTime" : 3.5 }, { - "_key" : "82644", - "_id" : "connections/82644", + "_key" : "81381", + "_id" : "connections/81381", "_from" : "places/York", "_to" : "places/Edinburgh", - "_rev" : "_e4zxNQK--E", + "_rev" : "_e9TS3u6--_", "travelTime" : 4 }, { - "_key" : "82646", - "_id" : "connections/82646", + "_key" : "81383", + "_id" : "connections/81383", "_from" : "places/Glasgow", "_to" : "places/Carlisle", - "_rev" : "_e4zxNQK--F", + "_rev" : "_e9TS3v----", "travelTime" : 1 }, { - "_key" : "82648", - "_id" : "connections/82648", + "_key" : "81385", + "_id" : "connections/81385", "_from" : "places/Carlisle", "_to" : "places/Glasgow", - "_rev" : "_e4zxNQK--G", + "_rev" : "_e9TS3v---_", "travelTime" : 1 }, { - "_key" : "82650", - "_id" : "connections/82650", + "_key" : "81387", + "_id" : "connections/81387", "_from" : "places/Carlisle", "_to" : "places/York", - "_rev" : "_e4zxNQO---", + "_rev" : "_e9TS3v---A", "travelTime" : 2.5 }, { - "_key" : "82652", - "_id" : "connections/82652", + "_key" : "81389", + "_id" : "connections/81389", "_from" : "places/York", "_to" : "places/Carlisle", - "_rev" : "_e4zxNQO--_", + "_rev" : "_e9TS3vC---", "travelTime" : 3.5 }, { - "_key" : "82654", - "_id" : "connections/82654", + "_key" : "81391", + "_id" : "connections/81391", "_from" : "places/Carlisle", "_to" : "places/Birmingham", - "_rev" : "_e4zxNQO--A", + "_rev" : "_e9TS3vC--_", "travelTime" : 2 }, { - "_key" : "82656", - "_id" : "connections/82656", + "_key" : "81393", + "_id" : "connections/81393", "_from" : "places/Birmingham", "_to" : "places/Carlisle", - "_rev" : "_e4zxNQO--B", + "_rev" : "_e9TS3vG---", "travelTime" : 1 }, { - "_key" : "82658", - "_id" : "connections/82658", + "_key" : "81395", + "_id" : "connections/81395", "_from" : "places/Birmingham", "_to" : "places/London", - "_rev" : "_e4zxNQO--C", + "_rev" : "_e9TS3vG--_", "travelTime" : 1.5 }, { - "_key" : "82660", - "_id" : "connections/82660", + "_key" : "81397", + "_id" : "connections/81397", "_from" : "places/London", "_to" : "places/Birmingham", - "_rev" : "_e4zxNQO--D", + "_rev" : "_e9TS3vK---", "travelTime" : 2.5 }, { - "_key" : "82662", - "_id" : "connections/82662", + "_key" : "81399", + "_id" : "connections/81399", "_from" : "places/Leuchars", "_to" : "places/StAndrews", - "_rev" : "_e4zxNQO--E", + "_rev" : "_e9TS3vK--_", "travelTime" : 0.2 }, { - "_key" : "82664", - "_id" : "connections/82664", + "_key" : "81401", + "_id" : "connections/81401", "_from" : "places/StAndrews", "_to" : "places/Leuchars", - "_rev" : "_e4zxNQO--F", + "_rev" : "_e9TS3vO---", "travelTime" : 0.2 }, { - "_key" : "82666", - "_id" : "connections/82666", + "_key" : "81403", + "_id" : "connections/81403", "_from" : "places/York", "_to" : "places/London", - "_rev" : "_e4zxNQO--G", + "_rev" : "_e9TS3vO--_", "travelTime" : 1.8 }, { - "_key" : "82668", - "_id" : "connections/82668", + "_key" : "81405", + "_id" : "connections/81405", "_from" : "places/London", "_to" : "places/York", - "_rev" : "_e4zxNQO--H", + "_rev" : "_e9TS3vO--A", "travelTime" : 2 }, { - "_key" : "82670", - "_id" : "connections/82670", + "_key" : "81407", + "_id" : "connections/81407", "_from" : "places/London", "_to" : "places/Brussels", - "_rev" : "_e4zxNQS---", + "_rev" : "_e9TS3vS---", "travelTime" : 2.5 }, { - "_key" : "82672", - "_id" : "connections/82672", + "_key" : "81409", + "_id" : "connections/81409", "_from" : "places/Brussels", "_to" : "places/London", - "_rev" : "_e4zxNQS--_", + "_rev" : "_e9TS3vS--_", "travelTime" : 3.5 }, { - "_key" : "82674", - "_id" : "connections/82674", + "_key" : "81411", + "_id" : "connections/81411", "_from" : "places/Brussels", "_to" : "places/Cologne", - "_rev" : "_e4zxNQS--A", + "_rev" : "_e9TS3vW---", "travelTime" : 2 }, { - "_key" : "82676", - "_id" : "connections/82676", + "_key" : "81413", + "_id" : "connections/81413", "_from" : "places/Cologne", "_to" : "places/Brussels", - "_rev" : "_e4zxNQS--B", + "_rev" : "_e9TS3vW--_", "travelTime" : 1.5 }, { - "_key" : "82678", - "_id" : "connections/82678", + "_key" : "81415", + "_id" : "connections/81415", "_from" : "places/Toronto", "_to" : "places/Winnipeg", - "_rev" : "_e4zxNQS--C", + "_rev" : "_e9TS3vW--A", "travelTime" : 36 }, { - "_key" : "82680", - "_id" : "connections/82680", + "_key" : "81417", + "_id" : "connections/81417", "_from" : "places/Winnipeg", "_to" : "places/Toronto", - "_rev" : "_e4zxNQS--D", + "_rev" : "_e9TS3va---", "travelTime" : 35 }, { - "_key" : "82682", - "_id" : "connections/82682", + "_key" : "81419", + "_id" : "connections/81419", "_from" : "places/Winnipeg", "_to" : "places/Saskatoon", - "_rev" : "_e4zxNQS--E", + "_rev" : "_e9TS3va--_", "travelTime" : 12 }, { - "_key" : "82684", - "_id" : "connections/82684", + "_key" : "81421", + "_id" : "connections/81421", "_from" : "places/Saskatoon", "_to" : "places/Winnipeg", - "_rev" : "_e4zxNQS--F", + "_rev" : "_e9TS3ve---", "travelTime" : 5 }, { - "_key" : "82686", - "_id" : "connections/82686", + "_key" : "81423", + "_id" : "connections/81423", "_from" : "places/Saskatoon", "_to" : "places/Edmonton", - "_rev" : "_e4zxNQS--G", + "_rev" : "_e9TS3ve--_", "travelTime" : 12 }, { - "_key" : "82688", - "_id" : "connections/82688", + "_key" : "81425", + "_id" : "connections/81425", "_from" : "places/Edmonton", "_to" : "places/Saskatoon", - "_rev" : "_e4zxNQS--H", + "_rev" : "_e9TS3vi---", "travelTime" : 17 }, { - "_key" : "82690", - "_id" : "connections/82690", + "_key" : "81427", + "_id" : "connections/81427", "_from" : "places/Edmonton", "_to" : "places/Jasper", - "_rev" : "_e4zxNQW---", + "_rev" : "_e9TS3vi--_", "travelTime" : 6 }, { - "_key" : "82692", - "_id" : "connections/82692", + "_key" : "81429", + "_id" : "connections/81429", "_from" : "places/Jasper", "_to" : "places/Edmonton", - "_rev" : "_e4zxNQW--_", + "_rev" : "_e9TS3vi--A", "travelTime" : 5 }, { - "_key" : "82694", - "_id" : "connections/82694", + "_key" : "81431", + "_id" : "connections/81431", "_from" : "places/Jasper", "_to" : "places/Vancouver", - "_rev" : "_e4zxNQW--A", + "_rev" : "_e9TS3vm---", "travelTime" : 12 }, { - "_key" : "82696", - "_id" : "connections/82696", + "_key" : "81433", + "_id" : "connections/81433", "_from" : "places/Vancouver", "_to" : "places/Jasper", - "_rev" : "_e4zxNQW--B", + "_rev" : "_e9TS3vm--_", "travelTime" : 13 } ] diff --git a/3.11/generated/Examples/graph_create_mps_sample.generated b/3.11/generated/Examples/graph_create_mps_sample.generated index e59806acd6..0fa1bf73b2 100644 --- a/3.11/generated/Examples/graph_create_mps_sample.generated +++ b/3.11/generated/Examples/graph_create_mps_sample.generated @@ -5,90 +5,90 @@ arangosh> db.mps_verts.toArray(); { "_key" : "A", "_id" : "mps_verts/A", - "_rev" : "_e4zxNR----" + "_rev" : "_e9TS3yC---" }, { "_key" : "B", "_id" : "mps_verts/B", - "_rev" : "_e4zxNR---_" + "_rev" : "_e9TS3yC--_" }, { "_key" : "C", "_id" : "mps_verts/C", - "_rev" : "_e4zxNR---A" + "_rev" : "_e9TS3yG---" }, { "_key" : "D", "_id" : "mps_verts/D", - "_rev" : "_e4zxNR---B" + "_rev" : "_e9TS3yK---" }, { "_key" : "E", "_id" : "mps_verts/E", - "_rev" : "_e4zxNR---C" + "_rev" : "_e9TS3yO---" }, { "_key" : "F", "_id" : "mps_verts/F", - "_rev" : "_e4zxNR---D" + "_rev" : "_e9TS3yO--_" } ] arangosh> db.mps_edges.toArray(); [ { - "_key" : "82745", - "_id" : "mps_edges/82745", + "_key" : "81482", + "_id" : "mps_edges/81482", "_from" : "mps_verts/A", "_to" : "mps_verts/B", - "_rev" : "_e4zxNR---E", + "_rev" : "_e9TS3yS---", "vertex" : "A" }, { - "_key" : "82747", - "_id" : "mps_edges/82747", + "_key" : "81484", + "_id" : "mps_edges/81484", "_from" : "mps_verts/A", "_to" : "mps_verts/E", - "_rev" : "_e4zxNR---F", + "_rev" : "_e9TS3yW---", "vertex" : "A" }, { - "_key" : "82749", - "_id" : "mps_edges/82749", + "_key" : "81486", + "_id" : "mps_edges/81486", "_from" : "mps_verts/A", "_to" : "mps_verts/D", - "_rev" : "_e4zxNR---G", + "_rev" : "_e9TS3ya---", "vertex" : "A" }, { - "_key" : "82751", - "_id" : "mps_edges/82751", + "_key" : "81488", + "_id" : "mps_edges/81488", "_from" : "mps_verts/B", "_to" : "mps_verts/C", - "_rev" : "_e4zxNRC---", + "_rev" : "_e9TS3ya--_", "vertex" : "B" }, { - "_key" : "82753", - "_id" : "mps_edges/82753", + "_key" : "81490", + "_id" : "mps_edges/81490", "_from" : "mps_verts/D", "_to" : "mps_verts/C", - "_rev" : "_e4zxNRC--_", + "_rev" : "_e9TS3ye---", "vertex" : "D" }, { - "_key" : "82755", - "_id" : "mps_edges/82755", + "_key" : "81492", + "_id" : "mps_edges/81492", "_from" : "mps_verts/E", "_to" : "mps_verts/F", - "_rev" : "_e4zxNRC--A", + "_rev" : "_e9TS3yi---", "vertex" : "E" }, { - "_key" : "82757", - "_id" : "mps_edges/82757", + "_key" : "81494", + "_id" : "mps_edges/81494", "_from" : "mps_verts/F", "_to" : "mps_verts/C", - "_rev" : "_e4zxNRC--B", + "_rev" : "_e9TS3yi--_", "vertex" : "F" } ] diff --git a/3.11/generated/Examples/graph_create_social_sample.generated b/3.11/generated/Examples/graph_create_social_sample.generated index aedb25a252..4302bdfc4f 100644 --- a/3.11/generated/Examples/graph_create_social_sample.generated +++ b/3.11/generated/Examples/graph_create_social_sample.generated @@ -5,13 +5,13 @@ arangosh> db.female.toArray() { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxNRW--_", + "_rev" : "_e9TS30O---", "name" : "Alice" }, { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxNRa--A", + "_rev" : "_e9TS30W---", "name" : "Diana" } ] @@ -20,51 +20,51 @@ arangosh> db.male.toArray() { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxNRa---", + "_rev" : "_e9TS30S---", "name" : "Bob" }, { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxNRa--_", + "_rev" : "_e9TS30S--_", "name" : "Charly" } ] arangosh> db.relation.toArray() [ { - "_key" : "82811", - "_id" : "relation/82811", + "_key" : "81548", + "_id" : "relation/81548", "_from" : "female/alice", "_to" : "male/bob", - "_rev" : "_e4zxNRa--B", + "_rev" : "_e9TS30a---", "type" : "married", "vertex" : "alice" }, { - "_key" : "82813", - "_id" : "relation/82813", + "_key" : "81550", + "_id" : "relation/81550", "_from" : "female/alice", "_to" : "male/charly", - "_rev" : "_e4zxNRa--C", + "_rev" : "_e9TS30a--_", "type" : "friend", "vertex" : "alice" }, { - "_key" : "82815", - "_id" : "relation/82815", + "_key" : "81552", + "_id" : "relation/81552", "_from" : "male/charly", "_to" : "female/diana", - "_rev" : "_e4zxNRa--D", + "_rev" : "_e9TS30e---", "type" : "married", "vertex" : "charly" }, { - "_key" : "82817", - "_id" : "relation/82817", + "_key" : "81554", + "_id" : "relation/81554", "_from" : "male/bob", "_to" : "female/diana", - "_rev" : "_e4zxNRa--E", + "_rev" : "_e9TS30i---", "type" : "friend", "vertex" : "bob" } diff --git a/3.11/generated/Examples/graph_create_traversal_sample.generated b/3.11/generated/Examples/graph_create_traversal_sample.generated index 89ab716b4c..8213d5259a 100644 --- a/3.11/generated/Examples/graph_create_traversal_sample.generated +++ b/3.11/generated/Examples/graph_create_traversal_sample.generated @@ -5,168 +5,168 @@ arangosh> db.circles.toArray(); { "_key" : "A", "_id" : "circles/A", - "_rev" : "_e4zxNRu--A", + "_rev" : "_e9TS32C---", "label" : "1" }, { "_key" : "B", "_id" : "circles/B", - "_rev" : "_e4zxNRu--B", + "_rev" : "_e9TS32G---", "label" : "2" }, { "_key" : "C", "_id" : "circles/C", - "_rev" : "_e4zxNRu--C", + "_rev" : "_e9TS32G--_", "label" : "3" }, { "_key" : "D", "_id" : "circles/D", - "_rev" : "_e4zxNRu--D", + "_rev" : "_e9TS32K---", "label" : "4" }, { "_key" : "E", "_id" : "circles/E", - "_rev" : "_e4zxNRy---", + "_rev" : "_e9TS32O---", "label" : "5" }, { "_key" : "F", "_id" : "circles/F", - "_rev" : "_e4zxNRy--_", + "_rev" : "_e9TS32O--_", "label" : "6" }, { "_key" : "G", "_id" : "circles/G", - "_rev" : "_e4zxNRy--A", + "_rev" : "_e9TS32S---", "label" : "7" }, { "_key" : "H", "_id" : "circles/H", - "_rev" : "_e4zxNRy--B", + "_rev" : "_e9TS32W---", "label" : "8" }, { "_key" : "I", "_id" : "circles/I", - "_rev" : "_e4zxNRy--C", + "_rev" : "_e9TS32W--_", "label" : "9" }, { "_key" : "J", "_id" : "circles/J", - "_rev" : "_e4zxNRy--D", + "_rev" : "_e9TS32a---", "label" : "10" }, { "_key" : "K", "_id" : "circles/K", - "_rev" : "_e4zxNRy--E", + "_rev" : "_e9TS32e---", "label" : "11" } ] arangosh> db.edges.toArray(); [ { - "_key" : "82879", - "_id" : "edges/82879", + "_key" : "81616", + "_id" : "edges/81616", "_from" : "circles/A", "_to" : "circles/B", - "_rev" : "_e4zxNRy--F", + "_rev" : "_e9TS32e--_", "theFalse" : false, "theTruth" : true, "label" : "left_bar" }, { - "_key" : "82881", - "_id" : "edges/82881", + "_key" : "81618", + "_id" : "edges/81618", "_from" : "circles/B", "_to" : "circles/C", - "_rev" : "_e4zxNRy--G", + "_rev" : "_e9TS32i---", "theFalse" : false, "theTruth" : true, "label" : "left_blarg" }, { - "_key" : "82883", - "_id" : "edges/82883", + "_key" : "81620", + "_id" : "edges/81620", "_from" : "circles/C", "_to" : "circles/D", - "_rev" : "_e4zxNRy--H", + "_rev" : "_e9TS32m---", "theFalse" : false, "theTruth" : true, "label" : "left_blorg" }, { - "_key" : "82885", - "_id" : "edges/82885", + "_key" : "81622", + "_id" : "edges/81622", "_from" : "circles/B", "_to" : "circles/E", - "_rev" : "_e4zxNRy--I", + "_rev" : "_e9TS32m--_", "theFalse" : false, "theTruth" : true, "label" : "left_blub" }, { - "_key" : "82887", - "_id" : "edges/82887", + "_key" : "81624", + "_id" : "edges/81624", "_from" : "circles/E", "_to" : "circles/F", - "_rev" : "_e4zxNR2---", + "_rev" : "_e9TS32q---", "theFalse" : false, "theTruth" : true, "label" : "left_schubi" }, { - "_key" : "82889", - "_id" : "edges/82889", + "_key" : "81626", + "_id" : "edges/81626", "_from" : "circles/A", "_to" : "circles/G", - "_rev" : "_e4zxNR2--_", + "_rev" : "_e9TS32q--_", "theFalse" : false, "theTruth" : true, "label" : "right_foo" }, { - "_key" : "82891", - "_id" : "edges/82891", + "_key" : "81628", + "_id" : "edges/81628", "_from" : "circles/G", "_to" : "circles/H", - "_rev" : "_e4zxNR2--A", + "_rev" : "_e9TS32u---", "theFalse" : false, "theTruth" : true, "label" : "right_blob" }, { - "_key" : "82893", - "_id" : "edges/82893", + "_key" : "81630", + "_id" : "edges/81630", "_from" : "circles/H", "_to" : "circles/I", - "_rev" : "_e4zxNR2--B", + "_rev" : "_e9TS32u--_", "theFalse" : false, "theTruth" : true, "label" : "right_blub" }, { - "_key" : "82895", - "_id" : "edges/82895", + "_key" : "81632", + "_id" : "edges/81632", "_from" : "circles/G", "_to" : "circles/J", - "_rev" : "_e4zxNR2--C", + "_rev" : "_e9TS32y---", "theFalse" : false, "theTruth" : true, "label" : "right_zip" }, { - "_key" : "82897", - "_id" : "edges/82897", + "_key" : "81634", + "_id" : "edges/81634", "_from" : "circles/J", "_to" : "circles/K", - "_rev" : "_e4zxNR2--D", + "_rev" : "_e9TS322---", "theFalse" : false, "theTruth" : true, "label" : "right_zup" diff --git a/3.11/generated/Examples/graph_create_world_sample.generated b/3.11/generated/Examples/graph_create_world_sample.generated index dfdd4349ab..ac324e95f8 100644 --- a/3.11/generated/Examples/graph_create_world_sample.generated +++ b/3.11/generated/Examples/graph_create_world_sample.generated @@ -5,56 +5,56 @@ arangosh> db.worldVertices.toArray(); { "_key" : "world", "_id" : "worldVertices/world", - "_rev" : "_e4zxNSW---", + "_rev" : "_e9TS34e---", "name" : "World", "type" : "root" }, { "_key" : "continent-africa", "_id" : "worldVertices/continent-africa", - "_rev" : "_e4zxNSW--_", + "_rev" : "_e9TS34i---", "name" : "Africa", "type" : "continent" }, { "_key" : "continent-asia", "_id" : "worldVertices/continent-asia", - "_rev" : "_e4zxNSW--A", + "_rev" : "_e9TS34m---", "name" : "Asia", "type" : "continent" }, { "_key" : "continent-australia", "_id" : "worldVertices/continent-australia", - "_rev" : "_e4zxNSa---", + "_rev" : "_e9TS34q---", "name" : "Australia", "type" : "continent" }, { "_key" : "continent-europe", "_id" : "worldVertices/continent-europe", - "_rev" : "_e4zxNSa--_", + "_rev" : "_e9TS34q--_", "name" : "Europe", "type" : "continent" }, { "_key" : "continent-north-america", "_id" : "worldVertices/continent-north-america", - "_rev" : "_e4zxNSa--A", + "_rev" : "_e9TS34u---", "name" : "North America", "type" : "continent" }, { "_key" : "continent-south-america", "_id" : "worldVertices/continent-south-america", - "_rev" : "_e4zxNSa--B", + "_rev" : "_e9TS34y---", "name" : "South America", "type" : "continent" }, { "_key" : "country-afghanistan", "_id" : "worldVertices/country-afghanistan", - "_rev" : "_e4zxNSa--C", + "_rev" : "_e9TS356--_", "name" : "Afghanistan", "type" : "country", "code" : "AFG" @@ -62,7 +62,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-albania", "_id" : "worldVertices/country-albania", - "_rev" : "_e4zxNSa--D", + "_rev" : "_e9TS36C---", "name" : "Albania", "type" : "country", "code" : "ALB" @@ -70,7 +70,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-algeria", "_id" : "worldVertices/country-algeria", - "_rev" : "_e4zxNSa--E", + "_rev" : "_e9TS36G---", "name" : "Algeria", "type" : "country", "code" : "DZA" @@ -78,7 +78,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-andorra", "_id" : "worldVertices/country-andorra", - "_rev" : "_e4zxNSa--F", + "_rev" : "_e9TS36K---", "name" : "Andorra", "type" : "country", "code" : "AND" @@ -86,7 +86,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-angola", "_id" : "worldVertices/country-angola", - "_rev" : "_e4zxNSa--G", + "_rev" : "_e9TS36O---", "name" : "Angola", "type" : "country", "code" : "AGO" @@ -94,7 +94,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-antigua-and-barbuda", "_id" : "worldVertices/country-antigua-and-barbuda", - "_rev" : "_e4zxNSa--H", + "_rev" : "_e9TS36S---", "name" : "Antigua and Barbuda", "type" : "country", "code" : "ATG" @@ -102,7 +102,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-argentina", "_id" : "worldVertices/country-argentina", - "_rev" : "_e4zxNSa--I", + "_rev" : "_e9TS36S--_", "name" : "Argentina", "type" : "country", "code" : "ARG" @@ -110,7 +110,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-australia", "_id" : "worldVertices/country-australia", - "_rev" : "_e4zxNSe---", + "_rev" : "_e9TS36W---", "name" : "Australia", "type" : "country", "code" : "AUS" @@ -118,7 +118,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-austria", "_id" : "worldVertices/country-austria", - "_rev" : "_e4zxNSe--_", + "_rev" : "_e9TS36a---", "name" : "Austria", "type" : "country", "code" : "AUT" @@ -126,7 +126,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-bahamas", "_id" : "worldVertices/country-bahamas", - "_rev" : "_e4zxNSe--A", + "_rev" : "_e9TS36e---", "name" : "Bahamas", "type" : "country", "code" : "BHS" @@ -134,7 +134,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-bahrain", "_id" : "worldVertices/country-bahrain", - "_rev" : "_e4zxNSe--B", + "_rev" : "_e9TS36e--_", "name" : "Bahrain", "type" : "country", "code" : "BHR" @@ -142,7 +142,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-bangladesh", "_id" : "worldVertices/country-bangladesh", - "_rev" : "_e4zxNSe--C", + "_rev" : "_e9TS36i---", "name" : "Bangladesh", "type" : "country", "code" : "BGD" @@ -150,7 +150,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-barbados", "_id" : "worldVertices/country-barbados", - "_rev" : "_e4zxNSe--D", + "_rev" : "_e9TS36m---", "name" : "Barbados", "type" : "country", "code" : "BRB" @@ -158,7 +158,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-belgium", "_id" : "worldVertices/country-belgium", - "_rev" : "_e4zxNSe--E", + "_rev" : "_e9TS36m--_", "name" : "Belgium", "type" : "country", "code" : "BEL" @@ -166,7 +166,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-bhutan", "_id" : "worldVertices/country-bhutan", - "_rev" : "_e4zxNSe--F", + "_rev" : "_e9TS36q---", "name" : "Bhutan", "type" : "country", "code" : "BTN" @@ -174,7 +174,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-bolivia", "_id" : "worldVertices/country-bolivia", - "_rev" : "_e4zxNSe--G", + "_rev" : "_e9TS36q--_", "name" : "Bolivia", "type" : "country", "code" : "BOL" @@ -182,7 +182,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-bosnia-and-herzegovina", "_id" : "worldVertices/country-bosnia-and-herzegovina", - "_rev" : "_e4zxNSe--H", + "_rev" : "_e9TS36u---", "name" : "Bosnia and Herzegovina", "type" : "country", "code" : "BIH" @@ -190,7 +190,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-botswana", "_id" : "worldVertices/country-botswana", - "_rev" : "_e4zxNSe--I", + "_rev" : "_e9TS36u--_", "name" : "Botswana", "type" : "country", "code" : "BWA" @@ -198,7 +198,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-brazil", "_id" : "worldVertices/country-brazil", - "_rev" : "_e4zxNSi---", + "_rev" : "_e9TS36y---", "name" : "Brazil", "type" : "country", "code" : "BRA" @@ -206,7 +206,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-brunei", "_id" : "worldVertices/country-brunei", - "_rev" : "_e4zxNSi--_", + "_rev" : "_e9TS36y--_", "name" : "Brunei", "type" : "country", "code" : "BRN" @@ -214,7 +214,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-bulgaria", "_id" : "worldVertices/country-bulgaria", - "_rev" : "_e4zxNSi--A", + "_rev" : "_e9TS362---", "name" : "Bulgaria", "type" : "country", "code" : "BGR" @@ -222,7 +222,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-burkina-faso", "_id" : "worldVertices/country-burkina-faso", - "_rev" : "_e4zxNSi--B", + "_rev" : "_e9TS362--_", "name" : "Burkina Faso", "type" : "country", "code" : "BFA" @@ -230,7 +230,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-burundi", "_id" : "worldVertices/country-burundi", - "_rev" : "_e4zxNSi--C", + "_rev" : "_e9TS366---", "name" : "Burundi", "type" : "country", "code" : "BDI" @@ -238,7 +238,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-cambodia", "_id" : "worldVertices/country-cambodia", - "_rev" : "_e4zxNSi--D", + "_rev" : "_e9TS366--_", "name" : "Cambodia", "type" : "country", "code" : "KHM" @@ -246,7 +246,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-cameroon", "_id" : "worldVertices/country-cameroon", - "_rev" : "_e4zxNSi--E", + "_rev" : "_e9TS37----", "name" : "Cameroon", "type" : "country", "code" : "CMR" @@ -254,7 +254,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-canada", "_id" : "worldVertices/country-canada", - "_rev" : "_e4zxNSi--F", + "_rev" : "_e9TS37---_", "name" : "Canada", "type" : "country", "code" : "CAN" @@ -262,7 +262,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-chad", "_id" : "worldVertices/country-chad", - "_rev" : "_e4zxNSi--G", + "_rev" : "_e9TS37C---", "name" : "Chad", "type" : "country", "code" : "TCD" @@ -270,7 +270,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-chile", "_id" : "worldVertices/country-chile", - "_rev" : "_e4zxNSi--H", + "_rev" : "_e9TS37C--_", "name" : "Chile", "type" : "country", "code" : "CHL" @@ -278,7 +278,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-colombia", "_id" : "worldVertices/country-colombia", - "_rev" : "_e4zxNSi--I", + "_rev" : "_e9TS37G---", "name" : "Colombia", "type" : "country", "code" : "COL" @@ -286,7 +286,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-cote-d-ivoire", "_id" : "worldVertices/country-cote-d-ivoire", - "_rev" : "_e4zxNSi--J", + "_rev" : "_e9TS37G--_", "name" : "Cote d'Ivoire", "type" : "country", "code" : "CIV" @@ -294,7 +294,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-croatia", "_id" : "worldVertices/country-croatia", - "_rev" : "_e4zxNSm---", + "_rev" : "_e9TS37K---", "name" : "Croatia", "type" : "country", "code" : "HRV" @@ -302,7 +302,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-czech-republic", "_id" : "worldVertices/country-czech-republic", - "_rev" : "_e4zxNSm--_", + "_rev" : "_e9TS37K--_", "name" : "Czech Republic", "type" : "country", "code" : "CZE" @@ -310,7 +310,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-denmark", "_id" : "worldVertices/country-denmark", - "_rev" : "_e4zxNSm--A", + "_rev" : "_e9TS37O---", "name" : "Denmark", "type" : "country", "code" : "DNK" @@ -318,7 +318,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-ecuador", "_id" : "worldVertices/country-ecuador", - "_rev" : "_e4zxNSm--B", + "_rev" : "_e9TS37O--_", "name" : "Ecuador", "type" : "country", "code" : "ECU" @@ -326,7 +326,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-egypt", "_id" : "worldVertices/country-egypt", - "_rev" : "_e4zxNSm--C", + "_rev" : "_e9TS37S---", "name" : "Egypt", "type" : "country", "code" : "EGY" @@ -334,7 +334,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-eritrea", "_id" : "worldVertices/country-eritrea", - "_rev" : "_e4zxNSm--D", + "_rev" : "_e9TS37S--_", "name" : "Eritrea", "type" : "country", "code" : "ERI" @@ -342,7 +342,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-finland", "_id" : "worldVertices/country-finland", - "_rev" : "_e4zxNSm--E", + "_rev" : "_e9TS37W---", "name" : "Finland", "type" : "country", "code" : "FIN" @@ -350,7 +350,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-france", "_id" : "worldVertices/country-france", - "_rev" : "_e4zxNSm--F", + "_rev" : "_e9TS37W--_", "name" : "France", "type" : "country", "code" : "FRA" @@ -358,7 +358,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-germany", "_id" : "worldVertices/country-germany", - "_rev" : "_e4zxNSm--G", + "_rev" : "_e9TS37a---", "name" : "Germany", "type" : "country", "code" : "DEU" @@ -366,7 +366,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-people-s-republic-of-china", "_id" : "worldVertices/country-people-s-republic-of-china", - "_rev" : "_e4zxNSm--H", + "_rev" : "_e9TS37a--_", "name" : "People's Republic of China", "type" : "country", "code" : "CHN" @@ -374,280 +374,280 @@ arangosh> db.worldVertices.toArray(); { "_key" : "capital-algiers", "_id" : "worldVertices/capital-algiers", - "_rev" : "_e4zxNSm--I", + "_rev" : "_e9TS37a--A", "name" : "Algiers", "type" : "capital" }, { "_key" : "capital-andorra-la-vella", "_id" : "worldVertices/capital-andorra-la-vella", - "_rev" : "_e4zxNSq---", + "_rev" : "_e9TS37e---", "name" : "Andorra la Vella", "type" : "capital" }, { "_key" : "capital-asmara", "_id" : "worldVertices/capital-asmara", - "_rev" : "_e4zxNSq--_", + "_rev" : "_e9TS37e--_", "name" : "Asmara", "type" : "capital" }, { "_key" : "capital-bandar-seri-begawan", "_id" : "worldVertices/capital-bandar-seri-begawan", - "_rev" : "_e4zxNSq--A", + "_rev" : "_e9TS37i---", "name" : "Bandar Seri Begawan", "type" : "capital" }, { "_key" : "capital-beijing", "_id" : "worldVertices/capital-beijing", - "_rev" : "_e4zxNSq--B", + "_rev" : "_e9TS37i--_", "name" : "Beijing", "type" : "capital" }, { "_key" : "capital-berlin", "_id" : "worldVertices/capital-berlin", - "_rev" : "_e4zxNSq--C", + "_rev" : "_e9TS37i--A", "name" : "Berlin", "type" : "capital" }, { "_key" : "capital-bogota", "_id" : "worldVertices/capital-bogota", - "_rev" : "_e4zxNSq--D", + "_rev" : "_e9TS37m---", "name" : "Bogota", "type" : "capital" }, { "_key" : "capital-brasilia", "_id" : "worldVertices/capital-brasilia", - "_rev" : "_e4zxNSq--E", + "_rev" : "_e9TS37m--_", "name" : "Brasilia", "type" : "capital" }, { "_key" : "capital-bridgetown", "_id" : "worldVertices/capital-bridgetown", - "_rev" : "_e4zxNSq--F", + "_rev" : "_e9TS37m--A", "name" : "Bridgetown", "type" : "capital" }, { "_key" : "capital-brussels", "_id" : "worldVertices/capital-brussels", - "_rev" : "_e4zxNSq--G", + "_rev" : "_e9TS37q---", "name" : "Brussels", "type" : "capital" }, { "_key" : "capital-buenos-aires", "_id" : "worldVertices/capital-buenos-aires", - "_rev" : "_e4zxNSq--H", + "_rev" : "_e9TS37q--_", "name" : "Buenos Aires", "type" : "capital" }, { "_key" : "capital-bujumbura", "_id" : "worldVertices/capital-bujumbura", - "_rev" : "_e4zxNSq--I", + "_rev" : "_e9TS37q--A", "name" : "Bujumbura", "type" : "capital" }, { "_key" : "capital-cairo", "_id" : "worldVertices/capital-cairo", - "_rev" : "_e4zxNSu---", + "_rev" : "_e9TS37u---", "name" : "Cairo", "type" : "capital" }, { "_key" : "capital-canberra", "_id" : "worldVertices/capital-canberra", - "_rev" : "_e4zxNSu--_", + "_rev" : "_e9TS37u--_", "name" : "Canberra", "type" : "capital" }, { "_key" : "capital-copenhagen", "_id" : "worldVertices/capital-copenhagen", - "_rev" : "_e4zxNSu--A", + "_rev" : "_e9TS37y---", "name" : "Copenhagen", "type" : "capital" }, { "_key" : "capital-dhaka", "_id" : "worldVertices/capital-dhaka", - "_rev" : "_e4zxNSu--B", + "_rev" : "_e9TS37y--_", "name" : "Dhaka", "type" : "capital" }, { "_key" : "capital-gaborone", "_id" : "worldVertices/capital-gaborone", - "_rev" : "_e4zxNSu--C", + "_rev" : "_e9TS37y--A", "name" : "Gaborone", "type" : "capital" }, { "_key" : "capital-helsinki", "_id" : "worldVertices/capital-helsinki", - "_rev" : "_e4zxNSu--D", + "_rev" : "_e9TS372---", "name" : "Helsinki", "type" : "capital" }, { "_key" : "capital-kabul", "_id" : "worldVertices/capital-kabul", - "_rev" : "_e4zxNSu--E", + "_rev" : "_e9TS372--_", "name" : "Kabul", "type" : "capital" }, { "_key" : "capital-la-paz", "_id" : "worldVertices/capital-la-paz", - "_rev" : "_e4zxNSu--F", + "_rev" : "_e9TS372--A", "name" : "La Paz", "type" : "capital" }, { "_key" : "capital-luanda", "_id" : "worldVertices/capital-luanda", - "_rev" : "_e4zxNSu--G", + "_rev" : "_e9TS376---", "name" : "Luanda", "type" : "capital" }, { "_key" : "capital-manama", "_id" : "worldVertices/capital-manama", - "_rev" : "_e4zxNSu--H", + "_rev" : "_e9TS376--_", "name" : "Manama", "type" : "capital" }, { "_key" : "capital-nassau", "_id" : "worldVertices/capital-nassau", - "_rev" : "_e4zxNSu--I", + "_rev" : "_e9TS376--A", "name" : "Nassau", "type" : "capital" }, { "_key" : "capital-n-djamena", "_id" : "worldVertices/capital-n-djamena", - "_rev" : "_e4zxNSu--J", + "_rev" : "_e9TS38----", "name" : "N'Djamena", "type" : "capital" }, { "_key" : "capital-ottawa", "_id" : "worldVertices/capital-ottawa", - "_rev" : "_e4zxNSy---", + "_rev" : "_e9TS38---_", "name" : "Ottawa", "type" : "capital" }, { "_key" : "capital-ouagadougou", "_id" : "worldVertices/capital-ouagadougou", - "_rev" : "_e4zxNSy--_", + "_rev" : "_e9TS38---A", "name" : "Ouagadougou", "type" : "capital" }, { "_key" : "capital-paris", "_id" : "worldVertices/capital-paris", - "_rev" : "_e4zxNSy--A", + "_rev" : "_e9TS38C---", "name" : "Paris", "type" : "capital" }, { "_key" : "capital-phnom-penh", "_id" : "worldVertices/capital-phnom-penh", - "_rev" : "_e4zxNSy--B", + "_rev" : "_e9TS38C--_", "name" : "Phnom Penh", "type" : "capital" }, { "_key" : "capital-prague", "_id" : "worldVertices/capital-prague", - "_rev" : "_e4zxNSy--C", + "_rev" : "_e9TS38C--A", "name" : "Prague", "type" : "capital" }, { "_key" : "capital-quito", "_id" : "worldVertices/capital-quito", - "_rev" : "_e4zxNSy--D", + "_rev" : "_e9TS38G---", "name" : "Quito", "type" : "capital" }, { "_key" : "capital-saint-john-s", "_id" : "worldVertices/capital-saint-john-s", - "_rev" : "_e4zxNSy--E", + "_rev" : "_e9TS38G--_", "name" : "Saint John's", "type" : "capital" }, { "_key" : "capital-santiago", "_id" : "worldVertices/capital-santiago", - "_rev" : "_e4zxNSy--F", + "_rev" : "_e9TS38K---", "name" : "Santiago", "type" : "capital" }, { "_key" : "capital-sarajevo", "_id" : "worldVertices/capital-sarajevo", - "_rev" : "_e4zxNSy--G", + "_rev" : "_e9TS38K--_", "name" : "Sarajevo", "type" : "capital" }, { "_key" : "capital-sofia", "_id" : "worldVertices/capital-sofia", - "_rev" : "_e4zxNSy--H", + "_rev" : "_e9TS38K--A", "name" : "Sofia", "type" : "capital" }, { "_key" : "capital-thimphu", "_id" : "worldVertices/capital-thimphu", - "_rev" : "_e4zxNSy--I", + "_rev" : "_e9TS38O---", "name" : "Thimphu", "type" : "capital" }, { "_key" : "capital-tirana", "_id" : "worldVertices/capital-tirana", - "_rev" : "_e4zxNS2---", + "_rev" : "_e9TS38O--_", "name" : "Tirana", "type" : "capital" }, { "_key" : "capital-vienna", "_id" : "worldVertices/capital-vienna", - "_rev" : "_e4zxNS2--_", + "_rev" : "_e9TS38O--A", "name" : "Vienna", "type" : "capital" }, { "_key" : "capital-yamoussoukro", "_id" : "worldVertices/capital-yamoussoukro", - "_rev" : "_e4zxNS2--A", + "_rev" : "_e9TS38S---", "name" : "Yamoussoukro", "type" : "capital" }, { "_key" : "capital-yaounde", "_id" : "worldVertices/capital-yaounde", - "_rev" : "_e4zxNS2--B", + "_rev" : "_e9TS38S--_", "name" : "Yaounde", "type" : "capital" }, { "_key" : "capital-zagreb", "_id" : "worldVertices/capital-zagreb", - "_rev" : "_e4zxNS2--C", + "_rev" : "_e9TS38S--A", "name" : "Zagreb", "type" : "capital" } @@ -655,691 +655,691 @@ arangosh> db.worldVertices.toArray(); arangosh> db.worldEdges.toArray(); [ { - "_key" : "83027", - "_id" : "worldEdges/83027", + "_key" : "81764", + "_id" : "worldEdges/81764", "_from" : "worldVertices/continent-africa", "_to" : "worldVertices/world", - "_rev" : "_e4zxNS2--D", + "_rev" : "_e9TS38W---", "type" : "is-in" }, { - "_key" : "83029", - "_id" : "worldEdges/83029", + "_key" : "81766", + "_id" : "worldEdges/81766", "_from" : "worldVertices/continent-asia", "_to" : "worldVertices/world", - "_rev" : "_e4zxNS2--E", + "_rev" : "_e9TS38W--_", "type" : "is-in" }, { - "_key" : "83031", - "_id" : "worldEdges/83031", + "_key" : "81768", + "_id" : "worldEdges/81768", "_from" : "worldVertices/continent-australia", "_to" : "worldVertices/world", - "_rev" : "_e4zxNS2--F", + "_rev" : "_e9TS38a---", "type" : "is-in" }, { - "_key" : "83033", - "_id" : "worldEdges/83033", + "_key" : "81770", + "_id" : "worldEdges/81770", "_from" : "worldVertices/continent-europe", "_to" : "worldVertices/world", - "_rev" : "_e4zxNS2--G", + "_rev" : "_e9TS38a--_", "type" : "is-in" }, { - "_key" : "83035", - "_id" : "worldEdges/83035", + "_key" : "81772", + "_id" : "worldEdges/81772", "_from" : "worldVertices/continent-north-america", "_to" : "worldVertices/world", - "_rev" : "_e4zxNS2--H", + "_rev" : "_e9TS38a--A", "type" : "is-in" }, { - "_key" : "83037", - "_id" : "worldEdges/83037", + "_key" : "81774", + "_id" : "worldEdges/81774", "_from" : "worldVertices/continent-south-america", "_to" : "worldVertices/world", - "_rev" : "_e4zxNS2--I", + "_rev" : "_e9TS38e---", "type" : "is-in" }, { - "_key" : "83039", - "_id" : "worldEdges/83039", + "_key" : "81776", + "_id" : "worldEdges/81776", "_from" : "worldVertices/country-afghanistan", "_to" : "worldVertices/continent-asia", - "_rev" : "_e4zxNS6---", + "_rev" : "_e9TS38e--_", "type" : "is-in" }, { - "_key" : "83041", - "_id" : "worldEdges/83041", + "_key" : "81778", + "_id" : "worldEdges/81778", "_from" : "worldVertices/country-albania", "_to" : "worldVertices/continent-europe", - "_rev" : "_e4zxNS6--_", + "_rev" : "_e9TS38i---", "type" : "is-in" }, { - "_key" : "83043", - "_id" : "worldEdges/83043", + "_key" : "81780", + "_id" : "worldEdges/81780", "_from" : "worldVertices/country-algeria", "_to" : "worldVertices/continent-africa", - "_rev" : "_e4zxNS6--A", + "_rev" : "_e9TS38i--_", "type" : "is-in" }, { - "_key" : "83045", - "_id" : "worldEdges/83045", + "_key" : "81782", + "_id" : "worldEdges/81782", "_from" : "worldVertices/country-andorra", "_to" : "worldVertices/continent-europe", - "_rev" : "_e4zxNS6--B", + "_rev" : "_e9TS38i--A", "type" : "is-in" }, { - "_key" : "83047", - "_id" : "worldEdges/83047", + "_key" : "81784", + "_id" : "worldEdges/81784", "_from" : "worldVertices/country-angola", "_to" : "worldVertices/continent-africa", - "_rev" : "_e4zxNS6--C", + "_rev" : "_e9TS38m---", "type" : "is-in" }, { - "_key" : "83049", - "_id" : "worldEdges/83049", + "_key" : "81786", + "_id" : "worldEdges/81786", "_from" : "worldVertices/country-antigua-and-barbuda", "_to" : "worldVertices/continent-north-america", - "_rev" : "_e4zxNS6--D", + "_rev" : "_e9TS38m--_", "type" : "is-in" }, { - "_key" : "83051", - "_id" : "worldEdges/83051", + "_key" : "81788", + "_id" : "worldEdges/81788", "_from" : "worldVertices/country-argentina", "_to" : "worldVertices/continent-south-america", - "_rev" : "_e4zxNS6--E", + "_rev" : "_e9TS38q---", "type" : "is-in" }, { - "_key" : "83053", - "_id" : "worldEdges/83053", + "_key" : "81790", + "_id" : "worldEdges/81790", "_from" : "worldVertices/country-australia", "_to" : "worldVertices/continent-australia", - "_rev" : "_e4zxNS6--F", + "_rev" : "_e9TS38q--_", "type" : "is-in" }, { - "_key" : "83055", - "_id" : "worldEdges/83055", + "_key" : "81792", + "_id" : "worldEdges/81792", "_from" : "worldVertices/country-austria", "_to" : "worldVertices/continent-europe", - "_rev" : "_e4zxNS6--G", + "_rev" : "_e9TS38q--A", "type" : "is-in" }, { - "_key" : "83057", - "_id" : "worldEdges/83057", + "_key" : "81794", + "_id" : "worldEdges/81794", "_from" : "worldVertices/country-bahamas", "_to" : "worldVertices/continent-north-america", - "_rev" : "_e4zxNS6--H", + "_rev" : "_e9TS38u---", "type" : "is-in" }, { - "_key" : "83059", - "_id" : "worldEdges/83059", + "_key" : "81796", + "_id" : "worldEdges/81796", "_from" : "worldVertices/country-bahrain", "_to" : "worldVertices/continent-asia", - "_rev" : "_e4zxNT----", + "_rev" : "_e9TS38u--_", "type" : "is-in" }, { - "_key" : "83061", - "_id" : "worldEdges/83061", + "_key" : "81798", + "_id" : "worldEdges/81798", "_from" : "worldVertices/country-bangladesh", "_to" : "worldVertices/continent-asia", - "_rev" : "_e4zxNT---_", + "_rev" : "_e9TS38y---", "type" : "is-in" }, { - "_key" : "83063", - "_id" : "worldEdges/83063", + "_key" : "81800", + "_id" : "worldEdges/81800", "_from" : "worldVertices/country-barbados", "_to" : "worldVertices/continent-north-america", - "_rev" : "_e4zxNT---A", + "_rev" : "_e9TS38y--_", "type" : "is-in" }, { - "_key" : "83065", - "_id" : "worldEdges/83065", + "_key" : "81802", + "_id" : "worldEdges/81802", "_from" : "worldVertices/country-belgium", "_to" : "worldVertices/continent-europe", - "_rev" : "_e4zxNT---B", + "_rev" : "_e9TS38y--A", "type" : "is-in" }, { - "_key" : "83067", - "_id" : "worldEdges/83067", + "_key" : "81804", + "_id" : "worldEdges/81804", "_from" : "worldVertices/country-bhutan", "_to" : "worldVertices/continent-asia", - "_rev" : "_e4zxNT---C", + "_rev" : "_e9TS382---", "type" : "is-in" }, { - "_key" : "83069", - "_id" : "worldEdges/83069", + "_key" : "81806", + "_id" : "worldEdges/81806", "_from" : "worldVertices/country-bolivia", "_to" : "worldVertices/continent-south-america", - "_rev" : "_e4zxNT---D", + "_rev" : "_e9TS382--_", "type" : "is-in" }, { - "_key" : "83071", - "_id" : "worldEdges/83071", + "_key" : "81808", + "_id" : "worldEdges/81808", "_from" : "worldVertices/country-bosnia-and-herzegovina", "_to" : "worldVertices/continent-europe", - "_rev" : "_e4zxNT---E", + "_rev" : "_e9TS386---", "type" : "is-in" }, { - "_key" : "83073", - "_id" : "worldEdges/83073", + "_key" : "81810", + "_id" : "worldEdges/81810", "_from" : "worldVertices/country-botswana", "_to" : "worldVertices/continent-africa", - "_rev" : "_e4zxNT---F", + "_rev" : "_e9TS386--_", "type" : "is-in" }, { - "_key" : "83075", - "_id" : "worldEdges/83075", + "_key" : "81812", + "_id" : "worldEdges/81812", "_from" : "worldVertices/country-brazil", "_to" : "worldVertices/continent-south-america", - "_rev" : "_e4zxNT---G", + "_rev" : "_e9TS39----", "type" : "is-in" }, { - "_key" : "83077", - "_id" : "worldEdges/83077", + "_key" : "81814", + "_id" : "worldEdges/81814", "_from" : "worldVertices/country-brunei", "_to" : "worldVertices/continent-asia", - "_rev" : "_e4zxNT---H", + "_rev" : "_e9TS39---_", "type" : "is-in" }, { - "_key" : "83079", - "_id" : "worldEdges/83079", + "_key" : "81816", + "_id" : "worldEdges/81816", "_from" : "worldVertices/country-bulgaria", "_to" : "worldVertices/continent-europe", - "_rev" : "_e4zxNT---I", + "_rev" : "_e9TS39---A", "type" : "is-in" }, { - "_key" : "83081", - "_id" : "worldEdges/83081", + "_key" : "81818", + "_id" : "worldEdges/81818", "_from" : "worldVertices/country-burkina-faso", "_to" : "worldVertices/continent-africa", - "_rev" : "_e4zxNTC---", + "_rev" : "_e9TS39C---", "type" : "is-in" }, { - "_key" : "83083", - "_id" : "worldEdges/83083", + "_key" : "81820", + "_id" : "worldEdges/81820", "_from" : "worldVertices/country-burundi", "_to" : "worldVertices/continent-africa", - "_rev" : "_e4zxNTC--_", + "_rev" : "_e9TS39C--_", "type" : "is-in" }, { - "_key" : "83085", - "_id" : "worldEdges/83085", + "_key" : "81822", + "_id" : "worldEdges/81822", "_from" : "worldVertices/country-cambodia", "_to" : "worldVertices/continent-asia", - "_rev" : "_e4zxNTC--A", + "_rev" : "_e9TS39G---", "type" : "is-in" }, { - "_key" : "83087", - "_id" : "worldEdges/83087", + "_key" : "81824", + "_id" : "worldEdges/81824", "_from" : "worldVertices/country-cameroon", "_to" : "worldVertices/continent-africa", - "_rev" : "_e4zxNTC--B", + "_rev" : "_e9TS39G--_", "type" : "is-in" }, { - "_key" : "83089", - "_id" : "worldEdges/83089", + "_key" : "81826", + "_id" : "worldEdges/81826", "_from" : "worldVertices/country-canada", "_to" : "worldVertices/continent-north-america", - "_rev" : "_e4zxNTC--C", + "_rev" : "_e9TS39G--A", "type" : "is-in" }, { - "_key" : "83091", - "_id" : "worldEdges/83091", + "_key" : "81828", + "_id" : "worldEdges/81828", "_from" : "worldVertices/country-chad", "_to" : "worldVertices/continent-africa", - "_rev" : "_e4zxNTC--D", + "_rev" : "_e9TS39K---", "type" : "is-in" }, { - "_key" : "83093", - "_id" : "worldEdges/83093", + "_key" : "81830", + "_id" : "worldEdges/81830", "_from" : "worldVertices/country-chile", "_to" : "worldVertices/continent-south-america", - "_rev" : "_e4zxNTC--E", + "_rev" : "_e9TS39K--_", "type" : "is-in" }, { - "_key" : "83095", - "_id" : "worldEdges/83095", + "_key" : "81832", + "_id" : "worldEdges/81832", "_from" : "worldVertices/country-colombia", "_to" : "worldVertices/continent-south-america", - "_rev" : "_e4zxNTC--F", + "_rev" : "_e9TS39O---", "type" : "is-in" }, { - "_key" : "83097", - "_id" : "worldEdges/83097", + "_key" : "81834", + "_id" : "worldEdges/81834", "_from" : "worldVertices/country-cote-d-ivoire", "_to" : "worldVertices/continent-africa", - "_rev" : "_e4zxNTC--G", + "_rev" : "_e9TS39O--_", "type" : "is-in" }, { - "_key" : "83099", - "_id" : "worldEdges/83099", + "_key" : "81836", + "_id" : "worldEdges/81836", "_from" : "worldVertices/country-croatia", "_to" : "worldVertices/continent-europe", - "_rev" : "_e4zxNTC--H", + "_rev" : "_e9TS39O--A", "type" : "is-in" }, { - "_key" : "83101", - "_id" : "worldEdges/83101", + "_key" : "81838", + "_id" : "worldEdges/81838", "_from" : "worldVertices/country-czech-republic", "_to" : "worldVertices/continent-europe", - "_rev" : "_e4zxNTG---", + "_rev" : "_e9TS39S---", "type" : "is-in" }, { - "_key" : "83103", - "_id" : "worldEdges/83103", + "_key" : "81840", + "_id" : "worldEdges/81840", "_from" : "worldVertices/country-denmark", "_to" : "worldVertices/continent-europe", - "_rev" : "_e4zxNTG--_", + "_rev" : "_e9TS39S--_", "type" : "is-in" }, { - "_key" : "83105", - "_id" : "worldEdges/83105", + "_key" : "81842", + "_id" : "worldEdges/81842", "_from" : "worldVertices/country-ecuador", "_to" : "worldVertices/continent-south-america", - "_rev" : "_e4zxNTG--A", + "_rev" : "_e9TS39W---", "type" : "is-in" }, { - "_key" : "83107", - "_id" : "worldEdges/83107", + "_key" : "81844", + "_id" : "worldEdges/81844", "_from" : "worldVertices/country-egypt", "_to" : "worldVertices/continent-africa", - "_rev" : "_e4zxNTG--B", + "_rev" : "_e9TS39W--_", "type" : "is-in" }, { - "_key" : "83109", - "_id" : "worldEdges/83109", + "_key" : "81846", + "_id" : "worldEdges/81846", "_from" : "worldVertices/country-eritrea", "_to" : "worldVertices/continent-africa", - "_rev" : "_e4zxNTG--C", + "_rev" : "_e9TS39W--A", "type" : "is-in" }, { - "_key" : "83111", - "_id" : "worldEdges/83111", + "_key" : "81848", + "_id" : "worldEdges/81848", "_from" : "worldVertices/country-finland", "_to" : "worldVertices/continent-europe", - "_rev" : "_e4zxNTG--D", + "_rev" : "_e9TS39a---", "type" : "is-in" }, { - "_key" : "83113", - "_id" : "worldEdges/83113", + "_key" : "81850", + "_id" : "worldEdges/81850", "_from" : "worldVertices/country-france", "_to" : "worldVertices/continent-europe", - "_rev" : "_e4zxNTG--E", + "_rev" : "_e9TS39a--_", "type" : "is-in" }, { - "_key" : "83115", - "_id" : "worldEdges/83115", + "_key" : "81852", + "_id" : "worldEdges/81852", "_from" : "worldVertices/country-germany", "_to" : "worldVertices/continent-europe", - "_rev" : "_e4zxNTG--F", + "_rev" : "_e9TS39e---", "type" : "is-in" }, { - "_key" : "83117", - "_id" : "worldEdges/83117", + "_key" : "81854", + "_id" : "worldEdges/81854", "_from" : "worldVertices/country-people-s-republic-of-china", "_to" : "worldVertices/continent-asia", - "_rev" : "_e4zxNTG--G", + "_rev" : "_e9TS39e--_", "type" : "is-in" }, { - "_key" : "83119", - "_id" : "worldEdges/83119", + "_key" : "81856", + "_id" : "worldEdges/81856", "_from" : "worldVertices/capital-algiers", "_to" : "worldVertices/country-algeria", - "_rev" : "_e4zxNTG--H", + "_rev" : "_e9TS39e--A", "type" : "is-in" }, { - "_key" : "83121", - "_id" : "worldEdges/83121", + "_key" : "81858", + "_id" : "worldEdges/81858", "_from" : "worldVertices/capital-andorra-la-vella", "_to" : "worldVertices/country-andorra", - "_rev" : "_e4zxNTG--I", + "_rev" : "_e9TS39i---", "type" : "is-in" }, { - "_key" : "83123", - "_id" : "worldEdges/83123", + "_key" : "81860", + "_id" : "worldEdges/81860", "_from" : "worldVertices/capital-asmara", "_to" : "worldVertices/country-eritrea", - "_rev" : "_e4zxNTK---", + "_rev" : "_e9TS39i--_", "type" : "is-in" }, { - "_key" : "83125", - "_id" : "worldEdges/83125", + "_key" : "81862", + "_id" : "worldEdges/81862", "_from" : "worldVertices/capital-bandar-seri-begawan", "_to" : "worldVertices/country-brunei", - "_rev" : "_e4zxNTK--_", + "_rev" : "_e9TS39m---", "type" : "is-in" }, { - "_key" : "83127", - "_id" : "worldEdges/83127", + "_key" : "81864", + "_id" : "worldEdges/81864", "_from" : "worldVertices/capital-beijing", "_to" : "worldVertices/country-people-s-republic-of-china", - "_rev" : "_e4zxNTK--A", + "_rev" : "_e9TS39m--_", "type" : "is-in" }, { - "_key" : "83129", - "_id" : "worldEdges/83129", + "_key" : "81866", + "_id" : "worldEdges/81866", "_from" : "worldVertices/capital-berlin", "_to" : "worldVertices/country-germany", - "_rev" : "_e4zxNTK--B", + "_rev" : "_e9TS39q---", "type" : "is-in" }, { - "_key" : "83131", - "_id" : "worldEdges/83131", + "_key" : "81868", + "_id" : "worldEdges/81868", "_from" : "worldVertices/capital-bogota", "_to" : "worldVertices/country-colombia", - "_rev" : "_e4zxNTK--C", + "_rev" : "_e9TS39q--_", "type" : "is-in" }, { - "_key" : "83133", - "_id" : "worldEdges/83133", + "_key" : "81870", + "_id" : "worldEdges/81870", "_from" : "worldVertices/capital-brasilia", "_to" : "worldVertices/country-brazil", - "_rev" : "_e4zxNTK--D", + "_rev" : "_e9TS39q--A", "type" : "is-in" }, { - "_key" : "83135", - "_id" : "worldEdges/83135", + "_key" : "81872", + "_id" : "worldEdges/81872", "_from" : "worldVertices/capital-bridgetown", "_to" : "worldVertices/country-barbados", - "_rev" : "_e4zxNTK--E", + "_rev" : "_e9TS39u---", "type" : "is-in" }, { - "_key" : "83137", - "_id" : "worldEdges/83137", + "_key" : "81874", + "_id" : "worldEdges/81874", "_from" : "worldVertices/capital-brussels", "_to" : "worldVertices/country-belgium", - "_rev" : "_e4zxNTK--F", + "_rev" : "_e9TS39u--_", "type" : "is-in" }, { - "_key" : "83139", - "_id" : "worldEdges/83139", + "_key" : "81876", + "_id" : "worldEdges/81876", "_from" : "worldVertices/capital-buenos-aires", "_to" : "worldVertices/country-argentina", - "_rev" : "_e4zxNTK--G", + "_rev" : "_e9TS39y---", "type" : "is-in" }, { - "_key" : "83141", - "_id" : "worldEdges/83141", + "_key" : "81878", + "_id" : "worldEdges/81878", "_from" : "worldVertices/capital-bujumbura", "_to" : "worldVertices/country-burundi", - "_rev" : "_e4zxNTK--H", + "_rev" : "_e9TS39y--_", "type" : "is-in" }, { - "_key" : "83143", - "_id" : "worldEdges/83143", + "_key" : "81880", + "_id" : "worldEdges/81880", "_from" : "worldVertices/capital-cairo", "_to" : "worldVertices/country-egypt", - "_rev" : "_e4zxNTO---", + "_rev" : "_e9TS39y--A", "type" : "is-in" }, { - "_key" : "83145", - "_id" : "worldEdges/83145", + "_key" : "81882", + "_id" : "worldEdges/81882", "_from" : "worldVertices/capital-canberra", "_to" : "worldVertices/country-australia", - "_rev" : "_e4zxNTO--_", + "_rev" : "_e9TS392---", "type" : "is-in" }, { - "_key" : "83147", - "_id" : "worldEdges/83147", + "_key" : "81884", + "_id" : "worldEdges/81884", "_from" : "worldVertices/capital-copenhagen", "_to" : "worldVertices/country-denmark", - "_rev" : "_e4zxNTO--A", + "_rev" : "_e9TS392--_", "type" : "is-in" }, { - "_key" : "83149", - "_id" : "worldEdges/83149", + "_key" : "81886", + "_id" : "worldEdges/81886", "_from" : "worldVertices/capital-dhaka", "_to" : "worldVertices/country-bangladesh", - "_rev" : "_e4zxNTO--B", + "_rev" : "_e9TS396---", "type" : "is-in" }, { - "_key" : "83151", - "_id" : "worldEdges/83151", + "_key" : "81888", + "_id" : "worldEdges/81888", "_from" : "worldVertices/capital-gaborone", "_to" : "worldVertices/country-botswana", - "_rev" : "_e4zxNTO--C", + "_rev" : "_e9TS396--_", "type" : "is-in" }, { - "_key" : "83153", - "_id" : "worldEdges/83153", + "_key" : "81890", + "_id" : "worldEdges/81890", "_from" : "worldVertices/capital-helsinki", "_to" : "worldVertices/country-finland", - "_rev" : "_e4zxNTO--D", + "_rev" : "_e9TS396--A", "type" : "is-in" }, { - "_key" : "83155", - "_id" : "worldEdges/83155", + "_key" : "81892", + "_id" : "worldEdges/81892", "_from" : "worldVertices/capital-kabul", "_to" : "worldVertices/country-afghanistan", - "_rev" : "_e4zxNTO--E", + "_rev" : "_e9TS4-----", "type" : "is-in" }, { - "_key" : "83157", - "_id" : "worldEdges/83157", + "_key" : "81894", + "_id" : "worldEdges/81894", "_from" : "worldVertices/capital-la-paz", "_to" : "worldVertices/country-bolivia", - "_rev" : "_e4zxNTO--F", + "_rev" : "_e9TS4----_", "type" : "is-in" }, { - "_key" : "83159", - "_id" : "worldEdges/83159", + "_key" : "81896", + "_id" : "worldEdges/81896", "_from" : "worldVertices/capital-luanda", "_to" : "worldVertices/country-angola", - "_rev" : "_e4zxNTO--G", + "_rev" : "_e9TS4-C---", "type" : "is-in" }, { - "_key" : "83161", - "_id" : "worldEdges/83161", + "_key" : "81898", + "_id" : "worldEdges/81898", "_from" : "worldVertices/capital-manama", "_to" : "worldVertices/country-bahrain", - "_rev" : "_e4zxNTO--H", + "_rev" : "_e9TS4-C--_", "type" : "is-in" }, { - "_key" : "83163", - "_id" : "worldEdges/83163", + "_key" : "81900", + "_id" : "worldEdges/81900", "_from" : "worldVertices/capital-nassau", "_to" : "worldVertices/country-bahamas", - "_rev" : "_e4zxNTO--I", + "_rev" : "_e9TS4-G---", "type" : "is-in" }, { - "_key" : "83165", - "_id" : "worldEdges/83165", + "_key" : "81902", + "_id" : "worldEdges/81902", "_from" : "worldVertices/capital-n-djamena", "_to" : "worldVertices/country-chad", - "_rev" : "_e4zxNTS---", + "_rev" : "_e9TS4-G--_", "type" : "is-in" }, { - "_key" : "83167", - "_id" : "worldEdges/83167", + "_key" : "81904", + "_id" : "worldEdges/81904", "_from" : "worldVertices/capital-ottawa", "_to" : "worldVertices/country-canada", - "_rev" : "_e4zxNTS--_", + "_rev" : "_e9TS4-G--A", "type" : "is-in" }, { - "_key" : "83169", - "_id" : "worldEdges/83169", + "_key" : "81906", + "_id" : "worldEdges/81906", "_from" : "worldVertices/capital-ouagadougou", "_to" : "worldVertices/country-burkina-faso", - "_rev" : "_e4zxNTS--A", + "_rev" : "_e9TS4-K---", "type" : "is-in" }, { - "_key" : "83171", - "_id" : "worldEdges/83171", + "_key" : "81908", + "_id" : "worldEdges/81908", "_from" : "worldVertices/capital-paris", "_to" : "worldVertices/country-france", - "_rev" : "_e4zxNTS--B", + "_rev" : "_e9TS4-K--_", "type" : "is-in" }, { - "_key" : "83173", - "_id" : "worldEdges/83173", + "_key" : "81910", + "_id" : "worldEdges/81910", "_from" : "worldVertices/capital-phnom-penh", "_to" : "worldVertices/country-cambodia", - "_rev" : "_e4zxNTS--C", + "_rev" : "_e9TS4-O---", "type" : "is-in" }, { - "_key" : "83175", - "_id" : "worldEdges/83175", + "_key" : "81912", + "_id" : "worldEdges/81912", "_from" : "worldVertices/capital-prague", "_to" : "worldVertices/country-czech-republic", - "_rev" : "_e4zxNTS--D", + "_rev" : "_e9TS4-O--_", "type" : "is-in" }, { - "_key" : "83177", - "_id" : "worldEdges/83177", + "_key" : "81914", + "_id" : "worldEdges/81914", "_from" : "worldVertices/capital-quito", "_to" : "worldVertices/country-ecuador", - "_rev" : "_e4zxNTS--E", + "_rev" : "_e9TS4-O--A", "type" : "is-in" }, { - "_key" : "83179", - "_id" : "worldEdges/83179", + "_key" : "81916", + "_id" : "worldEdges/81916", "_from" : "worldVertices/capital-saint-john-s", "_to" : "worldVertices/country-antigua-and-barbuda", - "_rev" : "_e4zxNTS--F", + "_rev" : "_e9TS4-S---", "type" : "is-in" }, { - "_key" : "83181", - "_id" : "worldEdges/83181", + "_key" : "81918", + "_id" : "worldEdges/81918", "_from" : "worldVertices/capital-santiago", "_to" : "worldVertices/country-chile", - "_rev" : "_e4zxNTS--G", + "_rev" : "_e9TS4-S--_", "type" : "is-in" }, { - "_key" : "83183", - "_id" : "worldEdges/83183", + "_key" : "81920", + "_id" : "worldEdges/81920", "_from" : "worldVertices/capital-sarajevo", "_to" : "worldVertices/country-bosnia-and-herzegovina", - "_rev" : "_e4zxNTS--H", + "_rev" : "_e9TS4-W---", "type" : "is-in" }, { - "_key" : "83185", - "_id" : "worldEdges/83185", + "_key" : "81922", + "_id" : "worldEdges/81922", "_from" : "worldVertices/capital-sofia", "_to" : "worldVertices/country-bulgaria", - "_rev" : "_e4zxNTW---", + "_rev" : "_e9TS4-W--_", "type" : "is-in" }, { - "_key" : "83187", - "_id" : "worldEdges/83187", + "_key" : "81924", + "_id" : "worldEdges/81924", "_from" : "worldVertices/capital-thimphu", "_to" : "worldVertices/country-bhutan", - "_rev" : "_e4zxNTW--_", + "_rev" : "_e9TS4-W--A", "type" : "is-in" }, { - "_key" : "83189", - "_id" : "worldEdges/83189", + "_key" : "81926", + "_id" : "worldEdges/81926", "_from" : "worldVertices/capital-tirana", "_to" : "worldVertices/country-albania", - "_rev" : "_e4zxNTW--A", + "_rev" : "_e9TS4-a---", "type" : "is-in" }, { - "_key" : "83191", - "_id" : "worldEdges/83191", + "_key" : "81928", + "_id" : "worldEdges/81928", "_from" : "worldVertices/capital-vienna", "_to" : "worldVertices/country-austria", - "_rev" : "_e4zxNTW--B", + "_rev" : "_e9TS4-a--_", "type" : "is-in" }, { - "_key" : "83193", - "_id" : "worldEdges/83193", + "_key" : "81930", + "_id" : "worldEdges/81930", "_from" : "worldVertices/capital-yamoussoukro", "_to" : "worldVertices/country-cote-d-ivoire", - "_rev" : "_e4zxNTW--C", + "_rev" : "_e9TS4-e---", "type" : "is-in" }, { - "_key" : "83195", - "_id" : "worldEdges/83195", + "_key" : "81932", + "_id" : "worldEdges/81932", "_from" : "worldVertices/capital-yaounde", "_to" : "worldVertices/country-cameroon", - "_rev" : "_e4zxNTW--D", + "_rev" : "_e9TS4-e--_", "type" : "is-in" }, { - "_key" : "83197", - "_id" : "worldEdges/83197", + "_key" : "81934", + "_id" : "worldEdges/81934", "_from" : "worldVertices/capital-zagreb", "_to" : "worldVertices/country-croatia", - "_rev" : "_e4zxNTW--E", + "_rev" : "_e9TS4-e--A", "type" : "is-in" } ] diff --git a/3.11/generated/Examples/hybridSmartGraphCreateGraphHowTo1_cluster.generated b/3.11/generated/Examples/hybridSmartGraphCreateGraphHowTo1_cluster.generated index 1b21363d2e..5973548d7c 100644 --- a/3.11/generated/Examples/hybridSmartGraphCreateGraphHowTo1_cluster.generated +++ b/3.11/generated/Examples/hybridSmartGraphCreateGraphHowTo1_cluster.generated @@ -3,7 +3,7 @@ arangosh> var rel = graph_module._relation( arangosh> var graph = graph_module._create("myGraph", [rel], [], {satellites: ["shop", "customer"], smartGraphAttribute: "region", numberOfShards: 9}); arangosh> graph_module._graph("myGraph"); {[SmartGraph] - "isCustomer" : [ArangoCollection 10802, "isCustomer" (type edge, status loaded)], - "shop" : [ArangoCollection 10800, "shop" (type document, status loaded)], - "customer" : [ArangoCollection 10801, "customer" (type document, status loaded)] + "isCustomer" : [ArangoCollection 10803, "isCustomer" (type edge, status loaded)], + "shop" : [ArangoCollection 10801, "shop" (type document, status loaded)], + "customer" : [ArangoCollection 10802, "customer" (type document, status loaded)] } diff --git a/3.11/generated/Examples/hybridSmartGraphCreateGraphHowTo2_cluster.generated b/3.11/generated/Examples/hybridSmartGraphCreateGraphHowTo2_cluster.generated index 16209c8b50..af8c827a0d 100644 --- a/3.11/generated/Examples/hybridSmartGraphCreateGraphHowTo2_cluster.generated +++ b/3.11/generated/Examples/hybridSmartGraphCreateGraphHowTo2_cluster.generated @@ -3,7 +3,7 @@ arangosh> var rel = graph_module._relation( arangosh> var graph = graph_module._create("myGraph", [rel], [], {satellites: ["shop"], smartGraphAttribute: "region", isDisjoint: true, numberOfShards: 9}); arangosh> graph_module._graph("myGraph"); {[SmartGraph] - "isCustomer" : [ArangoCollection 10825, "isCustomer" (type edge, status loaded)], - "shop" : [ArangoCollection 10824, "shop" (type document, status loaded)], - "customer" : [ArangoCollection 10814, "customer" (type document, status loaded)] + "isCustomer" : [ArangoCollection 10826, "isCustomer" (type edge, status loaded)], + "shop" : [ArangoCollection 10825, "shop" (type document, status loaded)], + "customer" : [ArangoCollection 10815, "customer" (type document, status loaded)] } diff --git a/3.11/generated/Examples/job_cancel.generated b/3.11/generated/Examples/job_cancel.generated index 4ca4650531..d798c16676 100644 --- a/3.11/generated/Examples/job_cancel.generated +++ b/3.11/generated/Examples/job_cancel.generated @@ -9,7 +9,7 @@ content-type: text/plain connection: Keep-Alive content-length: 0 server: ArangoDB -x-arango-async-id: 83493 +x-arango-async-id: 82230 x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -24,9 +24,9 @@ x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff [ - "83493" + "82230" ] -shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job/83493/cancel +shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job/82230/cancel HTTP/1.1 200 OK content-type: application/json @@ -50,5 +50,5 @@ x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff [ - "83493" + "82230" ] diff --git a/3.11/generated/Examples/job_delete_01.generated b/3.11/generated/Examples/job_delete_01.generated index c5a9332a54..46c7337c39 100644 --- a/3.11/generated/Examples/job_delete_01.generated +++ b/3.11/generated/Examples/job_delete_01.generated @@ -5,7 +5,7 @@ content-type: text/plain connection: Keep-Alive content-length: 0 server: ArangoDB -x-arango-async-id: 83497 +x-arango-async-id: 82234 x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff diff --git a/3.11/generated/Examples/job_delete_02.generated b/3.11/generated/Examples/job_delete_02.generated index ca3eca18c6..2bbf2c34db 100644 --- a/3.11/generated/Examples/job_delete_02.generated +++ b/3.11/generated/Examples/job_delete_02.generated @@ -5,7 +5,7 @@ content-type: text/plain connection: Keep-Alive content-length: 0 server: ArangoDB -x-arango-async-id: 83499 +x-arango-async-id: 82236 x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -22,9 +22,9 @@ x-content-type-options: nosniff { "error" : false, "code" : 200, - "time" : 1665062354.3087666 + "time" : 1666268326.0732732 } -shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/job/expired?stamp=1665062354.3087666 +shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/job/expired?stamp=1666268326.0732732 HTTP/1.1 200 OK content-type: application/json diff --git a/3.11/generated/Examples/job_delete_03.generated b/3.11/generated/Examples/job_delete_03.generated index b0ac721549..005130ad3f 100644 --- a/3.11/generated/Examples/job_delete_03.generated +++ b/3.11/generated/Examples/job_delete_03.generated @@ -5,11 +5,11 @@ content-type: text/plain connection: Keep-Alive content-length: 0 server: ArangoDB -x-arango-async-id: 83501 +x-arango-async-id: 82238 x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff -shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/job/83501 +shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/job/82238 HTTP/1.1 200 OK content-type: application/json diff --git a/3.11/generated/Examples/job_fetch_result_03.generated b/3.11/generated/Examples/job_fetch_result_03.generated index be0ead4301..ebac145533 100644 --- a/3.11/generated/Examples/job_fetch_result_03.generated +++ b/3.11/generated/Examples/job_fetch_result_03.generated @@ -5,18 +5,18 @@ content-type: text/plain connection: Keep-Alive content-length: 0 server: ArangoDB -x-arango-async-id: 83506 +x-arango-async-id: 82243 x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff -shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job/83506 +shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job/82243 HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive content-length: 67 server: ArangoDB -x-arango-async-id: 83506 +x-arango-async-id: 82243 x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff diff --git a/3.11/generated/Examples/job_fetch_result_04.generated b/3.11/generated/Examples/job_fetch_result_04.generated index 9907981181..3aa641f2af 100644 --- a/3.11/generated/Examples/job_fetch_result_04.generated +++ b/3.11/generated/Examples/job_fetch_result_04.generated @@ -9,18 +9,18 @@ content-type: text/plain connection: Keep-Alive content-length: 0 server: ArangoDB -x-arango-async-id: 83508 +x-arango-async-id: 82245 x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff -shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job/83508 +shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job/82245 HTTP/1.1 400 Bad Request content-type: application/json connection: Keep-Alive content-length: 114 server: ArangoDB -x-arango-async-id: 83508 +x-arango-async-id: 82245 x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff diff --git a/3.11/generated/Examples/job_getByType_01.generated b/3.11/generated/Examples/job_getByType_01.generated index 4c348f2bd7..5a729a055e 100644 --- a/3.11/generated/Examples/job_getByType_01.generated +++ b/3.11/generated/Examples/job_getByType_01.generated @@ -5,7 +5,7 @@ content-type: text/plain connection: Keep-Alive content-length: 0 server: ArangoDB -x-arango-async-id: 83510 +x-arango-async-id: 82247 x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -20,5 +20,5 @@ x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff [ - "83510" + "82247" ] diff --git a/3.11/generated/Examples/job_getByType_02.generated b/3.11/generated/Examples/job_getByType_02.generated index 478079c672..888fd9fae7 100644 --- a/3.11/generated/Examples/job_getByType_02.generated +++ b/3.11/generated/Examples/job_getByType_02.generated @@ -5,7 +5,7 @@ content-type: text/plain connection: Keep-Alive content-length: 0 server: ArangoDB -x-arango-async-id: 83512 +x-arango-async-id: 82249 x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff diff --git a/3.11/generated/Examples/job_getByType_03.generated b/3.11/generated/Examples/job_getByType_03.generated index d4e950428d..4b23c6404e 100644 --- a/3.11/generated/Examples/job_getByType_03.generated +++ b/3.11/generated/Examples/job_getByType_03.generated @@ -14,7 +14,7 @@ content-type: text/plain connection: Keep-Alive content-length: 0 server: ArangoDB -x-arango-async-id: 83514 +x-arango-async-id: 82251 x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff @@ -29,9 +29,9 @@ x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff [ - "83514" + "82251" ] -shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/job/83514 +shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/job/82251 HTTP/1.1 200 OK content-type: application/json diff --git a/3.11/generated/Examples/job_getStatusById_01.generated b/3.11/generated/Examples/job_getStatusById_01.generated index 04204114a6..cb5bc4172b 100644 --- a/3.11/generated/Examples/job_getStatusById_01.generated +++ b/3.11/generated/Examples/job_getStatusById_01.generated @@ -5,18 +5,18 @@ content-type: text/plain connection: Keep-Alive content-length: 0 server: ArangoDB -x-arango-async-id: 83517 +x-arango-async-id: 82254 x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff -shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job/83517 +shell> curl -X PUT --header 'accept: application/json' --dump - http://localhost:8529/_api/job/82254 HTTP/1.1 200 OK content-type: application/json connection: Keep-Alive content-length: 67 server: ArangoDB -x-arango-async-id: 83517 +x-arango-async-id: 82254 x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff diff --git a/3.11/generated/Examples/job_getStatusById_02.generated b/3.11/generated/Examples/job_getStatusById_02.generated index 0984ce1859..5644b3e00d 100644 --- a/3.11/generated/Examples/job_getStatusById_02.generated +++ b/3.11/generated/Examples/job_getStatusById_02.generated @@ -14,11 +14,11 @@ content-type: text/plain connection: Keep-Alive content-length: 0 server: ArangoDB -x-arango-async-id: 83519 +x-arango-async-id: 82256 x-arango-queue-time-seconds: 0.000000 x-content-type-options: nosniff -shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/job/83519 +shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/job/82256 HTTP/1.1 204 No Content content-type: text/plain diff --git a/3.11/generated/Examples/jsStreamTransaction_1.generated b/3.11/generated/Examples/jsStreamTransaction_1.generated index 50d35d0210..d57059c73c 100644 --- a/3.11/generated/Examples/jsStreamTransaction_1.generated +++ b/3.11/generated/Examples/jsStreamTransaction_1.generated @@ -13,19 +13,19 @@ arangosh> if (task) { { "_key" : "123", "_id" : "tasks/123", - "_rev" : "_e4zxNXq--_", + "_rev" : "_e9TS4Oa---", "type" : "sendEmail", "date" : "2022-07-07T15:20:00.000Z" } { "_key" : "124", "_id" : "tasks/124", - "_rev" : "_e4zxNXu--_", + "_rev" : "_e9TS4Om---", "type" : "sendEmail", - "date" : "2022-10-06T13:19:14.332Z" + "date" : "2022-10-20T12:18:46.154Z" } arangosh> trx.status(); { - "id" : "83565", + "id" : "82302", "status" : "committed" } diff --git a/3.11/generated/Examples/listCurrentConfigOpts.generated b/3.11/generated/Examples/listCurrentConfigOpts.generated index a072aa64bd..07d95c9118 100644 --- a/3.11/generated/Examples/listCurrentConfigOpts.generated +++ b/3.11/generated/Examples/listCurrentConfigOpts.generated @@ -44,10 +44,10 @@ arangosh> db._executeTransaction({ collections "agency.supervision-grace-period" : 10, "agency.supervision-ok-threshold" : 5, "agency.wait-for-sync" : true, - "arangosearch.commit-threads" : 6, - "arangosearch.commit-threads-idle" : 6, - "arangosearch.consolidation-threads" : 6, - "arangosearch.consolidation-threads-idle" : 6, + "arangosearch.commit-threads" : 5, + "arangosearch.commit-threads-idle" : 5, + "arangosearch.consolidation-threads" : 5, + "arangosearch.consolidation-threads-idle" : 5, "arangosearch.fail-queries-on-out-of-sync" : false, "arangosearch.skip-recovery" : [ ], "arangosearch.threads" : 0, @@ -61,7 +61,7 @@ arangosh> db._executeTransaction({ collections "backup.files-per-batch" : 100, "backup.local-path-prefix" : "/", "cache.rebalancing-interval" : 2000000, - "cache.size" : 17872713728, + "cache.size" : 16341337088, "cluster.agency-endpoint" : [ ], "cluster.api-jwt-policy" : "jwt-compat", "cluster.create-waits-for-sync-replication" : true, @@ -88,7 +88,7 @@ arangosh> db._executeTransaction({ collections "database.auto-upgrade" : false, "database.check-version" : false, "database.default-replication-version" : "1", - "database.directory" : "/tmp/arangosh_naeIdK/rocksdb-clusterOrNot/single_0/data", + "database.directory" : "/tmp/arangosh_maFbLK/rocksdb-clusterOrNot/single_0/data", "database.extended-names-databases" : true, "database.force-sync-properties" : false, "database.ignore-datafile-errors" : false, @@ -118,7 +118,7 @@ arangosh> db._executeTransaction({ collections "javascript.allow-admin-execute" : true, "javascript.allow-external-process-control" : false, "javascript.allow-port-testing" : false, - "javascript.app-path" : "/tmp/arangosh_naeIdK/rocksdb-clusterOrNot/single_0/apps", + "javascript.app-path" : "/tmp/arangosh_maFbLK/rocksdb-clusterOrNot/single_0/apps", "javascript.copy-installation" : false, "javascript.enabled" : true, "javascript.endpoints-allowlist" : [ ], @@ -217,7 +217,7 @@ arangosh> db._executeTransaction({ collections "log.color" : true, "log.escape-control-chars" : true, "log.escape-unicode-chars" : false, - "log.file" : "/tmp/arangosh_naeIdK/rocksdb-clusterOrNot/single_0/log", + "log.file" : "/tmp/arangosh_maFbLK/rocksdb-clusterOrNot/single_0/log", "log.file-group" : "", "log.file-mode" : "", "log.force-direct" : false, @@ -235,7 +235,7 @@ arangosh> db._executeTransaction({ collections "log.line-number" : false, "log.max-entry-length" : 134217728, "log.output" : [ - "file:///tmp/arangosh_naeIdK/rocksdb-clusterOrNot/single_0/log" + "file:///tmp/arangosh_maFbLK/rocksdb-clusterOrNot/single_0/log" ], "log.performance" : false, "log.prefix" : "", @@ -256,12 +256,12 @@ arangosh> db._executeTransaction({ collections "network.max-requests-in-flight" : 65536, "network.protocol" : "", "network.verify-hosts" : false, - "pregel.max-parallelism" : 36, + "pregel.max-parallelism" : 32, "pregel.memory-mapped-files" : true, "pregel.memory-mapped-files-custom-path" : "", "pregel.memory-mapped-files-location-type" : "temp-directory", "pregel.min-parallelism" : 1, - "pregel.parallelism" : 9, + "pregel.parallelism" : 8, "query.allow-collections-in-expressions" : false, "query.cache-entries" : 128, "query.cache-entries-max-size" : 268435456, @@ -269,11 +269,11 @@ arangosh> db._executeTransaction({ collections "query.cache-include-system-collections" : false, "query.cache-mode" : "off", "query.fail-on-warning" : false, - "query.global-memory-limit" : 59647054233, + "query.global-memory-limit" : 54685393920, "query.max-nodes-per-callstack" : 250, "query.max-parallelism" : 4, "query.max-runtime" : 0, - "query.memory-limit" : 44183003136, + "query.memory-limit" : 40507699200, "query.memory-limit-override" : true, "query.optimizer-max-plans" : 128, "query.optimizer-rules" : [ ], @@ -302,7 +302,7 @@ arangosh> db._executeTransaction({ collections "rocksdb.allow-fallocate" : true, "rocksdb.block-align-data-blocks" : false, "rocksdb.block-cache-shard-bits" : 7, - "rocksdb.block-cache-size" : 21447256473, + "rocksdb.block-cache-size" : 19609604505, "rocksdb.cache-index-and-filter-blocks" : true, "rocksdb.cache-index-and-filter-blocks-with-high-priority" : true, "rocksdb.checksum-type" : "xxHash64", @@ -332,7 +332,7 @@ arangosh> db._executeTransaction({ collections "rocksdb.level0-slowdown-trigger" : 16, "rocksdb.level0-stop-trigger" : 256, "rocksdb.limit-open-files-at-startup" : false, - "rocksdb.max-background-jobs" : 36, + "rocksdb.max-background-jobs" : 32, "rocksdb.max-bytes-for-level-base" : 268435456, "rocksdb.max-bytes-for-level-multiplier" : 10, "rocksdb.max-parallel-compactions" : 2, @@ -353,8 +353,8 @@ arangosh> db._executeTransaction({ collections "rocksdb.minimum-disk-free-bytes" : 16777216, "rocksdb.minimum-disk-free-percent" : 0.01, "rocksdb.num-levels" : 7, - "rocksdb.num-threads-priority-high" : 18, - "rocksdb.num-threads-priority-low" : 18, + "rocksdb.num-threads-priority-high" : 16, + "rocksdb.num-threads-priority-low" : 16, "rocksdb.num-uncompressed-levels" : 2, "rocksdb.optimize-filters-for-hits" : false, "rocksdb.pending-compactions-slowdown-trigger" : 131072, @@ -364,6 +364,7 @@ arangosh> db._executeTransaction({ collections "rocksdb.pin-top-level-index-and-filter" : true, "rocksdb.prepopulate-block-cache" : false, "rocksdb.recycle-log-file-num" : false, + "rocksdb.reserve-file-metadata-memory" : false, "rocksdb.reserve-table-builder-memory" : false, "rocksdb.reserve-table-reader-memory" : false, "rocksdb.sync-delay-threshold" : 5000, @@ -378,8 +379,8 @@ arangosh> db._executeTransaction({ collections "rocksdb.throttle-scaling-factor" : 17, "rocksdb.throttle-slots" : 120, "rocksdb.throttle-slow-down-writes-trigger" : 8, - "rocksdb.total-write-buffer-size" : 28596341964, - "rocksdb.transaction-lock-stripes" : 36, + "rocksdb.total-write-buffer-size" : 26146139340, + "rocksdb.transaction-lock-stripes" : 32, "rocksdb.transaction-lock-timeout" : 1000, "rocksdb.use-direct-io-for-flush-and-compaction" : false, "rocksdb.use-direct-reads" : false, @@ -402,20 +403,20 @@ arangosh> db._executeTransaction({ collections "server.descriptors-minimum" : 8192, "server.early-connections" : false, "server.endpoint" : [ - "tcp://127.0.0.1:14406" + "tcp://127.0.0.1:10138" ], "server.export-metrics-api" : true, "server.export-read-write-metrics" : false, "server.gid" : "", "server.harden" : false, - "server.io-threads" : 9, + "server.io-threads" : 8, "server.local-authentication" : true, "server.maintenance-actions-block" : 2, "server.maintenance-actions-linger" : 3600, - "server.maintenance-slow-threads" : 5, - "server.maintenance-threads" : 10, + "server.maintenance-slow-threads" : 4, + "server.maintenance-threads" : 9, "server.maximal-queue-size" : 4096, - "server.maximal-threads" : 72, + "server.maximal-threads" : 64, "server.minimal-threads" : 4, "server.ongoing-low-priority-multiplier" : 4, "server.prio1-size" : 4096, @@ -446,10 +447,10 @@ arangosh> db._executeTransaction({ collections "temp.-intermediate-results-encryption-hardware-acceleration" : true, "temp.intermediate-results-capacity" : 0, "temp.intermediate-results-encryption" : false, - "temp.intermediate-results-path" : "/tmp/arangosh_naeIdK/rocksdb-clusterOrNot/single_0/temp-rocksdb-dir/", + "temp.intermediate-results-path" : "/tmp/arangosh_maFbLK/rocksdb-clusterOrNot/single_0/temp-rocksdb-dir/", "temp.intermediate-results-spillover-threshold-memory-usage" : 134217728, "temp.intermediate-results-spillover-threshold-num-rows" : 5000000, - "temp.path" : "/tmp/arangosh_naeIdK/rocksdb-clusterOrNot/single_0/tmp", + "temp.path" : "/tmp/arangosh_maFbLK/rocksdb-clusterOrNot/single_0/tmp", "transaction.streaming-idle-timeout" : 60, "transaction.streaming-lock-timeout" : 8, "ttl.frequency" : 30000, diff --git a/3.11/generated/Examples/satelliteGraphCreate2_cluster.generated b/3.11/generated/Examples/satelliteGraphCreate2_cluster.generated index a7858fa39d..edc7687051 100644 --- a/3.11/generated/Examples/satelliteGraphCreate2_cluster.generated +++ b/3.11/generated/Examples/satelliteGraphCreate2_cluster.generated @@ -1,2 +1,6 @@ arangosh> var graph = satelliteGraphModule._create("satelliteGraph"); arangosh> graph._addVertexCollection("aVertexCollection"); +arangosh> graph = satelliteGraphModule._graph("satelliteGraph"); +{[SatelliteGraph] + "aVertexCollection" : [ArangoCollection 10848, "aVertexCollection" (type document, status loaded)] +} diff --git a/3.11/generated/Examples/satelliteGraphCreate3_cluster.generated b/3.11/generated/Examples/satelliteGraphCreate3_cluster.generated index 1b57371967..63ccc1dd6c 100644 --- a/3.11/generated/Examples/satelliteGraphCreate3_cluster.generated +++ b/3.11/generated/Examples/satelliteGraphCreate3_cluster.generated @@ -1,3 +1,8 @@ arangosh> var graph = satelliteGraphModule._create("satelliteGraph"); arangosh> var relation = satelliteGraphModule._relation("isFriend", ["person"], ["person"]); arangosh> graph._extendEdgeDefinitions(relation); +arangosh> graph = satelliteGraphModule._graph("satelliteGraph"); +{[SatelliteGraph] + "isFriend" : [ArangoCollection 10858, "isFriend" (type edge, status loaded)], + "person" : [ArangoCollection 10856, "person" (type document, status loaded)] +} diff --git a/3.11/generated/Examples/satelliteGraphGeneralGraph1_cluster.generated b/3.11/generated/Examples/satelliteGraphGeneralGraph1_cluster.generated index a3e3d42d74..361a206d9e 100644 --- a/3.11/generated/Examples/satelliteGraphGeneralGraph1_cluster.generated +++ b/3.11/generated/Examples/satelliteGraphGeneralGraph1_cluster.generated @@ -2,13 +2,13 @@ arangosh> var graphModule = var satelliteGraphModule = require("@arangodb/satellite-graph"); arangosh> graphModule._create("normalGraph", [ graphModule._relation("edges", "vertices", "vertices") ], [], {}); {[GeneralGraph] - "edges" : [ArangoCollection 10867, "edges" (type edge, status loaded)], - "vertices" : [ArangoCollection 10866, "vertices" (type document, status loaded)] + "edges" : [ArangoCollection 10868, "edges" (type edge, status loaded)], + "vertices" : [ArangoCollection 10867, "vertices" (type document, status loaded)] } arangosh> satelliteGraphModule._create("satelliteGraph", [ satelliteGraphModule._relation("satEdges", "satVertices", "satVertices") ], [], {}); {[SatelliteGraph] - "satEdges" : [ArangoCollection 10874, "satEdges" (type edge, status loaded)], - "satVertices" : [ArangoCollection 10872, "satVertices" (type document, status loaded)] + "satEdges" : [ArangoCollection 10875, "satEdges" (type edge, status loaded)], + "satVertices" : [ArangoCollection 10873, "satVertices" (type document, status loaded)] } arangosh> db._create("collection", {numberOfShards: 8}); -[ArangoCollection 10878, "collection" (type document, status loaded)] +[ArangoCollection 10879, "collection" (type document, status loaded)] diff --git a/3.11/generated/Examples/satelliteGraphPrototype2_cluster.generated b/3.11/generated/Examples/satelliteGraphPrototype2_cluster.generated index dddbf1f452..df6a0f6a24 100644 --- a/3.11/generated/Examples/satelliteGraphPrototype2_cluster.generated +++ b/3.11/generated/Examples/satelliteGraphPrototype2_cluster.generated @@ -1,3 +1,7 @@ arangosh> var satelliteGraphModule = require("@arangodb/satellite-graph"); arangosh> var graph = satelliteGraphModule._create("satelliteGraph"); arangosh> graph._addVertexCollection("myPrototypeColl"); +arangosh> graph = satelliteGraphModule._graph("satelliteGraph"); +{[SatelliteGraph] + "myPrototypeColl" : [ArangoCollection 11107, "myPrototypeColl" (type document, status loaded)] +} diff --git a/3.11/generated/Examples/satelliteGraphPrototype3_cluster.generated b/3.11/generated/Examples/satelliteGraphPrototype3_cluster.generated index d70c999b26..37aaca93fb 100644 --- a/3.11/generated/Examples/satelliteGraphPrototype3_cluster.generated +++ b/3.11/generated/Examples/satelliteGraphPrototype3_cluster.generated @@ -2,3 +2,8 @@ arangosh> var satelliteGraphModule = var graph = satelliteGraphModule._create("satelliteGraph"); arangosh> var relation = satelliteGraphModule._relation("isFriend", ["person"], ["person"]); arangosh> graph._extendEdgeDefinitions(relation); +arangosh> graph = satelliteGraphModule._graph("satelliteGraph"); +{[SatelliteGraph] + "isFriend" : [ArangoCollection 11117, "isFriend" (type edge, status loaded)], + "person" : [ArangoCollection 11115, "person" (type document, status loaded)] +} diff --git a/3.11/generated/Examples/smartGraphModify4_cluster.generated b/3.11/generated/Examples/smartGraphModify4_cluster.generated index 34a8df9da3..c547c15c92 100644 --- a/3.11/generated/Examples/smartGraphModify4_cluster.generated +++ b/3.11/generated/Examples/smartGraphModify4_cluster.generated @@ -4,4 +4,4 @@ arangosh> var graph = graph_module._create( arangosh> graph._deleteEdgeDefinition("edges"); arangosh> graph._removeVertexCollection("vertices"); arangosh> db._drop("vertices"); -[ArangoError 1485: Collection 'vertices' must not be dropped while '_from_edges', '_local_edges', '_to_edges', 'edges' have distributeShardsLike set to 'vertices'.] +[ArangoError 1485: Collection 'vertices' must not be dropped while '_local_edges', '_to_edges', '_from_edges', 'edges' have distributeShardsLike set to 'vertices'.] diff --git a/3.11/generated/Examples/usingToArray.generated b/3.11/generated/Examples/usingToArray.generated index 5183a4dedc..77bfc1e2fa 100644 --- a/3.11/generated/Examples/usingToArray.generated +++ b/3.11/generated/Examples/usingToArray.generated @@ -1,36 +1,36 @@ arangosh> db._create("five") -[ArangoCollection 83675, "five" (type document, status loaded)] +[ArangoCollection 82412, "five" (type document, status loaded)] arangosh> for (i = 0; i < 5; i++) db.five.save({value:i}) arangosh> db.five.toArray() [ { - "_key" : "83680", - "_id" : "five/83680", - "_rev" : "_e4zxNx2---", + "_key" : "82417", + "_id" : "five/82417", + "_rev" : "_e9TS5Aq---", "value" : 0 }, { - "_key" : "83682", - "_id" : "five/83682", - "_rev" : "_e4zxNx2--_", + "_key" : "82419", + "_id" : "five/82419", + "_rev" : "_e9TS5Aq--_", "value" : 1 }, { - "_key" : "83684", - "_id" : "five/83684", - "_rev" : "_e4zxNx2--A", + "_key" : "82421", + "_id" : "five/82421", + "_rev" : "_e9TS5Au---", "value" : 2 }, { - "_key" : "83686", - "_id" : "five/83686", - "_rev" : "_e4zxNx2--B", + "_key" : "82423", + "_id" : "five/82423", + "_rev" : "_e9TS5Au--_", "value" : 3 }, { - "_key" : "83688", - "_id" : "five/83688", - "_rev" : "_e4zxNx2--C", + "_key" : "82425", + "_id" : "five/82425", + "_rev" : "_e9TS5Ay---", "value" : 4 } ] diff --git a/3.11/generated/Examples/viewDatabaseCreate.generated b/3.11/generated/Examples/viewDatabaseCreate.generated index 2bae036e99..ec562e9683 100644 --- a/3.11/generated/Examples/viewDatabaseCreate.generated +++ b/3.11/generated/Examples/viewDatabaseCreate.generated @@ -1,5 +1,5 @@ arangosh> v = db._createView("example", "arangosearch"); -[ArangoView 83694, "example" (type arangosearch)] +[ArangoView 82431, "example" (type arangosearch)] arangosh> v.properties() { "writebufferSizeMax" : 33554432, diff --git a/3.11/generated/Examples/viewDatabaseDrop.generated b/3.11/generated/Examples/viewDatabaseDrop.generated index 5fa392ff1b..c9a30fd43b 100644 --- a/3.11/generated/Examples/viewDatabaseDrop.generated +++ b/3.11/generated/Examples/viewDatabaseDrop.generated @@ -1,5 +1,5 @@ arangosh> db._createView("exampleView", "arangosearch"); -[ArangoView 83700, "exampleView" (type arangosearch)] +[ArangoView 82437, "exampleView" (type arangosearch)] arangosh> db._dropView("exampleView"); arangosh> db._view("exampleView"); null diff --git a/3.11/generated/Examples/viewDatabaseGet.generated b/3.11/generated/Examples/viewDatabaseGet.generated index da38146fb5..fba5bd5a7d 100644 --- a/3.11/generated/Examples/viewDatabaseGet.generated +++ b/3.11/generated/Examples/viewDatabaseGet.generated @@ -1,5 +1,5 @@ arangosh> view = db._view("example"); ........> // or, alternatively -[ArangoView 83704, "example" (type arangosearch)] +[ArangoView 82441, "example" (type arangosearch)] arangosh> view = db["example"] -[ArangoView 83704, "example" (type arangosearch)] +[ArangoView 82441, "example" (type arangosearch)] diff --git a/3.11/generated/Examples/viewDatabaseList.generated b/3.11/generated/Examples/viewDatabaseList.generated index 723964e496..113ee432ef 100644 --- a/3.11/generated/Examples/viewDatabaseList.generated +++ b/3.11/generated/Examples/viewDatabaseList.generated @@ -1,5 +1,5 @@ arangosh> db._views(); [ [ArangoView 101, "demoView" (type arangosearch)], - [ArangoView 83708, "exampleView" (type arangosearch)] + [ArangoView 82445, "exampleView" (type arangosearch)] ] diff --git a/3.11/generated/Examples/viewDrop.generated b/3.11/generated/Examples/viewDrop.generated index 23248fea77..573d1c7d59 100644 --- a/3.11/generated/Examples/viewDrop.generated +++ b/3.11/generated/Examples/viewDrop.generated @@ -1,8 +1,8 @@ arangosh> v = db._createView("example", "arangosearch"); ........> // or -[ArangoView 83716, "example" (type arangosearch)] +[ArangoView 82453, "example" (type arangosearch)] arangosh> v = db._view("example"); -[ArangoView 83716, "example" (type arangosearch)] +[ArangoView 82453, "example" (type arangosearch)] arangosh> v.drop(); arangosh> db._view("example"); null diff --git a/3.11/generated/Examples/viewModifyProperties.generated b/3.11/generated/Examples/viewModifyProperties.generated index 4936f557ef..75699908d0 100644 --- a/3.11/generated/Examples/viewModifyProperties.generated +++ b/3.11/generated/Examples/viewModifyProperties.generated @@ -1,5 +1,5 @@ arangosh> v = db._view("example"); -[ArangoView 83723, "example" (type arangosearch)] +[ArangoView 82460, "example" (type arangosearch)] arangosh> v.properties(); ........> // set cleanupIntervalStep to 12 { diff --git a/3.11/generated/Examples/viewRename.generated b/3.11/generated/Examples/viewRename.generated index 163f508964..8aee9924d1 100644 --- a/3.11/generated/Examples/viewRename.generated +++ b/3.11/generated/Examples/viewRename.generated @@ -1,5 +1,5 @@ arangosh> v = db._createView("example", "arangosearch"); -[ArangoView 83759, "example" (type arangosearch)] +[ArangoView 82496, "example" (type arangosearch)] arangosh> v.name(); example arangosh> v.rename("exampleRenamed"); diff --git a/3.11/generated/Examples/viewUsage_01.generated b/3.11/generated/Examples/viewUsage_01.generated index 17c9ccc6c0..5f2762fd0d 100644 --- a/3.11/generated/Examples/viewUsage_01.generated +++ b/3.11/generated/Examples/viewUsage_01.generated @@ -1,2 +1,2 @@ arangosh> view = db._createView("myView", "arangosearch", {}); -[ArangoView 83776, "myView" (type arangosearch)] +[ArangoView 82513, "myView" (type arangosearch)] diff --git a/3.11/generated/Examples/viewUsage_02.generated b/3.11/generated/Examples/viewUsage_02.generated index db378715db..4d1159d66f 100644 --- a/3.11/generated/Examples/viewUsage_02.generated +++ b/3.11/generated/Examples/viewUsage_02.generated @@ -1,2 +1,2 @@ arangosh> view = db._view("myView"); -[ArangoView 83776, "myView" (type arangosearch)] +[ArangoView 82513, "myView" (type arangosearch)] diff --git a/3.11/generated/Examples/working_with_date_time.generated b/3.11/generated/Examples/working_with_date_time.generated index d8cf3b3ec1..5747498a48 100644 --- a/3.11/generated/Examples/working_with_date_time.generated +++ b/3.11/generated/Examples/working_with_date_time.generated @@ -1,27 +1,27 @@ arangosh> db._create("exampleTime"); -[ArangoCollection 83895, "exampleTime" (type document, status loaded)] +[ArangoCollection 82632, "exampleTime" (type document, status loaded)] arangosh> var timestamps = ["2014-05-07T14:19:09.522","2014-05-07T21:19:09.522","2014-05-08T04:19:09.522","2014-05-08T11:19:09.522","2014-05-08T18:19:09.522"]; arangosh> for (i = 0; i < 5; i++) db.exampleTime.save({value:i, ts: timestamps[i]}) arangosh> db._query("FOR d IN exampleTime FILTER d.ts > '2014-05-07T14:19:09.522' and d.ts < '2014-05-08T18:19:09.522' RETURN d").toArray() [ { - "_key" : "83902", - "_id" : "exampleTime/83902", - "_rev" : "_e4zxN2---A", + "_key" : "82639", + "_id" : "exampleTime/82639", + "_rev" : "_e9TS5NC---", "value" : 1, "ts" : "2014-05-07T21:19:09.522" }, { - "_key" : "83904", - "_id" : "exampleTime/83904", - "_rev" : "_e4zxN2---B", + "_key" : "82641", + "_id" : "exampleTime/82641", + "_rev" : "_e9TS5NG---", "value" : 2, "ts" : "2014-05-08T04:19:09.522" }, { - "_key" : "83906", - "_id" : "exampleTime/83906", - "_rev" : "_e4zxN2---C", + "_key" : "82643", + "_id" : "exampleTime/82643", + "_rev" : "_e9TS5NG--_", "value" : 3, "ts" : "2014-05-08T11:19:09.522" } diff --git a/3.11/generated/allComments.txt b/3.11/generated/allComments.txt index 4339b6ba86..a3a4cb8f5e 100644 --- a/3.11/generated/allComments.txt +++ b/3.11/generated/allComments.txt @@ -1106,10 +1106,10 @@ arangosh> db._executeTransaction({ collections "agency.supervision-grace-period" : 10, "agency.supervision-ok-threshold" : 5, "agency.wait-for-sync" : true, - "arangosearch.commit-threads" : 6, - "arangosearch.commit-threads-idle" : 6, - "arangosearch.consolidation-threads" : 6, - "arangosearch.consolidation-threads-idle" : 6, + "arangosearch.commit-threads" : 5, + "arangosearch.commit-threads-idle" : 5, + "arangosearch.consolidation-threads" : 5, + "arangosearch.consolidation-threads-idle" : 5, "arangosearch.fail-queries-on-out-of-sync" : false, "arangosearch.skip-recovery" : [ ], "arangosearch.threads" : 0, @@ -1123,7 +1123,7 @@ arangosh> db._executeTransaction({ collections "backup.files-per-batch" : 100, "backup.local-path-prefix" : "/", "cache.rebalancing-interval" : 2000000, - "cache.size" : 17872713728, + "cache.size" : 16341337088, "cluster.agency-endpoint" : [ ], "cluster.api-jwt-policy" : "jwt-compat", "cluster.create-waits-for-sync-replication" : true, @@ -1150,7 +1150,7 @@ arangosh> db._executeTransaction({ collections "database.auto-upgrade" : false, "database.check-version" : false, "database.default-replication-version" : "1", - "database.directory" : "/tmp/arangosh_naeIdK/rocksdb-clusterOrNot/single_0/data", + "database.directory" : "/tmp/arangosh_maFbLK/rocksdb-clusterOrNot/single_0/data", "database.extended-names-databases" : true, "database.force-sync-properties" : false, "database.ignore-datafile-errors" : false, @@ -1180,7 +1180,7 @@ arangosh> db._executeTransaction({ collections "javascript.allow-admin-execute" : true, "javascript.allow-external-process-control" : false, "javascript.allow-port-testing" : false, - "javascript.app-path" : "/tmp/arangosh_naeIdK/rocksdb-clusterOrNot/single_0/apps", + "javascript.app-path" : "/tmp/arangosh_maFbLK/rocksdb-clusterOrNot/single_0/apps", "javascript.copy-installation" : false, "javascript.enabled" : true, "javascript.endpoints-allowlist" : [ ], @@ -1279,7 +1279,7 @@ arangosh> db._executeTransaction({ collections "log.color" : true, "log.escape-control-chars" : true, "log.escape-unicode-chars" : false, - "log.file" : "/tmp/arangosh_naeIdK/rocksdb-clusterOrNot/single_0/log", + "log.file" : "/tmp/arangosh_maFbLK/rocksdb-clusterOrNot/single_0/log", "log.file-group" : "", "log.file-mode" : "", "log.force-direct" : false, @@ -1297,7 +1297,7 @@ arangosh> db._executeTransaction({ collections "log.line-number" : false, "log.max-entry-length" : 134217728, "log.output" : [ - "file:///tmp/arangosh_naeIdK/rocksdb-clusterOrNot/single_0/log" + "file:///tmp/arangosh_maFbLK/rocksdb-clusterOrNot/single_0/log" ], "log.performance" : false, "log.prefix" : "", @@ -1318,12 +1318,12 @@ arangosh> db._executeTransaction({ collections "network.max-requests-in-flight" : 65536, "network.protocol" : "", "network.verify-hosts" : false, - "pregel.max-parallelism" : 36, + "pregel.max-parallelism" : 32, "pregel.memory-mapped-files" : true, "pregel.memory-mapped-files-custom-path" : "", "pregel.memory-mapped-files-location-type" : "temp-directory", "pregel.min-parallelism" : 1, - "pregel.parallelism" : 9, + "pregel.parallelism" : 8, "query.allow-collections-in-expressions" : false, "query.cache-entries" : 128, "query.cache-entries-max-size" : 268435456, @@ -1331,11 +1331,11 @@ arangosh> db._executeTransaction({ collections "query.cache-include-system-collections" : false, "query.cache-mode" : "off", "query.fail-on-warning" : false, - "query.global-memory-limit" : 59647054233, + "query.global-memory-limit" : 54685393920, "query.max-nodes-per-callstack" : 250, "query.max-parallelism" : 4, "query.max-runtime" : 0, - "query.memory-limit" : 44183003136, + "query.memory-limit" : 40507699200, "query.memory-limit-override" : true, "query.optimizer-max-plans" : 128, "query.optimizer-rules" : [ ], @@ -1364,7 +1364,7 @@ arangosh> db._executeTransaction({ collections "rocksdb.allow-fallocate" : true, "rocksdb.block-align-data-blocks" : false, "rocksdb.block-cache-shard-bits" : 7, - "rocksdb.block-cache-size" : 21447256473, + "rocksdb.block-cache-size" : 19609604505, "rocksdb.cache-index-and-filter-blocks" : true, "rocksdb.cache-index-and-filter-blocks-with-high-priority" : true, "rocksdb.checksum-type" : "xxHash64", @@ -1394,7 +1394,7 @@ arangosh> db._executeTransaction({ collections "rocksdb.level0-slowdown-trigger" : 16, "rocksdb.level0-stop-trigger" : 256, "rocksdb.limit-open-files-at-startup" : false, - "rocksdb.max-background-jobs" : 36, + "rocksdb.max-background-jobs" : 32, "rocksdb.max-bytes-for-level-base" : 268435456, "rocksdb.max-bytes-for-level-multiplier" : 10, "rocksdb.max-parallel-compactions" : 2, @@ -1415,8 +1415,8 @@ arangosh> db._executeTransaction({ collections "rocksdb.minimum-disk-free-bytes" : 16777216, "rocksdb.minimum-disk-free-percent" : 0.01, "rocksdb.num-levels" : 7, - "rocksdb.num-threads-priority-high" : 18, - "rocksdb.num-threads-priority-low" : 18, + "rocksdb.num-threads-priority-high" : 16, + "rocksdb.num-threads-priority-low" : 16, "rocksdb.num-uncompressed-levels" : 2, "rocksdb.optimize-filters-for-hits" : false, "rocksdb.pending-compactions-slowdown-trigger" : 131072, @@ -1426,6 +1426,7 @@ arangosh> db._executeTransaction({ collections "rocksdb.pin-top-level-index-and-filter" : true, "rocksdb.prepopulate-block-cache" : false, "rocksdb.recycle-log-file-num" : false, + "rocksdb.reserve-file-metadata-memory" : false, "rocksdb.reserve-table-builder-memory" : false, "rocksdb.reserve-table-reader-memory" : false, "rocksdb.sync-delay-threshold" : 5000, @@ -1440,8 +1441,8 @@ arangosh> db._executeTransaction({ collections "rocksdb.throttle-scaling-factor" : 17, "rocksdb.throttle-slots" : 120, "rocksdb.throttle-slow-down-writes-trigger" : 8, - "rocksdb.total-write-buffer-size" : 28596341964, - "rocksdb.transaction-lock-stripes" : 36, + "rocksdb.total-write-buffer-size" : 26146139340, + "rocksdb.transaction-lock-stripes" : 32, "rocksdb.transaction-lock-timeout" : 1000, "rocksdb.use-direct-io-for-flush-and-compaction" : false, "rocksdb.use-direct-reads" : false, @@ -1464,20 +1465,20 @@ arangosh> db._executeTransaction({ collections "server.descriptors-minimum" : 8192, "server.early-connections" : false, "server.endpoint" : [ - "tcp://127.0.0.1:14406" + "tcp://127.0.0.1:10138" ], "server.export-metrics-api" : true, "server.export-read-write-metrics" : false, "server.gid" : "", "server.harden" : false, - "server.io-threads" : 9, + "server.io-threads" : 8, "server.local-authentication" : true, "server.maintenance-actions-block" : 2, "server.maintenance-actions-linger" : 3600, - "server.maintenance-slow-threads" : 5, - "server.maintenance-threads" : 10, + "server.maintenance-slow-threads" : 4, + "server.maintenance-threads" : 9, "server.maximal-queue-size" : 4096, - "server.maximal-threads" : 72, + "server.maximal-threads" : 64, "server.minimal-threads" : 4, "server.ongoing-low-priority-multiplier" : 4, "server.prio1-size" : 4096, @@ -1508,10 +1509,10 @@ arangosh> db._executeTransaction({ collections "temp.-intermediate-results-encryption-hardware-acceleration" : true, "temp.intermediate-results-capacity" : 0, "temp.intermediate-results-encryption" : false, - "temp.intermediate-results-path" : "/tmp/arangosh_naeIdK/rocksdb-clusterOrNot/single_0/temp-rocksdb-dir/", + "temp.intermediate-results-path" : "/tmp/arangosh_maFbLK/rocksdb-clusterOrNot/single_0/temp-rocksdb-dir/", "temp.intermediate-results-spillover-threshold-memory-usage" : 134217728, "temp.intermediate-results-spillover-threshold-num-rows" : 5000000, - "temp.path" : "/tmp/arangosh_naeIdK/rocksdb-clusterOrNot/single_0/tmp", + "temp.path" : "/tmp/arangosh_maFbLK/rocksdb-clusterOrNot/single_0/tmp", "transaction.streaming-idle-timeout" : 60, "transaction.streaming-lock-timeout" : 8, "ttl.frequency" : 30000, @@ -2233,24 +2234,24 @@ arangosh> db.test.save([ ........> ]); [ { - "_id" : "test/71692", - "_key" : "71692", - "_rev" : "_e4zxL3u--_" + "_id" : "test/70278", + "_key" : "70278", + "_rev" : "_e9TSySG---" }, { - "_id" : "test/71693", - "_key" : "71693", - "_rev" : "_e4zxL3u--A" + "_id" : "test/70279", + "_key" : "70279", + "_rev" : "_e9TSySG--_" }, { - "_id" : "test/71694", - "_key" : "71694", - "_rev" : "_e4zxL3u--B" + "_id" : "test/70280", + "_key" : "70280", + "_rev" : "_e9TSySG--A" }, { - "_id" : "test/71695", - "_key" : "71695", - "_rev" : "_e4zxL3u--C" + "_id" : "test/70281", + "_key" : "70281", + "_rev" : "_e9TSySG--B" } ] arangosh> var view = db._createView("view", "arangosearch", @@ -2425,9 +2426,9 @@ arangosh> var view = db._createView("FOR doc IN view SEARCH ANALYZER(doc.value IN ['regular', 'irregular'], 'filter') RETURN doc"); [ { - "_key" : "71629", - "_id" : "coll/71629", - "_rev" : "_e4zxL1a---", + "_key" : "70215", + "_id" : "coll/70215", + "_rev" : "_e9TSyKa--_", "value" : "regular" } ] @@ -2474,9 +2475,9 @@ arangosh> var view = db._createView("FOR d IN view SEARCH PHRASE(d.text, {TERM: 'B'}, 1, {TERM: 'D'}, 'uncollapsed') RETURN d"); [ { - "_key" : "71552", - "_id" : "coll/71552", - "_rev" : "_e4zxLyq---", + "_key" : "70138", + "_id" : "coll/70138", + "_rev" : "_e9TSyDW---", "text" : "A-B-C-D" } ] @@ -2484,9 +2485,9 @@ arangosh> db._query("FOR d IN view SEARCH PHRA arangosh> db._query("FOR d IN view SEARCH PHRASE(d.text, {TERM: 'B'}, -1, {TERM: 'D'}, 'uncollapsed') RETURN d"); [ { - "_key" : "71552", - "_id" : "coll/71552", - "_rev" : "_e4zxLyq---", + "_key" : "70138", + "_id" : "coll/70138", + "_rev" : "_e9TSyDW---", "text" : "A-B-C-D" } ] @@ -2496,9 +2497,9 @@ arangosh> db._query("FOR d IN view SEARCH PHRA arangosh> db._query("FOR d IN view SEARCH PHRASE(d.text, {TERM: 'B'}, -1, {TERM: 'D'}, 'collapsed') RETURN d"); [ { - "_key" : "71552", - "_id" : "coll/71552", - "_rev" : "_e4zxLyq---", + "_key" : "70138", + "_id" : "coll/70138", + "_rev" : "_e9TSyDW---", "text" : "A-B-C-D" } ] @@ -2838,7 +2839,7 @@ arangosh> db._query(` arangosh> var analyzers = require("@arangodb/analyzers"); arangosh> var a = analyzers.save("geo_json", "geojson", {}, ["frequency", "norm", "position"]); arangosh> db._create("geo"); -[ArangoCollection 71728, "geo" (type document, status loaded)] +[ArangoCollection 70314, "geo" (type document, status loaded)] arangosh> db.geo.save([ ........> { location: { type: "Point", coordinates: [6.937, 50.932] } }, ........> { location: { type: "Point", coordinates: [6.956, 50.941] } }, @@ -2846,19 +2847,19 @@ arangosh> db.geo.save([ ........> ]); [ { - "_id" : "geo/71733", - "_key" : "71733", - "_rev" : "_e4zxL6a--_" + "_id" : "geo/70319", + "_key" : "70319", + "_rev" : "_e9TSyaK---" }, { - "_id" : "geo/71734", - "_key" : "71734", - "_rev" : "_e4zxL6a--A" + "_id" : "geo/70320", + "_key" : "70320", + "_rev" : "_e9TSyaK--_" }, { - "_id" : "geo/71735", - "_key" : "71735", - "_rev" : "_e4zxL6a--B" + "_id" : "geo/70321", + "_key" : "70321", + "_rev" : "_e9TSyaK--A" } ] arangosh> db._createView("geo_view", "arangosearch", { @@ -2872,16 +2873,16 @@ arangosh> db._createView("geo_view"71736, "geo_view" (type arangosearch)] +[ArangoView 70322, "geo_view" (type arangosearch)] arangosh> db._query(`LET point = GEO_POINT(6.93, 50.94) ........> FOR doc IN geo_view ........> SEARCH ANALYZER(GEO_DISTANCE(doc.location, point) < 2000, "geo_json") ........> RETURN MERGE(doc, { distance: GEO_DISTANCE(doc.location, point) })`).toArray(); [ { - "_id" : "geo/71733", - "_key" : "71733", - "_rev" : "_e4zxL6a--_", + "_id" : "geo/70319", + "_key" : "70319", + "_rev" : "_e9TSyaK---", "location" : { "type" : "Point", "coordinates" : [ @@ -2892,9 +2893,9 @@ arangosh> db._query(`LET point = GEO_POINT(6.93, 50 "distance" : 1015.8355739436823 }, { - "_id" : "geo/71734", - "_key" : "71734", - "_rev" : "_e4zxL6a--A", + "_id" : "geo/70320", + "_key" : "70320", + "_rev" : "_e9TSyaK--_", "location" : { "type" : "Point", "coordinates" : [ @@ -2949,7 +2950,7 @@ arangosh> db._query(`LET point = GEO_POINT(6.93, 50 arangosh> var analyzers = require("@arangodb/analyzers"); arangosh> var a = analyzers.save("geo_pair", "geopoint", {}, ["frequency", "norm", "position"]); arangosh> db._create("geo"); -[ArangoCollection 71778, "geo" (type document, status loaded)] +[ArangoCollection 70364, "geo" (type document, status loaded)] arangosh> db.geo.save([ ........> { location: [50.932, 6.937] }, ........> { location: [50.941, 6.956] }, @@ -2957,19 +2958,19 @@ arangosh> db.geo.save([ ........> ]); [ { - "_id" : "geo/71783", - "_key" : "71783", - "_rev" : "_e4zxM-a---" + "_id" : "geo/70369", + "_key" : "70369", + "_rev" : "_e9TSymi--_" }, { - "_id" : "geo/71784", - "_key" : "71784", - "_rev" : "_e4zxM-a--_" + "_id" : "geo/70370", + "_key" : "70370", + "_rev" : "_e9TSymi--A" }, { - "_id" : "geo/71785", - "_key" : "71785", - "_rev" : "_e4zxM-a--A" + "_id" : "geo/70371", + "_key" : "70371", + "_rev" : "_e9TSymm---" } ] arangosh> db._createView("geo_view", "arangosearch", { @@ -2983,16 +2984,16 @@ arangosh> db._createView("geo_view"71786, "geo_view" (type arangosearch)] +[ArangoView 70372, "geo_view" (type arangosearch)] arangosh> db._query(`LET point = GEO_POINT(6.93, 50.94) ........> FOR doc IN geo_view ........> SEARCH ANALYZER(GEO_DISTANCE(doc.location, point) < 2000, "geo_pair") ........> RETURN MERGE(doc, { distance: GEO_DISTANCE([doc.location[1], doc.location[0]], point) })`).toArray(); [ { - "_id" : "geo/71783", - "_key" : "71783", - "_rev" : "_e4zxM-a---", + "_id" : "geo/70369", + "_key" : "70369", + "_rev" : "_e9TSymi--_", "location" : [ 50.932, 6.937 @@ -3000,9 +3001,9 @@ arangosh> db._query(`LET point = GEO_POINT(6.93, 50 "distance" : 1015.8355739436823 }, { - "_id" : "geo/71784", - "_key" : "71784", - "_rev" : "_e4zxM-a--_", + "_id" : "geo/70370", + "_key" : "70370", + "_rev" : "_e9TSymi--A", "location" : [ 50.941, 6.956 @@ -3057,7 +3058,7 @@ arangosh> var a = analyzers.save("lng"] ........> }, ["frequency", "norm", "position"]); arangosh> db._create("geo"); -[ArangoCollection 71753, "geo" (type document, status loaded)] +[ArangoCollection 70339, "geo" (type document, status loaded)] arangosh> db.geo.save([ ........> { location: { lat: 50.932, lng: 6.937 } }, ........> { location: { lat: 50.941, lng: 6.956 } }, @@ -3065,19 +3066,19 @@ arangosh> db.geo.save([ ........> ]); [ { - "_id" : "geo/71758", - "_key" : "71758", - "_rev" : "_e4zxL8W---" + "_id" : "geo/70344", + "_key" : "70344", + "_rev" : "_e9TSygW---" }, { - "_id" : "geo/71759", - "_key" : "71759", - "_rev" : "_e4zxL8W--_" + "_id" : "geo/70345", + "_key" : "70345", + "_rev" : "_e9TSygW--_" }, { - "_id" : "geo/71760", - "_key" : "71760", - "_rev" : "_e4zxL8W--A" + "_id" : "geo/70346", + "_key" : "70346", + "_rev" : "_e9TSygW--A" } ] arangosh> db._createView("geo_view", "arangosearch", { @@ -3091,16 +3092,16 @@ arangosh> db._createView("geo_view"71761, "geo_view" (type arangosearch)] +[ArangoView 70347, "geo_view" (type arangosearch)] arangosh> db._query(`LET point = GEO_POINT(6.93, 50.94) ........> FOR doc IN geo_view ........> SEARCH ANALYZER(GEO_DISTANCE(doc.location, point) < 2000, "geo_latlng") ........> RETURN MERGE(doc, { distance: GEO_DISTANCE([doc.location.lng, doc.location.lat], point) })`).toArray(); [ { - "_id" : "geo/71758", - "_key" : "71758", - "_rev" : "_e4zxL8W---", + "_id" : "geo/70344", + "_key" : "70344", + "_rev" : "_e9TSygW---", "location" : { "lat" : 50.932, "lng" : 6.937 @@ -3108,9 +3109,9 @@ arangosh> db._query(`LET point = GEO_POINT(6.93, 50 "distance" : 1015.8355739436823 }, { - "_id" : "geo/71759", - "_key" : "71759", - "_rev" : "_e4zxL8W--_", + "_id" : "geo/70345", + "_key" : "70345", + "_rev" : "_e9TSygW--_", "location" : { "lat" : 50.941, "lng" : 6.956 @@ -3216,21 +3217,21 @@ arangosh> analyzers.analyzer("text_en"var analyzers = require("@arangodb/analyzers"); arangosh> analyzers.toArray(); [ + [ArangoAnalyzer "text_ru" (type text)], + [ArangoAnalyzer "text_pt" (type text)], [ArangoAnalyzer "text_zh" (type text)], + [ArangoAnalyzer "text_nl" (type text)], + [ArangoAnalyzer "text_fr" (type text)], [ArangoAnalyzer "text_sv" (type text)], - [ArangoAnalyzer "text_ru" (type text)], [ArangoAnalyzer "text_no" (type text)], - [ArangoAnalyzer "text_nl" (type text)], [ArangoAnalyzer "text_it" (type text)], - [ArangoAnalyzer "text_es" (type text)], - [ArangoAnalyzer "text_fr" (type text)], [ArangoAnalyzer "text_en" (type text)], - [ArangoAnalyzer "text_fi" (type text)], [ArangoAnalyzer "text_de" (type text)], - [ArangoAnalyzer "text_pt" (type text)], + [ArangoAnalyzer "text_fi" (type text)], + [ArangoAnalyzer "text_es" (type text)], [ArangoAnalyzer "identity" (type identity)], - [ArangoAnalyzer "_system::custom" (type text)], - [ArangoAnalyzer "_system::delimiter_hyphen" (type delimiter)] + [ArangoAnalyzer "_system::delimiter_hyphen" (type delimiter)], + [ArangoAnalyzer "_system::custom" (type text)] ]
Hide execution results
@@ -3424,7 +3425,7 @@ arangosh> tasks.register({ { "id" : "mytask-1", "name" : "this is a sample task to spawn a slow aql query", - "created" : 1665062308.9828882, + "created" : 1666268264.6660645, "type" : "timed", "offset" : 0, "command" : "(function (params) { require('@arangodb').db._query('FOR sleepLoooong IN 1..5 LET sleepLoooonger = SLEEP(1000) RETURN sleepLoooong'); } )(params);", @@ -3433,14 +3434,14 @@ arangosh> tasks.register({ arangosh> queries.current(); [ { - "id" : "67666", + "id" : "67667", "database" : "_system", "user" : "root", "query" : "FOR sleepLoooong IN 1..5 LET sleepLoooonger = SLEEP(1000) RETURN sleepLoooong", "bindVars" : { }, - "started" : "2022-10-06T13:18:28Z", - "runTime" : 1.0174829560000944, + "started" : "2022-10-20T12:17:44Z", + "runTime" : 1.0396558719221503, "state" : "executing", "stream" : false } @@ -3531,33 +3532,33 @@ arangosh> queries.kill(runningQueries[0].id) arangosh> var a = db._query("FOR x IN five RETURN x"); arangosh> while (a.hasNext()) print(a.next()); { - "_key" : "73278", - "_id" : "five/73278", - "_rev" : "_e4zxMe---_", + "_key" : "71888", + "_id" : "five/71888", + "_rev" : "_e9TS0RG---", "name" : "one" } { - "_key" : "73280", - "_id" : "five/73280", - "_rev" : "_e4zxMeC---", + "_key" : "71890", + "_id" : "five/71890", + "_rev" : "_e9TS0RK---", "name" : "two" } { - "_key" : "73282", - "_id" : "five/73282", - "_rev" : "_e4zxMeC--_", + "_key" : "71892", + "_id" : "five/71892", + "_rev" : "_e9TS0RO---", "name" : "three" } { - "_key" : "73284", - "_id" : "five/73284", - "_rev" : "_e4zxMeC--A", + "_key" : "71894", + "_id" : "five/71894", + "_rev" : "_e9TS0RS---", "name" : "four" } { - "_key" : "73286", - "_id" : "five/73286", - "_rev" : "_e4zxMeC--B", + "_key" : "71896", + "_id" : "five/71896", + "_rev" : "_e9TS0RW---", "name" : "five" } @@ -3582,9 +3583,9 @@ arangosh> while (a.hasNext()) print(a.next(
 arangosh> db._query("FOR x IN five RETURN x").next();
 { 
-  "_key" : "73297", 
-  "_id" : "five/73297", 
-  "_rev" : "_e4zxMeK--_", 
+  "_key" : "71907", 
+  "_id" : "five/71907", 
+  "_rev" : "_e9TS0S----", 
   "name" : "one" 
 }
 
@@ -3616,41 +3617,41 @@ arangosh> var result = db.users.all().toArr ........> print(result); [ { - "_key" : "73993", - "_id" : "users/73993", - "_rev" : "_e4zxMka--_", + "_key" : "72603", + "_id" : "users/72603", + "_rev" : "_e9TS0tq---", "name" : "Gerhard" }, { - "_key" : "73995", - "_id" : "users/73995", - "_rev" : "_e4zxMka--A", + "_key" : "72605", + "_id" : "users/72605", + "_rev" : "_e9TS0tu---", "name" : "Helmut" }, { - "_key" : "73997", - "_id" : "users/73997", - "_rev" : "_e4zxMka--B", + "_key" : "72607", + "_id" : "users/72607", + "_rev" : "_e9TS0tu--_", "name" : "Angela" } ] [ { - "_key" : "73993", - "_id" : "users/73993", - "_rev" : "_e4zxMka--_", + "_key" : "72603", + "_id" : "users/72603", + "_rev" : "_e9TS0tq---", "name" : "Gerhard" }, { - "_key" : "73995", - "_id" : "users/73995", - "_rev" : "_e4zxMka--A", + "_key" : "72605", + "_id" : "users/72605", + "_rev" : "_e9TS0tu---", "name" : "Helmut" }, { - "_key" : "73997", - "_id" : "users/73997", - "_rev" : "_e4zxMka--B", + "_key" : "72607", + "_id" : "users/72607", + "_rev" : "_e9TS0tu--_", "name" : "Angela" } ] @@ -3695,41 +3696,41 @@ arangosh> var result = [ ]; ........> print(result); [ { - "_key" : "73974", - "_id" : "users/73974", - "_rev" : "_e4zxMkO--_", + "_key" : "72584", + "_id" : "users/72584", + "_rev" : "_e9TS0su---", "name" : "Gerhard" }, { - "_key" : "73976", - "_id" : "users/73976", - "_rev" : "_e4zxMkO--A", + "_key" : "72586", + "_id" : "users/72586", + "_rev" : "_e9TS0sy---", "name" : "Helmut" }, { - "_key" : "73978", - "_id" : "users/73978", - "_rev" : "_e4zxMkO--B", + "_key" : "72588", + "_id" : "users/72588", + "_rev" : "_e9TS0sy--_", "name" : "Angela" } ] [ { - "_key" : "73974", - "_id" : "users/73974", - "_rev" : "_e4zxMkO--_", + "_key" : "72584", + "_id" : "users/72584", + "_rev" : "_e9TS0su---", "name" : "Gerhard" }, { - "_key" : "73976", - "_id" : "users/73976", - "_rev" : "_e4zxMkO--A", + "_key" : "72586", + "_id" : "users/72586", + "_rev" : "_e9TS0sy---", "name" : "Helmut" }, { - "_key" : "73978", - "_id" : "users/73978", - "_rev" : "_e4zxMkO--B", + "_key" : "72588", + "_id" : "users/72588", + "_rev" : "_e9TS0sy--_", "name" : "Angela" } ] @@ -4157,10 +4158,10 @@ arangosh> db._query(`FOR doc IN food_view
 arangosh> col = db.example;
-[ArangoCollection 72959, "example" (type document, status loaded)]
+[ArangoCollection 71549, "example" (type document, status loaded)]
 arangosh> col.drop();
 arangosh> col;
-[ArangoCollection 72959, "example" (type document, status deleted)]
+[ArangoCollection 71549, "example" (type document, status deleted)]
 
@@ -4176,10 +4177,10 @@ arangosh> col;
 arangosh> col = db._example;
-[ArangoCollection 72966, "_example" (type document, status loaded)]
+[ArangoCollection 71556, "_example" (type document, status loaded)]
 arangosh> col.drop({ isSystem: true });
 arangosh> col;
-[ArangoCollection 72966, "_example" (type document, status deleted)]
+[ArangoCollection 71556, "_example" (type document, status deleted)]
 
@@ -4195,12 +4196,12 @@ arangosh> col; @@ -4390,10 +4391,10 @@ arangosh> col;
 arangosh> col = db.example;
-[ArangoCollection 61258, "example" (type document, status loaded)]
+[ArangoCollection 61259, "example" (type document, status loaded)]
 arangosh> col.unload();
 arangosh> col;
-[ArangoCollection 61258, "example" (type document, status loaded)]
+[ArangoCollection 61259, "example" (type document, status loaded)]
 
@@ -4409,10 +4410,10 @@ arangosh> col;
 arangosh> c = db.example;
-[ArangoCollection 73115, "example" (type document, status loaded)]
+[ArangoCollection 71725, "example" (type document, status loaded)]
 arangosh> c.rename("better-example");
 arangosh> c;
-[ArangoCollection 73115, "better-example" (type document, status loaded)]
+[ArangoCollection 71725, "better-example" (type document, status loaded)]
 
@@ -4460,10 +4461,10 @@ arangosh> db._collection("unknown" @@ -4633,7 +4634,7 @@ arangosh> db._collections(); [ArangoCollection 4, "_users" (type document, status loaded)], [ArangoCollection 97, "animals" (type document, status loaded)], [ArangoCollection 91, "demo" (type document, status loaded)], - [ArangoCollection 73136, "example" (type document, status loaded)] + [ArangoCollection 71746, "example" (type document, status loaded)] ]
Hide execution results
@@ -4655,7 +4656,7 @@ arangosh> db._collections();
 arangosh> db.example;
-[ArangoCollection 72868, "example" (type document, status loaded)]
+[ArangoCollection 71458, "example" (type document, status loaded)]
 
@@ -4671,10 +4672,10 @@ arangosh> db.example;
 arangosh> col = db.example;
-[ArangoCollection 72913, "example" (type document, status loaded)]
+[ArangoCollection 71503, "example" (type document, status loaded)]
 arangosh> db._drop(col);
 arangosh> col;
-[ArangoCollection 72913, "example" (type document, status loaded)]
+[ArangoCollection 71503, "example" (type document, status loaded)]
 
@@ -4690,10 +4691,10 @@ arangosh> col;
 arangosh> col = db.example;
-[ArangoCollection 72920, "example" (type document, status loaded)]
+[ArangoCollection 71510, "example" (type document, status loaded)]
 arangosh> db._drop("example");
 arangosh> col;
-[ArangoCollection 72920, "example" (type document, status deleted)]
+[ArangoCollection 71510, "example" (type document, status deleted)]
 
@@ -4709,10 +4710,10 @@ arangosh> col;
 arangosh> col = db._example;
-[ArangoCollection 72927, "_example" (type document, status loaded)]
+[ArangoCollection 71517, "_example" (type document, status loaded)]
 arangosh> db._drop("_example", { isSystem: true });
 arangosh> col;
-[ArangoCollection 72927, "_example" (type document, status deleted)]
+[ArangoCollection 71517, "_example" (type document, status deleted)]
 
@@ -4728,12 +4729,12 @@ arangosh> col;
@@ -5264,16 +5265,16 @@ arangosh> db._document("example/12345"
arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/73637", - "_key" : "73637", - "_rev" : "_e4zxMiK--_" + "_id" : "example/72247", + "_key" : "72247", + "_rev" : "_e9TS0jS---" } arangosh> a2 = db._replace(a1, { a : 2 }); { - "_id" : "example/73637", - "_key" : "73637", - "_rev" : "_e4zxMiK--A", - "_oldRev" : "_e4zxMiK--_" + "_id" : "example/72247", + "_key" : "72247", + "_rev" : "_e9TS0jW---", + "_oldRev" : "_e9TS0jS---" } arangosh> a3 = db._replace(a1, { a : 3 }); [ArangoError 1200: conflict, _rev values do not match] @@ -5300,16 +5301,16 @@ arangosh> a3 = db._replace(a1, { a : arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/73415", - "_key" : "73415", - "_rev" : "_e4zxMfi--_" + "_id" : "example/72025", + "_key" : "72025", + "_rev" : "_e9TS0Ya---" } arangosh> a2 = db._update(a1, { b : 2 }); { - "_id" : "example/73415", - "_key" : "73415", - "_rev" : "_e4zxMfi--A", - "_oldRev" : "_e4zxMfi--_" + "_id" : "example/72025", + "_key" : "72025", + "_rev" : "_e9TS0Ye---", + "_oldRev" : "_e9TS0Ya---" } arangosh> a3 = db._update(a1, { c : 3 }); [ArangoError 1200: conflict, _rev values do not match] @@ -5336,15 +5337,15 @@ arangosh> a3 = db._update(a1, { c : arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/73536", - "_key" : "73536", - "_rev" : "_e4zxMhG--_" + "_id" : "example/72146", + "_key" : "72146", + "_rev" : "_e9TS0ea---" } arangosh> db._remove(a1); { - "_id" : "example/73536", - "_key" : "73536", - "_rev" : "_e4zxMhG--_" + "_id" : "example/72146", + "_key" : "72146", + "_rev" : "_e9TS0ea---" } arangosh> db._remove(a1); [ArangoError 1202: document not found] @@ -5374,24 +5375,24 @@ arangosh> db._remove(a1, {overwrite: arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/73513", - "_key" : "73513", - "_rev" : "_e4zxMg2--_" + "_id" : "example/72123", + "_key" : "72123", + "_rev" : "_e9TS0dS---" } arangosh> a2 = db._replace(a1, { a : 2 }); { - "_id" : "example/73513", - "_key" : "73513", - "_rev" : "_e4zxMg2--A", - "_oldRev" : "_e4zxMg2--_" + "_id" : "example/72123", + "_key" : "72123", + "_rev" : "_e9TS0dW---", + "_oldRev" : "_e9TS0dS---" } arangosh> db._remove(a1); [ArangoError 1200: conflict, _rev values do not match] arangosh> db._remove(a1, {overwrite: true} ); { - "_id" : "example/73513", - "_key" : "73513", - "_rev" : "_e4zxMg2--A" + "_id" : "example/72123", + "_key" : "72123", + "_rev" : "_e9TS0dW---" } arangosh> db._document(a1); [ArangoError 1202: document not found] @@ -5422,14 +5423,14 @@ arangosh> db.example.insert({ _key: "_id" : "example/11265325374", "_key" : "11265325374", - "_rev" : "_e4zxMh---_" + "_rev" : "_e9TS0e----" } arangosh> db.example.remove("example/11265325374", ........> { overwrite: true, waitForSync: false}) { "_id" : "example/11265325374", "_key" : "11265325374", - "_rev" : "_e4zxMh---_" + "_rev" : "_e9TS0e----" }
Hide execution results
@@ -5456,62 +5457,62 @@ arangosh> db.five.insert({ name : "_id" : "five/110", "_key" : "110", - "_rev" : "_e4zwdBS--_" + "_rev" : "_e9TRt2G---" } arangosh> db.five.insert({ name : "two" }); { "_id" : "five/112", "_key" : "112", - "_rev" : "_e4zwdBW---" + "_rev" : "_e9TRt2K---" } arangosh> db.five.insert({ name : "three" }); { "_id" : "five/114", "_key" : "114", - "_rev" : "_e4zwdBW--_" + "_rev" : "_e9TRt2O---" } arangosh> db.five.insert({ name : "four" }); { "_id" : "five/116", "_key" : "116", - "_rev" : "_e4zwdBW--A" + "_rev" : "_e9TRt2S---" } arangosh> db.five.insert({ name : "five" }); { "_id" : "five/118", "_key" : "118", - "_rev" : "_e4zwdBW--B" + "_rev" : "_e9TRt2W---" } arangosh> db.five.all().toArray(); [ { "_key" : "110", "_id" : "five/110", - "_rev" : "_e4zwdBS--_", + "_rev" : "_e9TRt2G---", "name" : "one" }, { "_key" : "112", "_id" : "five/112", - "_rev" : "_e4zwdBW---", + "_rev" : "_e9TRt2K---", "name" : "two" }, { "_key" : "114", "_id" : "five/114", - "_rev" : "_e4zwdBW--_", + "_rev" : "_e9TRt2O---", "name" : "three" }, { "_key" : "116", "_id" : "five/116", - "_rev" : "_e4zwdBW--A", + "_rev" : "_e9TRt2S---", "name" : "four" }, { "_key" : "118", "_id" : "five/118", - "_rev" : "_e4zwdBW--B", + "_rev" : "_e9TRt2W---", "name" : "five" } ] @@ -5543,44 +5544,44 @@ arangosh> db.five.insert({ name : "_id" : "five/130", "_key" : "130", - "_rev" : "_e4zwdCK--_" + "_rev" : "_e9TRt4S---" } arangosh> db.five.insert({ name : "two" }); { "_id" : "five/132", "_key" : "132", - "_rev" : "_e4zwdCK--A" + "_rev" : "_e9TRt4W---" } arangosh> db.five.insert({ name : "three" }); { "_id" : "five/134", "_key" : "134", - "_rev" : "_e4zwdCK--B" + "_rev" : "_e9TRt4a---" } arangosh> db.five.insert({ name : "four" }); { "_id" : "five/136", "_key" : "136", - "_rev" : "_e4zwdCK--C" + "_rev" : "_e9TRt4a--_" } arangosh> db.five.insert({ name : "five" }); { "_id" : "five/138", "_key" : "138", - "_rev" : "_e4zwdCK--D" + "_rev" : "_e9TRt4e---" } arangosh> db.five.all().limit(2).toArray(); [ { "_key" : "130", "_id" : "five/130", - "_rev" : "_e4zwdCK--_", + "_rev" : "_e9TRt4S---", "name" : "one" }, { "_key" : "132", "_id" : "five/132", - "_rev" : "_e4zwdCK--A", + "_rev" : "_e9TRt4W---", "name" : "two" } ] @@ -5612,38 +5613,38 @@ arangosh> db.users.insert({ name: "_id" : "users/150", "_key" : "150", - "_rev" : "_e4zwdCa--_" + "_rev" : "_e9TRt5C---" } arangosh> db.users.insert({ name: "Helmut" }); { "_id" : "users/152", "_key" : "152", - "_rev" : "_e4zwdCa--A" + "_rev" : "_e9TRt5G---" } arangosh> db.users.insert({ name: "Angela" }); { "_id" : "users/154", "_key" : "154", - "_rev" : "_e4zwdCa--B" + "_rev" : "_e9TRt5K---" } arangosh> db.users.all().toArray(); [ { "_key" : "150", "_id" : "users/150", - "_rev" : "_e4zwdCa--_", + "_rev" : "_e9TRt5C---", "name" : "Gerhard" }, { "_key" : "152", "_id" : "users/152", - "_rev" : "_e4zwdCa--A", + "_rev" : "_e9TRt5G---", "name" : "Helmut" }, { "_key" : "154", "_id" : "users/154", - "_rev" : "_e4zwdCa--B", + "_rev" : "_e9TRt5K---", "name" : "Angela" } ] @@ -5654,7 +5655,7 @@ arangosh> db.users.byExample({ "name""_key" : "150", "_id" : "users/150", - "_rev" : "_e4zwdCa--_", + "_rev" : "_e9TRt5C---", "name" : "Gerhard" } ] @@ -5689,26 +5690,26 @@ arangosh> db.users.insert({ name: "_id" : "users/172", "_key" : "172", - "_rev" : "_e4zwdCy--_" + "_rev" : "_e9TRt6G---" } arangosh> db.users.insert({ name: "Helmut" }); { "_id" : "users/174", "_key" : "174", - "_rev" : "_e4zwdC2---" + "_rev" : "_e9TRt6K---" } arangosh> db.users.insert({ name: "Angela" }); { "_id" : "users/176", "_key" : "176", - "_rev" : "_e4zwdC2--_" + "_rev" : "_e9TRt6O---" } arangosh> var a = db.users.byExample( {"name" : "Angela" } ); arangosh> while (a.hasNext()) print(a.next()); { "_key" : "176", "_id" : "users/176", - "_rev" : "_e4zwdC2--_", + "_rev" : "_e9TRt6O---", "name" : "Angela" } @@ -5736,9 +5737,9 @@ arangosh> while (a.hasNext()) print(a.next(
 arangosh> db.users.firstExample("name", "Angela");
 { 
-  "_key" : "73000", 
-  "_id" : "users/73000", 
-  "_rev" : "_e4zxMXW--_", 
+  "_key" : "71590", 
+  "_id" : "users/71590", 
+  "_rev" : "_e9TSz6G---", 
   "name" : "Angela" 
 }
 
@@ -5780,7 +5781,7 @@ arangosh> db.example.document("example/2873916 { "_key" : "2873916", "_id" : "example/2873916", - "_rev" : "_e4zxMgy---" + "_rev" : "_e9TS0d----" }
Hide execution results
@@ -5805,7 +5806,7 @@ arangosh> db.example.document("2873916""_key" : "2873916", "_id" : "example/2873916", - "_rev" : "_e4zxMge--_" + "_rev" : "_e9TS0bu---" }
Hide execution results
@@ -5830,7 +5831,7 @@ arangosh> db.example.document({_id: "_key" : "2873916", "_id" : "example/2873916", - "_rev" : "_e4zxMgm---" + "_rev" : "_e9TS0cG---" }
Hide execution results
@@ -5856,12 +5857,12 @@ arangosh> db.example.document(["2873916"< { "_key" : "2873916", "_id" : "example/2873916", - "_rev" : "_e4zxMgq--_" + "_rev" : "_e9TS0ce---" }, { "_key" : "2873917", "_id" : "example/2873917", - "_rev" : "_e4zxMgq--A" + "_rev" : "_e9TS0ci---" } ] @@ -5927,61 +5928,61 @@ arangosh> db.example.documents(keys); { "_key" : "test0", "_id" : "example/test0", - "_rev" : "_e4zxMa6---", + "_rev" : "_e9TS0G2---", "value" : 0 }, { "_key" : "test1", "_id" : "example/test1", - "_rev" : "_e4zxMa6--_", + "_rev" : "_e9TS0G6---", "value" : 1 }, { "_key" : "test2", "_id" : "example/test2", - "_rev" : "_e4zxMa6--A", + "_rev" : "_e9TS0H----", "value" : 2 }, { "_key" : "test3", "_id" : "example/test3", - "_rev" : "_e4zxMa6--B", + "_rev" : "_e9TS0HC---", "value" : 3 }, { "_key" : "test4", "_id" : "example/test4", - "_rev" : "_e4zxMa6--C", + "_rev" : "_e9TS0HG---", "value" : 4 }, { "_key" : "test5", "_id" : "example/test5", - "_rev" : "_e4zxMa6--D", + "_rev" : "_e9TS0HG--_", "value" : 5 }, { "_key" : "test6", "_id" : "example/test6", - "_rev" : "_e4zxMa6--E", + "_rev" : "_e9TS0HK---", "value" : 6 }, { "_key" : "test7", "_id" : "example/test7", - "_rev" : "_e4zxMa6--F", + "_rev" : "_e9TS0HO---", "value" : 7 }, { "_key" : "test8", "_id" : "example/test8", - "_rev" : "_e4zxMb----", + "_rev" : "_e9TS0HS---", "value" : 8 }, { "_key" : "test9", "_id" : "example/test9", - "_rev" : "_e4zxMb---_", + "_rev" : "_e9TS0HS--_", "value" : 9 } ] @@ -6012,15 +6013,15 @@ arangosh> db.example.documents(keys);
 arangosh> db.example.insert({ Hello : "World" });
 { 
-  "_id" : "example/73440", 
-  "_key" : "73440", 
-  "_rev" : "_e4zxMg---_" 
+  "_id" : "example/72050", 
+  "_key" : "72050", 
+  "_rev" : "_e9TS0Z2---" 
 }
 arangosh> db.example.insert({ Hello : "World" }, {waitForSync: true});
 { 
-  "_id" : "example/73442", 
-  "_key" : "73442", 
-  "_rev" : "_e4zxMg---A" 
+  "_id" : "example/72052", 
+  "_key" : "72052", 
+  "_rev" : "_e9TS0Z6---" 
 }
 
Hide execution results
@@ -6045,27 +6046,27 @@ arangosh> db.example.insert({ Hello : Hello : "World" }, {Hello: "there"}]) [ { - "_id" : "example/73427", - "_key" : "73427", - "_rev" : "_e4zxMfq--_" + "_id" : "example/72037", + "_key" : "72037", + "_rev" : "_e9TS0Y6---" }, { - "_id" : "example/73428", - "_key" : "73428", - "_rev" : "_e4zxMfq--A" + "_id" : "example/72038", + "_key" : "72038", + "_rev" : "_e9TS0Y6--_" } ] arangosh> db.example.insert([{ Hello : "World" }, {}], {waitForSync: true}); [ { - "_id" : "example/73430", - "_key" : "73430", - "_rev" : "_e4zxMfq--B" + "_id" : "example/72040", + "_key" : "72040", + "_rev" : "_e9TS0Z----" }, { - "_id" : "example/73431", - "_key" : "73431", - "_rev" : "_e4zxMfq--C" + "_id" : "example/72041", + "_key" : "72041", + "_rev" : "_e9TS0Z---_" } ] @@ -6092,18 +6093,18 @@ arangosh> db.example.insert({ _key : "_id" : "example/666", "_key" : "666", - "_rev" : "_e4zxMgO--_" + "_rev" : "_e9TS0ae---" } arangosh> db.example.insert({ _key : "666", Hello : "Universe" }, {overwrite: true, returnOld: true}); { "_id" : "example/666", "_key" : "666", - "_rev" : "_e4zxMgO--A", - "_oldRev" : "_e4zxMgO--_", + "_rev" : "_e9TS0ai---", + "_oldRev" : "_e9TS0ae---", "old" : { "_key" : "666", "_id" : "example/666", - "_rev" : "_e4zxMgO--_", + "_rev" : "_e9TS0ae---", "Hello" : "World" } } @@ -6129,16 +6130,16 @@ arangosh> db.example.insert({ _key : arangosh> a1 = db.example.insert({ a : 1 }); { - "_id" : "example/73548", - "_key" : "73548", - "_rev" : "_e4zxMhO---" + "_id" : "example/72158", + "_key" : "72158", + "_rev" : "_e9TS0e6---" } arangosh> a2 = db.example.replace(a1, { a : 2 }); { - "_id" : "example/73548", - "_key" : "73548", - "_rev" : "_e4zxMhO--_", - "_oldRev" : "_e4zxMhO---" + "_id" : "example/72158", + "_key" : "72158", + "_rev" : "_e9TS0f----", + "_oldRev" : "_e9TS0e6---" } arangosh> a3 = db.example.replace(a1, { a : 3 }); [ArangoError 1200: conflict, _rev values do not match] @@ -6167,14 +6168,14 @@ arangosh> a1 = db.example.insert({ a : "_id" : "example/3903045", "_key" : "3903045", - "_rev" : "_e4zxMhS--A" + "_rev" : "_e9TS0fa---" } arangosh> a2 = db.example.replace("example/3903044", { a : 2 }); { "_id" : "example/3903044", "_key" : "3903044", - "_rev" : "_e4zxMhW---", - "_oldRev" : "_e4zxMhS--_" + "_rev" : "_e9TS0fe---", + "_oldRev" : "_e9TS0fW---" }
Hide execution results
@@ -6198,31 +6199,31 @@ arangosh> a2 = db.example.replace("example/390
 arangosh> a1 = db.example.insert({"a" : 1});
 { 
-  "_id" : "example/73571", 
-  "_key" : "73571", 
-  "_rev" : "_e4zxMha--_" 
+  "_id" : "example/72181", 
+  "_key" : "72181", 
+  "_rev" : "_e9TS0fy---" 
 }
 arangosh> a2 = db.example.update(a1, {"b" : 2, "c" : 3});
 { 
-  "_id" : "example/73571", 
-  "_key" : "73571", 
-  "_rev" : "_e4zxMha--A", 
-  "_oldRev" : "_e4zxMha--_" 
+  "_id" : "example/72181", 
+  "_key" : "72181", 
+  "_rev" : "_e9TS0f2---", 
+  "_oldRev" : "_e9TS0fy---" 
 }
 arangosh> a3 = db.example.update(a1, {"d" : 4});
 [ArangoError 1200: conflict, _rev values do not match]
 arangosh> a4 = db.example.update(a2, {"e" : 5, "f" : 6 });
 { 
-  "_id" : "example/73571", 
-  "_key" : "73571", 
-  "_rev" : "_e4zxMhe---", 
-  "_oldRev" : "_e4zxMha--A" 
+  "_id" : "example/72181", 
+  "_key" : "72181", 
+  "_rev" : "_e9TS0g----", 
+  "_oldRev" : "_e9TS0f2---" 
 }
 arangosh> db.example.document(a4);
 { 
-  "_key" : "73571", 
-  "_id" : "example/73571", 
-  "_rev" : "_e4zxMhe---", 
+  "_key" : "72181", 
+  "_id" : "example/72181", 
+  "_rev" : "_e9TS0g----", 
   "a" : 1, 
   "b" : 2, 
   "c" : 3, 
@@ -6231,16 +6232,16 @@ arangosh> db.example.document(a4);
 }
 arangosh> a5 = db.example.update(a4, {"a" : 1, c : 9, e : 42 });
 { 
-  "_id" : "example/73571", 
-  "_key" : "73571", 
-  "_rev" : "_e4zxMhe--_", 
-  "_oldRev" : "_e4zxMhe---" 
+  "_id" : "example/72181", 
+  "_key" : "72181", 
+  "_rev" : "_e9TS0gG---", 
+  "_oldRev" : "_e9TS0g----" 
 }
 arangosh> db.example.document(a5);
 { 
-  "_key" : "73571", 
-  "_id" : "example/73571", 
-  "_rev" : "_e4zxMhe--_", 
+  "_key" : "72181", 
+  "_id" : "example/72181", 
+  "_rev" : "_e9TS0gG---", 
   "a" : 1, 
   "b" : 2, 
   "c" : 9, 
@@ -6276,14 +6277,14 @@ arangosh> a1 = db.example.insert({"a""_id" : "example/18612116", 
   "_key" : "18612116", 
-  "_rev" : "_e4zxMi---_" 
+  "_rev" : "_e9TS0ia---" 
 }
 arangosh> a2 = db.example.update("example/18612115", { "x" : 1, "y" : 2 });
 { 
   "_id" : "example/18612115", 
   "_key" : "18612115", 
-  "_rev" : "_e4zxMi---A", 
-  "_oldRev" : "_e4zxMi----" 
+  "_rev" : "_e9TS0ie---", 
+  "_oldRev" : "_e9TS0iS---" 
 }
 
Hide execution results
@@ -6309,39 +6310,39 @@ arangosh> db.example.insert({"a" : { "_id" : "example/19988372", "_key" : "19988372", - "_rev" : "_e4zxMhy--A" + "_rev" : "_e9TS0ha---" } arangosh> db.example.update("example/19988371", ........> { "b" : null, "c" : null, "d" : 3 }); { "_id" : "example/19988371", "_key" : "19988371", - "_rev" : "_e4zxMhy--B", - "_oldRev" : "_e4zxMhy--_" + "_rev" : "_e9TS0he---", + "_oldRev" : "_e9TS0hW---" } arangosh> db.example.document("example/19988371"); { "_key" : "19988371", "_id" : "example/19988371", - "_rev" : "_e4zxMhy--B", - "d" : 3, + "_rev" : "_e9TS0he---", "c" : null, + "d" : 3, "b" : null } arangosh> db.example.update("example/19988371", { "a" : null }, false, false); { "_id" : "example/19988371", "_key" : "19988371", - "_rev" : "_e4zxMhy--C", - "_oldRev" : "_e4zxMhy--B" + "_rev" : "_e9TS0hm---", + "_oldRev" : "_e9TS0he---" } arangosh> db.example.document("example/19988371"); { "_key" : "19988371", "_id" : "example/19988371", - "_rev" : "_e4zxMhy--C", - "d" : 3, + "_rev" : "_e9TS0hm---", "c" : null, + "d" : 3, "b" : null } arangosh> db.example.update("example/19988371", @@ -6349,14 +6350,14 @@ arangosh> db.example.update("example/19988371& { "_id" : "example/19988371", "_key" : "19988371", - "_rev" : "_e4zxMh2---", - "_oldRev" : "_e4zxMhy--C" + "_rev" : "_e9TS0hq---", + "_oldRev" : "_e9TS0hm---" } arangosh> db.example.document("example/19988371"); { "_key" : "19988371", "_id" : "example/19988371", - "_rev" : "_e4zxMh2---" + "_rev" : "_e9TS0hq---" }
Hide execution results
@@ -6390,26 +6391,26 @@ arangosh> db.example.insert({"a" { "_id" : "example/20774804", "_key" : "20774804", - "_rev" : "_e4zxMhm--A" + "_rev" : "_e9TS0gu---" } arangosh> db.example.update("example/20774803", {"a" : { "four" : 4 }, ........> "b" : { "b1" : 1 }}); { "_id" : "example/20774803", "_key" : "20774803", - "_rev" : "_e4zxMhq---", - "_oldRev" : "_e4zxMhm--_" + "_rev" : "_e9TS0gy---", + "_oldRev" : "_e9TS0gq---" } arangosh> db.example.document("example/20774803"); { "_key" : "20774803", "_id" : "example/20774803", - "_rev" : "_e4zxMhq---", - "a" : { - "four" : 4 - }, + "_rev" : "_e9TS0gy---", "b" : { "b1" : 1 + }, + "a" : { + "four" : 4 } } arangosh> db.example.update("example/20774803", { "a" : { "one" : null }, @@ -6418,14 +6419,14 @@ arangosh> db.example.update("example/20774803& { "_id" : "example/20774803", "_key" : "20774803", - "_rev" : "_e4zxMhq--_", - "_oldRev" : "_e4zxMhq---" + "_rev" : "_e9TS0g2---", + "_oldRev" : "_e9TS0gy---" } arangosh> db.example.document("example/20774803"); { "_key" : "20774803", "_id" : "example/20774803", - "_rev" : "_e4zxMhq--_", + "_rev" : "_e9TS0g2---", "a" : { "four" : 4 } @@ -6459,22 +6460,22 @@ arangosh> db.example.document("example/2077480
 arangosh> a1 = db.example.insert({ a : 1 });
 { 
-  "_id" : "example/73403", 
-  "_key" : "73403", 
-  "_rev" : "_e4zxMfa--_" 
+  "_id" : "example/72013", 
+  "_key" : "72013", 
+  "_rev" : "_e9TS0X2---" 
 }
 arangosh> db.example.document(a1);
 { 
-  "_key" : "73403", 
-  "_id" : "example/73403", 
-  "_rev" : "_e4zxMfa--_", 
+  "_key" : "72013", 
+  "_id" : "example/72013", 
+  "_rev" : "_e9TS0X2---", 
   "a" : 1 
 }
 arangosh> db.example.remove(a1);
 { 
-  "_id" : "example/73403", 
-  "_key" : "73403", 
-  "_rev" : "_e4zxMfa--_" 
+  "_id" : "example/72013", 
+  "_key" : "72013", 
+  "_rev" : "_e9TS0X2---" 
 }
 arangosh> db.example.document(a1);
 [ArangoError 1202: document not found]
@@ -6502,24 +6503,24 @@ arangosh> db.example.document(a1);
 
 arangosh> a1 = db.example.insert({ a : 1 });
 { 
-  "_id" : "example/73389", 
-  "_key" : "73389", 
-  "_rev" : "_e4zxMfS--_" 
+  "_id" : "example/71999", 
+  "_key" : "71999", 
+  "_rev" : "_e9TS0XG---" 
 }
 arangosh> a2 = db.example.replace(a1, { a : 2 });
 { 
-  "_id" : "example/73389", 
-  "_key" : "73389", 
-  "_rev" : "_e4zxMfS--A", 
-  "_oldRev" : "_e4zxMfS--_" 
+  "_id" : "example/71999", 
+  "_key" : "71999", 
+  "_rev" : "_e9TS0XO---", 
+  "_oldRev" : "_e9TS0XG---" 
 }
 arangosh> db.example.remove(a1);
 [ArangoError 1200: conflict, _rev values do not match]
 arangosh> db.example.remove(a1, true);
 { 
-  "_id" : "example/73389", 
-  "_key" : "73389", 
-  "_rev" : "_e4zxMfS--A" 
+  "_id" : "example/71999", 
+  "_key" : "71999", 
+  "_rev" : "_e9TS0XO---" 
 }
 arangosh> db.example.document(a1);
 [ArangoError 1202: document not found]
@@ -6601,7 +6602,7 @@ arangosh> db.example.insert({ Hello : "_id" : "example/198", 
   "_key" : "198", 
-  "_rev" : "_e4zwdDK--_" 
+  "_rev" : "_e9TRt7e---" 
 }
 arangosh> db.example.replaceByExample({ Hello: "world" }, {Hello: "mars"}, false, 5);
 1
@@ -6629,7 +6630,7 @@ arangosh> db.example.insert({ Hello : "_id" : "example/209", 
   "_key" : "209", 
-  "_rev" : "_e4zwdDW--_" 
+  "_rev" : "_e9TRt8C---" 
 }
 arangosh> db.example.updateByExample({ Hello: "world" }, { Hello: "foo", World: "bar" }, false);
 1
@@ -6638,7 +6639,7 @@ arangosh> db.example.byExample({ Hello: "_key" : "209", 
     "_id" : "example/209", 
-    "_rev" : "_e4zwdDW--A", 
+    "_rev" : "_e9TRt8K---", 
     "Hello" : "foo", 
     "foo" : "bar", 
     "World" : "bar" 
@@ -6666,36 +6667,36 @@ arangosh> db.example.byExample({ Hello: 
@@ -8061,10 +8048,10 @@ arangosh> var graph = examples.loadGraph(var any = require("@arangodb").db.relation.any(); arangosh> graph._toVertex("relation/" + any._key); { - "_key" : "bob", - "_id" : "male/bob", - "_rev" : "_e4zxMo6--_", - "name" : "Bob" + "_key" : "charly", + "_id" : "male/charly", + "_rev" : "_e9TS1Bm---", + "name" : "Charly" }
Hide execution results
@@ -8585,13 +8572,13 @@ arangosh> g._paths(); "source" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7----", + "_rev" : "_e9TS2Pu---", "name" : "Alice" }, "destination" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7----", + "_rev" : "_e9TS2Pu---", "name" : "Alice" }, "edges" : [ ], @@ -8599,7 +8586,7 @@ arangosh> g._paths(); { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7----", + "_rev" : "_e9TS2Pu---", "name" : "Alice" } ] @@ -8608,22 +8595,22 @@ arangosh> g._paths(); "source" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7----", + "_rev" : "_e9TS2Pu---", "name" : "Alice" }, "destination" : { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxM7---A", + "_rev" : "_e9TS2Py--_", "name" : "Charly" }, "edges" : [ { - "_key" : "77848", - "_id" : "relation/77848", + "_key" : "76588", + "_id" : "relation/76588", "_from" : "female/alice", "_to" : "male/charly", - "_rev" : "_e4zxM7---D", + "_rev" : "_e9TS2P6--_", "type" : "friend", "vertex" : "alice" } @@ -8632,13 +8619,13 @@ arangosh> g._paths(); { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7----", + "_rev" : "_e9TS2Pu---", "name" : "Alice" }, { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxM7---A", + "_rev" : "_e9TS2Py--_", "name" : "Charly" } ] @@ -8647,31 +8634,31 @@ arangosh> g._paths(); "source" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7----", + "_rev" : "_e9TS2Pu---", "name" : "Alice" }, "destination" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7---B", + "_rev" : "_e9TS2P2---", "name" : "Diana" }, "edges" : [ { - "_key" : "77848", - "_id" : "relation/77848", + "_key" : "76588", + "_id" : "relation/76588", "_from" : "female/alice", "_to" : "male/charly", - "_rev" : "_e4zxM7---D", + "_rev" : "_e9TS2P6--_", "type" : "friend", "vertex" : "alice" }, { - "_key" : "77850", - "_id" : "relation/77850", + "_key" : "76590", + "_id" : "relation/76590", "_from" : "male/charly", "_to" : "female/diana", - "_rev" : "_e4zxM7---E", + "_rev" : "_e9TS2Q----", "type" : "married", "vertex" : "charly" } @@ -8680,19 +8667,19 @@ arangosh> g._paths(); { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7----", + "_rev" : "_e9TS2Pu---", "name" : "Alice" }, { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxM7---A", + "_rev" : "_e9TS2Py--_", "name" : "Charly" }, { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7---B", + "_rev" : "_e9TS2P2---", "name" : "Diana" } ] @@ -8701,22 +8688,22 @@ arangosh> g._paths(); "source" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7----", + "_rev" : "_e9TS2Pu---", "name" : "Alice" }, "destination" : { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxM7---_", + "_rev" : "_e9TS2Py---", "name" : "Bob" }, "edges" : [ { - "_key" : "77846", - "_id" : "relation/77846", + "_key" : "76586", + "_id" : "relation/76586", "_from" : "female/alice", "_to" : "male/bob", - "_rev" : "_e4zxM7---C", + "_rev" : "_e9TS2P6---", "type" : "married", "vertex" : "alice" } @@ -8725,13 +8712,13 @@ arangosh> g._paths(); { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7----", + "_rev" : "_e9TS2Pu---", "name" : "Alice" }, { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxM7---_", + "_rev" : "_e9TS2Py---", "name" : "Bob" } ] @@ -8740,31 +8727,31 @@ arangosh> g._paths(); "source" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7----", + "_rev" : "_e9TS2Pu---", "name" : "Alice" }, "destination" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7---B", + "_rev" : "_e9TS2P2---", "name" : "Diana" }, "edges" : [ { - "_key" : "77846", - "_id" : "relation/77846", + "_key" : "76586", + "_id" : "relation/76586", "_from" : "female/alice", "_to" : "male/bob", - "_rev" : "_e4zxM7---C", + "_rev" : "_e9TS2P6---", "type" : "married", "vertex" : "alice" }, { - "_key" : "77852", - "_id" : "relation/77852", + "_key" : "76592", + "_id" : "relation/76592", "_from" : "male/bob", "_to" : "female/diana", - "_rev" : "_e4zxM7---F", + "_rev" : "_e9TS2Q---_", "type" : "friend", "vertex" : "bob" } @@ -8773,19 +8760,19 @@ arangosh> g._paths(); { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7----", + "_rev" : "_e9TS2Pu---", "name" : "Alice" }, { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxM7---_", + "_rev" : "_e9TS2Py---", "name" : "Bob" }, { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7---B", + "_rev" : "_e9TS2P2---", "name" : "Diana" } ] @@ -8794,13 +8781,13 @@ arangosh> g._paths(); "source" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7---B", + "_rev" : "_e9TS2P2---", "name" : "Diana" }, "destination" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7---B", + "_rev" : "_e9TS2P2---", "name" : "Diana" }, "edges" : [ ], @@ -8808,7 +8795,7 @@ arangosh> g._paths(); { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7---B", + "_rev" : "_e9TS2P2---", "name" : "Diana" } ] @@ -8817,13 +8804,13 @@ arangosh> g._paths(); "source" : { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxM7---_", + "_rev" : "_e9TS2Py---", "name" : "Bob" }, "destination" : { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxM7---_", + "_rev" : "_e9TS2Py---", "name" : "Bob" }, "edges" : [ ], @@ -8831,7 +8818,7 @@ arangosh> g._paths(); { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxM7---_", + "_rev" : "_e9TS2Py---", "name" : "Bob" } ] @@ -8840,22 +8827,22 @@ arangosh> g._paths(); "source" : { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxM7---_", + "_rev" : "_e9TS2Py---", "name" : "Bob" }, "destination" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7---B", + "_rev" : "_e9TS2P2---", "name" : "Diana" }, "edges" : [ { - "_key" : "77852", - "_id" : "relation/77852", + "_key" : "76592", + "_id" : "relation/76592", "_from" : "male/bob", "_to" : "female/diana", - "_rev" : "_e4zxM7---F", + "_rev" : "_e9TS2Q---_", "type" : "friend", "vertex" : "bob" } @@ -8864,13 +8851,13 @@ arangosh> g._paths(); { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxM7---_", + "_rev" : "_e9TS2Py---", "name" : "Bob" }, { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7---B", + "_rev" : "_e9TS2P2---", "name" : "Diana" } ] @@ -8879,13 +8866,13 @@ arangosh> g._paths(); "source" : { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxM7---A", + "_rev" : "_e9TS2Py--_", "name" : "Charly" }, "destination" : { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxM7---A", + "_rev" : "_e9TS2Py--_", "name" : "Charly" }, "edges" : [ ], @@ -8893,7 +8880,7 @@ arangosh> g._paths(); { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxM7---A", + "_rev" : "_e9TS2Py--_", "name" : "Charly" } ] @@ -8902,22 +8889,22 @@ arangosh> g._paths(); "source" : { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxM7---A", + "_rev" : "_e9TS2Py--_", "name" : "Charly" }, "destination" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7---B", + "_rev" : "_e9TS2P2---", "name" : "Diana" }, "edges" : [ { - "_key" : "77850", - "_id" : "relation/77850", + "_key" : "76590", + "_id" : "relation/76590", "_from" : "male/charly", "_to" : "female/diana", - "_rev" : "_e4zxM7---E", + "_rev" : "_e9TS2Q----", "type" : "married", "vertex" : "charly" } @@ -8926,13 +8913,13 @@ arangosh> g._paths(); { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxM7---A", + "_rev" : "_e9TS2Py--_", "name" : "Charly" }, { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7---B", + "_rev" : "_e9TS2P2---", "name" : "Diana" } ] @@ -8967,22 +8954,22 @@ arangosh> g._paths({direction : "source" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7m--B", + "_rev" : "_e9TS2SS---", "name" : "Diana" }, "destination" : { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxM7m--_", + "_rev" : "_e9TS2SO---", "name" : "Bob" }, "edges" : [ { - "_key" : "77914", - "_id" : "relation/77914", + "_key" : "76654", + "_id" : "relation/76654", "_from" : "male/bob", "_to" : "female/diana", - "_rev" : "_e4zxM7m--F", + "_rev" : "_e9TS2Se---", "type" : "friend", "vertex" : "bob" } @@ -8991,13 +8978,13 @@ arangosh> g._paths({direction : "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7m--B", + "_rev" : "_e9TS2SS---", "name" : "Diana" }, { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxM7m--_", + "_rev" : "_e9TS2SO---", "name" : "Bob" } ] @@ -9006,31 +8993,31 @@ arangosh> g._paths({direction : "source" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7m--B", + "_rev" : "_e9TS2SS---", "name" : "Diana" }, "destination" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7m---", + "_rev" : "_e9TS2SK---", "name" : "Alice" }, "edges" : [ { - "_key" : "77914", - "_id" : "relation/77914", + "_key" : "76654", + "_id" : "relation/76654", "_from" : "male/bob", "_to" : "female/diana", - "_rev" : "_e4zxM7m--F", + "_rev" : "_e9TS2Se---", "type" : "friend", "vertex" : "bob" }, { - "_key" : "77908", - "_id" : "relation/77908", + "_key" : "76648", + "_id" : "relation/76648", "_from" : "female/alice", "_to" : "male/bob", - "_rev" : "_e4zxM7m--C", + "_rev" : "_e9TS2SW---", "type" : "married", "vertex" : "alice" } @@ -9039,19 +9026,19 @@ arangosh> g._paths({direction : "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7m--B", + "_rev" : "_e9TS2SS---", "name" : "Diana" }, { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxM7m--_", + "_rev" : "_e9TS2SO---", "name" : "Bob" }, { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7m---", + "_rev" : "_e9TS2SK---", "name" : "Alice" } ] @@ -9060,22 +9047,22 @@ arangosh> g._paths({direction : "source" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7m--B", + "_rev" : "_e9TS2SS---", "name" : "Diana" }, "destination" : { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxM7m--A", + "_rev" : "_e9TS2SO--_", "name" : "Charly" }, "edges" : [ { - "_key" : "77912", - "_id" : "relation/77912", + "_key" : "76652", + "_id" : "relation/76652", "_from" : "male/charly", "_to" : "female/diana", - "_rev" : "_e4zxM7m--E", + "_rev" : "_e9TS2Sa--_", "type" : "married", "vertex" : "charly" } @@ -9084,13 +9071,13 @@ arangosh> g._paths({direction : "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7m--B", + "_rev" : "_e9TS2SS---", "name" : "Diana" }, { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxM7m--A", + "_rev" : "_e9TS2SO--_", "name" : "Charly" } ] @@ -9099,31 +9086,31 @@ arangosh> g._paths({direction : "source" : { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7m--B", + "_rev" : "_e9TS2SS---", "name" : "Diana" }, "destination" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7m---", + "_rev" : "_e9TS2SK---", "name" : "Alice" }, "edges" : [ { - "_key" : "77912", - "_id" : "relation/77912", + "_key" : "76652", + "_id" : "relation/76652", "_from" : "male/charly", "_to" : "female/diana", - "_rev" : "_e4zxM7m--E", + "_rev" : "_e9TS2Sa--_", "type" : "married", "vertex" : "charly" }, { - "_key" : "77910", - "_id" : "relation/77910", + "_key" : "76650", + "_id" : "relation/76650", "_from" : "female/alice", "_to" : "male/charly", - "_rev" : "_e4zxM7m--D", + "_rev" : "_e9TS2Sa---", "type" : "friend", "vertex" : "alice" } @@ -9132,19 +9119,19 @@ arangosh> g._paths({direction : "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxM7m--B", + "_rev" : "_e9TS2SS---", "name" : "Diana" }, { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxM7m--A", + "_rev" : "_e9TS2SO--_", "name" : "Charly" }, { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7m---", + "_rev" : "_e9TS2SK---", "name" : "Alice" } ] @@ -9153,22 +9140,22 @@ arangosh> g._paths({direction : "source" : { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxM7m--_", + "_rev" : "_e9TS2SO---", "name" : "Bob" }, "destination" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7m---", + "_rev" : "_e9TS2SK---", "name" : "Alice" }, "edges" : [ { - "_key" : "77908", - "_id" : "relation/77908", + "_key" : "76648", + "_id" : "relation/76648", "_from" : "female/alice", "_to" : "male/bob", - "_rev" : "_e4zxM7m--C", + "_rev" : "_e9TS2SW---", "type" : "married", "vertex" : "alice" } @@ -9177,13 +9164,13 @@ arangosh> g._paths({direction : "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxM7m--_", + "_rev" : "_e9TS2SO---", "name" : "Bob" }, { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7m---", + "_rev" : "_e9TS2SK---", "name" : "Alice" } ] @@ -9192,22 +9179,22 @@ arangosh> g._paths({direction : "source" : { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxM7m--A", + "_rev" : "_e9TS2SO--_", "name" : "Charly" }, "destination" : { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7m---", + "_rev" : "_e9TS2SK---", "name" : "Alice" }, "edges" : [ { - "_key" : "77910", - "_id" : "relation/77910", + "_key" : "76650", + "_id" : "relation/76650", "_from" : "female/alice", "_to" : "male/charly", - "_rev" : "_e4zxM7m--D", + "_rev" : "_e9TS2Sa---", "type" : "friend", "vertex" : "alice" } @@ -9216,13 +9203,13 @@ arangosh> g._paths({direction : "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxM7m--A", + "_rev" : "_e9TS2SO--_", "name" : "Charly" }, { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxM7m---", + "_rev" : "_e9TS2SK---", "name" : "Alice" } ] @@ -9261,11 +9248,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges"
: [ { - "_key" : "78484", - "_id" : "frenchHighway/78484", + "_key" : "77224", + "_id" : "frenchHighway/77224", "_from" : "frenchCity/Paris", "_to" : "frenchCity/Lyon", - "_rev" : "_e4zxN_K--B", + "_rev" : "_e9TS2he---", "distance" : 550 } ], @@ -9278,11 +9265,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges"
: [ { - "_key" : "78486", - "_id" : "internationalHighway/78486", + "_key" : "77226", + "_id" : "internationalHighway/77226", "_from" : "germanCity/Berlin", "_to" : "frenchCity/Lyon", - "_rev" : "_e4zxN_K--C", + "_rev" : "_e9TS2hi---", "distance" : 1100 } ], @@ -9295,11 +9282,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges"
: [ { - "_key" : "78494", - "_id" : "internationalHighway/78494", + "_key" : "77234", + "_id" : "internationalHighway/77234", "_from" : "germanCity/Cologne", "_to" : "frenchCity/Lyon", - "_rev" : "_e4zxN_O---", + "_rev" : "_e9TS2hu---", "distance" : 700 } ], @@ -9312,11 +9299,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges"
: [ { - "_key" : "78492", - "_id" : "internationalHighway/78492", + "_key" : "77232", + "_id" : "internationalHighway/77232", "_from" : "germanCity/Hamburg", "_to" : "frenchCity/Lyon", - "_rev" : "_e4zxN_K--F", + "_rev" : "_e9TS2hq---", "distance" : 1300 } ], @@ -9329,11 +9316,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges"
: [ { - "_key" : "78484", - "_id" : "frenchHighway/78484", + "_key" : "77224", + "_id" : "frenchHighway/77224", "_from" : "frenchCity/Paris", "_to" : "frenchCity/Lyon", - "_rev" : "_e4zxN_K--B", + "_rev" : "_e9TS2he---", "distance" : 550 } ], @@ -9346,11 +9333,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges"
: [ { - "_key" : "78488", - "_id" : "internationalHighway/78488", + "_key" : "77228", + "_id" : "internationalHighway/77228", "_from" : "germanCity/Berlin", "_to" : "frenchCity/Paris", - "_rev" : "_e4zxN_K--D", + "_rev" : "_e9TS2hm---", "distance" : 1200 } ], @@ -9363,11 +9350,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges"
: [ { - "_key" : "78496", - "_id" : "internationalHighway/78496", + "_key" : "77236", + "_id" : "internationalHighway/77236", "_from" : "germanCity/Cologne", "_to" : "frenchCity/Paris", - "_rev" : "_e4zxN_O--_", + "_rev" : "_e9TS2hu--_", "distance" : 550 } ], @@ -9380,11 +9367,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges"
: [ { - "_key" : "78490", - "_id" : "internationalHighway/78490", + "_key" : "77230", + "_id" : "internationalHighway/77230", "_from" : "germanCity/Hamburg", "_to" : "frenchCity/Paris", - "_rev" : "_e4zxN_K--E", + "_rev" : "_e9TS2hm--_", "distance" : 900 } ], @@ -9397,11 +9384,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges"
: [ { - "_key" : "78486", - "_id" : "internationalHighway/78486", + "_key" : "77226", + "_id" : "internationalHighway/77226", "_from" : "germanCity/Berlin", "_to" : "frenchCity/Lyon", - "_rev" : "_e4zxN_K--C", + "_rev" : "_e9TS2hi---", "distance" : 1100 } ], @@ -9414,11 +9401,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges"
: [ { - "_key" : "78488", - "_id" : "internationalHighway/78488", + "_key" : "77228", + "_id" : "internationalHighway/77228", "_from" : "germanCity/Berlin", "_to" : "frenchCity/Paris", - "_rev" : "_e4zxN_K--D", + "_rev" : "_e9TS2hm---", "distance" : 1200 } ], @@ -9431,11 +9418,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78478", - "_id" : "germanHighway/78478", + "_key" : "77218", + "_id" : "germanHighway/77218", "_from" : "germanCity/Berlin", "_to" : "germanCity/Cologne", - "_rev" : "_e4zxN_K---", + "_rev" : "_e9TS2hW---", "distance" : 850 } ], @@ -9448,11 +9435,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78480", - "_id" : "germanHighway/78480", + "_key" : "77220", + "_id" : "germanHighway/77220", "_from" : "germanCity/Berlin", "_to" : "germanCity/Hamburg", - "_rev" : "_e4zxN_K--_", + "_rev" : "_e9TS2ha---", "distance" : 400 } ], @@ -9465,11 +9452,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78494", - "_id" : "internationalHighway/78494", + "_key" : "77234", + "_id" : "internationalHighway/77234", "_from" : "germanCity/Cologne", "_to" : "frenchCity/Lyon", - "_rev" : "_e4zxN_O---", + "_rev" : "_e9TS2hu---", "distance" : 700 } ], @@ -9482,11 +9469,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78496", - "_id" : "internationalHighway/78496", + "_key" : "77236", + "_id" : "internationalHighway/77236", "_from" : "germanCity/Cologne", "_to" : "frenchCity/Paris", - "_rev" : "_e4zxN_O--_", + "_rev" : "_e9TS2hu--_", "distance" : 550 } ], @@ -9499,11 +9486,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78478", - "_id" : "germanHighway/78478", + "_key" : "77218", + "_id" : "germanHighway/77218", "_from" : "germanCity/Berlin", "_to" : "germanCity/Cologne", - "_rev" : "_e4zxN_K---", + "_rev" : "_e9TS2hW---", "distance" : 850 } ], @@ -9516,11 +9503,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78482", - "_id" : "germanHighway/78482", + "_key" : "77222", + "_id" : "germanHighway/77222", "_from" : "germanCity/Hamburg", "_to" : "germanCity/Cologne", - "_rev" : "_e4zxN_K--A", + "_rev" : "_e9TS2ha--_", "distance" : 500 } ], @@ -9533,11 +9520,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78492", - "_id" : "internationalHighway/78492", + "_key" : "77232", + "_id" : "internationalHighway/77232", "_from" : "germanCity/Hamburg", "_to" : "frenchCity/Lyon", - "_rev" : "_e4zxN_K--F", + "_rev" : "_e9TS2hq---", "distance" : 1300 } ], @@ -9550,11 +9537,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78490", - "_id" : "internationalHighway/78490", + "_key" : "77230", + "_id" : "internationalHighway/77230", "_from" : "germanCity/Hamburg", "_to" : "frenchCity/Paris", - "_rev" : "_e4zxN_K--E", + "_rev" : "_e9TS2hm--_", "distance" : 900 } ], @@ -9567,11 +9554,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78480", - "_id" : "germanHighway/78480", + "_key" : "77220", + "_id" : "germanHighway/77220", "_from" : "germanCity/Berlin", "_to" : "germanCity/Hamburg", - "_rev" : "_e4zxN_K--_", + "_rev" : "_e9TS2ha---", "distance" : 400 } ], @@ -9584,11 +9571,11 @@ arangosh> g._shortestPath({}, {}, {weight : "edges" : [ { - "_key" : "78482", - "_id" : "germanHighway/78482", + "_key" : "77222", + "_id" : "germanHighway/77222", "_from" : "germanCity/Hamburg", "_to" : "germanCity/Cologne", - "_rev" : "_e4zxN_K--A", + "_rev" : "_e9TS2ha--_", "distance" : 500 } ], @@ -9629,11 +9616,11 @@ arangosh> g._shortestPath([{_id: "edges" : [ { - "_key" : "78593", - "_id" : "internationalHighway/78593", + "_key" : "77333", + "_id" : "internationalHighway/77333", "_from" : "germanCity/Cologne", "_to" : "frenchCity/Lyon", - "_rev" : "_e4zxNA---D", + "_rev" : "_e9TS2lK--_", "distance" : 700 } ], @@ -10553,67 +10540,67 @@ arangosh> edgedefinitions = graph_module._extendEdgeDefinitions(undirected_re - @startDocuBlockInline generalGraphRelationDefinitionSave + @startDocuBlockInline generalGraphRelationDefinitionSingle -
- @@ -10738,12 +10725,12 @@ arangosh> var edgeDefinitions = graph_modu ........> "has_bought", ["Customer", "Company"], ["Groceries", "Electronics"])); arangosh> graph_module._create("myStore", edgeDefinitions); {[GeneralGraph] - "friend_of" : [ArangoCollection 79389, "friend_of" (type edge, status loaded)], - "Customer" : [ArangoCollection 79378, "Customer" (type document, status loaded)], - "has_bought" : [ArangoCollection 79384, "has_bought" (type edge, status loaded)], - "Company" : [ArangoCollection 79381, "Company" (type document, status loaded)], - "Electronics" : [ArangoCollection 79375, "Electronics" (type document, status loaded)], - "Groceries" : [ArangoCollection 79372, "Groceries" (type document, status loaded)] + "friend_of" : [ArangoCollection 78126, "friend_of" (type edge, status loaded)], + "Customer" : [ArangoCollection 78115, "Customer" (type document, status loaded)], + "has_bought" : [ArangoCollection 78121, "has_bought" (type edge, status loaded)], + "Company" : [ArangoCollection 78118, "Company" (type document, status loaded)], + "Electronics" : [ArangoCollection 78112, "Electronics" (type document, status loaded)], + "Groceries" : [ArangoCollection 78109, "Groceries" (type document, status loaded)] }
Hide execution results
@@ -10770,7 +10757,10 @@ arangosh> graph_module._create("myStore"<
 arangosh> var graph_module = require("@arangodb/general-graph");
 arangosh> graph_module._list();
-[ ]
+[ 
+  "myGraph", 
+  "myStore" 
+]
 
@@ -10778,6 +10768,77 @@ arangosh> graph_module._list(); @endDocuBlock generalGraphList + + @startDocuBlockInline generalGraphListObjects + + +
+ +
+
+arangosh> var graph_module = require("@arangodb/general-graph");
+arangosh> graph_module._listObjects();
+
Show execution results
+
+
+ + @endDocuBlock generalGraphListObjects + + @startDocuBlockInline generalGraphLoadGraph @@ -10788,9 +10849,9 @@ arangosh> graph_module._list(); arangosh> var graph_module = require("@arangodb/general-graph"); arangosh> graph = graph_module._graph("social"); {[GeneralGraph] - "relation" : [ArangoCollection 74798, "relation" (type edge, status loaded)], - "female" : [ArangoCollection 74788, "female" (type document, status loaded)], - "male" : [ArangoCollection 74793, "male" (type document, status loaded)] + "relation" : [ArangoCollection 73538, "relation" (type edge, status loaded)], + "female" : [ArangoCollection 73528, "female" (type document, status loaded)], + "male" : [ArangoCollection 73533, "male" (type document, status loaded)] }
Hide execution results
@@ -10815,11 +10876,11 @@ arangosh> graph = graph_module._graph("social& arangosh> var graph_module = require("@arangodb/general-graph"); arangosh> graph_module._drop("social"); arangosh> db._collection("female"); -[ArangoCollection 74305, "female" (type document, status loaded)] +[ArangoCollection 72919, "female" (type document, status loaded)] arangosh> db._collection("male"); -[ArangoCollection 74310, "male" (type document, status loaded)] +[ArangoCollection 72924, "male" (type document, status loaded)] arangosh> db._collection("relation"); -[ArangoCollection 74315, "relation" (type edge, status loaded)] +[ArangoCollection 72929, "relation" (type edge, status loaded)] @@ -10854,14 +10915,32 @@ arangosh> db._collection("relation" -
+ +
+
+arangosh> var graph_module = require("@arangodb/general-graph")
+arangosh> var ed1 = graph_module._relation("myEC1", ["myVC1"], ["myVC2"]);
+arangosh> var ed2 = graph_module._relation("myEC2", ["myVC1"], ["myVC3"]);
+arangosh> var graph = graph_module._create("myGraph", [ed1]);
+arangosh> graph._extendEdgeDefinitions(ed2);
+arangosh> graph = graph_module._graph("myGraph");
+
Show execution results
@@ -10900,7 +10979,7 @@ arangosh> var ed2 = graph_module._relation( arangosh> var graph = graph_module._create("myGraph", [ed1, ed2]); arangosh> graph._deleteEdgeDefinition("myEC1"); arangosh> db._collection("myEC1"); -[ArangoCollection 78957, "myEC1" (type edge, status loaded)] +[ArangoCollection 77697, "myEC1" (type edge, status loaded)] @@ -10934,13 +11013,29 @@ arangosh> db._collection("myEC1");
-
+ +
+
+arangosh> var graph_module = require("@arangodb/general-graph");
+arangosh> var ed1 = graph_module._relation("myEC1", ["myVC1"], ["myVC2"]);
+arangosh> var graph = graph_module._create("myGraph", [ed1]);
+arangosh> graph._addVertexCollection("myVC3", true);
+arangosh> graph = graph_module._graph("myGraph");
+
Show execution results
@@ -11023,7 +11118,7 @@ arangosh> graph.male.save({name: "_id" : "male/floyd", "_key" : "floyd", - "_rev" : "_e4zxNBS--D" + "_rev" : "_e9TS2rC---" }
Hide execution results
@@ -11052,14 +11147,14 @@ arangosh> graph.male.save({neym: "_id" : "male/john", "_key" : "john", - "_rev" : "_e4zxNB----" + "_rev" : "_e9TS2pe---" } arangosh> graph.male.replace("male/john", {name: "John"}); { "_id" : "male/john", "_key" : "john", - "_rev" : "_e4zxNB---_", - "_oldRev" : "_e4zxNB----" + "_rev" : "_e9TS2pi---", + "_oldRev" : "_e9TS2pe---" }
Hide execution results
@@ -11089,14 +11184,14 @@ arangosh> graph.female.save({name: "_id" : "female/linda", "_key" : "linda", - "_rev" : "_e4zxNBm--G" + "_rev" : "_e9TS2se---" } arangosh> graph.female.update("female/linda", {name: "Linda", _key: "linda"}); { "_id" : "female/linda", "_key" : "linda", - "_rev" : "_e4zxNBq---", - "_oldRev" : "_e4zxNBm--G" + "_rev" : "_e9TS2si---", + "_oldRev" : "_e9TS2se---" }
Hide execution results
@@ -11126,7 +11221,7 @@ arangosh> graph.male.save({name: "_id" : "male/kermit", "_key" : "kermit", - "_rev" : "_e4zxNAi--B" + "_rev" : "_e9TS2nm---" } arangosh> db._exists("male/kermit") true @@ -11167,7 +11262,7 @@ arangosh> graph.relation.save({ { "_id" : "relation/bobAndAlice", "_key" : "bobAndAlice", - "_rev" : "_e4zxMni---" + "_rev" : "_e9TS07O---" }
Hide execution results
@@ -11220,14 +11315,14 @@ arangosh> graph.relation.save("female/alice&qu { "_id" : "relation/aliceAndDiana", "_key" : "aliceAndDiana", - "_rev" : "_e4zxMnG--E" + "_rev" : "_e9TS05i---" } arangosh> graph.relation.replace("relation/aliceAndDiana", {type: "knows", _from: "female/alice", _to: "female/diana"}); { "_id" : "relation/aliceAndDiana", "_key" : "aliceAndDiana", - "_rev" : "_e4zxMnK---", - "_oldRev" : "_e4zxMnG--E" + "_rev" : "_e9TS05m---", + "_oldRev" : "_e9TS05i---" }
Hide execution results
@@ -11257,14 +11352,14 @@ arangosh> graph.relation.save("female/alice&qu { "_id" : "relation/aliceAndDiana", "_key" : "aliceAndDiana", - "_rev" : "_e4zxMoK--_" + "_rev" : "_e9TS1-G---" } arangosh> graph.relation.update("relation/aliceAndDiana", {type: "quarreled", _key: "aliceAndDiana"}); { "_id" : "relation/aliceAndDiana", "_key" : "aliceAndDiana", - "_rev" : "_e4zxMoK--A", - "_oldRev" : "_e4zxMoK--_" + "_rev" : "_e9TS1-K---", + "_oldRev" : "_e9TS1-G---" }
Hide execution results
@@ -11294,7 +11389,7 @@ arangosh> graph.relation.save("female/alice&qu { "_id" : "relation/aliceAndDiana", "_key" : "aliceAndDiana", - "_rev" : "_e4zxMmu---" + "_rev" : "_e9TS03e---" } arangosh> db._exists("relation/aliceAndDiana") true @@ -11343,15 +11438,26 @@ arangosh> graph;
-
+ +
+
+arangosh> graph._addVertexCollection("shop");
+arangosh> graph._addVertexCollection("customer");
+arangosh> graph._addVertexCollection("pet");
+arangosh> graph = graph_module._graph("myGraph");
+
Show execution results
@@ -11363,14 +11469,25 @@ arangosh> graph;
-
+ +
+
+arangosh> var rel = graph_module._relation("isCustomer", ["shop"], ["customer"]);
+arangosh> graph._extendEdgeDefinitions(rel);
+arangosh> graph = graph_module._graph("myGraph");
+
Show execution results
@@ -11405,6 +11522,10 @@ arangosh> satelliteGraphModule._graph("satelli
 arangosh> var graph = satelliteGraphModule._create("satelliteGraph");
 arangosh> graph._addVertexCollection("aVertexCollection");
+arangosh> graph = satelliteGraphModule._graph("satelliteGraph");
+{[SatelliteGraph] 
+  "aVertexCollection" : [ArangoCollection 10848, "aVertexCollection" (type document, status loaded)] 
+}
 
@@ -11422,6 +11543,11 @@ arangosh> graph._addVertexCollection("aVertexC arangosh> var graph = satelliteGraphModule._create("satelliteGraph"); arangosh> var relation = satelliteGraphModule._relation("isFriend", ["person"], ["person"]); arangosh> graph._extendEdgeDefinitions(relation); +arangosh> graph = satelliteGraphModule._graph("satelliteGraph"); +{[SatelliteGraph] + "isFriend" : [ArangoCollection 10858, "isFriend" (type edge, status loaded)], + "person" : [ArangoCollection 10856, "person" (type document, status loaded)] +} @@ -11430,7 +11556,7 @@ arangosh> graph._extendEdgeDefinitions(relation); - @startDocuBlockInline satelliteGraphPrototype1_cluster + @startDocuBlockInline satelliteGraphPrototype1_cluster
@@ -11444,11 +11570,11 @@ arangosh> satelliteGraphModule._create("satell
- @endDocuBlock satelliteGraphPrototype1_cluster + @endDocuBlock satelliteGraphPrototype1_cluster - @startDocuBlockInline satelliteGraphPrototype2_cluster + @startDocuBlockInline satelliteGraphPrototype2_cluster
@@ -11457,15 +11583,19 @@ arangosh> satelliteGraphModule._create("satell arangosh> var satelliteGraphModule = require("@arangodb/satellite-graph"); arangosh> var graph = satelliteGraphModule._create("satelliteGraph"); arangosh> graph._addVertexCollection("myPrototypeColl"); +arangosh> graph = satelliteGraphModule._graph("satelliteGraph"); +{[SatelliteGraph] + "myPrototypeColl" : [ArangoCollection 11107, "myPrototypeColl" (type document, status loaded)] +}
- @endDocuBlock satelliteGraphPrototype2_cluster + @endDocuBlock satelliteGraphPrototype2_cluster - @startDocuBlockInline satelliteGraphPrototype3_cluster + @startDocuBlockInline satelliteGraphPrototype3_cluster
@@ -11475,15 +11605,20 @@ arangosh> var satelliteGraphModule = var graph = satelliteGraphModule._create("satelliteGraph"); arangosh> var relation = satelliteGraphModule._relation("isFriend", ["person"], ["person"]); arangosh> graph._extendEdgeDefinitions(relation); +arangosh> graph = satelliteGraphModule._graph("satelliteGraph"); +{[SatelliteGraph] + "isFriend" : [ArangoCollection 11117, "isFriend" (type edge, status loaded)], + "person" : [ArangoCollection 11115, "person" (type document, status loaded)] +}
- @endDocuBlock satelliteGraphPrototype3_cluster + @endDocuBlock satelliteGraphPrototype3_cluster - @startDocuBlockInline satelliteGraphGeneralGraph1_cluster + @startDocuBlockInline satelliteGraphGeneralGraph1_cluster
@@ -11493,16 +11628,16 @@ arangosh> var graphModule = var satelliteGraphModule = require("@arangodb/satellite-graph"); arangosh> graphModule._create("normalGraph", [ graphModule._relation("edges", "vertices", "vertices") ], [], {}); {[GeneralGraph] - "edges" : [ArangoCollection 10867, "edges" (type edge, status loaded)], - "vertices" : [ArangoCollection 10866, "vertices" (type document, status loaded)] + "edges" : [ArangoCollection 10868, "edges" (type edge, status loaded)], + "vertices" : [ArangoCollection 10867, "vertices" (type document, status loaded)] } arangosh> satelliteGraphModule._create("satelliteGraph", [ satelliteGraphModule._relation("satEdges", "satVertices", "satVertices") ], [], {}); {[SatelliteGraph] - "satEdges" : [ArangoCollection 10874, "satEdges" (type edge, status loaded)], - "satVertices" : [ArangoCollection 10872, "satVertices" (type document, status loaded)] + "satEdges" : [ArangoCollection 10875, "satEdges" (type edge, status loaded)], + "satVertices" : [ArangoCollection 10873, "satVertices" (type document, status loaded)] } arangosh> db._create("collection", {numberOfShards: 8}); -[ArangoCollection 10878, "collection" (type document, status loaded)] +[ArangoCollection 10879, "collection" (type document, status loaded)]
Hide execution results
@@ -11516,11 +11651,11 @@ arangosh> db._create("collection",
- @endDocuBlock satelliteGraphGeneralGraph1_cluster + @endDocuBlock satelliteGraphGeneralGraph1_cluster - @startDocuBlockInline satelliteGraphGeneralGraph2_cluster + @startDocuBlockInline satelliteGraphGeneralGraph2_cluster
@@ -11565,11 +11700,11 @@ arangosh> db._explain(`FOR doc in collection FOR v,e,p IN OUTBOUND "vert
- @endDocuBlock satelliteGraphGeneralGraph2_cluster + @endDocuBlock satelliteGraphGeneralGraph2_cluster - @startDocuBlockInline satelliteGraphGeneralGraph3_cluster + @startDocuBlockInline satelliteGraphGeneralGraph3_cluster
@@ -11619,7 +11754,7 @@ arangosh> db._explain(`FOR doc in collection FOR v,e,p IN OUTBOUND "vert
- @endDocuBlock satelliteGraphGeneralGraph3_cluster + @endDocuBlock satelliteGraphGeneralGraph3_cluster @@ -11976,9 +12111,9 @@ arangosh> var rel = graph_module._relation( arangosh> var graph = graph_module._create("myGraph", [rel], [], {satellites: ["shop", "customer"], smartGraphAttribute: "region", numberOfShards: 9}); arangosh> graph_module._graph("myGraph"); {[SmartGraph] - "isCustomer" : [ArangoCollection 10802, "isCustomer" (type edge, status loaded)], - "shop" : [ArangoCollection 10800, "shop" (type document, status loaded)], - "customer" : [ArangoCollection 10801, "customer" (type document, status loaded)] + "isCustomer" : [ArangoCollection 10803, "isCustomer" (type edge, status loaded)], + "shop" : [ArangoCollection 10801, "shop" (type document, status loaded)], + "customer" : [ArangoCollection 10802, "customer" (type document, status loaded)] }
Hide execution results
@@ -12007,9 +12142,9 @@ arangosh> var rel = graph_module._relation( arangosh> var graph = graph_module._create("myGraph", [rel], [], {satellites: ["shop"], smartGraphAttribute: "region", isDisjoint: true, numberOfShards: 9}); arangosh> graph_module._graph("myGraph"); {[SmartGraph] - "isCustomer" : [ArangoCollection 10825, "isCustomer" (type edge, status loaded)], - "shop" : [ArangoCollection 10824, "shop" (type document, status loaded)], - "customer" : [ArangoCollection 10814, "customer" (type document, status loaded)] + "isCustomer" : [ArangoCollection 10826, "isCustomer" (type edge, status loaded)], + "shop" : [ArangoCollection 10825, "shop" (type document, status loaded)], + "customer" : [ArangoCollection 10815, "customer" (type document, status loaded)] }
Hide execution results
@@ -12169,7 +12304,7 @@ arangosh> var graph = graph_module._create( arangosh> graph._deleteEdgeDefinition("edges"); arangosh> graph._removeVertexCollection("vertices"); arangosh> db._drop("vertices"); -[ArangoError 1485: Collection 'vertices' must not be dropped while '_from_edges', '_local_edges', '_to_edges', 'edges' have distributeShardsLike set to 'vertices'.] +[ArangoError 1485: Collection 'vertices' must not be dropped while '_local_edges', '_to_edges', '_from_edges', 'edges' have distributeShardsLike set to 'vertices'.] @@ -12283,74 +12418,74 @@ arangosh> db.persons.toArray() { "_key" : "alice", "_id" : "persons/alice", - "_rev" : "_e4zxNPq---", + "_rev" : "_e9TS3sC---", "name" : "Alice" }, { "_key" : "bob", "_id" : "persons/bob", - "_rev" : "_e4zxNPq--_", + "_rev" : "_e9TS3sG---", "name" : "Bob" }, { "_key" : "charlie", "_id" : "persons/charlie", - "_rev" : "_e4zxNPq--A", + "_rev" : "_e9TS3sK---", "name" : "Charlie" }, { "_key" : "dave", "_id" : "persons/dave", - "_rev" : "_e4zxNPq--B", + "_rev" : "_e9TS3sK--_", "name" : "Dave" }, { "_key" : "eve", "_id" : "persons/eve", - "_rev" : "_e4zxNPq--C", + "_rev" : "_e9TS3sO---", "name" : "Eve" } ] arangosh> db.knows.toArray(); [ { - "_key" : "82557", - "_id" : "knows/82557", + "_key" : "81294", + "_id" : "knows/81294", "_from" : "persons/alice", "_to" : "persons/bob", - "_rev" : "_e4zxNPu---", + "_rev" : "_e9TS3sS---", "vertex" : "alice" }, { - "_key" : "82559", - "_id" : "knows/82559", + "_key" : "81296", + "_id" : "knows/81296", "_from" : "persons/bob", "_to" : "persons/charlie", - "_rev" : "_e4zxNPu--_", + "_rev" : "_e9TS3sW---", "vertex" : "bob" }, { - "_key" : "82561", - "_id" : "knows/82561", + "_key" : "81298", + "_id" : "knows/81298", "_from" : "persons/bob", "_to" : "persons/dave", - "_rev" : "_e4zxNPu--A", + "_rev" : "_e9TS3sW--_", "vertex" : "bob" }, { - "_key" : "82563", - "_id" : "knows/82563", + "_key" : "81300", + "_id" : "knows/81300", "_from" : "persons/eve", "_to" : "persons/alice", - "_rev" : "_e4zxNPu--B", + "_rev" : "_e9TS3sa---", "vertex" : "eve" }, { - "_key" : "82565", - "_id" : "knows/82565", + "_key" : "81302", + "_id" : "knows/81302", "_from" : "persons/eve", "_to" : "persons/bob", - "_rev" : "_e4zxNPu--C", + "_rev" : "_e9TS3se---", "vertex" : "eve" } ] @@ -12385,13 +12520,13 @@ arangosh> db.female.toArray() { "_key" : "alice", "_id" : "female/alice", - "_rev" : "_e4zxNRW--_", + "_rev" : "_e9TS30O---", "name" : "Alice" }, { "_key" : "diana", "_id" : "female/diana", - "_rev" : "_e4zxNRa--A", + "_rev" : "_e9TS30W---", "name" : "Diana" } ] @@ -12400,51 +12535,51 @@ arangosh> db.male.toArray() { "_key" : "bob", "_id" : "male/bob", - "_rev" : "_e4zxNRa---", + "_rev" : "_e9TS30S---", "name" : "Bob" }, { "_key" : "charly", "_id" : "male/charly", - "_rev" : "_e4zxNRa--_", + "_rev" : "_e9TS30S--_", "name" : "Charly" } ] arangosh> db.relation.toArray() [ { - "_key" : "82811", - "_id" : "relation/82811", + "_key" : "81548", + "_id" : "relation/81548", "_from" : "female/alice", "_to" : "male/bob", - "_rev" : "_e4zxNRa--B", + "_rev" : "_e9TS30a---", "type" : "married", "vertex" : "alice" }, { - "_key" : "82813", - "_id" : "relation/82813", + "_key" : "81550", + "_id" : "relation/81550", "_from" : "female/alice", "_to" : "male/charly", - "_rev" : "_e4zxNRa--C", + "_rev" : "_e9TS30a--_", "type" : "friend", "vertex" : "alice" }, { - "_key" : "82815", - "_id" : "relation/82815", + "_key" : "81552", + "_id" : "relation/81552", "_from" : "male/charly", "_to" : "female/diana", - "_rev" : "_e4zxNRa--D", + "_rev" : "_e9TS30e---", "type" : "married", "vertex" : "charly" }, { - "_key" : "82817", - "_id" : "relation/82817", + "_key" : "81554", + "_id" : "relation/81554", "_from" : "male/bob", "_to" : "female/diana", - "_rev" : "_e4zxNRa--E", + "_rev" : "_e9TS30i---", "type" : "friend", "vertex" : "bob" } @@ -12481,7 +12616,7 @@ arangosh> db.frenchCity.toArray(); { "_key" : "Lyon", "_id" : "frenchCity/Lyon", - "_rev" : "_e4zxNO---B", + "_rev" : "_e9TS3kG---", "population" : 80000, "isCapital" : false, "geometry" : { @@ -12495,7 +12630,7 @@ arangosh> db.frenchCity.toArray(); { "_key" : "Paris", "_id" : "frenchCity/Paris", - "_rev" : "_e4zxNO---C", + "_rev" : "_e9TS3kK---", "population" : 4000000, "isCapital" : true, "geometry" : { @@ -12512,7 +12647,7 @@ arangosh> db.germanCity.toArray(); { "_key" : "Berlin", "_id" : "germanCity/Berlin", - "_rev" : "_e4zxNO----", + "_rev" : "_e9TS3j6---", "population" : 3000000, "isCapital" : true, "geometry" : { @@ -12526,7 +12661,7 @@ arangosh> db.germanCity.toArray(); { "_key" : "Cologne", "_id" : "germanCity/Cologne", - "_rev" : "_e4zxNO---_", + "_rev" : "_e9TS3k----", "population" : 1000000, "isCapital" : false, "geometry" : { @@ -12540,7 +12675,7 @@ arangosh> db.germanCity.toArray(); { "_key" : "Hamburg", "_id" : "germanCity/Hamburg", - "_rev" : "_e4zxNO---A", + "_rev" : "_e9TS3kC---", "population" : 1000000, "isCapital" : false, "geometry" : { @@ -12555,89 +12690,89 @@ arangosh> db.germanCity.toArray(); arangosh> db.germanHighway.toArray(); [ { - "_key" : "82318", - "_id" : "germanHighway/82318", + "_key" : "81055", + "_id" : "germanHighway/81055", "_from" : "germanCity/Berlin", "_to" : "germanCity/Cologne", - "_rev" : "_e4zxNOC--_", + "_rev" : "_e9TS3ke---", "distance" : 850 }, { - "_key" : "82320", - "_id" : "germanHighway/82320", + "_key" : "81057", + "_id" : "germanHighway/81057", "_from" : "germanCity/Berlin", "_to" : "germanCity/Hamburg", - "_rev" : "_e4zxNOC--A", + "_rev" : "_e9TS3ki---", "distance" : 400 }, { - "_key" : "82322", - "_id" : "germanHighway/82322", + "_key" : "81059", + "_id" : "germanHighway/81059", "_from" : "germanCity/Hamburg", "_to" : "germanCity/Cologne", - "_rev" : "_e4zxNOC--B", + "_rev" : "_e9TS3km---", "distance" : 500 } ] arangosh> db.frenchHighway.toArray(); [ { - "_key" : "82324", - "_id" : "frenchHighway/82324", + "_key" : "81061", + "_id" : "frenchHighway/81061", "_from" : "frenchCity/Paris", "_to" : "frenchCity/Lyon", - "_rev" : "_e4zxNOC--C", + "_rev" : "_e9TS3kq---", "distance" : 550 } ] arangosh> db.internationalHighway.toArray(); [ { - "_key" : "82326", - "_id" : "internationalHighway/82326", + "_key" : "81063", + "_id" : "internationalHighway/81063", "_from" : "germanCity/Berlin", "_to" : "frenchCity/Lyon", - "_rev" : "_e4zxNOC--D", + "_rev" : "_e9TS3kq--_", "distance" : 1100 }, { - "_key" : "82328", - "_id" : "internationalHighway/82328", + "_key" : "81065", + "_id" : "internationalHighway/81065", "_from" : "germanCity/Berlin", "_to" : "frenchCity/Paris", - "_rev" : "_e4zxNOG---", + "_rev" : "_e9TS3ku---", "distance" : 1200 }, { - "_key" : "82330", - "_id" : "internationalHighway/82330", + "_key" : "81067", + "_id" : "internationalHighway/81067", "_from" : "germanCity/Hamburg", "_to" : "frenchCity/Paris", - "_rev" : "_e4zxNOG--_", + "_rev" : "_e9TS3ky---", "distance" : 900 }, { - "_key" : "82332", - "_id" : "internationalHighway/82332", + "_key" : "81069", + "_id" : "internationalHighway/81069", "_from" : "germanCity/Hamburg", "_to" : "frenchCity/Lyon", - "_rev" : "_e4zxNOG--A", + "_rev" : "_e9TS3k2---", "distance" : 1300 }, { - "_key" : "82334", - "_id" : "internationalHighway/82334", + "_key" : "81071", + "_id" : "internationalHighway/81071", "_from" : "germanCity/Cologne", "_to" : "frenchCity/Lyon", - "_rev" : "_e4zxNOG--B", + "_rev" : "_e9TS3k6---", "distance" : 700 }, { - "_key" : "82336", - "_id" : "internationalHighway/82336", + "_key" : "81073", + "_id" : "internationalHighway/81073", "_from" : "germanCity/Cologne", "_to" : "frenchCity/Paris", - "_rev" : "_e4zxNOG--C", + "_rev" : "_e9TS3k6--_", "distance" : 550 } ] @@ -12675,168 +12810,168 @@ arangosh> db.circles.toArray(); { "_key" : "A", "_id" : "circles/A", - "_rev" : "_e4zxNRu--A", + "_rev" : "_e9TS32C---", "label" : "1" }, { "_key" : "B", "_id" : "circles/B", - "_rev" : "_e4zxNRu--B", + "_rev" : "_e9TS32G---", "label" : "2" }, { "_key" : "C", "_id" : "circles/C", - "_rev" : "_e4zxNRu--C", + "_rev" : "_e9TS32G--_", "label" : "3" }, { "_key" : "D", "_id" : "circles/D", - "_rev" : "_e4zxNRu--D", + "_rev" : "_e9TS32K---", "label" : "4" }, { "_key" : "E", "_id" : "circles/E", - "_rev" : "_e4zxNRy---", + "_rev" : "_e9TS32O---", "label" : "5" }, { "_key" : "F", "_id" : "circles/F", - "_rev" : "_e4zxNRy--_", + "_rev" : "_e9TS32O--_", "label" : "6" }, { "_key" : "G", "_id" : "circles/G", - "_rev" : "_e4zxNRy--A", + "_rev" : "_e9TS32S---", "label" : "7" }, { "_key" : "H", "_id" : "circles/H", - "_rev" : "_e4zxNRy--B", + "_rev" : "_e9TS32W---", "label" : "8" }, { "_key" : "I", "_id" : "circles/I", - "_rev" : "_e4zxNRy--C", + "_rev" : "_e9TS32W--_", "label" : "9" }, { "_key" : "J", "_id" : "circles/J", - "_rev" : "_e4zxNRy--D", + "_rev" : "_e9TS32a---", "label" : "10" }, { "_key" : "K", "_id" : "circles/K", - "_rev" : "_e4zxNRy--E", + "_rev" : "_e9TS32e---", "label" : "11" } ] arangosh> db.edges.toArray(); [ { - "_key" : "82879", - "_id" : "edges/82879", + "_key" : "81616", + "_id" : "edges/81616", "_from" : "circles/A", "_to" : "circles/B", - "_rev" : "_e4zxNRy--F", + "_rev" : "_e9TS32e--_", "theFalse" : false, "theTruth" : true, "label" : "left_bar" }, { - "_key" : "82881", - "_id" : "edges/82881", + "_key" : "81618", + "_id" : "edges/81618", "_from" : "circles/B", "_to" : "circles/C", - "_rev" : "_e4zxNRy--G", + "_rev" : "_e9TS32i---", "theFalse" : false, "theTruth" : true, "label" : "left_blarg" }, { - "_key" : "82883", - "_id" : "edges/82883", + "_key" : "81620", + "_id" : "edges/81620", "_from" : "circles/C", "_to" : "circles/D", - "_rev" : "_e4zxNRy--H", + "_rev" : "_e9TS32m---", "theFalse" : false, "theTruth" : true, "label" : "left_blorg" }, { - "_key" : "82885", - "_id" : "edges/82885", + "_key" : "81622", + "_id" : "edges/81622", "_from" : "circles/B", "_to" : "circles/E", - "_rev" : "_e4zxNRy--I", + "_rev" : "_e9TS32m--_", "theFalse" : false, "theTruth" : true, "label" : "left_blub" }, { - "_key" : "82887", - "_id" : "edges/82887", + "_key" : "81624", + "_id" : "edges/81624", "_from" : "circles/E", "_to" : "circles/F", - "_rev" : "_e4zxNR2---", + "_rev" : "_e9TS32q---", "theFalse" : false, "theTruth" : true, "label" : "left_schubi" }, { - "_key" : "82889", - "_id" : "edges/82889", + "_key" : "81626", + "_id" : "edges/81626", "_from" : "circles/A", "_to" : "circles/G", - "_rev" : "_e4zxNR2--_", + "_rev" : "_e9TS32q--_", "theFalse" : false, "theTruth" : true, "label" : "right_foo" }, { - "_key" : "82891", - "_id" : "edges/82891", + "_key" : "81628", + "_id" : "edges/81628", "_from" : "circles/G", "_to" : "circles/H", - "_rev" : "_e4zxNR2--A", + "_rev" : "_e9TS32u---", "theFalse" : false, "theTruth" : true, "label" : "right_blob" }, { - "_key" : "82893", - "_id" : "edges/82893", + "_key" : "81630", + "_id" : "edges/81630", "_from" : "circles/H", "_to" : "circles/I", - "_rev" : "_e4zxNR2--B", + "_rev" : "_e9TS32u--_", "theFalse" : false, "theTruth" : true, "label" : "right_blub" }, { - "_key" : "82895", - "_id" : "edges/82895", + "_key" : "81632", + "_id" : "edges/81632", "_from" : "circles/G", "_to" : "circles/J", - "_rev" : "_e4zxNR2--C", + "_rev" : "_e9TS32y---", "theFalse" : false, "theTruth" : true, "label" : "right_zip" }, { - "_key" : "82897", - "_id" : "edges/82897", + "_key" : "81634", + "_id" : "edges/81634", "_from" : "circles/J", "_to" : "circles/K", - "_rev" : "_e4zxNR2--D", + "_rev" : "_e9TS322---", "theFalse" : false, "theTruth" : true, "label" : "right_zup" @@ -12873,400 +13008,400 @@ arangosh> db.places.toArray(); { "_key" : "Inverness", "_id" : "places/Inverness", - "_rev" : "_e4zxNQC---", + "_rev" : "_e9TS3u----", "label" : "Inverness" }, { "_key" : "Aberdeen", "_id" : "places/Aberdeen", - "_rev" : "_e4zxNQC--_", + "_rev" : "_e9TS3u---_", "label" : "Aberdeen" }, { "_key" : "Leuchars", "_id" : "places/Leuchars", - "_rev" : "_e4zxNQC--A", + "_rev" : "_e9TS3uC---", "label" : "Leuchars" }, { "_key" : "StAndrews", "_id" : "places/StAndrews", - "_rev" : "_e4zxNQC--B", + "_rev" : "_e9TS3uG---", "label" : "StAndrews" }, { "_key" : "Edinburgh", "_id" : "places/Edinburgh", - "_rev" : "_e4zxNQC--C", + "_rev" : "_e9TS3uG--_", "label" : "Edinburgh" }, { "_key" : "Glasgow", "_id" : "places/Glasgow", - "_rev" : "_e4zxNQC--D", + "_rev" : "_e9TS3uK---", "label" : "Glasgow" }, { "_key" : "York", "_id" : "places/York", - "_rev" : "_e4zxNQC--E", + "_rev" : "_e9TS3uK--_", "label" : "York" }, { "_key" : "Carlisle", "_id" : "places/Carlisle", - "_rev" : "_e4zxNQC--F", + "_rev" : "_e9TS3uO---", "label" : "Carlisle" }, { "_key" : "Birmingham", "_id" : "places/Birmingham", - "_rev" : "_e4zxNQC--G", + "_rev" : "_e9TS3uS---", "label" : "Birmingham" }, { "_key" : "London", "_id" : "places/London", - "_rev" : "_e4zxNQC--H", + "_rev" : "_e9TS3uS--_", "label" : "London" }, { "_key" : "Brussels", "_id" : "places/Brussels", - "_rev" : "_e4zxNQG---", + "_rev" : "_e9TS3uW---", "label" : "Brussels" }, { "_key" : "Cologne", "_id" : "places/Cologne", - "_rev" : "_e4zxNQG--_", + "_rev" : "_e9TS3uW--_", "label" : "Cologne" }, { "_key" : "Toronto", "_id" : "places/Toronto", - "_rev" : "_e4zxNQG--A", + "_rev" : "_e9TS3ua---", "label" : "Toronto" }, { "_key" : "Winnipeg", "_id" : "places/Winnipeg", - "_rev" : "_e4zxNQG--B", + "_rev" : "_e9TS3ua--_", "label" : "Winnipeg" }, { "_key" : "Saskatoon", "_id" : "places/Saskatoon", - "_rev" : "_e4zxNQG--C", + "_rev" : "_e9TS3ue---", "label" : "Saskatoon" }, { "_key" : "Edmonton", "_id" : "places/Edmonton", - "_rev" : "_e4zxNQG--D", + "_rev" : "_e9TS3ui---", "label" : "Edmonton" }, { "_key" : "Jasper", "_id" : "places/Jasper", - "_rev" : "_e4zxNQG--E", + "_rev" : "_e9TS3ui--_", "label" : "Jasper" }, { "_key" : "Vancouver", "_id" : "places/Vancouver", - "_rev" : "_e4zxNQG--F", + "_rev" : "_e9TS3um---", "label" : "Vancouver" } ] arangosh> db.connections.toArray(); [ { - "_key" : "82626", - "_id" : "connections/82626", + "_key" : "81363", + "_id" : "connections/81363", "_from" : "places/Inverness", "_to" : "places/Aberdeen", - "_rev" : "_e4zxNQG--G", + "_rev" : "_e9TS3um--_", "travelTime" : 3 }, { - "_key" : "82628", - "_id" : "connections/82628", + "_key" : "81365", + "_id" : "connections/81365", "_from" : "places/Aberdeen", "_to" : "places/Inverness", - "_rev" : "_e4zxNQG--H", + "_rev" : "_e9TS3uq---", "travelTime" : 2.5 }, { - "_key" : "82630", - "_id" : "connections/82630", + "_key" : "81367", + "_id" : "connections/81367", "_from" : "places/Aberdeen", "_to" : "places/Leuchars", - "_rev" : "_e4zxNQG--I", + "_rev" : "_e9TS3uq--_", "travelTime" : 1.5 }, { - "_key" : "82632", - "_id" : "connections/82632", + "_key" : "81369", + "_id" : "connections/81369", "_from" : "places/Leuchars", "_to" : "places/Aberdeen", - "_rev" : "_e4zxNQK---", + "_rev" : "_e9TS3uu---", "travelTime" : 1 }, { - "_key" : "82634", - "_id" : "connections/82634", + "_key" : "81371", + "_id" : "connections/81371", "_from" : "places/Leuchars", "_to" : "places/Edinburgh", - "_rev" : "_e4zxNQK--_", + "_rev" : "_e9TS3uu--_", "travelTime" : 1.5 }, { - "_key" : "82636", - "_id" : "connections/82636", + "_key" : "81373", + "_id" : "connections/81373", "_from" : "places/Edinburgh", "_to" : "places/Leuchars", - "_rev" : "_e4zxNQK--A", + "_rev" : "_e9TS3uy---", "travelTime" : 3 }, { - "_key" : "82638", - "_id" : "connections/82638", + "_key" : "81375", + "_id" : "connections/81375", "_from" : "places/Edinburgh", "_to" : "places/Glasgow", - "_rev" : "_e4zxNQK--B", + "_rev" : "_e9TS3u2---", "travelTime" : 1 }, { - "_key" : "82640", - "_id" : "connections/82640", + "_key" : "81377", + "_id" : "connections/81377", "_from" : "places/Glasgow", "_to" : "places/Edinburgh", - "_rev" : "_e4zxNQK--C", + "_rev" : "_e9TS3u2--_", "travelTime" : 1 }, { - "_key" : "82642", - "_id" : "connections/82642", + "_key" : "81379", + "_id" : "connections/81379", "_from" : "places/Edinburgh", "_to" : "places/York", - "_rev" : "_e4zxNQK--D", + "_rev" : "_e9TS3u6---", "travelTime" : 3.5 }, { - "_key" : "82644", - "_id" : "connections/82644", + "_key" : "81381", + "_id" : "connections/81381", "_from" : "places/York", "_to" : "places/Edinburgh", - "_rev" : "_e4zxNQK--E", + "_rev" : "_e9TS3u6--_", "travelTime" : 4 }, { - "_key" : "82646", - "_id" : "connections/82646", + "_key" : "81383", + "_id" : "connections/81383", "_from" : "places/Glasgow", "_to" : "places/Carlisle", - "_rev" : "_e4zxNQK--F", + "_rev" : "_e9TS3v----", "travelTime" : 1 }, { - "_key" : "82648", - "_id" : "connections/82648", + "_key" : "81385", + "_id" : "connections/81385", "_from" : "places/Carlisle", "_to" : "places/Glasgow", - "_rev" : "_e4zxNQK--G", + "_rev" : "_e9TS3v---_", "travelTime" : 1 }, { - "_key" : "82650", - "_id" : "connections/82650", + "_key" : "81387", + "_id" : "connections/81387", "_from" : "places/Carlisle", "_to" : "places/York", - "_rev" : "_e4zxNQO---", + "_rev" : "_e9TS3v---A", "travelTime" : 2.5 }, { - "_key" : "82652", - "_id" : "connections/82652", + "_key" : "81389", + "_id" : "connections/81389", "_from" : "places/York", "_to" : "places/Carlisle", - "_rev" : "_e4zxNQO--_", + "_rev" : "_e9TS3vC---", "travelTime" : 3.5 }, { - "_key" : "82654", - "_id" : "connections/82654", + "_key" : "81391", + "_id" : "connections/81391", "_from" : "places/Carlisle", "_to" : "places/Birmingham", - "_rev" : "_e4zxNQO--A", + "_rev" : "_e9TS3vC--_", "travelTime" : 2 }, { - "_key" : "82656", - "_id" : "connections/82656", + "_key" : "81393", + "_id" : "connections/81393", "_from" : "places/Birmingham", "_to" : "places/Carlisle", - "_rev" : "_e4zxNQO--B", + "_rev" : "_e9TS3vG---", "travelTime" : 1 }, { - "_key" : "82658", - "_id" : "connections/82658", + "_key" : "81395", + "_id" : "connections/81395", "_from" : "places/Birmingham", "_to" : "places/London", - "_rev" : "_e4zxNQO--C", + "_rev" : "_e9TS3vG--_", "travelTime" : 1.5 }, { - "_key" : "82660", - "_id" : "connections/82660", + "_key" : "81397", + "_id" : "connections/81397", "_from" : "places/London", "_to" : "places/Birmingham", - "_rev" : "_e4zxNQO--D", + "_rev" : "_e9TS3vK---", "travelTime" : 2.5 }, { - "_key" : "82662", - "_id" : "connections/82662", + "_key" : "81399", + "_id" : "connections/81399", "_from" : "places/Leuchars", "_to" : "places/StAndrews", - "_rev" : "_e4zxNQO--E", + "_rev" : "_e9TS3vK--_", "travelTime" : 0.2 }, { - "_key" : "82664", - "_id" : "connections/82664", + "_key" : "81401", + "_id" : "connections/81401", "_from" : "places/StAndrews", "_to" : "places/Leuchars", - "_rev" : "_e4zxNQO--F", + "_rev" : "_e9TS3vO---", "travelTime" : 0.2 }, { - "_key" : "82666", - "_id" : "connections/82666", + "_key" : "81403", + "_id" : "connections/81403", "_from" : "places/York", "_to" : "places/London", - "_rev" : "_e4zxNQO--G", + "_rev" : "_e9TS3vO--_", "travelTime" : 1.8 }, { - "_key" : "82668", - "_id" : "connections/82668", + "_key" : "81405", + "_id" : "connections/81405", "_from" : "places/London", "_to" : "places/York", - "_rev" : "_e4zxNQO--H", + "_rev" : "_e9TS3vO--A", "travelTime" : 2 }, { - "_key" : "82670", - "_id" : "connections/82670", + "_key" : "81407", + "_id" : "connections/81407", "_from" : "places/London", "_to" : "places/Brussels", - "_rev" : "_e4zxNQS---", + "_rev" : "_e9TS3vS---", "travelTime" : 2.5 }, { - "_key" : "82672", - "_id" : "connections/82672", + "_key" : "81409", + "_id" : "connections/81409", "_from" : "places/Brussels", "_to" : "places/London", - "_rev" : "_e4zxNQS--_", + "_rev" : "_e9TS3vS--_", "travelTime" : 3.5 }, { - "_key" : "82674", - "_id" : "connections/82674", + "_key" : "81411", + "_id" : "connections/81411", "_from" : "places/Brussels", "_to" : "places/Cologne", - "_rev" : "_e4zxNQS--A", + "_rev" : "_e9TS3vW---", "travelTime" : 2 }, { - "_key" : "82676", - "_id" : "connections/82676", + "_key" : "81413", + "_id" : "connections/81413", "_from" : "places/Cologne", "_to" : "places/Brussels", - "_rev" : "_e4zxNQS--B", + "_rev" : "_e9TS3vW--_", "travelTime" : 1.5 }, { - "_key" : "82678", - "_id" : "connections/82678", + "_key" : "81415", + "_id" : "connections/81415", "_from" : "places/Toronto", "_to" : "places/Winnipeg", - "_rev" : "_e4zxNQS--C", + "_rev" : "_e9TS3vW--A", "travelTime" : 36 }, { - "_key" : "82680", - "_id" : "connections/82680", + "_key" : "81417", + "_id" : "connections/81417", "_from" : "places/Winnipeg", "_to" : "places/Toronto", - "_rev" : "_e4zxNQS--D", + "_rev" : "_e9TS3va---", "travelTime" : 35 }, { - "_key" : "82682", - "_id" : "connections/82682", + "_key" : "81419", + "_id" : "connections/81419", "_from" : "places/Winnipeg", "_to" : "places/Saskatoon", - "_rev" : "_e4zxNQS--E", + "_rev" : "_e9TS3va--_", "travelTime" : 12 }, { - "_key" : "82684", - "_id" : "connections/82684", + "_key" : "81421", + "_id" : "connections/81421", "_from" : "places/Saskatoon", "_to" : "places/Winnipeg", - "_rev" : "_e4zxNQS--F", + "_rev" : "_e9TS3ve---", "travelTime" : 5 }, { - "_key" : "82686", - "_id" : "connections/82686", + "_key" : "81423", + "_id" : "connections/81423", "_from" : "places/Saskatoon", "_to" : "places/Edmonton", - "_rev" : "_e4zxNQS--G", + "_rev" : "_e9TS3ve--_", "travelTime" : 12 }, { - "_key" : "82688", - "_id" : "connections/82688", + "_key" : "81425", + "_id" : "connections/81425", "_from" : "places/Edmonton", "_to" : "places/Saskatoon", - "_rev" : "_e4zxNQS--H", + "_rev" : "_e9TS3vi---", "travelTime" : 17 }, { - "_key" : "82690", - "_id" : "connections/82690", + "_key" : "81427", + "_id" : "connections/81427", "_from" : "places/Edmonton", "_to" : "places/Jasper", - "_rev" : "_e4zxNQW---", + "_rev" : "_e9TS3vi--_", "travelTime" : 6 }, { - "_key" : "82692", - "_id" : "connections/82692", + "_key" : "81429", + "_id" : "connections/81429", "_from" : "places/Jasper", "_to" : "places/Edmonton", - "_rev" : "_e4zxNQW--_", + "_rev" : "_e9TS3vi--A", "travelTime" : 5 }, { - "_key" : "82694", - "_id" : "connections/82694", + "_key" : "81431", + "_id" : "connections/81431", "_from" : "places/Jasper", "_to" : "places/Vancouver", - "_rev" : "_e4zxNQW--A", + "_rev" : "_e9TS3vm---", "travelTime" : 12 }, { - "_key" : "82696", - "_id" : "connections/82696", + "_key" : "81433", + "_id" : "connections/81433", "_from" : "places/Vancouver", "_to" : "places/Jasper", - "_rev" : "_e4zxNQW--B", + "_rev" : "_e9TS3vm--_", "travelTime" : 13 } ] @@ -13301,56 +13436,56 @@ arangosh> db.worldVertices.toArray(); { "_key" : "world", "_id" : "worldVertices/world", - "_rev" : "_e4zxNSW---", + "_rev" : "_e9TS34e---", "name" : "World", "type" : "root" }, { "_key" : "continent-africa", "_id" : "worldVertices/continent-africa", - "_rev" : "_e4zxNSW--_", + "_rev" : "_e9TS34i---", "name" : "Africa", "type" : "continent" }, { "_key" : "continent-asia", "_id" : "worldVertices/continent-asia", - "_rev" : "_e4zxNSW--A", + "_rev" : "_e9TS34m---", "name" : "Asia", "type" : "continent" }, { "_key" : "continent-australia", "_id" : "worldVertices/continent-australia", - "_rev" : "_e4zxNSa---", + "_rev" : "_e9TS34q---", "name" : "Australia", "type" : "continent" }, { "_key" : "continent-europe", "_id" : "worldVertices/continent-europe", - "_rev" : "_e4zxNSa--_", + "_rev" : "_e9TS34q--_", "name" : "Europe", "type" : "continent" }, { "_key" : "continent-north-america", "_id" : "worldVertices/continent-north-america", - "_rev" : "_e4zxNSa--A", + "_rev" : "_e9TS34u---", "name" : "North America", "type" : "continent" }, { "_key" : "continent-south-america", "_id" : "worldVertices/continent-south-america", - "_rev" : "_e4zxNSa--B", + "_rev" : "_e9TS34y---", "name" : "South America", "type" : "continent" }, { "_key" : "country-afghanistan", "_id" : "worldVertices/country-afghanistan", - "_rev" : "_e4zxNSa--C", + "_rev" : "_e9TS356--_", "name" : "Afghanistan", "type" : "country", "code" : "AFG" @@ -13358,7 +13493,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-albania", "_id" : "worldVertices/country-albania", - "_rev" : "_e4zxNSa--D", + "_rev" : "_e9TS36C---", "name" : "Albania", "type" : "country", "code" : "ALB" @@ -13366,7 +13501,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-algeria", "_id" : "worldVertices/country-algeria", - "_rev" : "_e4zxNSa--E", + "_rev" : "_e9TS36G---", "name" : "Algeria", "type" : "country", "code" : "DZA" @@ -13374,7 +13509,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-andorra", "_id" : "worldVertices/country-andorra", - "_rev" : "_e4zxNSa--F", + "_rev" : "_e9TS36K---", "name" : "Andorra", "type" : "country", "code" : "AND" @@ -13382,7 +13517,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-angola", "_id" : "worldVertices/country-angola", - "_rev" : "_e4zxNSa--G", + "_rev" : "_e9TS36O---", "name" : "Angola", "type" : "country", "code" : "AGO" @@ -13390,7 +13525,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-antigua-and-barbuda", "_id" : "worldVertices/country-antigua-and-barbuda", - "_rev" : "_e4zxNSa--H", + "_rev" : "_e9TS36S---", "name" : "Antigua and Barbuda", "type" : "country", "code" : "ATG" @@ -13398,7 +13533,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-argentina", "_id" : "worldVertices/country-argentina", - "_rev" : "_e4zxNSa--I", + "_rev" : "_e9TS36S--_", "name" : "Argentina", "type" : "country", "code" : "ARG" @@ -13406,7 +13541,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-australia", "_id" : "worldVertices/country-australia", - "_rev" : "_e4zxNSe---", + "_rev" : "_e9TS36W---", "name" : "Australia", "type" : "country", "code" : "AUS" @@ -13414,7 +13549,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-austria", "_id" : "worldVertices/country-austria", - "_rev" : "_e4zxNSe--_", + "_rev" : "_e9TS36a---", "name" : "Austria", "type" : "country", "code" : "AUT" @@ -13422,7 +13557,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-bahamas", "_id" : "worldVertices/country-bahamas", - "_rev" : "_e4zxNSe--A", + "_rev" : "_e9TS36e---", "name" : "Bahamas", "type" : "country", "code" : "BHS" @@ -13430,7 +13565,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-bahrain", "_id" : "worldVertices/country-bahrain", - "_rev" : "_e4zxNSe--B", + "_rev" : "_e9TS36e--_", "name" : "Bahrain", "type" : "country", "code" : "BHR" @@ -13438,7 +13573,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-bangladesh", "_id" : "worldVertices/country-bangladesh", - "_rev" : "_e4zxNSe--C", + "_rev" : "_e9TS36i---", "name" : "Bangladesh", "type" : "country", "code" : "BGD" @@ -13446,7 +13581,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-barbados", "_id" : "worldVertices/country-barbados", - "_rev" : "_e4zxNSe--D", + "_rev" : "_e9TS36m---", "name" : "Barbados", "type" : "country", "code" : "BRB" @@ -13454,7 +13589,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-belgium", "_id" : "worldVertices/country-belgium", - "_rev" : "_e4zxNSe--E", + "_rev" : "_e9TS36m--_", "name" : "Belgium", "type" : "country", "code" : "BEL" @@ -13462,7 +13597,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-bhutan", "_id" : "worldVertices/country-bhutan", - "_rev" : "_e4zxNSe--F", + "_rev" : "_e9TS36q---", "name" : "Bhutan", "type" : "country", "code" : "BTN" @@ -13470,7 +13605,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-bolivia", "_id" : "worldVertices/country-bolivia", - "_rev" : "_e4zxNSe--G", + "_rev" : "_e9TS36q--_", "name" : "Bolivia", "type" : "country", "code" : "BOL" @@ -13478,7 +13613,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-bosnia-and-herzegovina", "_id" : "worldVertices/country-bosnia-and-herzegovina", - "_rev" : "_e4zxNSe--H", + "_rev" : "_e9TS36u---", "name" : "Bosnia and Herzegovina", "type" : "country", "code" : "BIH" @@ -13486,7 +13621,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-botswana", "_id" : "worldVertices/country-botswana", - "_rev" : "_e4zxNSe--I", + "_rev" : "_e9TS36u--_", "name" : "Botswana", "type" : "country", "code" : "BWA" @@ -13494,7 +13629,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-brazil", "_id" : "worldVertices/country-brazil", - "_rev" : "_e4zxNSi---", + "_rev" : "_e9TS36y---", "name" : "Brazil", "type" : "country", "code" : "BRA" @@ -13502,7 +13637,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-brunei", "_id" : "worldVertices/country-brunei", - "_rev" : "_e4zxNSi--_", + "_rev" : "_e9TS36y--_", "name" : "Brunei", "type" : "country", "code" : "BRN" @@ -13510,7 +13645,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-bulgaria", "_id" : "worldVertices/country-bulgaria", - "_rev" : "_e4zxNSi--A", + "_rev" : "_e9TS362---", "name" : "Bulgaria", "type" : "country", "code" : "BGR" @@ -13518,7 +13653,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-burkina-faso", "_id" : "worldVertices/country-burkina-faso", - "_rev" : "_e4zxNSi--B", + "_rev" : "_e9TS362--_", "name" : "Burkina Faso", "type" : "country", "code" : "BFA" @@ -13526,7 +13661,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-burundi", "_id" : "worldVertices/country-burundi", - "_rev" : "_e4zxNSi--C", + "_rev" : "_e9TS366---", "name" : "Burundi", "type" : "country", "code" : "BDI" @@ -13534,7 +13669,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-cambodia", "_id" : "worldVertices/country-cambodia", - "_rev" : "_e4zxNSi--D", + "_rev" : "_e9TS366--_", "name" : "Cambodia", "type" : "country", "code" : "KHM" @@ -13542,7 +13677,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-cameroon", "_id" : "worldVertices/country-cameroon", - "_rev" : "_e4zxNSi--E", + "_rev" : "_e9TS37----", "name" : "Cameroon", "type" : "country", "code" : "CMR" @@ -13550,7 +13685,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-canada", "_id" : "worldVertices/country-canada", - "_rev" : "_e4zxNSi--F", + "_rev" : "_e9TS37---_", "name" : "Canada", "type" : "country", "code" : "CAN" @@ -13558,7 +13693,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-chad", "_id" : "worldVertices/country-chad", - "_rev" : "_e4zxNSi--G", + "_rev" : "_e9TS37C---", "name" : "Chad", "type" : "country", "code" : "TCD" @@ -13566,7 +13701,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-chile", "_id" : "worldVertices/country-chile", - "_rev" : "_e4zxNSi--H", + "_rev" : "_e9TS37C--_", "name" : "Chile", "type" : "country", "code" : "CHL" @@ -13574,7 +13709,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-colombia", "_id" : "worldVertices/country-colombia", - "_rev" : "_e4zxNSi--I", + "_rev" : "_e9TS37G---", "name" : "Colombia", "type" : "country", "code" : "COL" @@ -13582,7 +13717,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-cote-d-ivoire", "_id" : "worldVertices/country-cote-d-ivoire", - "_rev" : "_e4zxNSi--J", + "_rev" : "_e9TS37G--_", "name" : "Cote d'Ivoire", "type" : "country", "code" : "CIV" @@ -13590,7 +13725,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-croatia", "_id" : "worldVertices/country-croatia", - "_rev" : "_e4zxNSm---", + "_rev" : "_e9TS37K---", "name" : "Croatia", "type" : "country", "code" : "HRV" @@ -13598,7 +13733,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-czech-republic", "_id" : "worldVertices/country-czech-republic", - "_rev" : "_e4zxNSm--_", + "_rev" : "_e9TS37K--_", "name" : "Czech Republic", "type" : "country", "code" : "CZE" @@ -13606,7 +13741,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-denmark", "_id" : "worldVertices/country-denmark", - "_rev" : "_e4zxNSm--A", + "_rev" : "_e9TS37O---", "name" : "Denmark", "type" : "country", "code" : "DNK" @@ -13614,7 +13749,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-ecuador", "_id" : "worldVertices/country-ecuador", - "_rev" : "_e4zxNSm--B", + "_rev" : "_e9TS37O--_", "name" : "Ecuador", "type" : "country", "code" : "ECU" @@ -13622,7 +13757,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-egypt", "_id" : "worldVertices/country-egypt", - "_rev" : "_e4zxNSm--C", + "_rev" : "_e9TS37S---", "name" : "Egypt", "type" : "country", "code" : "EGY" @@ -13630,7 +13765,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-eritrea", "_id" : "worldVertices/country-eritrea", - "_rev" : "_e4zxNSm--D", + "_rev" : "_e9TS37S--_", "name" : "Eritrea", "type" : "country", "code" : "ERI" @@ -13638,7 +13773,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-finland", "_id" : "worldVertices/country-finland", - "_rev" : "_e4zxNSm--E", + "_rev" : "_e9TS37W---", "name" : "Finland", "type" : "country", "code" : "FIN" @@ -13646,7 +13781,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-france", "_id" : "worldVertices/country-france", - "_rev" : "_e4zxNSm--F", + "_rev" : "_e9TS37W--_", "name" : "France", "type" : "country", "code" : "FRA" @@ -13654,7 +13789,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-germany", "_id" : "worldVertices/country-germany", - "_rev" : "_e4zxNSm--G", + "_rev" : "_e9TS37a---", "name" : "Germany", "type" : "country", "code" : "DEU" @@ -13662,7 +13797,7 @@ arangosh> db.worldVertices.toArray(); { "_key" : "country-people-s-republic-of-china", "_id" : "worldVertices/country-people-s-republic-of-china", - "_rev" : "_e4zxNSm--H", + "_rev" : "_e9TS37a--_", "name" : "People's Republic of China", "type" : "country", "code" : "CHN" @@ -13670,280 +13805,280 @@ arangosh> db.worldVertices.toArray(); { "_key" : "capital-algiers", "_id" : "worldVertices/capital-algiers", - "_rev" : "_e4zxNSm--I", + "_rev" : "_e9TS37a--A", "name" : "Algiers", "type" : "capital" }, { "_key" : "capital-andorra-la-vella", "_id" : "worldVertices/capital-andorra-la-vella", - "_rev" : "_e4zxNSq---", + "_rev" : "_e9TS37e---", "name" : "Andorra la Vella", "type" : "capital" }, { "_key" : "capital-asmara", "_id" : "worldVertices/capital-asmara", - "_rev" : "_e4zxNSq--_", + "_rev" : "_e9TS37e--_", "name" : "Asmara", "type" : "capital" }, { "_key" : "capital-bandar-seri-begawan", "_id" : "worldVertices/capital-bandar-seri-begawan", - "_rev" : "_e4zxNSq--A", + "_rev" : "_e9TS37i---", "name" : "Bandar Seri Begawan", "type" : "capital" }, { "_key" : "capital-beijing", "_id" : "worldVertices/capital-beijing", - "_rev" : "_e4zxNSq--B", + "_rev" : "_e9TS37i--_", "name" : "Beijing", "type" : "capital" }, { "_key" : "capital-berlin", "_id" : "worldVertices/capital-berlin", - "_rev" : "_e4zxNSq--C", + "_rev" : "_e9TS37i--A", "name" : "Berlin", "type" : "capital" }, { "_key" : "capital-bogota", "_id" : "worldVertices/capital-bogota", - "_rev" : "_e4zxNSq--D", + "_rev" : "_e9TS37m---", "name" : "Bogota", "type" : "capital" }, { "_key" : "capital-brasilia", "_id" : "worldVertices/capital-brasilia", - "_rev" : "_e4zxNSq--E", + "_rev" : "_e9TS37m--_", "name" : "Brasilia", "type" : "capital" }, { "_key" : "capital-bridgetown", "_id" : "worldVertices/capital-bridgetown", - "_rev" : "_e4zxNSq--F", + "_rev" : "_e9TS37m--A", "name" : "Bridgetown", "type" : "capital" }, { "_key" : "capital-brussels", "_id" : "worldVertices/capital-brussels", - "_rev" : "_e4zxNSq--G", + "_rev" : "_e9TS37q---", "name" : "Brussels", "type" : "capital" }, { "_key" : "capital-buenos-aires", "_id" : "worldVertices/capital-buenos-aires", - "_rev" : "_e4zxNSq--H", + "_rev" : "_e9TS37q--_", "name" : "Buenos Aires", "type" : "capital" }, { "_key" : "capital-bujumbura", "_id" : "worldVertices/capital-bujumbura", - "_rev" : "_e4zxNSq--I", + "_rev" : "_e9TS37q--A", "name" : "Bujumbura", "type" : "capital" }, { "_key" : "capital-cairo", "_id" : "worldVertices/capital-cairo", - "_rev" : "_e4zxNSu---", + "_rev" : "_e9TS37u---", "name" : "Cairo", "type" : "capital" }, { "_key" : "capital-canberra", "_id" : "worldVertices/capital-canberra", - "_rev" : "_e4zxNSu--_", + "_rev" : "_e9TS37u--_", "name" : "Canberra", "type" : "capital" }, { "_key" : "capital-copenhagen", "_id" : "worldVertices/capital-copenhagen", - "_rev" : "_e4zxNSu--A", + "_rev" : "_e9TS37y---", "name" : "Copenhagen", "type" : "capital" }, { "_key" : "capital-dhaka", "_id" : "worldVertices/capital-dhaka", - "_rev" : "_e4zxNSu--B", + "_rev" : "_e9TS37y--_", "name" : "Dhaka", "type" : "capital" }, { "_key" : "capital-gaborone", "_id" : "worldVertices/capital-gaborone", - "_rev" : "_e4zxNSu--C", + "_rev" : "_e9TS37y--A", "name" : "Gaborone", "type" : "capital" }, { "_key" : "capital-helsinki", "_id" : "worldVertices/capital-helsinki", - "_rev" : "_e4zxNSu--D", + "_rev" : "_e9TS372---", "name" : "Helsinki", "type" : "capital" }, { "_key" : "capital-kabul", "_id" : "worldVertices/capital-kabul", - "_rev" : "_e4zxNSu--E", + "_rev" : "_e9TS372--_", "name" : "Kabul", "type" : "capital" }, { "_key" : "capital-la-paz", "_id" : "worldVertices/capital-la-paz", - "_rev" : "_e4zxNSu--F", + "_rev" : "_e9TS372--A", "name" : "La Paz", "type" : "capital" }, { "_key" : "capital-luanda", "_id" : "worldVertices/capital-luanda", - "_rev" : "_e4zxNSu--G", + "_rev" : "_e9TS376---", "name" : "Luanda", "type" : "capital" }, { "_key" : "capital-manama", "_id" : "worldVertices/capital-manama", - "_rev" : "_e4zxNSu--H", + "_rev" : "_e9TS376--_", "name" : "Manama", "type" : "capital" }, { "_key" : "capital-nassau", "_id" : "worldVertices/capital-nassau", - "_rev" : "_e4zxNSu--I", + "_rev" : "_e9TS376--A", "name" : "Nassau", "type" : "capital" }, { "_key" : "capital-n-djamena", "_id" : "worldVertices/capital-n-djamena", - "_rev" : "_e4zxNSu--J", + "_rev" : "_e9TS38----", "name" : "N'Djamena", "type" : "capital" }, { "_key" : "capital-ottawa", "_id" : "worldVertices/capital-ottawa", - "_rev" : "_e4zxNSy---", + "_rev" : "_e9TS38---_", "name" : "Ottawa", "type" : "capital" }, { "_key" : "capital-ouagadougou", "_id" : "worldVertices/capital-ouagadougou", - "_rev" : "_e4zxNSy--_", + "_rev" : "_e9TS38---A", "name" : "Ouagadougou", "type" : "capital" }, { "_key" : "capital-paris", "_id" : "worldVertices/capital-paris", - "_rev" : "_e4zxNSy--A", + "_rev" : "_e9TS38C---", "name" : "Paris", "type" : "capital" }, { "_key" : "capital-phnom-penh", "_id" : "worldVertices/capital-phnom-penh", - "_rev" : "_e4zxNSy--B", + "_rev" : "_e9TS38C--_", "name" : "Phnom Penh", "type" : "capital" }, { "_key" : "capital-prague", "_id" : "worldVertices/capital-prague", - "_rev" : "_e4zxNSy--C", + "_rev" : "_e9TS38C--A", "name" : "Prague", "type" : "capital" }, { "_key" : "capital-quito", "_id" : "worldVertices/capital-quito", - "_rev" : "_e4zxNSy--D", + "_rev" : "_e9TS38G---", "name" : "Quito", "type" : "capital" }, { "_key" : "capital-saint-john-s", "_id" : "worldVertices/capital-saint-john-s", - "_rev" : "_e4zxNSy--E", + "_rev" : "_e9TS38G--_", "name" : "Saint John's", "type" : "capital" }, { "_key" : "capital-santiago", "_id" : "worldVertices/capital-santiago", - "_rev" : "_e4zxNSy--F", + "_rev" : "_e9TS38K---", "name" : "Santiago", "type" : "capital" }, { "_key" : "capital-sarajevo", "_id" : "worldVertices/capital-sarajevo", - "_rev" : "_e4zxNSy--G", + "_rev" : "_e9TS38K--_", "name" : "Sarajevo", "type" : "capital" }, { "_key" : "capital-sofia", "_id" : "worldVertices/capital-sofia", - "_rev" : "_e4zxNSy--H", + "_rev" : "_e9TS38K--A", "name" : "Sofia", "type" : "capital" }, { "_key" : "capital-thimphu", "_id" : "worldVertices/capital-thimphu", - "_rev" : "_e4zxNSy--I", + "_rev" : "_e9TS38O---", "name" : "Thimphu", "type" : "capital" }, { "_key" : "capital-tirana", "_id" : "worldVertices/capital-tirana", - "_rev" : "_e4zxNS2---", + "_rev" : "_e9TS38O--_", "name" : "Tirana", "type" : "capital" }, { "_key" : "capital-vienna", "_id" : "worldVertices/capital-vienna", - "_rev" : "_e4zxNS2--_", + "_rev" : "_e9TS38O--A", "name" : "Vienna", "type" : "capital" }, { "_key" : "capital-yamoussoukro", "_id" : "worldVertices/capital-yamoussoukro", - "_rev" : "_e4zxNS2--A", + "_rev" : "_e9TS38S---", "name" : "Yamoussoukro", "type" : "capital" }, { "_key" : "capital-yaounde", "_id" : "worldVertices/capital-yaounde", - "_rev" : "_e4zxNS2--B", + "_rev" : "_e9TS38S--_", "name" : "Yaounde", "type" : "capital" }, { "_key" : "capital-zagreb", "_id" : "worldVertices/capital-zagreb", - "_rev" : "_e4zxNS2--C", + "_rev" : "_e9TS38S--A", "name" : "Zagreb", "type" : "capital" } @@ -13951,691 +14086,691 @@ arangosh> db.worldVertices.toArray(); arangosh> db.worldEdges.toArray(); [ { - "_key" : "83027", - "_id" : "worldEdges/83027", + "_key" : "81764", + "_id" : "worldEdges/81764", "_from" : "worldVertices/continent-africa", "_to" : "worldVertices/world", - "_rev" : "_e4zxNS2--D", + "_rev" : "_e9TS38W---", "type" : "is-in" }, { - "_key" : "83029", - "_id" : "worldEdges/83029", + "_key" : "81766", + "_id" : "worldEdges/81766", "_from" : "worldVertices/continent-asia", "_to" : "worldVertices/world", - "_rev" : "_e4zxNS2--E", + "_rev" : "_e9TS38W--_", "type" : "is-in" }, { - "_key" : "83031", - "_id" : "worldEdges/83031", + "_key" : "81768", + "_id" : "worldEdges/81768", "_from" : "worldVertices/continent-australia", "_to" : "worldVertices/world", - "_rev" : "_e4zxNS2--F", + "_rev" : "_e9TS38a---", "type" : "is-in" }, { - "_key" : "83033", - "_id" : "worldEdges/83033", + "_key" : "81770", + "_id" : "worldEdges/81770", "_from" : "worldVertices/continent-europe", "_to" : "worldVertices/world", - "_rev" : "_e4zxNS2--G", + "_rev" : "_e9TS38a--_", "type" : "is-in" }, { - "_key" : "83035", - "_id" : "worldEdges/83035", + "_key" : "81772", + "_id" : "worldEdges/81772", "_from" : "worldVertices/continent-north-america", "_to" : "worldVertices/world", - "_rev" : "_e4zxNS2--H", + "_rev" : "_e9TS38a--A", "type" : "is-in" }, { - "_key" : "83037", - "_id" : "worldEdges/83037", + "_key" : "81774", + "_id" : "worldEdges/81774", "_from" : "worldVertices/continent-south-america", "_to" : "worldVertices/world", - "_rev" : "_e4zxNS2--I", + "_rev" : "_e9TS38e---", "type" : "is-in" }, { - "_key" : "83039", - "_id" : "worldEdges/83039", + "_key" : "81776", + "_id" : "worldEdges/81776", "_from" : "worldVertices/country-afghanistan", "_to" : "worldVertices/continent-asia", - "_rev" : "_e4zxNS6---", + "_rev" : "_e9TS38e--_", "type" : "is-in" }, { - "_key" : "83041", - "_id" : "worldEdges/83041", + "_key" : "81778", + "_id" : "worldEdges/81778", "_from" : "worldVertices/country-albania", "_to" : "worldVertices/continent-europe", - "_rev" : "_e4zxNS6--_", + "_rev" : "_e9TS38i---", "type" : "is-in" }, { - "_key" : "83043", - "_id" : "worldEdges/83043", + "_key" : "81780", + "_id" : "worldEdges/81780", "_from" : "worldVertices/country-algeria", "_to" : "worldVertices/continent-africa", - "_rev" : "_e4zxNS6--A", + "_rev" : "_e9TS38i--_", "type" : "is-in" }, { - "_key" : "83045", - "_id" : "worldEdges/83045", + "_key" : "81782", + "_id" : "worldEdges/81782", "_from" : "worldVertices/country-andorra", "_to" : "worldVertices/continent-europe", - "_rev" : "_e4zxNS6--B", + "_rev" : "_e9TS38i--A", "type" : "is-in" }, { - "_key" : "83047", - "_id" : "worldEdges/83047", + "_key" : "81784", + "_id" : "worldEdges/81784", "_from" : "worldVertices/country-angola", "_to" : "worldVertices/continent-africa", - "_rev" : "_e4zxNS6--C", + "_rev" : "_e9TS38m---", "type" : "is-in" }, { - "_key" : "83049", - "_id" : "worldEdges/83049", + "_key" : "81786", + "_id" : "worldEdges/81786", "_from" : "worldVertices/country-antigua-and-barbuda", "_to" : "worldVertices/continent-north-america", - "_rev" : "_e4zxNS6--D", + "_rev" : "_e9TS38m--_", "type" : "is-in" }, { - "_key" : "83051", - "_id" : "worldEdges/83051", + "_key" : "81788", + "_id" : "worldEdges/81788", "_from" : "worldVertices/country-argentina", "_to" : "worldVertices/continent-south-america", - "_rev" : "_e4zxNS6--E", + "_rev" : "_e9TS38q---", "type" : "is-in" }, { - "_key" : "83053", - "_id" : "worldEdges/83053", + "_key" : "81790", + "_id" : "worldEdges/81790", "_from" : "worldVertices/country-australia", "_to" : "worldVertices/continent-australia", - "_rev" : "_e4zxNS6--F", + "_rev" : "_e9TS38q--_", "type" : "is-in" }, { - "_key" : "83055", - "_id" : "worldEdges/83055", + "_key" : "81792", + "_id" : "worldEdges/81792", "_from" : "worldVertices/country-austria", "_to" : "worldVertices/continent-europe", - "_rev" : "_e4zxNS6--G", + "_rev" : "_e9TS38q--A", "type" : "is-in" }, { - "_key" : "83057", - "_id" : "worldEdges/83057", + "_key" : "81794", + "_id" : "worldEdges/81794", "_from" : "worldVertices/country-bahamas", "_to" : "worldVertices/continent-north-america", - "_rev" : "_e4zxNS6--H", + "_rev" : "_e9TS38u---", "type" : "is-in" }, { - "_key" : "83059", - "_id" : "worldEdges/83059", + "_key" : "81796", + "_id" : "worldEdges/81796", "_from" : "worldVertices/country-bahrain", "_to" : "worldVertices/continent-asia", - "_rev" : "_e4zxNT----", + "_rev" : "_e9TS38u--_", "type" : "is-in" }, { - "_key" : "83061", - "_id" : "worldEdges/83061", + "_key" : "81798", + "_id" : "worldEdges/81798", "_from" : "worldVertices/country-bangladesh", "_to" : "worldVertices/continent-asia", - "_rev" : "_e4zxNT---_", + "_rev" : "_e9TS38y---", "type" : "is-in" }, { - "_key" : "83063", - "_id" : "worldEdges/83063", + "_key" : "81800", + "_id" : "worldEdges/81800", "_from" : "worldVertices/country-barbados", "_to" : "worldVertices/continent-north-america", - "_rev" : "_e4zxNT---A", + "_rev" : "_e9TS38y--_", "type" : "is-in" }, { - "_key" : "83065", - "_id" : "worldEdges/83065", + "_key" : "81802", + "_id" : "worldEdges/81802", "_from" : "worldVertices/country-belgium", "_to" : "worldVertices/continent-europe", - "_rev" : "_e4zxNT---B", + "_rev" : "_e9TS38y--A", "type" : "is-in" }, { - "_key" : "83067", - "_id" : "worldEdges/83067", + "_key" : "81804", + "_id" : "worldEdges/81804", "_from" : "worldVertices/country-bhutan", "_to" : "worldVertices/continent-asia", - "_rev" : "_e4zxNT---C", + "_rev" : "_e9TS382---", "type" : "is-in" }, { - "_key" : "83069", - "_id" : "worldEdges/83069", + "_key" : "81806", + "_id" : "worldEdges/81806", "_from" : "worldVertices/country-bolivia", "_to" : "worldVertices/continent-south-america", - "_rev" : "_e4zxNT---D", + "_rev" : "_e9TS382--_", "type" : "is-in" }, { - "_key" : "83071", - "_id" : "worldEdges/83071", + "_key" : "81808", + "_id" : "worldEdges/81808", "_from" : "worldVertices/country-bosnia-and-herzegovina", "_to" : "worldVertices/continent-europe", - "_rev" : "_e4zxNT---E", + "_rev" : "_e9TS386---", "type" : "is-in" }, { - "_key" : "83073", - "_id" : "worldEdges/83073", + "_key" : "81810", + "_id" : "worldEdges/81810", "_from" : "worldVertices/country-botswana", "_to" : "worldVertices/continent-africa", - "_rev" : "_e4zxNT---F", + "_rev" : "_e9TS386--_", "type" : "is-in" }, { - "_key" : "83075", - "_id" : "worldEdges/83075", + "_key" : "81812", + "_id" : "worldEdges/81812", "_from" : "worldVertices/country-brazil", "_to" : "worldVertices/continent-south-america", - "_rev" : "_e4zxNT---G", + "_rev" : "_e9TS39----", "type" : "is-in" }, { - "_key" : "83077", - "_id" : "worldEdges/83077", + "_key" : "81814", + "_id" : "worldEdges/81814", "_from" : "worldVertices/country-brunei", "_to" : "worldVertices/continent-asia", - "_rev" : "_e4zxNT---H", + "_rev" : "_e9TS39---_", "type" : "is-in" }, { - "_key" : "83079", - "_id" : "worldEdges/83079", + "_key" : "81816", + "_id" : "worldEdges/81816", "_from" : "worldVertices/country-bulgaria", "_to" : "worldVertices/continent-europe", - "_rev" : "_e4zxNT---I", + "_rev" : "_e9TS39---A", "type" : "is-in" }, { - "_key" : "83081", - "_id" : "worldEdges/83081", + "_key" : "81818", + "_id" : "worldEdges/81818", "_from" : "worldVertices/country-burkina-faso", "_to" : "worldVertices/continent-africa", - "_rev" : "_e4zxNTC---", + "_rev" : "_e9TS39C---", "type" : "is-in" }, { - "_key" : "83083", - "_id" : "worldEdges/83083", + "_key" : "81820", + "_id" : "worldEdges/81820", "_from" : "worldVertices/country-burundi", "_to" : "worldVertices/continent-africa", - "_rev" : "_e4zxNTC--_", + "_rev" : "_e9TS39C--_", "type" : "is-in" }, { - "_key" : "83085", - "_id" : "worldEdges/83085", + "_key" : "81822", + "_id" : "worldEdges/81822", "_from" : "worldVertices/country-cambodia", "_to" : "worldVertices/continent-asia", - "_rev" : "_e4zxNTC--A", + "_rev" : "_e9TS39G---", "type" : "is-in" }, { - "_key" : "83087", - "_id" : "worldEdges/83087", + "_key" : "81824", + "_id" : "worldEdges/81824", "_from" : "worldVertices/country-cameroon", "_to" : "worldVertices/continent-africa", - "_rev" : "_e4zxNTC--B", + "_rev" : "_e9TS39G--_", "type" : "is-in" }, { - "_key" : "83089", - "_id" : "worldEdges/83089", + "_key" : "81826", + "_id" : "worldEdges/81826", "_from" : "worldVertices/country-canada", "_to" : "worldVertices/continent-north-america", - "_rev" : "_e4zxNTC--C", + "_rev" : "_e9TS39G--A", "type" : "is-in" }, { - "_key" : "83091", - "_id" : "worldEdges/83091", + "_key" : "81828", + "_id" : "worldEdges/81828", "_from" : "worldVertices/country-chad", "_to" : "worldVertices/continent-africa", - "_rev" : "_e4zxNTC--D", + "_rev" : "_e9TS39K---", "type" : "is-in" }, { - "_key" : "83093", - "_id" : "worldEdges/83093", + "_key" : "81830", + "_id" : "worldEdges/81830", "_from" : "worldVertices/country-chile", "_to" : "worldVertices/continent-south-america", - "_rev" : "_e4zxNTC--E", + "_rev" : "_e9TS39K--_", "type" : "is-in" }, { - "_key" : "83095", - "_id" : "worldEdges/83095", + "_key" : "81832", + "_id" : "worldEdges/81832", "_from" : "worldVertices/country-colombia", "_to" : "worldVertices/continent-south-america", - "_rev" : "_e4zxNTC--F", + "_rev" : "_e9TS39O---", "type" : "is-in" }, { - "_key" : "83097", - "_id" : "worldEdges/83097", + "_key" : "81834", + "_id" : "worldEdges/81834", "_from" : "worldVertices/country-cote-d-ivoire", "_to" : "worldVertices/continent-africa", - "_rev" : "_e4zxNTC--G", + "_rev" : "_e9TS39O--_", "type" : "is-in" }, { - "_key" : "83099", - "_id" : "worldEdges/83099", + "_key" : "81836", + "_id" : "worldEdges/81836", "_from" : "worldVertices/country-croatia", "_to" : "worldVertices/continent-europe", - "_rev" : "_e4zxNTC--H", + "_rev" : "_e9TS39O--A", "type" : "is-in" }, { - "_key" : "83101", - "_id" : "worldEdges/83101", + "_key" : "81838", + "_id" : "worldEdges/81838", "_from" : "worldVertices/country-czech-republic", "_to" : "worldVertices/continent-europe", - "_rev" : "_e4zxNTG---", + "_rev" : "_e9TS39S---", "type" : "is-in" }, { - "_key" : "83103", - "_id" : "worldEdges/83103", + "_key" : "81840", + "_id" : "worldEdges/81840", "_from" : "worldVertices/country-denmark", "_to" : "worldVertices/continent-europe", - "_rev" : "_e4zxNTG--_", + "_rev" : "_e9TS39S--_", "type" : "is-in" }, { - "_key" : "83105", - "_id" : "worldEdges/83105", + "_key" : "81842", + "_id" : "worldEdges/81842", "_from" : "worldVertices/country-ecuador", "_to" : "worldVertices/continent-south-america", - "_rev" : "_e4zxNTG--A", + "_rev" : "_e9TS39W---", "type" : "is-in" }, { - "_key" : "83107", - "_id" : "worldEdges/83107", + "_key" : "81844", + "_id" : "worldEdges/81844", "_from" : "worldVertices/country-egypt", "_to" : "worldVertices/continent-africa", - "_rev" : "_e4zxNTG--B", + "_rev" : "_e9TS39W--_", "type" : "is-in" }, { - "_key" : "83109", - "_id" : "worldEdges/83109", + "_key" : "81846", + "_id" : "worldEdges/81846", "_from" : "worldVertices/country-eritrea", "_to" : "worldVertices/continent-africa", - "_rev" : "_e4zxNTG--C", + "_rev" : "_e9TS39W--A", "type" : "is-in" }, { - "_key" : "83111", - "_id" : "worldEdges/83111", + "_key" : "81848", + "_id" : "worldEdges/81848", "_from" : "worldVertices/country-finland", "_to" : "worldVertices/continent-europe", - "_rev" : "_e4zxNTG--D", + "_rev" : "_e9TS39a---", "type" : "is-in" }, { - "_key" : "83113", - "_id" : "worldEdges/83113", + "_key" : "81850", + "_id" : "worldEdges/81850", "_from" : "worldVertices/country-france", "_to" : "worldVertices/continent-europe", - "_rev" : "_e4zxNTG--E", + "_rev" : "_e9TS39a--_", "type" : "is-in" }, { - "_key" : "83115", - "_id" : "worldEdges/83115", + "_key" : "81852", + "_id" : "worldEdges/81852", "_from" : "worldVertices/country-germany", "_to" : "worldVertices/continent-europe", - "_rev" : "_e4zxNTG--F", + "_rev" : "_e9TS39e---", "type" : "is-in" }, { - "_key" : "83117", - "_id" : "worldEdges/83117", + "_key" : "81854", + "_id" : "worldEdges/81854", "_from" : "worldVertices/country-people-s-republic-of-china", "_to" : "worldVertices/continent-asia", - "_rev" : "_e4zxNTG--G", + "_rev" : "_e9TS39e--_", "type" : "is-in" }, { - "_key" : "83119", - "_id" : "worldEdges/83119", + "_key" : "81856", + "_id" : "worldEdges/81856", "_from" : "worldVertices/capital-algiers", "_to" : "worldVertices/country-algeria", - "_rev" : "_e4zxNTG--H", + "_rev" : "_e9TS39e--A", "type" : "is-in" }, { - "_key" : "83121", - "_id" : "worldEdges/83121", + "_key" : "81858", + "_id" : "worldEdges/81858", "_from" : "worldVertices/capital-andorra-la-vella", "_to" : "worldVertices/country-andorra", - "_rev" : "_e4zxNTG--I", + "_rev" : "_e9TS39i---", "type" : "is-in" }, { - "_key" : "83123", - "_id" : "worldEdges/83123", + "_key" : "81860", + "_id" : "worldEdges/81860", "_from" : "worldVertices/capital-asmara", "_to" : "worldVertices/country-eritrea", - "_rev" : "_e4zxNTK---", + "_rev" : "_e9TS39i--_", "type" : "is-in" }, { - "_key" : "83125", - "_id" : "worldEdges/83125", + "_key" : "81862", + "_id" : "worldEdges/81862", "_from" : "worldVertices/capital-bandar-seri-begawan", "_to" : "worldVertices/country-brunei", - "_rev" : "_e4zxNTK--_", + "_rev" : "_e9TS39m---", "type" : "is-in" }, { - "_key" : "83127", - "_id" : "worldEdges/83127", + "_key" : "81864", + "_id" : "worldEdges/81864", "_from" : "worldVertices/capital-beijing", "_to" : "worldVertices/country-people-s-republic-of-china", - "_rev" : "_e4zxNTK--A", + "_rev" : "_e9TS39m--_", "type" : "is-in" }, { - "_key" : "83129", - "_id" : "worldEdges/83129", + "_key" : "81866", + "_id" : "worldEdges/81866", "_from" : "worldVertices/capital-berlin", "_to" : "worldVertices/country-germany", - "_rev" : "_e4zxNTK--B", + "_rev" : "_e9TS39q---", "type" : "is-in" }, { - "_key" : "83131", - "_id" : "worldEdges/83131", + "_key" : "81868", + "_id" : "worldEdges/81868", "_from" : "worldVertices/capital-bogota", "_to" : "worldVertices/country-colombia", - "_rev" : "_e4zxNTK--C", + "_rev" : "_e9TS39q--_", "type" : "is-in" }, { - "_key" : "83133", - "_id" : "worldEdges/83133", + "_key" : "81870", + "_id" : "worldEdges/81870", "_from" : "worldVertices/capital-brasilia", "_to" : "worldVertices/country-brazil", - "_rev" : "_e4zxNTK--D", + "_rev" : "_e9TS39q--A", "type" : "is-in" }, { - "_key" : "83135", - "_id" : "worldEdges/83135", + "_key" : "81872", + "_id" : "worldEdges/81872", "_from" : "worldVertices/capital-bridgetown", "_to" : "worldVertices/country-barbados", - "_rev" : "_e4zxNTK--E", + "_rev" : "_e9TS39u---", "type" : "is-in" }, { - "_key" : "83137", - "_id" : "worldEdges/83137", + "_key" : "81874", + "_id" : "worldEdges/81874", "_from" : "worldVertices/capital-brussels", "_to" : "worldVertices/country-belgium", - "_rev" : "_e4zxNTK--F", + "_rev" : "_e9TS39u--_", "type" : "is-in" }, { - "_key" : "83139", - "_id" : "worldEdges/83139", + "_key" : "81876", + "_id" : "worldEdges/81876", "_from" : "worldVertices/capital-buenos-aires", "_to" : "worldVertices/country-argentina", - "_rev" : "_e4zxNTK--G", + "_rev" : "_e9TS39y---", "type" : "is-in" }, { - "_key" : "83141", - "_id" : "worldEdges/83141", + "_key" : "81878", + "_id" : "worldEdges/81878", "_from" : "worldVertices/capital-bujumbura", "_to" : "worldVertices/country-burundi", - "_rev" : "_e4zxNTK--H", + "_rev" : "_e9TS39y--_", "type" : "is-in" }, { - "_key" : "83143", - "_id" : "worldEdges/83143", + "_key" : "81880", + "_id" : "worldEdges/81880", "_from" : "worldVertices/capital-cairo", "_to" : "worldVertices/country-egypt", - "_rev" : "_e4zxNTO---", + "_rev" : "_e9TS39y--A", "type" : "is-in" }, { - "_key" : "83145", - "_id" : "worldEdges/83145", + "_key" : "81882", + "_id" : "worldEdges/81882", "_from" : "worldVertices/capital-canberra", "_to" : "worldVertices/country-australia", - "_rev" : "_e4zxNTO--_", + "_rev" : "_e9TS392---", "type" : "is-in" }, { - "_key" : "83147", - "_id" : "worldEdges/83147", + "_key" : "81884", + "_id" : "worldEdges/81884", "_from" : "worldVertices/capital-copenhagen", "_to" : "worldVertices/country-denmark", - "_rev" : "_e4zxNTO--A", + "_rev" : "_e9TS392--_", "type" : "is-in" }, { - "_key" : "83149", - "_id" : "worldEdges/83149", + "_key" : "81886", + "_id" : "worldEdges/81886", "_from" : "worldVertices/capital-dhaka", "_to" : "worldVertices/country-bangladesh", - "_rev" : "_e4zxNTO--B", + "_rev" : "_e9TS396---", "type" : "is-in" }, { - "_key" : "83151", - "_id" : "worldEdges/83151", + "_key" : "81888", + "_id" : "worldEdges/81888", "_from" : "worldVertices/capital-gaborone", "_to" : "worldVertices/country-botswana", - "_rev" : "_e4zxNTO--C", + "_rev" : "_e9TS396--_", "type" : "is-in" }, { - "_key" : "83153", - "_id" : "worldEdges/83153", + "_key" : "81890", + "_id" : "worldEdges/81890", "_from" : "worldVertices/capital-helsinki", "_to" : "worldVertices/country-finland", - "_rev" : "_e4zxNTO--D", + "_rev" : "_e9TS396--A", "type" : "is-in" }, { - "_key" : "83155", - "_id" : "worldEdges/83155", + "_key" : "81892", + "_id" : "worldEdges/81892", "_from" : "worldVertices/capital-kabul", "_to" : "worldVertices/country-afghanistan", - "_rev" : "_e4zxNTO--E", + "_rev" : "_e9TS4-----", "type" : "is-in" }, { - "_key" : "83157", - "_id" : "worldEdges/83157", + "_key" : "81894", + "_id" : "worldEdges/81894", "_from" : "worldVertices/capital-la-paz", "_to" : "worldVertices/country-bolivia", - "_rev" : "_e4zxNTO--F", + "_rev" : "_e9TS4----_", "type" : "is-in" }, { - "_key" : "83159", - "_id" : "worldEdges/83159", + "_key" : "81896", + "_id" : "worldEdges/81896", "_from" : "worldVertices/capital-luanda", "_to" : "worldVertices/country-angola", - "_rev" : "_e4zxNTO--G", + "_rev" : "_e9TS4-C---", "type" : "is-in" }, { - "_key" : "83161", - "_id" : "worldEdges/83161", + "_key" : "81898", + "_id" : "worldEdges/81898", "_from" : "worldVertices/capital-manama", "_to" : "worldVertices/country-bahrain", - "_rev" : "_e4zxNTO--H", + "_rev" : "_e9TS4-C--_", "type" : "is-in" }, { - "_key" : "83163", - "_id" : "worldEdges/83163", + "_key" : "81900", + "_id" : "worldEdges/81900", "_from" : "worldVertices/capital-nassau", "_to" : "worldVertices/country-bahamas", - "_rev" : "_e4zxNTO--I", + "_rev" : "_e9TS4-G---", "type" : "is-in" }, { - "_key" : "83165", - "_id" : "worldEdges/83165", + "_key" : "81902", + "_id" : "worldEdges/81902", "_from" : "worldVertices/capital-n-djamena", "_to" : "worldVertices/country-chad", - "_rev" : "_e4zxNTS---", + "_rev" : "_e9TS4-G--_", "type" : "is-in" }, { - "_key" : "83167", - "_id" : "worldEdges/83167", + "_key" : "81904", + "_id" : "worldEdges/81904", "_from" : "worldVertices/capital-ottawa", "_to" : "worldVertices/country-canada", - "_rev" : "_e4zxNTS--_", + "_rev" : "_e9TS4-G--A", "type" : "is-in" }, { - "_key" : "83169", - "_id" : "worldEdges/83169", + "_key" : "81906", + "_id" : "worldEdges/81906", "_from" : "worldVertices/capital-ouagadougou", "_to" : "worldVertices/country-burkina-faso", - "_rev" : "_e4zxNTS--A", + "_rev" : "_e9TS4-K---", "type" : "is-in" }, { - "_key" : "83171", - "_id" : "worldEdges/83171", + "_key" : "81908", + "_id" : "worldEdges/81908", "_from" : "worldVertices/capital-paris", "_to" : "worldVertices/country-france", - "_rev" : "_e4zxNTS--B", + "_rev" : "_e9TS4-K--_", "type" : "is-in" }, { - "_key" : "83173", - "_id" : "worldEdges/83173", + "_key" : "81910", + "_id" : "worldEdges/81910", "_from" : "worldVertices/capital-phnom-penh", "_to" : "worldVertices/country-cambodia", - "_rev" : "_e4zxNTS--C", + "_rev" : "_e9TS4-O---", "type" : "is-in" }, { - "_key" : "83175", - "_id" : "worldEdges/83175", + "_key" : "81912", + "_id" : "worldEdges/81912", "_from" : "worldVertices/capital-prague", "_to" : "worldVertices/country-czech-republic", - "_rev" : "_e4zxNTS--D", + "_rev" : "_e9TS4-O--_", "type" : "is-in" }, { - "_key" : "83177", - "_id" : "worldEdges/83177", + "_key" : "81914", + "_id" : "worldEdges/81914", "_from" : "worldVertices/capital-quito", "_to" : "worldVertices/country-ecuador", - "_rev" : "_e4zxNTS--E", + "_rev" : "_e9TS4-O--A", "type" : "is-in" }, { - "_key" : "83179", - "_id" : "worldEdges/83179", + "_key" : "81916", + "_id" : "worldEdges/81916", "_from" : "worldVertices/capital-saint-john-s", "_to" : "worldVertices/country-antigua-and-barbuda", - "_rev" : "_e4zxNTS--F", + "_rev" : "_e9TS4-S---", "type" : "is-in" }, { - "_key" : "83181", - "_id" : "worldEdges/83181", + "_key" : "81918", + "_id" : "worldEdges/81918", "_from" : "worldVertices/capital-santiago", "_to" : "worldVertices/country-chile", - "_rev" : "_e4zxNTS--G", + "_rev" : "_e9TS4-S--_", "type" : "is-in" }, { - "_key" : "83183", - "_id" : "worldEdges/83183", + "_key" : "81920", + "_id" : "worldEdges/81920", "_from" : "worldVertices/capital-sarajevo", "_to" : "worldVertices/country-bosnia-and-herzegovina", - "_rev" : "_e4zxNTS--H", + "_rev" : "_e9TS4-W---", "type" : "is-in" }, { - "_key" : "83185", - "_id" : "worldEdges/83185", + "_key" : "81922", + "_id" : "worldEdges/81922", "_from" : "worldVertices/capital-sofia", "_to" : "worldVertices/country-bulgaria", - "_rev" : "_e4zxNTW---", + "_rev" : "_e9TS4-W--_", "type" : "is-in" }, { - "_key" : "83187", - "_id" : "worldEdges/83187", + "_key" : "81924", + "_id" : "worldEdges/81924", "_from" : "worldVertices/capital-thimphu", "_to" : "worldVertices/country-bhutan", - "_rev" : "_e4zxNTW--_", + "_rev" : "_e9TS4-W--A", "type" : "is-in" }, { - "_key" : "83189", - "_id" : "worldEdges/83189", + "_key" : "81926", + "_id" : "worldEdges/81926", "_from" : "worldVertices/capital-tirana", "_to" : "worldVertices/country-albania", - "_rev" : "_e4zxNTW--A", + "_rev" : "_e9TS4-a---", "type" : "is-in" }, { - "_key" : "83191", - "_id" : "worldEdges/83191", + "_key" : "81928", + "_id" : "worldEdges/81928", "_from" : "worldVertices/capital-vienna", "_to" : "worldVertices/country-austria", - "_rev" : "_e4zxNTW--B", + "_rev" : "_e9TS4-a--_", "type" : "is-in" }, { - "_key" : "83193", - "_id" : "worldEdges/83193", + "_key" : "81930", + "_id" : "worldEdges/81930", "_from" : "worldVertices/capital-yamoussoukro", "_to" : "worldVertices/country-cote-d-ivoire", - "_rev" : "_e4zxNTW--C", + "_rev" : "_e9TS4-e---", "type" : "is-in" }, { - "_key" : "83195", - "_id" : "worldEdges/83195", + "_key" : "81932", + "_id" : "worldEdges/81932", "_from" : "worldVertices/capital-yaounde", "_to" : "worldVertices/country-cameroon", - "_rev" : "_e4zxNTW--D", + "_rev" : "_e9TS4-e--_", "type" : "is-in" }, { - "_key" : "83197", - "_id" : "worldEdges/83197", + "_key" : "81934", + "_id" : "worldEdges/81934", "_from" : "worldVertices/capital-zagreb", "_to" : "worldVertices/country-croatia", - "_rev" : "_e4zxNTW--E", + "_rev" : "_e9TS4-e--A", "type" : "is-in" } ] @@ -14674,90 +14809,90 @@ arangosh> db.mps_verts.toArray(); { "_key" : "A", "_id" : "mps_verts/A", - "_rev" : "_e4zxNR----" + "_rev" : "_e9TS3yC---" }, { "_key" : "B", "_id" : "mps_verts/B", - "_rev" : "_e4zxNR---_" + "_rev" : "_e9TS3yC--_" }, { "_key" : "C", "_id" : "mps_verts/C", - "_rev" : "_e4zxNR---A" + "_rev" : "_e9TS3yG---" }, { "_key" : "D", "_id" : "mps_verts/D", - "_rev" : "_e4zxNR---B" + "_rev" : "_e9TS3yK---" }, { "_key" : "E", "_id" : "mps_verts/E", - "_rev" : "_e4zxNR---C" + "_rev" : "_e9TS3yO---" }, { "_key" : "F", "_id" : "mps_verts/F", - "_rev" : "_e4zxNR---D" + "_rev" : "_e9TS3yO--_" } ] arangosh> db.mps_edges.toArray(); [ { - "_key" : "82745", - "_id" : "mps_edges/82745", + "_key" : "81482", + "_id" : "mps_edges/81482", "_from" : "mps_verts/A", "_to" : "mps_verts/B", - "_rev" : "_e4zxNR---E", + "_rev" : "_e9TS3yS---", "vertex" : "A" }, { - "_key" : "82747", - "_id" : "mps_edges/82747", + "_key" : "81484", + "_id" : "mps_edges/81484", "_from" : "mps_verts/A", "_to" : "mps_verts/E", - "_rev" : "_e4zxNR---F", + "_rev" : "_e9TS3yW---", "vertex" : "A" }, { - "_key" : "82749", - "_id" : "mps_edges/82749", + "_key" : "81486", + "_id" : "mps_edges/81486", "_from" : "mps_verts/A", "_to" : "mps_verts/D", - "_rev" : "_e4zxNR---G", + "_rev" : "_e9TS3ya---", "vertex" : "A" }, { - "_key" : "82751", - "_id" : "mps_edges/82751", + "_key" : "81488", + "_id" : "mps_edges/81488", "_from" : "mps_verts/B", "_to" : "mps_verts/C", - "_rev" : "_e4zxNRC---", + "_rev" : "_e9TS3ya--_", "vertex" : "B" }, { - "_key" : "82753", - "_id" : "mps_edges/82753", + "_key" : "81490", + "_id" : "mps_edges/81490", "_from" : "mps_verts/D", "_to" : "mps_verts/C", - "_rev" : "_e4zxNRC--_", + "_rev" : "_e9TS3ye---", "vertex" : "D" }, { - "_key" : "82755", - "_id" : "mps_edges/82755", + "_key" : "81492", + "_id" : "mps_edges/81492", "_from" : "mps_verts/E", "_to" : "mps_verts/F", - "_rev" : "_e4zxNRC--A", + "_rev" : "_e9TS3yi---", "vertex" : "E" }, { - "_key" : "82757", - "_id" : "mps_edges/82757", + "_key" : "81494", + "_id" : "mps_edges/81494", "_from" : "mps_verts/F", "_to" : "mps_verts/C", - "_rev" : "_e4zxNRC--B", + "_rev" : "_e9TS3yi--_", "vertex" : "F" } ] @@ -14792,437 +14927,437 @@ arangosh> db.components.toArray(); { "_key" : "A1", "_id" : "components/A1", - "_rev" : "_e4zxNOm--A" + "_rev" : "_e9TS3nO---" }, { "_key" : "A2", "_id" : "components/A2", - "_rev" : "_e4zxNOq---" + "_rev" : "_e9TS3nS---" }, { "_key" : "A3", "_id" : "components/A3", - "_rev" : "_e4zxNOq--_" + "_rev" : "_e9TS3nW---" }, { "_key" : "A4", "_id" : "components/A4", - "_rev" : "_e4zxNOq--A" + "_rev" : "_e9TS3na---" }, { "_key" : "B1", "_id" : "components/B1", - "_rev" : "_e4zxNOq--B" + "_rev" : "_e9TS3na--_" }, { "_key" : "B3", "_id" : "components/B3", - "_rev" : "_e4zxNOq--C" + "_rev" : "_e9TS3ne---" }, { "_key" : "B2", "_id" : "components/B2", - "_rev" : "_e4zxNOq--D" + "_rev" : "_e9TS3ni---" }, { "_key" : "B4", "_id" : "components/B4", - "_rev" : "_e4zxNOq--E" + "_rev" : "_e9TS3nm---" }, { "_key" : "B6", "_id" : "components/B6", - "_rev" : "_e4zxNOq--F" + "_rev" : "_e9TS3nm--_" }, { "_key" : "B5", "_id" : "components/B5", - "_rev" : "_e4zxNOq--G" + "_rev" : "_e9TS3nq---" }, { "_key" : "B7", "_id" : "components/B7", - "_rev" : "_e4zxNOq--H" + "_rev" : "_e9TS3nu---" }, { "_key" : "B8", "_id" : "components/B8", - "_rev" : "_e4zxNOq--I" + "_rev" : "_e9TS3nu--_" }, { "_key" : "B9", "_id" : "components/B9", - "_rev" : "_e4zxNOu---" + "_rev" : "_e9TS3ny---" }, { "_key" : "B10", "_id" : "components/B10", - "_rev" : "_e4zxNOu--_" + "_rev" : "_e9TS3n2---" }, { "_key" : "B19", "_id" : "components/B19", - "_rev" : "_e4zxNOu--A" + "_rev" : "_e9TS3n2--_" }, { "_key" : "B11", "_id" : "components/B11", - "_rev" : "_e4zxNOu--B" + "_rev" : "_e9TS3n6---" }, { "_key" : "B12", "_id" : "components/B12", - "_rev" : "_e4zxNOu--C" + "_rev" : "_e9TS3n6--_" }, { "_key" : "B13", "_id" : "components/B13", - "_rev" : "_e4zxNOu--D" + "_rev" : "_e9TS3o----" }, { "_key" : "B20", "_id" : "components/B20", - "_rev" : "_e4zxNOu--E" + "_rev" : "_e9TS3o---_" }, { "_key" : "B14", "_id" : "components/B14", - "_rev" : "_e4zxNOu--F" + "_rev" : "_e9TS3oC---" }, { "_key" : "B15", "_id" : "components/B15", - "_rev" : "_e4zxNOu--G" + "_rev" : "_e9TS3oG---" }, { "_key" : "B16", "_id" : "components/B16", - "_rev" : "_e4zxNOu--H" + "_rev" : "_e9TS3oG--_" }, { "_key" : "B17", "_id" : "components/B17", - "_rev" : "_e4zxNOu--I" + "_rev" : "_e9TS3oK---" }, { "_key" : "B18", "_id" : "components/B18", - "_rev" : "_e4zxNOu--J" + "_rev" : "_e9TS3oK--_" }, { "_key" : "B21", "_id" : "components/B21", - "_rev" : "_e4zxNOy---" + "_rev" : "_e9TS3oO---" }, { "_key" : "B22", "_id" : "components/B22", - "_rev" : "_e4zxNOy--_" + "_rev" : "_e9TS3oO--_" }, { "_key" : "C1", "_id" : "components/C1", - "_rev" : "_e4zxNOy--A" + "_rev" : "_e9TS3oS---" }, { "_key" : "C2", "_id" : "components/C2", - "_rev" : "_e4zxNOy--B" + "_rev" : "_e9TS3oS--_" }, { "_key" : "C3", "_id" : "components/C3", - "_rev" : "_e4zxNOy--C" + "_rev" : "_e9TS3oS--A" }, { "_key" : "C4", "_id" : "components/C4", - "_rev" : "_e4zxNOy--D" + "_rev" : "_e9TS3oW---" }, { "_key" : "C5", "_id" : "components/C5", - "_rev" : "_e4zxNOy--E" + "_rev" : "_e9TS3oW--_" }, { "_key" : "C7", "_id" : "components/C7", - "_rev" : "_e4zxNOy--F" + "_rev" : "_e9TS3oa---" }, { "_key" : "C6", "_id" : "components/C6", - "_rev" : "_e4zxNOy--G" + "_rev" : "_e9TS3oa--_" }, { "_key" : "C8", "_id" : "components/C8", - "_rev" : "_e4zxNOy--H" + "_rev" : "_e9TS3oe---" }, { "_key" : "C9", "_id" : "components/C9", - "_rev" : "_e4zxNOy--I" + "_rev" : "_e9TS3oe--_" }, { "_key" : "C10", "_id" : "components/C10", - "_rev" : "_e4zxNO2---" + "_rev" : "_e9TS3oe--A" } ] arangosh> db.connections.toArray(); [ { - "_key" : "82439", - "_id" : "connections/82439", + "_key" : "81176", + "_id" : "connections/81176", "_from" : "components/A1", "_to" : "components/A2", - "_rev" : "_e4zxNO2--_" + "_rev" : "_e9TS3oi---" }, { - "_key" : "82441", - "_id" : "connections/82441", + "_key" : "81178", + "_id" : "connections/81178", "_from" : "components/A2", "_to" : "components/A3", - "_rev" : "_e4zxNO2--A" + "_rev" : "_e9TS3oi--_" }, { - "_key" : "82443", - "_id" : "connections/82443", + "_key" : "81180", + "_id" : "connections/81180", "_from" : "components/A3", "_to" : "components/A4", - "_rev" : "_e4zxNO2--B" + "_rev" : "_e9TS3om---" }, { - "_key" : "82445", - "_id" : "connections/82445", + "_key" : "81182", + "_id" : "connections/81182", "_from" : "components/A4", "_to" : "components/A1", - "_rev" : "_e4zxNO2--C" + "_rev" : "_e9TS3om--_" }, { - "_key" : "82447", - "_id" : "connections/82447", + "_key" : "81184", + "_id" : "connections/81184", "_from" : "components/B1", "_to" : "components/B3", - "_rev" : "_e4zxNO2--D" + "_rev" : "_e9TS3oq---" }, { - "_key" : "82449", - "_id" : "connections/82449", + "_key" : "81186", + "_id" : "connections/81186", "_from" : "components/B2", "_to" : "components/B4", - "_rev" : "_e4zxNO2--E" + "_rev" : "_e9TS3oq--_" }, { - "_key" : "82451", - "_id" : "connections/82451", + "_key" : "81188", + "_id" : "connections/81188", "_from" : "components/B3", "_to" : "components/B6", - "_rev" : "_e4zxNO2--F" + "_rev" : "_e9TS3ou---" }, { - "_key" : "82453", - "_id" : "connections/82453", + "_key" : "81190", + "_id" : "connections/81190", "_from" : "components/B4", "_to" : "components/B3", - "_rev" : "_e4zxNO2--G" + "_rev" : "_e9TS3ou--_" }, { - "_key" : "82455", - "_id" : "connections/82455", + "_key" : "81192", + "_id" : "connections/81192", "_from" : "components/B4", "_to" : "components/B5", - "_rev" : "_e4zxNO6---" + "_rev" : "_e9TS3oy---" }, { - "_key" : "82457", - "_id" : "connections/82457", + "_key" : "81194", + "_id" : "connections/81194", "_from" : "components/B6", "_to" : "components/B7", - "_rev" : "_e4zxNO6--_" + "_rev" : "_e9TS3oy--_" }, { - "_key" : "82459", - "_id" : "connections/82459", + "_key" : "81196", + "_id" : "connections/81196", "_from" : "components/B7", "_to" : "components/B8", - "_rev" : "_e4zxNO6--A" + "_rev" : "_e9TS3o2---" }, { - "_key" : "82461", - "_id" : "connections/82461", + "_key" : "81198", + "_id" : "connections/81198", "_from" : "components/B7", "_to" : "components/B9", - "_rev" : "_e4zxNO6--B" + "_rev" : "_e9TS3o2--_" }, { - "_key" : "82463", - "_id" : "connections/82463", + "_key" : "81200", + "_id" : "connections/81200", "_from" : "components/B7", "_to" : "components/B10", - "_rev" : "_e4zxNO6--C" + "_rev" : "_e9TS3o6---" }, { - "_key" : "82465", - "_id" : "connections/82465", + "_key" : "81202", + "_id" : "connections/81202", "_from" : "components/B7", "_to" : "components/B19", - "_rev" : "_e4zxNO6--D" + "_rev" : "_e9TS3o6--_" }, { - "_key" : "82467", - "_id" : "connections/82467", + "_key" : "81204", + "_id" : "connections/81204", "_from" : "components/B11", "_to" : "components/B10", - "_rev" : "_e4zxNO6--E" + "_rev" : "_e9TS3p----" }, { - "_key" : "82469", - "_id" : "connections/82469", + "_key" : "81206", + "_id" : "connections/81206", "_from" : "components/B12", "_to" : "components/B11", - "_rev" : "_e4zxNO6--F" + "_rev" : "_e9TS3p---_" }, { - "_key" : "82471", - "_id" : "connections/82471", + "_key" : "81208", + "_id" : "connections/81208", "_from" : "components/B13", "_to" : "components/B12", - "_rev" : "_e4zxNO6--G" + "_rev" : "_e9TS3pC---" }, { - "_key" : "82473", - "_id" : "connections/82473", + "_key" : "81210", + "_id" : "connections/81210", "_from" : "components/B13", "_to" : "components/B20", - "_rev" : "_e4zxNO6--H" + "_rev" : "_e9TS3pC--_" }, { - "_key" : "82475", - "_id" : "connections/82475", + "_key" : "81212", + "_id" : "connections/81212", "_from" : "components/B14", "_to" : "components/B13", - "_rev" : "_e4zxNP----" + "_rev" : "_e9TS3pG---" }, { - "_key" : "82477", - "_id" : "connections/82477", + "_key" : "81214", + "_id" : "connections/81214", "_from" : "components/B15", "_to" : "components/B14", - "_rev" : "_e4zxNP---_" + "_rev" : "_e9TS3pG--_" }, { - "_key" : "82479", - "_id" : "connections/82479", + "_key" : "81216", + "_id" : "connections/81216", "_from" : "components/B15", "_to" : "components/B16", - "_rev" : "_e4zxNP---A" + "_rev" : "_e9TS3pG--A" }, { - "_key" : "82481", - "_id" : "connections/82481", + "_key" : "81218", + "_id" : "connections/81218", "_from" : "components/B17", "_to" : "components/B15", - "_rev" : "_e4zxNP---B" + "_rev" : "_e9TS3pK---" }, { - "_key" : "82483", - "_id" : "connections/82483", + "_key" : "81220", + "_id" : "connections/81220", "_from" : "components/B17", "_to" : "components/B18", - "_rev" : "_e4zxNP---C" + "_rev" : "_e9TS3pK--_" }, { - "_key" : "82485", - "_id" : "connections/82485", + "_key" : "81222", + "_id" : "connections/81222", "_from" : "components/B19", "_to" : "components/B17", - "_rev" : "_e4zxNP---D" + "_rev" : "_e9TS3pO---" }, { - "_key" : "82487", - "_id" : "connections/82487", + "_key" : "81224", + "_id" : "connections/81224", "_from" : "components/B20", "_to" : "components/B21", - "_rev" : "_e4zxNP---E" + "_rev" : "_e9TS3pO--_" }, { - "_key" : "82489", - "_id" : "connections/82489", + "_key" : "81226", + "_id" : "connections/81226", "_from" : "components/B20", "_to" : "components/B22", - "_rev" : "_e4zxNP---F" + "_rev" : "_e9TS3pS---" }, { - "_key" : "82491", - "_id" : "connections/82491", + "_key" : "81228", + "_id" : "connections/81228", "_from" : "components/C1", "_to" : "components/C2", - "_rev" : "_e4zxNP---G" + "_rev" : "_e9TS3pS--_" }, { - "_key" : "82493", - "_id" : "connections/82493", + "_key" : "81230", + "_id" : "connections/81230", "_from" : "components/C2", "_to" : "components/C3", - "_rev" : "_e4zxNP---H" + "_rev" : "_e9TS3pS--A" }, { - "_key" : "82495", - "_id" : "connections/82495", + "_key" : "81232", + "_id" : "connections/81232", "_from" : "components/C3", "_to" : "components/C4", - "_rev" : "_e4zxNPC---" + "_rev" : "_e9TS3pW---" }, { - "_key" : "82497", - "_id" : "connections/82497", + "_key" : "81234", + "_id" : "connections/81234", "_from" : "components/C4", "_to" : "components/C5", - "_rev" : "_e4zxNPC--_" + "_rev" : "_e9TS3pW--_" }, { - "_key" : "82499", - "_id" : "connections/82499", + "_key" : "81236", + "_id" : "connections/81236", "_from" : "components/C4", "_to" : "components/C7", - "_rev" : "_e4zxNPC--A" + "_rev" : "_e9TS3pa---" }, { - "_key" : "82501", - "_id" : "connections/82501", + "_key" : "81238", + "_id" : "connections/81238", "_from" : "components/C5", "_to" : "components/C6", - "_rev" : "_e4zxNPC--B" + "_rev" : "_e9TS3pa--_" }, { - "_key" : "82503", - "_id" : "connections/82503", + "_key" : "81240", + "_id" : "connections/81240", "_from" : "components/C5", "_to" : "components/C7", - "_rev" : "_e4zxNPC--C" + "_rev" : "_e9TS3pe---" }, { - "_key" : "82505", - "_id" : "connections/82505", + "_key" : "81242", + "_id" : "connections/81242", "_from" : "components/C7", "_to" : "components/C8", - "_rev" : "_e4zxNPC--D" + "_rev" : "_e9TS3pe--_" }, { - "_key" : "82507", - "_id" : "connections/82507", + "_key" : "81244", + "_id" : "connections/81244", "_from" : "components/C8", "_to" : "components/C9", - "_rev" : "_e4zxNPC--E" + "_rev" : "_e9TS3pe--A" }, { - "_key" : "82509", - "_id" : "connections/82509", + "_key" : "81246", + "_id" : "connections/81246", "_from" : "components/C8", "_to" : "components/C10", - "_rev" : "_e4zxNPC--F" + "_rev" : "_e9TS3pi---" } ] arangosh> examples.dropGraph("connectedComponentsGraph"); @@ -15254,10 +15389,10 @@ arangosh> db.example.ensureIndex({ type: "fields" : [ "text" ], - "id" : "example/73664", + "id" : "example/72274", "isNewlyCreated" : true, "minLength" : 3, - "name" : "idx_1745944422362644481", + "name" : "idx_1747208972443582464", "sparse" : true, "type" : "fulltext", "unique" : false, @@ -15265,79 +15400,79 @@ arangosh> db.example.ensureIndex({ type: text : "the quick brown", b : { c : 1 } }); { - "_id" : "example/73668", - "_key" : "73668", - "_rev" : "_e4zxMie--A" + "_id" : "example/72278", + "_key" : "72278", + "_rev" : "_e9TS0k6---" } arangosh> db.example.save({ text : "quick brown fox", b : { c : 2 } }); { - "_id" : "example/73670", - "_key" : "73670", - "_rev" : "_e4zxMii---" + "_id" : "example/72280", + "_key" : "72280", + "_rev" : "_e9TS0l----" } arangosh> db.example.save({ text : "brown fox jums", b : { c : 3 } }); { - "_id" : "example/73672", - "_key" : "73672", - "_rev" : "_e4zxMii--_" + "_id" : "example/72282", + "_key" : "72282", + "_rev" : "_e9TS0lC---" } arangosh> db.example.save({ text : "fox jumps over", b : { c : 4 } }); { - "_id" : "example/73674", - "_key" : "73674", - "_rev" : "_e4zxMii--A" + "_id" : "example/72284", + "_key" : "72284", + "_rev" : "_e9TS0lG---" } arangosh> db.example.save({ text : "jumps over the", b : { c : 5 } }); { - "_id" : "example/73676", - "_key" : "73676", - "_rev" : "_e4zxMii--B" + "_id" : "example/72286", + "_key" : "72286", + "_rev" : "_e9TS0lK---" } arangosh> db.example.save({ text : "over the lazy", b : { c : 6 } }); { - "_id" : "example/73678", - "_key" : "73678", - "_rev" : "_e4zxMii--C" + "_id" : "example/72288", + "_key" : "72288", + "_rev" : "_e9TS0lO---" } arangosh> db.example.save({ text : "the lazy dog", b : { c : 7 } }); { - "_id" : "example/73680", - "_key" : "73680", - "_rev" : "_e4zxMii--D" + "_id" : "example/72290", + "_key" : "72290", + "_rev" : "_e9TS0lS---" } arangosh> db._query("FOR document IN FULLTEXT(example, 'text', 'the') RETURN document"); [ { - "_key" : "73668", - "_id" : "example/73668", - "_rev" : "_e4zxMie--A", + "_key" : "72278", + "_id" : "example/72278", + "_rev" : "_e9TS0k6---", "text" : "the quick brown", "b" : { "c" : 1 } }, { - "_key" : "73676", - "_id" : "example/73676", - "_rev" : "_e4zxMii--B", + "_key" : "72286", + "_id" : "example/72286", + "_rev" : "_e9TS0lK---", "text" : "jumps over the", "b" : { "c" : 5 } }, { - "_key" : "73678", - "_id" : "example/73678", - "_rev" : "_e4zxMii--C", + "_key" : "72288", + "_id" : "example/72288", + "_rev" : "_e9TS0lO---", "text" : "over the lazy", "b" : { "c" : 6 } }, { - "_key" : "73680", - "_id" : "example/73680", - "_rev" : "_e4zxMii--D", + "_key" : "72290", + "_id" : "example/72290", + "_rev" : "_e9TS0lS---", "text" : "the lazy dog", "b" : { "c" : 7 @@ -15379,11 +15514,11 @@ arangosh> db.geo.ensureIndex({ type: "loc" ], "geoJson" : false, - "id" : "geo/79414", + "id" : "geo/78151", "isNewlyCreated" : true, "legacyPolygons" : false, "maxNumCoverCells" : 8, - "name" : "idx_1745944422936215552", + "name" : "idx_1747208974925561856", "sparse" : true, "type" : "geo", "unique" : false, @@ -15417,11 +15552,11 @@ arangosh> db.geo2.ensureIndex({ type: "location.longitude" ], "geoJson" : false, - "id" : "geo2/79425", + "id" : "geo2/78162", "isNewlyCreated" : true, "legacyPolygons" : false, "maxNumCoverCells" : 8, - "name" : "idx_1745944422938312704", + "name" : "idx_1747208974934999040", "sparse" : true, "type" : "geo", "unique" : false, @@ -15455,11 +15590,11 @@ arangosh> db.geoSort.ensureIndex({ type: "longitude" ], "geoJson" : false, - "id" : "geoSort/80857", + "id" : "geoSort/79594", "isNewlyCreated" : true, "legacyPolygons" : false, "maxNumCoverCells" : 8, - "name" : "idx_1745944423014858753", + "name" : "idx_1747208975292563456", "sparse" : true, "type" : "geo", "unique" : false, @@ -15485,7 +15620,7 @@ Execution plan: Indexes used: By Name Type Collection Unique Sparse Cache Selectivity Fields Stored values Ranges - 7 idx_1745944423014858753 geo geoSort false true false n/a [ `latitude`, `longitude` ] [ ] (GEO_DISTANCE([ 0, 0 ], [ doc.`longitude`, doc.`latitude` ]) < "unlimited") + 7 idx_1747208975292563456 geo geoSort false true false n/a [ `latitude`, `longitude` ] [ ] (GEO_DISTANCE([ 0, 0 ], [ doc.`longitude`, doc.`latitude` ]) < "unlimited") Optimization rules applied: Id RuleName @@ -15498,41 +15633,41 @@ Optimization rules applied: arangosh> db._query(query); [ { - "_key" : "81563", - "_id" : "geoSort/81563", - "_rev" : "_e4zxNLa--H", + "_key" : "80300", + "_id" : "geoSort/80300", + "_rev" : "_e9TS3Yq---", "name" : "Name/0/0", "latitude" : 0, "longitude" : 0 }, { - "_key" : "81637", - "_id" : "geoSort/81637", - "_rev" : "_e4zxNLq--A", + "_key" : "80374", + "_id" : "geoSort/80374", + "_rev" : "_e9TS3Zi--_", "name" : "Name/10/0", "latitude" : 10, "longitude" : 0 }, { - "_key" : "81565", - "_id" : "geoSort/81565", - "_rev" : "_e4zxNLa--I", + "_key" : "80302", + "_id" : "geoSort/80302", + "_rev" : "_e9TS3Yq--_", "name" : "Name/0/10", "latitude" : 0, "longitude" : 10 }, { - "_key" : "81489", - "_id" : "geoSort/81489", - "_rev" : "_e4zxNLO--E", + "_key" : "80226", + "_id" : "geoSort/80226", + "_rev" : "_e9TS3Xu--_", "name" : "Name/-10/0", "latitude" : -10, "longitude" : 0 }, { - "_key" : "81561", - "_id" : "geoSort/81561", - "_rev" : "_e4zxNLa--G", + "_key" : "80298", + "_id" : "geoSort/80298", + "_rev" : "_e9TS3Ym--_", "name" : "Name/0/-10", "latitude" : 0, "longitude" : -10 @@ -15574,11 +15709,11 @@ arangosh> db.geoFilter.ensureIndex({ type: "longitude"
], "geoJson" : false, - "id" : "geoFilter/79436", + "id" : "geoFilter/78173", "isNewlyCreated" : true, "legacyPolygons" : false, "maxNumCoverCells" : 8, - "name" : "idx_1745944422940409856", + "name" : "idx_1747208974944436224", "sparse" : true, "type" : "geo", "unique" : false, @@ -15603,7 +15738,7 @@ Execution plan: Indexes used: By Name Type Collection Unique Sparse Cache Selectivity Fields Stored values Ranges - 6 idx_1745944422940409856 geo geoFilter false true false n/a [ `latitude`, `longitude` ] [ ] (GEO_DISTANCE([ 0, 0 ], [ doc.`longitude`, doc.`latitude` ]) < 2000) + 6 idx_1747208974944436224 geo geoFilter false true false n/a [ `latitude`, `longitude` ] [ ] (GEO_DISTANCE([ 0, 0 ], [ doc.`longitude`, doc.`latitude` ]) < 2000) Optimization rules applied: Id RuleName @@ -15616,9 +15751,9 @@ Optimization rules applied: arangosh> db._query(query); [ { - "_key" : "80142", - "_id" : "geoFilter/80142", - "_rev" : "_e4zxNH---G", + "_key" : "78879", + "_id" : "geoFilter/78879", + "_rev" : "_e9TS3Dy--_", "name" : "Name/0/0", "latitude" : 0, "longitude" : 0 @@ -15660,9 +15795,9 @@ arangosh> db.ids.ensureIndex({ type: "fields" : [ "myId" ], - "id" : "ids/73942", + "id" : "ids/72552", "isNewlyCreated" : true, - "name" : "idx_1745944422386761728", + "name" : "idx_1747208972550537216", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -15671,24 +15806,24 @@ arangosh> db.ids.ensureIndex({ type: "myId": 123 }); { - "_id" : "ids/73946", - "_key" : "73946", - "_rev" : "_e4zxMj6--_" + "_id" : "ids/72556", + "_key" : "72556", + "_rev" : "_e9TS0rW---" } arangosh> db.ids.save({ "myId": 456 }); { - "_id" : "ids/73948", - "_key" : "73948", - "_rev" : "_e4zxMj6--A" + "_id" : "ids/72558", + "_key" : "72558", + "_rev" : "_e9TS0ra---" } arangosh> db.ids.save({ "myId": 789 }); { - "_id" : "ids/73950", - "_key" : "73950", - "_rev" : "_e4zxMj6--B" + "_id" : "ids/72560", + "_key" : "72560", + "_rev" : "_e9TS0re---" } arangosh> db.ids.save({ "myId": 123 }); -[ArangoError 1210: unique constraint violated - in index idx_1745944422386761728 of type persistent over 'myId'; conflicting key: 73946] +[ArangoError 1210: unique constraint violated - in index idx_1747208972550537216 of type persistent over 'myId'; conflicting key: 72556]
Hide execution results
@@ -15721,9 +15856,9 @@ arangosh> db.ids.ensureIndex({ type: "name.first", "name.last" ], - "id" : "ids/73923", + "id" : "ids/72533", "isNewlyCreated" : true, - "name" : "idx_1745944422383616000", + "name" : "idx_1747208972533760000", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -15732,24 +15867,24 @@ arangosh> db.ids.ensureIndex({ type: "name" : { "first" : "hans", "last": "hansen" }}); { - "_id" : "ids/73927", - "_key" : "73927", - "_rev" : "_e4zxMju--_" + "_id" : "ids/72537", + "_key" : "72537", + "_rev" : "_e9TS0qW---" } arangosh> db.ids.save({ "name" : { "first" : "jens", "last": "jensen" }}); { - "_id" : "ids/73929", - "_key" : "73929", - "_rev" : "_e4zxMju--A" + "_id" : "ids/72539", + "_key" : "72539", + "_rev" : "_e9TS0qa---" } arangosh> db.ids.save({ "name" : { "first" : "hans", "last": "jensen" }}); { - "_id" : "ids/73931", - "_key" : "73931", - "_rev" : "_e4zxMju--B" + "_id" : "ids/72541", + "_key" : "72541", + "_rev" : "_e9TS0qe---" } arangosh> db.ids.save({ "name" : { "first" : "hans", "last": "hansen" }}); -[ArangoError 1210: unique constraint violated - in index idx_1745944422383616000 of type persistent over 'name.first, name.last'; conflicting key: 73927] +[ArangoError 1210: unique constraint violated - in index idx_1747208972533760000 of type persistent over 'name.first, name.last'; conflicting key: 72537]
Hide execution results
@@ -15781,9 +15916,9 @@ arangosh> db.names.ensureIndex({ type: "fields" : [ "first" ], - "id" : "names/73691", + "id" : "names/72301", "isNewlyCreated" : true, - "name" : "idx_1745944422367887360", + "name" : "idx_1747208972464553984", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -15792,33 +15927,33 @@ arangosh> db.names.ensureIndex({ type: "first" : "Tim" }); { - "_id" : "names/73695", - "_key" : "73695", - "_rev" : "_e4zxMiy--_" + "_id" : "names/72305", + "_key" : "72305", + "_rev" : "_e9TS0mO---" } arangosh> db.names.save({ "first" : "Tom" }); { - "_id" : "names/73697", - "_key" : "73697", - "_rev" : "_e4zxMiy--A" + "_id" : "names/72307", + "_key" : "72307", + "_rev" : "_e9TS0mS---" } arangosh> db.names.save({ "first" : "John" }); { - "_id" : "names/73699", - "_key" : "73699", - "_rev" : "_e4zxMiy--B" + "_id" : "names/72309", + "_key" : "72309", + "_rev" : "_e9TS0mS--_" } arangosh> db.names.save({ "first" : "Tim" }); { - "_id" : "names/73701", - "_key" : "73701", - "_rev" : "_e4zxMiy--C" + "_id" : "names/72311", + "_key" : "72311", + "_rev" : "_e9TS0mW---" } arangosh> db.names.save({ "first" : "Tom" }); { - "_id" : "names/73703", - "_key" : "73703", - "_rev" : "_e4zxMi2---" + "_id" : "names/72313", + "_key" : "72313", + "_rev" : "_e9TS0ma---" }
Hide execution results
@@ -15851,9 +15986,9 @@ arangosh> db.test.ensureIndex({ type: "fields" : [ "creationDate" ], - "id" : "test/73712", + "id" : "test/72322", "isNewlyCreated" : true, - "name" : "idx_1745944422371033089", + "name" : "idx_1747208972477136896", "sparse" : true, "type" : "ttl", "unique" : false, @@ -15889,9 +16024,9 @@ arangosh> db.collection.ensureIndex({ type: "_from"
, "type" ], - "id" : "collection/73963", + "id" : "collection/72573", "isNewlyCreated" : true, - "name" : "idx_1745944422389907457", + "name" : "idx_1747208972565217280", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -15927,9 +16062,9 @@ arangosh> db.test.ensureIndex({ type: "attribute", "secondAttribute.subAttribute" ], - "id" : "test/73019", + "id" : "test/71609", "isNewlyCreated" : true, - "name" : "idx_1745944422181240832", + "name" : "idx_1747208971742085120", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -15956,8 +16091,8 @@ arangosh> db.test.getIndexes(); "fields" : [ "attribute" ], - "id" : "test/73011", - "name" : "idx_1745944422180192256", + "id" : "test/71601", + "name" : "idx_1747208971737890816", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -15970,8 +16105,8 @@ arangosh> db.test.getIndexes(); "fields" : [ "uniqueAttribute" ], - "id" : "test/73015", - "name" : "idx_1745944422180192257", + "id" : "test/71605", + "name" : "idx_1747208971739987968", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -15985,8 +16120,8 @@ arangosh> db.test.getIndexes(); "attribute", "secondAttribute.subAttribute" ], - "id" : "test/73019", - "name" : "idx_1745944422181240832", + "id" : "test/71609", + "name" : "idx_1747208971742085120", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -16021,7 +16156,7 @@ arangosh> db.coll.indexes(true, "_key" ], "figures" : { - "memory" : 136, + "memory" : 68, "cacheInUse" : false, "cacheSize" : 0, "cacheUsage" : 0 @@ -16062,7 +16197,7 @@ arangosh> db.coll.indexes(true, "numFiles" : 6, "indexSize" : 727 }, - "id" : "coll/73035", + "id" : "coll/71625", "includeAllFields" : false, "name" : "inv-idx", "primarySort" : { @@ -16093,12 +16228,12 @@ arangosh> db.coll.indexes(true, "numFiles" : 6, "indexSize" : 1239 }, - "id" : "coll/73039", + "id" : "coll/71629", "includeAllFields" : true, "storeValues" : "none", "trackListPositions" : false, "type" : "arangosearch", - "view" : "hEF6AA70B1DE7/73037" + "view" : "h3E4B04F558E8/71627" } ] @@ -16128,9 +16263,9 @@ arangosh> db.test.ensureIndex({ type: "fields" : [ "a" ], - "id" : "test/72977", + "id" : "test/71567", "isNewlyCreated" : true, - "name" : "idx_1745944422162366465", + "name" : "idx_1747208971688607744", "selectivityEstimate" : 1, "sparse" : true, "type" : "persistent", @@ -16146,9 +16281,9 @@ arangosh> db.test.ensureIndex({ type: "a", "b" ], - "id" : "test/72981", + "id" : "test/71571", "isNewlyCreated" : true, - "name" : "idx_1745944422164463616", + "name" : "idx_1747208971690704896", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -16184,9 +16319,9 @@ arangosh> db.example.ensureIndex({ type: "a", "b" ], - "id" : "example/72850", + "id" : "example/71440", "isNewlyCreated" : true, - "name" : "idx_1745944422105743361", + "name" : "idx_1747208971518738432", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -16215,8 +16350,8 @@ arangosh> indexInfo; "a", "b" ], - "id" : "example/72850", - "name" : "idx_1745944422105743361", + "id" : "example/71440", + "name" : "idx_1747208971518738432", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -16292,9 +16427,9 @@ arangosh> db.example.ensureIndex({ type: "a", "b" ], - "id" : "example/67644", + "id" : "example/67645", "isNewlyCreated" : true, - "name" : "idx_1745944375693672449", + "name" : "idx_1747208911854764032", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -16305,7 +16440,7 @@ arangosh> var indexInfo = db.example.getInd arangosh> indexInfo; [ "example/0", - "example/67644" + "example/67645" ] arangosh> db._index(indexInfo[0]) { @@ -16329,8 +16464,8 @@ arangosh> db._index(indexInfo[1]) "a", "b" ], - "id" : "example/67644", - "name" : "idx_1745944375693672449", + "id" : "example/67645", + "name" : "idx_1747208911854764032", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -16369,9 +16504,9 @@ arangosh> db.example.ensureIndex({ type: "a", "b" ], - "id" : "example/73649", + "id" : "example/72259", "isNewlyCreated" : true, - "name" : "idx_1745944422359498753", + "name" : "idx_1747208972428902400", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -16400,8 +16535,8 @@ arangosh> indexInfo; "a", "b" ], - "id" : "example/73649", - "name" : "idx_1745944422359498753", + "id" : "example/72259", + "name" : "idx_1747208972428902400", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -16460,9 +16595,9 @@ arangosh> db.example.ensureIndex({ type: "a", "b" ], - "id" : "example/67658", + "id" : "example/67659", "isNewlyCreated" : true, - "name" : "idx_1745944375696818177", + "name" : "idx_1747208911870492672", "selectivityEstimate" : 1, "sparse" : false, "type" : "persistent", @@ -16481,7 +16616,7 @@ Execution plan: Indexes used: By Name Type Collection Unique Sparse Cache Selectivity Fields Stored values Ranges - 6 idx_1745944375696818177 persistent example false false false 100.00 % [ `a`, `b` ] [ ] (doc.`a` < 23) + 6 idx_1747208911870492672 persistent example false false false 100.00 % [ `a`, `b` ] [ ] (doc.`a` < 23) Optimization rules applied: Id RuleName @@ -16618,38 +16753,38 @@ arangosh> print({ a:
 arangosh> db._create("test");
-[ArangoCollection 60425, "test" (type document, status loaded)]
+[ArangoCollection 60426, "test" (type document, status loaded)]
 arangosh> for (i = 0; i < 100; ++i) { db.test.save({ value: i }); }
 arangosh> db.test.ensureIndex({ type: "persistent", fields: [ "value" ] });
 { 
@@ -18377,9 +18512,9 @@ arangosh> db.test.ensureIndex({ type: "persistent", fields: [ "
   "fields" : [ 
     "value" 
   ], 
-  "id" : "test/60630", 
+  "id" : "test/60631", 
   "isNewlyCreated" : true, 
-  "name" : "idx_1745944375004758017", 
+  "name" : "idx_1747208908839059456", 
   "selectivityEstimate" : 1, 
   "sparse" : false, 
   "type" : "persistent", 
@@ -18400,7 +18535,7 @@ Execution plan:
 
 Indexes used:
  By   Name                      Type         Collection   Unique   Sparse   Cache   Selectivity   Fields        Stored values   Ranges
-  9   idx_1745944375004758017   persistent   test         false    false    false      100.00 %   [ `value` ]   [  ]            (i.`value` > 97)
+  9   idx_1747208908839059456   persistent   test         false    false    false      100.00 %   [ `value` ]   [  ]            (i.`value` > 97)
 
 Optimization rules applied:
  Id   RuleName
@@ -18487,9 +18622,9 @@ arangosh> stmt.explain();
         "indexCoversProjections" : true, 
         "indexes" : [ 
           { 
-            "id" : "60630", 
+            "id" : "60631", 
             "type" : "persistent", 
-            "name" : "idx_1745944375004758017", 
+            "name" : "idx_1747208908839059456", 
             "fields" : [ 
               "value" 
             ], 
@@ -18801,9 +18936,9 @@ arangosh> stmt.explain({ allPlans: "indexCoversProjections" : true, 
           "indexes" : [ 
             { 
-              "id" : "60630", 
+              "id" : "60631", 
               "type" : "persistent", 
-              "name" : "idx_1745944375004758017", 
+              "name" : "idx_1747208908839059456", 
               "fields" : [ 
                 "value" 
               ], 
@@ -19560,9 +19695,9 @@ arangosh> stmt.explain({ optimizer: { "indexCoversProjections" : true, 
         "indexes" : [ 
           { 
-            "id" : "60630", 
+            "id" : "60631", 
             "type" : "persistent", 
-            "name" : "idx_1745944375004758017", 
+            "name" : "idx_1747208908839059456", 
             "fields" : [ 
               "value" 
             ], 
@@ -19809,9 +19944,9 @@ arangosh> stmt.explain({ maxNumberOfPlans: "indexCoversProjections" : true, 
         "indexes" : [ 
           { 
-            "id" : "60630", 
+            "id" : "60631", 
             "type" : "persistent", 
-            "name" : "idx_1745944375004758017", 
+            "name" : "idx_1747208908839059456", 
             "fields" : [ 
               "value" 
             ], 
@@ -20124,9 +20259,9 @@ Query String (581   SingletonNode                 1       1          0       0.00000   * ROOT
-  2   EnumerateCollectionNode       1      10       9990       0.00215     - FOR doc IN acollection   /* full collection scan  */   FILTER (doc.`value` < 10)   /* early pruning */
-  5   ReturnNode                    1      10          0       0.00000       - RETURN doc
+  1   SingletonNode                 1       1          0       0.00001   * ROOT
+  2   EnumerateCollectionNode       1      10       9990       0.00519     - FOR doc IN acollection   /* full collection scan  */   FILTER (doc.`value` < 10)   /* early pruning */
+  5   ReturnNode                    1      10          0       0.00001       - RETURN doc
 
 Indexes used:
  none
@@ -20137,18 +20272,18 @@ Optimization rules applied:
 
 Query Statistics:
  Writes Exec   Writes Ign   Scan Full   Scan Index   Cache Hits/Misses   Filtered   Peak Mem [b]   Exec Time [s]
-           0            0       10000            0               0 / 0       9990              0         0.00233
+           0            0       10000            0               0 / 0       9990              0         0.00584
 
 Query Profile:
  Query Stage           Duration [s]
  initializing               0.00001
- parsing                    0.00003
- optimizing ast             0.00000
- loading collections        0.00000
- instantiating plan         0.00001
- optimizing plan            0.00010
- executing                  0.00217
- finalizing                 0.00001
+ parsing                    0.00012
+ optimizing ast             0.00001
+ loading collections        0.00001
+ instantiating plan         0.00006
+ optimizing plan            0.00038
+ executing                  0.00524
+ finalizing                 0.00003
 
 
 
@@ -20186,13 +20321,13 @@ Query String (58
1 SingletonNode 1 1 0 0.00000 * ROOT - 6 IndexNode 1 10 0 0.00005 - FOR doc IN acollection /* persistent index scan, index scan + document lookup */ - 5 ReturnNode 1 10 0 0.00000 - RETURN doc + 1 SingletonNode 1 1 0 0.00002 * ROOT + 6 IndexNode 1 10 0 0.00018 - FOR doc IN acollection /* persistent index scan, index scan + document lookup */ + 5 ReturnNode 1 10 0 0.00001 - RETURN doc Indexes used: By Name Type Collection Unique Sparse Cache Selectivity Fields Stored values Ranges - 6 idx_1745944373108932609 persistent acollection false false false 100.00 % [ `value` ] [ ] (doc.`value` < 10) + 6 idx_1747208901116297216 persistent acollection false false false 100.00 % [ `value` ] [ ] (doc.`value` < 10) Optimization rules applied: Id RuleName @@ -20202,18 +20337,18 @@ Optimization rules applied: Query Statistics: Writes Exec Writes Ign Scan Full Scan Index Cache Hits/Misses Filtered Peak Mem [b] Exec Time [s] - 0 0 0 10 0 / 0 0 0 0.00022 + 0 0 0 10 0 / 0 0 0 0.00084 Query Profile: Query Stage Duration [s] initializing 0.00001 - parsing 0.00002 - optimizing ast 0.00000 - loading collections 0.00000 - instantiating plan 0.00001 - optimizing plan 0.00011 - executing 0.00006 - finalizing 0.00001 + parsing 0.00009 + optimizing ast 0.00001 + loading collections 0.00001 + instantiating plan 0.00004 + optimizing plan 0.00042 + executing 0.00023 + finalizing 0.00004 @@ -20253,16 +20388,16 @@ Query String (116 chars, cacheable: false): Execution plan: Id NodeType Calls Items Filtered Runtime [s] Comment - 1 SingletonNode 1 1 0 0.00000 * ROOT - 12 SubqueryStartNode 1 2 0 0.00001 - LET list = ( /* subquery begin */ - 3 EnumerateCollectionNode 11 10001 0 0.00228 - FOR doc IN acollection /* full collection scan */ - 4 CalculationNode 11 10001 0 0.00166 - LET #5 = (doc.`value` > 90) /* simple expression */ /* collections used: doc : acollection */ - 5 FilterNode 10 9910 91 0.00140 - FILTER #5 - 13 SubqueryEndNode 1 1 0 0.00103 - RETURN doc ) /* subquery end */ - 8 EnumerateListNode 10 9909 0 0.00110 - FOR a IN list /* list iteration */ - 9 CalculationNode 10 9909 0 0.00161 - LET #7 = (a.`value` < 91) /* simple expression */ - 10 FilterNode 1 0 9909 0.00025 - FILTER #7 - 11 ReturnNode 1 0 0 0.00000 - RETURN a + 1 SingletonNode 1 1 0 0.00002 * ROOT + 12 SubqueryStartNode 1 2 0 0.00002 - LET list = ( /* subquery begin */ + 3 EnumerateCollectionNode 11 10001 0 0.00485 - FOR doc IN acollection /* full collection scan */ + 4 CalculationNode 11 10001 0 0.00337 - LET #5 = (doc.`value` > 90) /* simple expression */ /* collections used: doc : acollection */ + 5 FilterNode 10 9910 91 0.00301 - FILTER #5 + 13 SubqueryEndNode 1 1 0 0.00204 - RETURN doc ) /* subquery end */ + 8 EnumerateListNode 10 9909 0 0.00227 - FOR a IN list /* list iteration */ + 9 CalculationNode 10 9909 0 0.00314 - LET #7 = (a.`value` < 91) /* simple expression */ + 10 FilterNode 1 0 9909 0.00064 - FILTER #7 + 11 ReturnNode 1 0 0 0.00001 - RETURN a Indexes used: none @@ -20273,18 +20408,18 @@ Optimization rules applied: Query Statistics: Writes Exec Writes Ign Scan Full Scan Index Cache Hits/Misses Filtered Peak Mem [b] Exec Time [s] - 0 0 10000 0 0 / 0 10000 720896 0.00956 + 0 0 10000 0 0 / 0 10000 720896 0.01995 Query Profile: Query Stage Duration [s] initializing 0.00001 - parsing 0.00003 - optimizing ast 0.00001 + parsing 0.00010 + optimizing ast 0.00002 loading collections 0.00000 - instantiating plan 0.00002 - optimizing plan 0.00013 - executing 0.00936 - finalizing 0.00002 + instantiating plan 0.00006 + optimizing plan 0.00034 + executing 0.01939 + finalizing 0.00005 @@ -20335,14 +20470,14 @@ Query String (186 chars, cacheable: false): Execution plan: Id NodeType Calls Items Filtered Runtime [s] Comment - 1 SingletonNode 1 1 0 0.00000 * ROOT - 2 EnumerateCollectionNode 1 20 0 0.00003 - FOR u IN myusers /* full collection scan (projections: `age`) */ - 3 CalculationNode 1 20 0 0.00001 - LET #5 = (FLOOR((u.`age` / 10)) * 10) /* simple expression */ /* collections used: u : myusers */ - 4 CalculationNode 1 20 0 0.00000 - LET #7 = u.`age` /* attribute expression */ /* collections used: u : myusers */ - 6 CollectNode 1 8 0 0.00002 - COLLECT ageGroup = #5 AGGREGATE minAge = MIN(#7), maxAge = MAX(#7), len = LENGTH() /* hash */ - 9 SortNode 1 8 0 0.00002 - SORT ageGroup ASC /* sorting strategy: standard */ - 7 CalculationNode 1 8 0 0.00001 - LET #11 = { "ageGroup" : ageGroup, "minAge" : minAge, "maxAge" : maxAge, "len" : len } /* simple expression */ - 8 ReturnNode 1 8 0 0.00000 - RETURN #11 + 1 SingletonNode 1 1 0 0.00001 * ROOT + 2 EnumerateCollectionNode 1 20 0 0.00006 - FOR u IN myusers /* full collection scan (projections: `age`) */ + 3 CalculationNode 1 20 0 0.00003 - LET #5 = (FLOOR((u.`age` / 10)) * 10) /* simple expression */ /* collections used: u : myusers */ + 4 CalculationNode 1 20 0 0.00001 - LET #7 = u.`age` /* attribute expression */ /* collections used: u : myusers */ + 6 CollectNode 1 8 0 0.00007 - COLLECT ageGroup = #5 AGGREGATE minAge = MIN(#7), maxAge = MAX(#7), len = LENGTH() /* hash */ + 9 SortNode 1 8 0 0.00007 - SORT ageGroup ASC /* sorting strategy: standard */ + 7 CalculationNode 1 8 0 0.00003 - LET #11 = { "ageGroup" : ageGroup, "minAge" : minAge, "maxAge" : maxAge, "len" : len } /* simple expression */ + 8 ReturnNode 1 8 0 0.00001 - RETURN #11 Indexes used: none @@ -20358,18 +20493,18 @@ Optimization rules applied: Query Statistics: Writes Exec Writes Ign Scan Full Scan Index Cache Hits/Misses Filtered Peak Mem [b] Exec Time [s] - 0 0 20 0 0 / 0 0 65536 0.00038 + 0 0 20 0 0 / 0 0 65536 0.00116 Query Profile: Query Stage Duration [s] initializing 0.00000 - parsing 0.00004 - optimizing ast 0.00001 - loading collections 0.00000 - instantiating plan 0.00001 - optimizing plan 0.00022 - executing 0.00009 - finalizing 0.00001 + parsing 0.00012 + optimizing ast 0.00002 + loading collections 0.00001 + instantiating plan 0.00004 + optimizing plan 0.00068 + executing 0.00028 + finalizing 0.00004 @@ -20405,9 +20540,9 @@ arangosh> db._query(` ........> FOR i IN 1..@count INSERT ........> { _key: CONCAT('anothertest', TO_STRING(i)) } ........> INTO mycollection`, -........> {count: 100}, +........> { count: 100 }, ........> {}, -........> {fullCount: true} +........> { fullCount: true } ........> ).getExtra(); { "warnings" : [ ], @@ -20423,17 +20558,17 @@ arangosh> db._query(` "filtered" : 0, "httpRequests" : 0, "fullCount" : 0, - "executionTime" : 0.0008148289998644032, + "executionTime" : 0.0036831439938396215, "peakMemoryUsage" : 32768, "intermediateCommits" : 0 } } arangosh> db._query({ -........> "query": `FOR i IN 200..@count INSERT -........> { _key: CONCAT('anothertest', TO_STRING(i)) } -........> INTO mycollection`, -........> "bindVars": {count: 300}, -........> "options": { fullCount: true} +........> "query": `FOR i IN 200..@count INSERT +........> { _key: CONCAT('anothertest', TO_STRING(i)) } +........> INTO mycollection`, +........> "bindVars": { count: 300 }, +........> "options": { fullCount: true } ........> }).getExtra(); { "warnings" : [ ], @@ -20449,7 +20584,7 @@ arangosh> db._query({ "filtered" : 0, "httpRequests" : 0, "fullCount" : 0, - "executionTime" : 0.0008457439998892369, + "executionTime" : 0.0035242538433521986, "peakMemoryUsage" : 32768, "intermediateCommits" : 0 } @@ -20462,16 +20597,16 @@ arangosh> db._query(` ........> FOR i IN 1..@count INSERT ........> { _key: CONCAT('anothertest', TO_STRING(i)) } ........> INTO mycollection`, -........> {count: 100}, +........> { count: 100 }, ........> {}, -........> {fullCount: true} +........> { fullCount: true } ........> ).getExtra(); arangosh> db._query({ -........> "query": `FOR i IN 200..@count INSERT -........> { _key: CONCAT('anothertest', TO_STRING(i)) } -........> INTO mycollection`, -........> "bindVars": {count: 300}, -........> "options": { fullCount: true} +........> "query": `FOR i IN 200..@count INSERT +........> { _key: CONCAT('anothertest', TO_STRING(i)) } +........> INTO mycollection`, +........> "bindVars": { count: 300 }, +........> "options": { fullCount: true } ........> }).getExtra();
Show execution results
@@ -20873,39 +21008,39 @@ RETURN INTERLEAVE(p.vertices[*]._id, p.edges[*]._id) [ [ "places/Toronto", - "connections/72004", + "connections/70594", "places/Winnipeg" ], [ "places/Toronto", - "connections/72004", + "connections/70594", "places/Winnipeg", - "connections/72008", + "connections/70598", "places/Saskatoon" ], [ "places/Toronto", - "connections/72004", + "connections/70594", "places/Winnipeg", - "connections/72008", + "connections/70598", "places/Saskatoon", - "connections/72012", + "connections/70602", "places/Edmonton" ], [ "places/Toronto", - "connections/72004", + "connections/70594", "places/Winnipeg", - "connections/72008", + "connections/70598", "places/Saskatoon", - "connections/72010", + "connections/70600", "places/Winnipeg" ], [ "places/Toronto", - "connections/72004", + "connections/70594", "places/Winnipeg", - "connections/72006", + "connections/70596", "places/Toronto" ] ] @@ -23277,7 +23412,7 @@ RETURN UNSHIFT( [ 1,
 [
   {
-    "local": "2022-10-06T14:19:13.086",
+    "local": "2022-10-20T13:18:41.006",
     "tzdb": "2022a",
     "zoneInfo": {
       "name": "WAT",
@@ -23433,29 +23568,29 @@ RETURN UNSHIFT( [ 1, 
 
@@ -25578,13 +25713,13 @@ RETURN GEO_MULTIPOLYGON([ { "_key": "alice", "_id": "persons/alice", - "_rev": "_e4zwgiy---", + "_rev": "_e9TR50y---", "name": "Alice" }, { "_key": "bob", "_id": "persons/bob", - "_rev": "_e4zwgiy--_", + "_rev": "_e9TR50y--_", "name": "Bob" } ] @@ -25620,13 +25755,13 @@ RETURN GEO_MULTIPOLYGON([ { "_key": "alice", "_id": "persons/alice", - "_rev": "_e4zwgjC---", + "_rev": "_e9TR52G---", "name": "Alice" }, { "_key": "bob", "_id": "persons/bob", - "_rev": "_e4zwgjC--_", + "_rev": "_e9TR52K---", "name": "Bob" } ] @@ -25667,7 +25802,7 @@ RETURN GEO_MULTIPOLYGON([ { "_key": "alice", "_id": "persons/alice", - "_rev": "_e4zwgjS---", + "_rev": "_e9TR53a---", "name": "Alice" } ] @@ -25717,13 +25852,13 @@ RETURN GEO_MULTIPOLYGON([ { "_key": "alice", "_id": "persons/alice", - "_rev": "_e4zwgji--A", + "_rev": "_e9TR54y---", "name": "Alice" }, { "_key": "bob", "_id": "persons/bob", - "_rev": "_e4zwgji--B", + "_rev": "_e9TR542---", "name": "Bob" } ] @@ -25767,7 +25902,7 @@ RETURN GEO_MULTIPOLYGON([ { "_key": "alice", "_id": "persons/alice", - "_rev": "_e4zwgj2---", + "_rev": "_e9TR56----", "name": "Alice" } ] @@ -25802,13 +25937,13 @@ RETURN GEO_MULTIPOLYGON([ { "_key": "alice", "_id": "persons/alice", - "_rev": "_e4zwgkG---", + "_rev": "_e9TR57S---", "name": "Alice" }, { "_key": "bob", "_id": "persons/bob", - "_rev": "_e4zwgkG--_", + "_rev": "_e9TR57W---", "name": "Bob" } ] @@ -25848,7 +25983,7 @@ RETURN GEO_MULTIPOLYGON([ { "_key": "alice", "_id": "persons/alice", - "_rev": "_e4zwgkW---", + "_rev": "_e9TR58q---", "name": "Alice" } ] @@ -25896,13 +26031,13 @@ RETURN GEO_MULTIPOLYGON([ { "_key": "alice", "_id": "persons/alice", - "_rev": "_e4zwgi---A", + "_rev": "_e9TR5w2---", "name": "Alice" }, { "_key": "bob", "_id": "persons/bob", - "_rev": "_e4zwgi---B", + "_rev": "_e9TR5w2--_", "name": "Bob" } ] @@ -25950,7 +26085,7 @@ RETURN GEO_MULTIPOLYGON([ { "_key": "bob", "_id": "persons/bob", - "_rev": "_e4zwgiS--_", + "_rev": "_e9TR5yO---", "name": "Bob" } ] @@ -26035,13 +26170,13 @@ RETURN GEO_MULTIPOLYGON([
Query:
-    RETURN MINHASH_ERROR(0.05)
+    RETURN MINHASH_COUNT(0.05)
 
 
Query results:
 [
-  null
+  400
 ]
@@ -27970,8 +28105,8 @@ RETURN [
 [
   [
-    "XdQwZp0r",
-    "KrsQn9jo"
+    "90hGBpi6",
+    "TVJ9QYPE"
   ]
 ]
Hide query result
@@ -29512,9 +29647,9 @@ FOR i IN 1..3 Query results:
 [
-  "b2ed5fa2-7e24-426f-b58d-9edbfe9e0a5f",
-  "2cd2b648-42c2-46f4-8567-32e4fcc78a40",
-  "66f6d4cf-e0e9-4f62-a57c-e6a51b25b307"
+  "6a8a5d0c-1614-4ae3-9781-5c215e88d8f5",
+  "b3aae1d9-12ab-4957-9fba-302bd4eb1f96",
+  "c228e530-f4d4-4277-b6d2-82c674937481"
 ]
Hide query result
@@ -29544,400 +29679,400 @@ arangosh> db.places.toArray(); { "_key" : "Inverness", "_id" : "places/Inverness", - "_rev" : "_e4zwglG--A", + "_rev" : "_e9TR6A2---", "label" : "Inverness" }, { "_key" : "Aberdeen", "_id" : "places/Aberdeen", - "_rev" : "_e4zwglK---", + "_rev" : "_e9TR6A2--_", "label" : "Aberdeen" }, { "_key" : "Leuchars", "_id" : "places/Leuchars", - "_rev" : "_e4zwglK--_", + "_rev" : "_e9TR6A6---", "label" : "Leuchars" }, { "_key" : "StAndrews", "_id" : "places/StAndrews", - "_rev" : "_e4zwglK--A", + "_rev" : "_e9TR6A6--_", "label" : "StAndrews" }, { "_key" : "Edinburgh", "_id" : "places/Edinburgh", - "_rev" : "_e4zwglO---", + "_rev" : "_e9TR6B----", "label" : "Edinburgh" }, { "_key" : "Glasgow", "_id" : "places/Glasgow", - "_rev" : "_e4zwglO--_", + "_rev" : "_e9TR6B---_", "label" : "Glasgow" }, { "_key" : "York", "_id" : "places/York", - "_rev" : "_e4zwglO--A", + "_rev" : "_e9TR6B---A", "label" : "York" }, { "_key" : "Carlisle", "_id" : "places/Carlisle", - "_rev" : "_e4zwglO--B", + "_rev" : "_e9TR6BC---", "label" : "Carlisle" }, { "_key" : "Birmingham", "_id" : "places/Birmingham", - "_rev" : "_e4zwglO--C", + "_rev" : "_e9TR6BC--_", "label" : "Birmingham" }, { "_key" : "London", "_id" : "places/London", - "_rev" : "_e4zwglO--D", + "_rev" : "_e9TR6BG---", "label" : "London" }, { "_key" : "Brussels", "_id" : "places/Brussels", - "_rev" : "_e4zwglO--E", + "_rev" : "_e9TR6BG--_", "label" : "Brussels" }, { "_key" : "Cologne", "_id" : "places/Cologne", - "_rev" : "_e4zwglO--F", + "_rev" : "_e9TR6BG--A", "label" : "Cologne" }, { "_key" : "Toronto", "_id" : "places/Toronto", - "_rev" : "_e4zwglO--G", + "_rev" : "_e9TR6BK---", "label" : "Toronto" }, { "_key" : "Winnipeg", "_id" : "places/Winnipeg", - "_rev" : "_e4zwglO--H", + "_rev" : "_e9TR6BK--_", "label" : "Winnipeg" }, { "_key" : "Saskatoon", "_id" : "places/Saskatoon", - "_rev" : "_e4zwglO--I", + "_rev" : "_e9TR6BK--A", "label" : "Saskatoon" }, { "_key" : "Edmonton", "_id" : "places/Edmonton", - "_rev" : "_e4zwglO--J", + "_rev" : "_e9TR6BO---", "label" : "Edmonton" }, { "_key" : "Jasper", "_id" : "places/Jasper", - "_rev" : "_e4zwglS---", + "_rev" : "_e9TR6BO--_", "label" : "Jasper" }, { "_key" : "Vancouver", "_id" : "places/Vancouver", - "_rev" : "_e4zwglS--_", + "_rev" : "_e9TR6BS---", "label" : "Vancouver" } ] arangosh> db.connections.toArray(); [ { - "_key" : "62090", - "_id" : "connections/62090", + "_key" : "62091", + "_id" : "connections/62091", "_from" : "places/Inverness", "_to" : "places/Aberdeen", - "_rev" : "_e4zwglS--A", + "_rev" : "_e9TR6BS--_", "travelTime" : 3 }, { - "_key" : "62092", - "_id" : "connections/62092", + "_key" : "62093", + "_id" : "connections/62093", "_from" : "places/Aberdeen", "_to" : "places/Inverness", - "_rev" : "_e4zwglS--B", + "_rev" : "_e9TR6BS--A", "travelTime" : 2.5 }, { - "_key" : "62094", - "_id" : "connections/62094", + "_key" : "62095", + "_id" : "connections/62095", "_from" : "places/Aberdeen", "_to" : "places/Leuchars", - "_rev" : "_e4zwglS--C", + "_rev" : "_e9TR6BW---", "travelTime" : 1.5 }, { - "_key" : "62096", - "_id" : "connections/62096", + "_key" : "62097", + "_id" : "connections/62097", "_from" : "places/Leuchars", "_to" : "places/Aberdeen", - "_rev" : "_e4zwglS--D", + "_rev" : "_e9TR6BW--_", "travelTime" : 1 }, { - "_key" : "62098", - "_id" : "connections/62098", + "_key" : "62099", + "_id" : "connections/62099", "_from" : "places/Leuchars", "_to" : "places/Edinburgh", - "_rev" : "_e4zwglS--E", + "_rev" : "_e9TR6Ba---", "travelTime" : 1.5 }, { - "_key" : "62100", - "_id" : "connections/62100", + "_key" : "62101", + "_id" : "connections/62101", "_from" : "places/Edinburgh", "_to" : "places/Leuchars", - "_rev" : "_e4zwglS--F", + "_rev" : "_e9TR6Ba--_", "travelTime" : 3 }, { - "_key" : "62102", - "_id" : "connections/62102", + "_key" : "62103", + "_id" : "connections/62103", "_from" : "places/Edinburgh", "_to" : "places/Glasgow", - "_rev" : "_e4zwglS--G", + "_rev" : "_e9TR6Be---", "travelTime" : 1 }, { - "_key" : "62104", - "_id" : "connections/62104", + "_key" : "62105", + "_id" : "connections/62105", "_from" : "places/Glasgow", "_to" : "places/Edinburgh", - "_rev" : "_e4zwglS--H", + "_rev" : "_e9TR6Be--_", "travelTime" : 1 }, { - "_key" : "62106", - "_id" : "connections/62106", + "_key" : "62107", + "_id" : "connections/62107", "_from" : "places/Edinburgh", "_to" : "places/York", - "_rev" : "_e4zwglS--I", + "_rev" : "_e9TR6Bi---", "travelTime" : 3.5 }, { - "_key" : "62108", - "_id" : "connections/62108", + "_key" : "62109", + "_id" : "connections/62109", "_from" : "places/York", "_to" : "places/Edinburgh", - "_rev" : "_e4zwglW---", + "_rev" : "_e9TR6Bi--_", "travelTime" : 4 }, { - "_key" : "62110", - "_id" : "connections/62110", + "_key" : "62111", + "_id" : "connections/62111", "_from" : "places/Glasgow", "_to" : "places/Carlisle", - "_rev" : "_e4zwglW--_", + "_rev" : "_e9TR6Bi--A", "travelTime" : 1 }, { - "_key" : "62112", - "_id" : "connections/62112", + "_key" : "62113", + "_id" : "connections/62113", "_from" : "places/Carlisle", "_to" : "places/Glasgow", - "_rev" : "_e4zwglW--A", + "_rev" : "_e9TR6Bm---", "travelTime" : 1 }, { - "_key" : "62114", - "_id" : "connections/62114", + "_key" : "62115", + "_id" : "connections/62115", "_from" : "places/Carlisle", "_to" : "places/York", - "_rev" : "_e4zwglW--B", + "_rev" : "_e9TR6Bm--_", "travelTime" : 2.5 }, { - "_key" : "62116", - "_id" : "connections/62116", + "_key" : "62117", + "_id" : "connections/62117", "_from" : "places/York", "_to" : "places/Carlisle", - "_rev" : "_e4zwglW--C", + "_rev" : "_e9TR6Bq---", "travelTime" : 3.5 }, { - "_key" : "62118", - "_id" : "connections/62118", + "_key" : "62119", + "_id" : "connections/62119", "_from" : "places/Carlisle", "_to" : "places/Birmingham", - "_rev" : "_e4zwglW--D", + "_rev" : "_e9TR6Bq--_", "travelTime" : 2 }, { - "_key" : "62120", - "_id" : "connections/62120", + "_key" : "62121", + "_id" : "connections/62121", "_from" : "places/Birmingham", "_to" : "places/Carlisle", - "_rev" : "_e4zwglW--E", + "_rev" : "_e9TR6Bu---", "travelTime" : 1 }, { - "_key" : "62122", - "_id" : "connections/62122", + "_key" : "62123", + "_id" : "connections/62123", "_from" : "places/Birmingham", "_to" : "places/London", - "_rev" : "_e4zwglW--F", + "_rev" : "_e9TR6Bu--_", "travelTime" : 1.5 }, { - "_key" : "62124", - "_id" : "connections/62124", + "_key" : "62125", + "_id" : "connections/62125", "_from" : "places/London", "_to" : "places/Birmingham", - "_rev" : "_e4zwglW--G", + "_rev" : "_e9TR6By---", "travelTime" : 2.5 }, { - "_key" : "62126", - "_id" : "connections/62126", + "_key" : "62127", + "_id" : "connections/62127", "_from" : "places/Leuchars", "_to" : "places/StAndrews", - "_rev" : "_e4zwglW--H", + "_rev" : "_e9TR6By--_", "travelTime" : 0.2 }, { - "_key" : "62128", - "_id" : "connections/62128", + "_key" : "62129", + "_id" : "connections/62129", "_from" : "places/StAndrews", "_to" : "places/Leuchars", - "_rev" : "_e4zwgla---", + "_rev" : "_e9TR6B2---", "travelTime" : 0.2 }, { - "_key" : "62130", - "_id" : "connections/62130", + "_key" : "62131", + "_id" : "connections/62131", "_from" : "places/York", "_to" : "places/London", - "_rev" : "_e4zwgla--_", + "_rev" : "_e9TR6B2--_", "travelTime" : 1.8 }, { - "_key" : "62132", - "_id" : "connections/62132", + "_key" : "62133", + "_id" : "connections/62133", "_from" : "places/London", "_to" : "places/York", - "_rev" : "_e4zwgla--A", + "_rev" : "_e9TR6B6---", "travelTime" : 2 }, { - "_key" : "62134", - "_id" : "connections/62134", + "_key" : "62135", + "_id" : "connections/62135", "_from" : "places/London", "_to" : "places/Brussels", - "_rev" : "_e4zwgla--B", + "_rev" : "_e9TR6B6--_", "travelTime" : 2.5 }, { - "_key" : "62136", - "_id" : "connections/62136", + "_key" : "62137", + "_id" : "connections/62137", "_from" : "places/Brussels", "_to" : "places/London", - "_rev" : "_e4zwgla--C", + "_rev" : "_e9TR6C----", "travelTime" : 3.5 }, { - "_key" : "62138", - "_id" : "connections/62138", + "_key" : "62139", + "_id" : "connections/62139", "_from" : "places/Brussels", "_to" : "places/Cologne", - "_rev" : "_e4zwgla--D", + "_rev" : "_e9TR6C---_", "travelTime" : 2 }, { - "_key" : "62140", - "_id" : "connections/62140", + "_key" : "62141", + "_id" : "connections/62141", "_from" : "places/Cologne", "_to" : "places/Brussels", - "_rev" : "_e4zwgla--E", + "_rev" : "_e9TR6CC---", "travelTime" : 1.5 }, { - "_key" : "62142", - "_id" : "connections/62142", + "_key" : "62143", + "_id" : "connections/62143", "_from" : "places/Toronto", "_to" : "places/Winnipeg", - "_rev" : "_e4zwgla--F", + "_rev" : "_e9TR6CC--_", "travelTime" : 36 }, { - "_key" : "62144", - "_id" : "connections/62144", + "_key" : "62145", + "_id" : "connections/62145", "_from" : "places/Winnipeg", "_to" : "places/Toronto", - "_rev" : "_e4zwgla--G", + "_rev" : "_e9TR6CG---", "travelTime" : 35 }, { - "_key" : "62146", - "_id" : "connections/62146", + "_key" : "62147", + "_id" : "connections/62147", "_from" : "places/Winnipeg", "_to" : "places/Saskatoon", - "_rev" : "_e4zwgla--H", + "_rev" : "_e9TR6CG--_", "travelTime" : 12 }, { - "_key" : "62148", - "_id" : "connections/62148", + "_key" : "62149", + "_id" : "connections/62149", "_from" : "places/Saskatoon", "_to" : "places/Winnipeg", - "_rev" : "_e4zwgla--I", + "_rev" : "_e9TR6CG--A", "travelTime" : 5 }, { - "_key" : "62150", - "_id" : "connections/62150", + "_key" : "62151", + "_id" : "connections/62151", "_from" : "places/Saskatoon", "_to" : "places/Edmonton", - "_rev" : "_e4zwgle---", + "_rev" : "_e9TR6CK---", "travelTime" : 12 }, { - "_key" : "62152", - "_id" : "connections/62152", + "_key" : "62153", + "_id" : "connections/62153", "_from" : "places/Edmonton", "_to" : "places/Saskatoon", - "_rev" : "_e4zwgle--_", + "_rev" : "_e9TR6CK--_", "travelTime" : 17 }, { - "_key" : "62154", - "_id" : "connections/62154", + "_key" : "62155", + "_id" : "connections/62155", "_from" : "places/Edmonton", "_to" : "places/Jasper", - "_rev" : "_e4zwgle--A", + "_rev" : "_e9TR6CO---", "travelTime" : 6 }, { - "_key" : "62156", - "_id" : "connections/62156", + "_key" : "62157", + "_id" : "connections/62157", "_from" : "places/Jasper", "_to" : "places/Edmonton", - "_rev" : "_e4zwgle--B", + "_rev" : "_e9TR6CO--_", "travelTime" : 5 }, { - "_key" : "62158", - "_id" : "connections/62158", + "_key" : "62159", + "_id" : "connections/62159", "_from" : "places/Jasper", "_to" : "places/Vancouver", - "_rev" : "_e4zwgle--C", + "_rev" : "_e9TR6CS---", "travelTime" : 12 }, { - "_key" : "62160", - "_id" : "connections/62160", + "_key" : "62161", + "_id" : "connections/62161", "_from" : "places/Vancouver", "_to" : "places/Jasper", - "_rev" : "_e4zwgle--D", + "_rev" : "_e9TR6CS--_", "travelTime" : 13 } ] @@ -30152,400 +30287,400 @@ arangosh> db.places.toArray(); { "_key" : "Inverness", "_id" : "places/Inverness", - "_rev" : "_e4zwgoS--A", + "_rev" : "_e9TR6PO---", "label" : "Inverness" }, { "_key" : "Aberdeen", "_id" : "places/Aberdeen", - "_rev" : "_e4zwgoW---", + "_rev" : "_e9TR6PS---", "label" : "Aberdeen" }, { "_key" : "Leuchars", "_id" : "places/Leuchars", - "_rev" : "_e4zwgoW--_", + "_rev" : "_e9TR6PS--_", "label" : "Leuchars" }, { "_key" : "StAndrews", "_id" : "places/StAndrews", - "_rev" : "_e4zwgoW--A", + "_rev" : "_e9TR6PW---", "label" : "StAndrews" }, { "_key" : "Edinburgh", "_id" : "places/Edinburgh", - "_rev" : "_e4zwgoW--B", + "_rev" : "_e9TR6Pa---", "label" : "Edinburgh" }, { "_key" : "Glasgow", "_id" : "places/Glasgow", - "_rev" : "_e4zwgoW--C", + "_rev" : "_e9TR6Pe---", "label" : "Glasgow" }, { "_key" : "York", "_id" : "places/York", - "_rev" : "_e4zwgoW--D", + "_rev" : "_e9TR6Pe--_", "label" : "York" }, { "_key" : "Carlisle", "_id" : "places/Carlisle", - "_rev" : "_e4zwgoW--E", + "_rev" : "_e9TR6Pi---", "label" : "Carlisle" }, { "_key" : "Birmingham", "_id" : "places/Birmingham", - "_rev" : "_e4zwgoW--F", + "_rev" : "_e9TR6Pi--_", "label" : "Birmingham" }, { "_key" : "London", "_id" : "places/London", - "_rev" : "_e4zwgoW--G", + "_rev" : "_e9TR6Pm---", "label" : "London" }, { "_key" : "Brussels", "_id" : "places/Brussels", - "_rev" : "_e4zwgoW--H", + "_rev" : "_e9TR6Pm--_", "label" : "Brussels" }, { "_key" : "Cologne", "_id" : "places/Cologne", - "_rev" : "_e4zwgoW--I", + "_rev" : "_e9TR6Pq---", "label" : "Cologne" }, { "_key" : "Toronto", "_id" : "places/Toronto", - "_rev" : "_e4zwgoa---", + "_rev" : "_e9TR6Pq--_", "label" : "Toronto" }, { "_key" : "Winnipeg", "_id" : "places/Winnipeg", - "_rev" : "_e4zwgoa--_", + "_rev" : "_e9TR6Pu---", "label" : "Winnipeg" }, { "_key" : "Saskatoon", "_id" : "places/Saskatoon", - "_rev" : "_e4zwgoa--A", + "_rev" : "_e9TR6Pu--_", "label" : "Saskatoon" }, { "_key" : "Edmonton", "_id" : "places/Edmonton", - "_rev" : "_e4zwgoa--B", + "_rev" : "_e9TR6Py---", "label" : "Edmonton" }, { "_key" : "Jasper", "_id" : "places/Jasper", - "_rev" : "_e4zwgoa--C", + "_rev" : "_e9TR6Py--_", "label" : "Jasper" }, { "_key" : "Vancouver", "_id" : "places/Vancouver", - "_rev" : "_e4zwgoa--D", + "_rev" : "_e9TR6Py--A", "label" : "Vancouver" } ] arangosh> db.connections.toArray(); [ { - "_key" : "62738", - "_id" : "connections/62738", + "_key" : "62739", + "_id" : "connections/62739", "_from" : "places/Inverness", "_to" : "places/Aberdeen", - "_rev" : "_e4zwgoa--E", + "_rev" : "_e9TR6P2---", "travelTime" : 3 }, { - "_key" : "62740", - "_id" : "connections/62740", + "_key" : "62741", + "_id" : "connections/62741", "_from" : "places/Aberdeen", "_to" : "places/Inverness", - "_rev" : "_e4zwgoa--F", + "_rev" : "_e9TR6P2--_", "travelTime" : 2.5 }, { - "_key" : "62742", - "_id" : "connections/62742", + "_key" : "62743", + "_id" : "connections/62743", "_from" : "places/Aberdeen", "_to" : "places/Leuchars", - "_rev" : "_e4zwgoa--G", + "_rev" : "_e9TR6P6---", "travelTime" : 1.5 }, { - "_key" : "62744", - "_id" : "connections/62744", + "_key" : "62745", + "_id" : "connections/62745", "_from" : "places/Leuchars", "_to" : "places/Aberdeen", - "_rev" : "_e4zwgoa--H", + "_rev" : "_e9TR6P6--_", "travelTime" : 1 }, { - "_key" : "62746", - "_id" : "connections/62746", + "_key" : "62747", + "_id" : "connections/62747", "_from" : "places/Leuchars", "_to" : "places/Edinburgh", - "_rev" : "_e4zwgoa--I", + "_rev" : "_e9TR6Q----", "travelTime" : 1.5 }, { - "_key" : "62748", - "_id" : "connections/62748", + "_key" : "62749", + "_id" : "connections/62749", "_from" : "places/Edinburgh", "_to" : "places/Leuchars", - "_rev" : "_e4zwgoe---", + "_rev" : "_e9TR6Q---_", "travelTime" : 3 }, { - "_key" : "62750", - "_id" : "connections/62750", + "_key" : "62751", + "_id" : "connections/62751", "_from" : "places/Edinburgh", "_to" : "places/Glasgow", - "_rev" : "_e4zwgoe--_", + "_rev" : "_e9TR6QC---", "travelTime" : 1 }, { - "_key" : "62752", - "_id" : "connections/62752", + "_key" : "62753", + "_id" : "connections/62753", "_from" : "places/Glasgow", "_to" : "places/Edinburgh", - "_rev" : "_e4zwgoe--A", + "_rev" : "_e9TR6QC--_", "travelTime" : 1 }, { - "_key" : "62754", - "_id" : "connections/62754", + "_key" : "62755", + "_id" : "connections/62755", "_from" : "places/Edinburgh", "_to" : "places/York", - "_rev" : "_e4zwgoe--B", + "_rev" : "_e9TR6QG---", "travelTime" : 3.5 }, { - "_key" : "62756", - "_id" : "connections/62756", + "_key" : "62757", + "_id" : "connections/62757", "_from" : "places/York", "_to" : "places/Edinburgh", - "_rev" : "_e4zwgoe--C", + "_rev" : "_e9TR6QG--_", "travelTime" : 4 }, { - "_key" : "62758", - "_id" : "connections/62758", + "_key" : "62759", + "_id" : "connections/62759", "_from" : "places/Glasgow", "_to" : "places/Carlisle", - "_rev" : "_e4zwgoe--D", + "_rev" : "_e9TR6QK---", "travelTime" : 1 }, { - "_key" : "62760", - "_id" : "connections/62760", + "_key" : "62761", + "_id" : "connections/62761", "_from" : "places/Carlisle", "_to" : "places/Glasgow", - "_rev" : "_e4zwgoe--E", + "_rev" : "_e9TR6QK--_", "travelTime" : 1 }, { - "_key" : "62762", - "_id" : "connections/62762", + "_key" : "62763", + "_id" : "connections/62763", "_from" : "places/Carlisle", "_to" : "places/York", - "_rev" : "_e4zwgoe--F", + "_rev" : "_e9TR6QO---", "travelTime" : 2.5 }, { - "_key" : "62764", - "_id" : "connections/62764", + "_key" : "62765", + "_id" : "connections/62765", "_from" : "places/York", "_to" : "places/Carlisle", - "_rev" : "_e4zwgoe--G", + "_rev" : "_e9TR6QO--_", "travelTime" : 3.5 }, { - "_key" : "62766", - "_id" : "connections/62766", + "_key" : "62767", + "_id" : "connections/62767", "_from" : "places/Carlisle", "_to" : "places/Birmingham", - "_rev" : "_e4zwgoe--H", + "_rev" : "_e9TR6QO--A", "travelTime" : 2 }, { - "_key" : "62768", - "_id" : "connections/62768", + "_key" : "62769", + "_id" : "connections/62769", "_from" : "places/Birmingham", "_to" : "places/Carlisle", - "_rev" : "_e4zwgoe--I", + "_rev" : "_e9TR6QS---", "travelTime" : 1 }, { - "_key" : "62770", - "_id" : "connections/62770", + "_key" : "62771", + "_id" : "connections/62771", "_from" : "places/Birmingham", "_to" : "places/London", - "_rev" : "_e4zwgoi---", + "_rev" : "_e9TR6QS--_", "travelTime" : 1.5 }, { - "_key" : "62772", - "_id" : "connections/62772", + "_key" : "62773", + "_id" : "connections/62773", "_from" : "places/London", "_to" : "places/Birmingham", - "_rev" : "_e4zwgoi--_", + "_rev" : "_e9TR6QW---", "travelTime" : 2.5 }, { - "_key" : "62774", - "_id" : "connections/62774", + "_key" : "62775", + "_id" : "connections/62775", "_from" : "places/Leuchars", "_to" : "places/StAndrews", - "_rev" : "_e4zwgoi--A", + "_rev" : "_e9TR6QW--_", "travelTime" : 0.2 }, { - "_key" : "62776", - "_id" : "connections/62776", + "_key" : "62777", + "_id" : "connections/62777", "_from" : "places/StAndrews", "_to" : "places/Leuchars", - "_rev" : "_e4zwgoi--B", + "_rev" : "_e9TR6Qa---", "travelTime" : 0.2 }, { - "_key" : "62778", - "_id" : "connections/62778", + "_key" : "62779", + "_id" : "connections/62779", "_from" : "places/York", "_to" : "places/London", - "_rev" : "_e4zwgoi--C", + "_rev" : "_e9TR6Qa--_", "travelTime" : 1.8 }, { - "_key" : "62780", - "_id" : "connections/62780", + "_key" : "62781", + "_id" : "connections/62781", "_from" : "places/London", "_to" : "places/York", - "_rev" : "_e4zwgoi--D", + "_rev" : "_e9TR6Qe---", "travelTime" : 2 }, { - "_key" : "62782", - "_id" : "connections/62782", + "_key" : "62783", + "_id" : "connections/62783", "_from" : "places/London", "_to" : "places/Brussels", - "_rev" : "_e4zwgoi--E", + "_rev" : "_e9TR6Qe--_", "travelTime" : 2.5 }, { - "_key" : "62784", - "_id" : "connections/62784", + "_key" : "62785", + "_id" : "connections/62785", "_from" : "places/Brussels", "_to" : "places/London", - "_rev" : "_e4zwgoi--F", + "_rev" : "_e9TR6Qe--A", "travelTime" : 3.5 }, { - "_key" : "62786", - "_id" : "connections/62786", + "_key" : "62787", + "_id" : "connections/62787", "_from" : "places/Brussels", "_to" : "places/Cologne", - "_rev" : "_e4zwgoi--G", + "_rev" : "_e9TR6Qi---", "travelTime" : 2 }, { - "_key" : "62788", - "_id" : "connections/62788", + "_key" : "62789", + "_id" : "connections/62789", "_from" : "places/Cologne", "_to" : "places/Brussels", - "_rev" : "_e4zwgoi--H", + "_rev" : "_e9TR6Qi--_", "travelTime" : 1.5 }, { - "_key" : "62790", - "_id" : "connections/62790", + "_key" : "62791", + "_id" : "connections/62791", "_from" : "places/Toronto", "_to" : "places/Winnipeg", - "_rev" : "_e4zwgoi--I", + "_rev" : "_e9TR6Qm---", "travelTime" : 36 }, { - "_key" : "62792", - "_id" : "connections/62792", + "_key" : "62793", + "_id" : "connections/62793", "_from" : "places/Winnipeg", "_to" : "places/Toronto", - "_rev" : "_e4zwgom---", + "_rev" : "_e9TR6Qm--_", "travelTime" : 35 }, { - "_key" : "62794", - "_id" : "connections/62794", + "_key" : "62795", + "_id" : "connections/62795", "_from" : "places/Winnipeg", "_to" : "places/Saskatoon", - "_rev" : "_e4zwgom--_", + "_rev" : "_e9TR6Qq---", "travelTime" : 12 }, { - "_key" : "62796", - "_id" : "connections/62796", + "_key" : "62797", + "_id" : "connections/62797", "_from" : "places/Saskatoon", "_to" : "places/Winnipeg", - "_rev" : "_e4zwgom--A", + "_rev" : "_e9TR6Qq--_", "travelTime" : 5 }, { - "_key" : "62798", - "_id" : "connections/62798", + "_key" : "62799", + "_id" : "connections/62799", "_from" : "places/Saskatoon", "_to" : "places/Edmonton", - "_rev" : "_e4zwgom--B", + "_rev" : "_e9TR6Qu---", "travelTime" : 12 }, { - "_key" : "62800", - "_id" : "connections/62800", + "_key" : "62801", + "_id" : "connections/62801", "_from" : "places/Edmonton", "_to" : "places/Saskatoon", - "_rev" : "_e4zwgom--C", + "_rev" : "_e9TR6Qu--_", "travelTime" : 17 }, { - "_key" : "62802", - "_id" : "connections/62802", + "_key" : "62803", + "_id" : "connections/62803", "_from" : "places/Edmonton", "_to" : "places/Jasper", - "_rev" : "_e4zwgom--D", + "_rev" : "_e9TR6Qu--A", "travelTime" : 6 }, { - "_key" : "62804", - "_id" : "connections/62804", + "_key" : "62805", + "_id" : "connections/62805", "_from" : "places/Jasper", "_to" : "places/Edmonton", - "_rev" : "_e4zwgom--E", + "_rev" : "_e9TR6Qy---", "travelTime" : 5 }, { - "_key" : "62806", - "_id" : "connections/62806", + "_key" : "62807", + "_id" : "connections/62807", "_from" : "places/Jasper", "_to" : "places/Vancouver", - "_rev" : "_e4zwgom--F", + "_rev" : "_e9TR6Qy--_", "travelTime" : 12 }, { - "_key" : "62808", - "_id" : "connections/62808", + "_key" : "62809", + "_id" : "connections/62809", "_from" : "places/Vancouver", "_to" : "places/Jasper", - "_rev" : "_e4zwgom--G", + "_rev" : "_e9TR6Q2---", "travelTime" : 13 } ] @@ -30720,400 +30855,400 @@ arangosh> db.places.toArray(); { "_key" : "Inverness", "_id" : "places/Inverness", - "_rev" : "_e4zwgqa---", + "_rev" : "_e9TR6Y2---", "label" : "Inverness" }, { "_key" : "Aberdeen", "_id" : "places/Aberdeen", - "_rev" : "_e4zwgqa--_", + "_rev" : "_e9TR6Y2--_", "label" : "Aberdeen" }, { "_key" : "Leuchars", "_id" : "places/Leuchars", - "_rev" : "_e4zwgqa--A", + "_rev" : "_e9TR6Y6---", "label" : "Leuchars" }, { "_key" : "StAndrews", "_id" : "places/StAndrews", - "_rev" : "_e4zwgqa--B", + "_rev" : "_e9TR6Z----", "label" : "StAndrews" }, { "_key" : "Edinburgh", "_id" : "places/Edinburgh", - "_rev" : "_e4zwgqa--C", + "_rev" : "_e9TR6Z---_", "label" : "Edinburgh" }, { "_key" : "Glasgow", "_id" : "places/Glasgow", - "_rev" : "_e4zwgqa--D", + "_rev" : "_e9TR6ZC---", "label" : "Glasgow" }, { "_key" : "York", "_id" : "places/York", - "_rev" : "_e4zwgqa--E", + "_rev" : "_e9TR6ZC--_", "label" : "York" }, { "_key" : "Carlisle", "_id" : "places/Carlisle", - "_rev" : "_e4zwgqa--F", + "_rev" : "_e9TR6ZG---", "label" : "Carlisle" }, { "_key" : "Birmingham", "_id" : "places/Birmingham", - "_rev" : "_e4zwgqa--G", + "_rev" : "_e9TR6ZG--_", "label" : "Birmingham" }, { "_key" : "London", "_id" : "places/London", - "_rev" : "_e4zwgqa--H", + "_rev" : "_e9TR6ZK---", "label" : "London" }, { "_key" : "Brussels", "_id" : "places/Brussels", - "_rev" : "_e4zwgqa--I", + "_rev" : "_e9TR6ZK--_", "label" : "Brussels" }, { "_key" : "Cologne", "_id" : "places/Cologne", - "_rev" : "_e4zwgqe---", + "_rev" : "_e9TR6ZO---", "label" : "Cologne" }, { "_key" : "Toronto", "_id" : "places/Toronto", - "_rev" : "_e4zwgqe--_", + "_rev" : "_e9TR6ZO--_", "label" : "Toronto" }, { "_key" : "Winnipeg", "_id" : "places/Winnipeg", - "_rev" : "_e4zwgqe--A", + "_rev" : "_e9TR6ZS---", "label" : "Winnipeg" }, { "_key" : "Saskatoon", "_id" : "places/Saskatoon", - "_rev" : "_e4zwgqe--B", + "_rev" : "_e9TR6ZS--_", "label" : "Saskatoon" }, { "_key" : "Edmonton", "_id" : "places/Edmonton", - "_rev" : "_e4zwgqe--C", + "_rev" : "_e9TR6ZS--A", "label" : "Edmonton" }, { "_key" : "Jasper", "_id" : "places/Jasper", - "_rev" : "_e4zwgqe--D", + "_rev" : "_e9TR6ZW---", "label" : "Jasper" }, { "_key" : "Vancouver", "_id" : "places/Vancouver", - "_rev" : "_e4zwgqe--E", + "_rev" : "_e9TR6ZW--_", "label" : "Vancouver" } ] arangosh> db.connections.toArray(); [ { - "_key" : "63128", - "_id" : "connections/63128", + "_key" : "63129", + "_id" : "connections/63129", "_from" : "places/Inverness", "_to" : "places/Aberdeen", - "_rev" : "_e4zwgqe--F", + "_rev" : "_e9TR6Za---", "travelTime" : 3 }, { - "_key" : "63130", - "_id" : "connections/63130", + "_key" : "63131", + "_id" : "connections/63131", "_from" : "places/Aberdeen", "_to" : "places/Inverness", - "_rev" : "_e4zwgqe--G", + "_rev" : "_e9TR6Za--_", "travelTime" : 2.5 }, { - "_key" : "63132", - "_id" : "connections/63132", + "_key" : "63133", + "_id" : "connections/63133", "_from" : "places/Aberdeen", "_to" : "places/Leuchars", - "_rev" : "_e4zwgqe--H", + "_rev" : "_e9TR6Ze---", "travelTime" : 1.5 }, { - "_key" : "63134", - "_id" : "connections/63134", + "_key" : "63135", + "_id" : "connections/63135", "_from" : "places/Leuchars", "_to" : "places/Aberdeen", - "_rev" : "_e4zwgqe--I", + "_rev" : "_e9TR6Ze--_", "travelTime" : 1 }, { - "_key" : "63136", - "_id" : "connections/63136", + "_key" : "63137", + "_id" : "connections/63137", "_from" : "places/Leuchars", "_to" : "places/Edinburgh", - "_rev" : "_e4zwgqi---", + "_rev" : "_e9TR6Zi---", "travelTime" : 1.5 }, { - "_key" : "63138", - "_id" : "connections/63138", + "_key" : "63139", + "_id" : "connections/63139", "_from" : "places/Edinburgh", "_to" : "places/Leuchars", - "_rev" : "_e4zwgqi--_", + "_rev" : "_e9TR6Zi--_", "travelTime" : 3 }, { - "_key" : "63140", - "_id" : "connections/63140", + "_key" : "63141", + "_id" : "connections/63141", "_from" : "places/Edinburgh", "_to" : "places/Glasgow", - "_rev" : "_e4zwgqi--A", + "_rev" : "_e9TR6Zm---", "travelTime" : 1 }, { - "_key" : "63142", - "_id" : "connections/63142", + "_key" : "63143", + "_id" : "connections/63143", "_from" : "places/Glasgow", "_to" : "places/Edinburgh", - "_rev" : "_e4zwgqi--B", + "_rev" : "_e9TR6Zm--_", "travelTime" : 1 }, { - "_key" : "63144", - "_id" : "connections/63144", + "_key" : "63145", + "_id" : "connections/63145", "_from" : "places/Edinburgh", "_to" : "places/York", - "_rev" : "_e4zwgqi--C", + "_rev" : "_e9TR6Zq---", "travelTime" : 3.5 }, { - "_key" : "63146", - "_id" : "connections/63146", + "_key" : "63147", + "_id" : "connections/63147", "_from" : "places/York", "_to" : "places/Edinburgh", - "_rev" : "_e4zwgqi--D", + "_rev" : "_e9TR6Zq--_", "travelTime" : 4 }, { - "_key" : "63148", - "_id" : "connections/63148", + "_key" : "63149", + "_id" : "connections/63149", "_from" : "places/Glasgow", "_to" : "places/Carlisle", - "_rev" : "_e4zwgqi--E", + "_rev" : "_e9TR6Zu---", "travelTime" : 1 }, { - "_key" : "63150", - "_id" : "connections/63150", + "_key" : "63151", + "_id" : "connections/63151", "_from" : "places/Carlisle", "_to" : "places/Glasgow", - "_rev" : "_e4zwgqi--F", + "_rev" : "_e9TR6Zu--_", "travelTime" : 1 }, { - "_key" : "63152", - "_id" : "connections/63152", + "_key" : "63153", + "_id" : "connections/63153", "_from" : "places/Carlisle", "_to" : "places/York", - "_rev" : "_e4zwgqi--G", + "_rev" : "_e9TR6Zy---", "travelTime" : 2.5 }, { - "_key" : "63154", - "_id" : "connections/63154", + "_key" : "63155", + "_id" : "connections/63155", "_from" : "places/York", "_to" : "places/Carlisle", - "_rev" : "_e4zwgqi--H", + "_rev" : "_e9TR6Zy--_", "travelTime" : 3.5 }, { - "_key" : "63156", - "_id" : "connections/63156", + "_key" : "63157", + "_id" : "connections/63157", "_from" : "places/Carlisle", "_to" : "places/Birmingham", - "_rev" : "_e4zwgqi--I", + "_rev" : "_e9TR6Z2---", "travelTime" : 2 }, { - "_key" : "63158", - "_id" : "connections/63158", + "_key" : "63159", + "_id" : "connections/63159", "_from" : "places/Birmingham", "_to" : "places/Carlisle", - "_rev" : "_e4zwgqm---", + "_rev" : "_e9TR6Z2--_", "travelTime" : 1 }, { - "_key" : "63160", - "_id" : "connections/63160", + "_key" : "63161", + "_id" : "connections/63161", "_from" : "places/Birmingham", "_to" : "places/London", - "_rev" : "_e4zwgqm--_", + "_rev" : "_e9TR6Z6---", "travelTime" : 1.5 }, { - "_key" : "63162", - "_id" : "connections/63162", + "_key" : "63163", + "_id" : "connections/63163", "_from" : "places/London", "_to" : "places/Birmingham", - "_rev" : "_e4zwgqm--A", + "_rev" : "_e9TR6Z6--_", "travelTime" : 2.5 }, { - "_key" : "63164", - "_id" : "connections/63164", + "_key" : "63165", + "_id" : "connections/63165", "_from" : "places/Leuchars", "_to" : "places/StAndrews", - "_rev" : "_e4zwgqm--B", + "_rev" : "_e9TR6a----", "travelTime" : 0.2 }, { - "_key" : "63166", - "_id" : "connections/63166", + "_key" : "63167", + "_id" : "connections/63167", "_from" : "places/StAndrews", "_to" : "places/Leuchars", - "_rev" : "_e4zwgqm--C", + "_rev" : "_e9TR6a---_", "travelTime" : 0.2 }, { - "_key" : "63168", - "_id" : "connections/63168", + "_key" : "63169", + "_id" : "connections/63169", "_from" : "places/York", "_to" : "places/London", - "_rev" : "_e4zwgqm--D", + "_rev" : "_e9TR6aC---", "travelTime" : 1.8 }, { - "_key" : "63170", - "_id" : "connections/63170", + "_key" : "63171", + "_id" : "connections/63171", "_from" : "places/London", "_to" : "places/York", - "_rev" : "_e4zwgqm--E", + "_rev" : "_e9TR6aC--_", "travelTime" : 2 }, { - "_key" : "63172", - "_id" : "connections/63172", + "_key" : "63173", + "_id" : "connections/63173", "_from" : "places/London", "_to" : "places/Brussels", - "_rev" : "_e4zwgqm--F", + "_rev" : "_e9TR6aG---", "travelTime" : 2.5 }, { - "_key" : "63174", - "_id" : "connections/63174", + "_key" : "63175", + "_id" : "connections/63175", "_from" : "places/Brussels", "_to" : "places/London", - "_rev" : "_e4zwgqm--G", + "_rev" : "_e9TR6aG--_", "travelTime" : 3.5 }, { - "_key" : "63176", - "_id" : "connections/63176", + "_key" : "63177", + "_id" : "connections/63177", "_from" : "places/Brussels", "_to" : "places/Cologne", - "_rev" : "_e4zwgqm--H", + "_rev" : "_e9TR6aK---", "travelTime" : 2 }, { - "_key" : "63178", - "_id" : "connections/63178", + "_key" : "63179", + "_id" : "connections/63179", "_from" : "places/Cologne", "_to" : "places/Brussels", - "_rev" : "_e4zwgqq---", + "_rev" : "_e9TR6aK--_", "travelTime" : 1.5 }, { - "_key" : "63180", - "_id" : "connections/63180", + "_key" : "63181", + "_id" : "connections/63181", "_from" : "places/Toronto", "_to" : "places/Winnipeg", - "_rev" : "_e4zwgqq--_", + "_rev" : "_e9TR6aK--A", "travelTime" : 36 }, { - "_key" : "63182", - "_id" : "connections/63182", + "_key" : "63183", + "_id" : "connections/63183", "_from" : "places/Winnipeg", "_to" : "places/Toronto", - "_rev" : "_e4zwgqq--A", + "_rev" : "_e9TR6aO---", "travelTime" : 35 }, { - "_key" : "63184", - "_id" : "connections/63184", + "_key" : "63185", + "_id" : "connections/63185", "_from" : "places/Winnipeg", "_to" : "places/Saskatoon", - "_rev" : "_e4zwgqq--B", + "_rev" : "_e9TR6aO--_", "travelTime" : 12 }, { - "_key" : "63186", - "_id" : "connections/63186", + "_key" : "63187", + "_id" : "connections/63187", "_from" : "places/Saskatoon", "_to" : "places/Winnipeg", - "_rev" : "_e4zwgqq--C", + "_rev" : "_e9TR6aS---", "travelTime" : 5 }, { - "_key" : "63188", - "_id" : "connections/63188", + "_key" : "63189", + "_id" : "connections/63189", "_from" : "places/Saskatoon", "_to" : "places/Edmonton", - "_rev" : "_e4zwgqq--D", + "_rev" : "_e9TR6aS--_", "travelTime" : 12 }, { - "_key" : "63190", - "_id" : "connections/63190", + "_key" : "63191", + "_id" : "connections/63191", "_from" : "places/Edmonton", "_to" : "places/Saskatoon", - "_rev" : "_e4zwgqq--E", + "_rev" : "_e9TR6aW---", "travelTime" : 17 }, { - "_key" : "63192", - "_id" : "connections/63192", + "_key" : "63193", + "_id" : "connections/63193", "_from" : "places/Edmonton", "_to" : "places/Jasper", - "_rev" : "_e4zwgqq--F", + "_rev" : "_e9TR6aW--_", "travelTime" : 6 }, { - "_key" : "63194", - "_id" : "connections/63194", + "_key" : "63195", + "_id" : "connections/63195", "_from" : "places/Jasper", "_to" : "places/Edmonton", - "_rev" : "_e4zwgqq--G", + "_rev" : "_e9TR6aW--A", "travelTime" : 5 }, { - "_key" : "63196", - "_id" : "connections/63196", + "_key" : "63197", + "_id" : "connections/63197", "_from" : "places/Jasper", "_to" : "places/Vancouver", - "_rev" : "_e4zwgqq--H", + "_rev" : "_e9TR6aa---", "travelTime" : 12 }, { - "_key" : "63198", - "_id" : "connections/63198", + "_key" : "63199", + "_id" : "connections/63199", "_from" : "places/Vancouver", "_to" : "places/Jasper", - "_rev" : "_e4zwgqq--I", + "_rev" : "_e9TR6aa--_", "travelTime" : 13 } ] @@ -31506,168 +31641,168 @@ arangosh> db.circles.toArray(); { "_key" : "A", "_id" : "circles/A", - "_rev" : "_e4zwgty---", + "_rev" : "_e9TR6n6---", "label" : "1" }, { "_key" : "B", "_id" : "circles/B", - "_rev" : "_e4zwgty--_", + "_rev" : "_e9TR6o----", "label" : "2" }, { "_key" : "C", "_id" : "circles/C", - "_rev" : "_e4zwgty--A", + "_rev" : "_e9TR6o---_", "label" : "3" }, { "_key" : "D", "_id" : "circles/D", - "_rev" : "_e4zwgty--B", + "_rev" : "_e9TR6oC---", "label" : "4" }, { "_key" : "E", "_id" : "circles/E", - "_rev" : "_e4zwgty--C", + "_rev" : "_e9TR6oG---", "label" : "5" }, { "_key" : "F", "_id" : "circles/F", - "_rev" : "_e4zwgty--D", + "_rev" : "_e9TR6oG--_", "label" : "6" }, { "_key" : "G", "_id" : "circles/G", - "_rev" : "_e4zwgty--E", + "_rev" : "_e9TR6oK---", "label" : "7" }, { "_key" : "H", "_id" : "circles/H", - "_rev" : "_e4zwgty--F", + "_rev" : "_e9TR6oK--_", "label" : "8" }, { "_key" : "I", "_id" : "circles/I", - "_rev" : "_e4zwgty--G", + "_rev" : "_e9TR6oO---", "label" : "9" }, { "_key" : "J", "_id" : "circles/J", - "_rev" : "_e4zwgty--H", + "_rev" : "_e9TR6oO--_", "label" : "10" }, { "_key" : "K", "_id" : "circles/K", - "_rev" : "_e4zwgt2---", + "_rev" : "_e9TR6oO--A", "label" : "11" } ] arangosh> db.edges.toArray(); [ { - "_key" : "63769", - "_id" : "edges/63769", + "_key" : "63770", + "_id" : "edges/63770", "_from" : "circles/A", "_to" : "circles/B", - "_rev" : "_e4zwgt2--_", + "_rev" : "_e9TR6oS---", "theFalse" : false, "theTruth" : true, "label" : "left_bar" }, { - "_key" : "63771", - "_id" : "edges/63771", + "_key" : "63772", + "_id" : "edges/63772", "_from" : "circles/B", "_to" : "circles/C", - "_rev" : "_e4zwgt2--A", + "_rev" : "_e9TR6oW---", "theFalse" : false, "theTruth" : true, "label" : "left_blarg" }, { - "_key" : "63773", - "_id" : "edges/63773", + "_key" : "63774", + "_id" : "edges/63774", "_from" : "circles/C", "_to" : "circles/D", - "_rev" : "_e4zwgt2--B", + "_rev" : "_e9TR6oW--_", "theFalse" : false, "theTruth" : true, "label" : "left_blorg" }, { - "_key" : "63775", - "_id" : "edges/63775", + "_key" : "63776", + "_id" : "edges/63776", "_from" : "circles/B", "_to" : "circles/E", - "_rev" : "_e4zwgt2--C", + "_rev" : "_e9TR6oW--A", "theFalse" : false, "theTruth" : true, "label" : "left_blub" }, { - "_key" : "63777", - "_id" : "edges/63777", + "_key" : "63778", + "_id" : "edges/63778", "_from" : "circles/E", "_to" : "circles/F", - "_rev" : "_e4zwgt2--D", + "_rev" : "_e9TR6oa---", "theFalse" : false, "theTruth" : true, "label" : "left_schubi" }, { - "_key" : "63779", - "_id" : "edges/63779", + "_key" : "63780", + "_id" : "edges/63780", "_from" : "circles/A", "_to" : "circles/G", - "_rev" : "_e4zwgt2--E", + "_rev" : "_e9TR6oa--_", "theFalse" : false, "theTruth" : true, "label" : "right_foo" }, { - "_key" : "63781", - "_id" : "edges/63781", + "_key" : "63782", + "_id" : "edges/63782", "_from" : "circles/G", "_to" : "circles/H", - "_rev" : "_e4zwgt2--F", + "_rev" : "_e9TR6oe---", "theFalse" : false, "theTruth" : true, "label" : "right_blob" }, { - "_key" : "63783", - "_id" : "edges/63783", + "_key" : "63784", + "_id" : "edges/63784", "_from" : "circles/H", "_to" : "circles/I", - "_rev" : "_e4zwgt2--G", + "_rev" : "_e9TR6oi---", "theFalse" : false, "theTruth" : true, "label" : "right_blub" }, { - "_key" : "63785", - "_id" : "edges/63785", + "_key" : "63786", + "_id" : "edges/63786", "_from" : "circles/G", "_to" : "circles/J", - "_rev" : "_e4zwgt2--H", + "_rev" : "_e9TR6oi--_", "theFalse" : false, "theTruth" : true, "label" : "right_zip" }, { - "_key" : "63787", - "_id" : "edges/63787", + "_key" : "63788", + "_id" : "edges/63788", "_from" : "circles/J", "_to" : "circles/K", - "_rev" : "_e4zwgt6---", + "_rev" : "_e9TR6om---", "theFalse" : false, "theTruth" : true, "label" : "right_zup" @@ -31703,15 +31838,15 @@ arangosh> db._query("FOR v, e IN OUTBOUND SHOR ], [ "B", - "63769" + "63770" ], [ "C", - "63771" + "63772" ], [ "D", - "63773" + "63774" ] ] [object ArangoQueryCursor, count: 4, cached: false, hasMore: false] @@ -31723,15 +31858,15 @@ arangosh> db._query("FOR v, e IN OUTBOUND SHOR ], [ "B", - "63769" + "63770" ], [ "C", - "63771" + "63772" ], [ "D", - "63773" + "63774" ] ] [object ArangoQueryCursor, count: 4, cached: false, hasMore: false] @@ -31763,15 +31898,15 @@ arangosh> db._query("FOR a IN circles FILTER a ], [ "B", - "63769" + "63770" ], [ "C", - "63771" + "63772" ], [ "D", - "63773" + "63774" ] ] [object ArangoQueryCursor, count: 4, cached: false, hasMore: false] @@ -31783,15 +31918,15 @@ arangosh> db._query("FOR a IN circles FILTER a ], [ "B", - "63769" + "63770" ], [ "C", - "63771" + "63772" ], [ "D", - "63773" + "63774" ] ] [object ArangoQueryCursor, count: 4, cached: false, hasMore: false] @@ -32629,168 +32764,168 @@ arangosh> db.circles.toArray(); { "_key" : "A", "_id" : "circles/A", - "_rev" : "_e4zwgvW---", + "_rev" : "_e9TR6rS---", "label" : "1" }, { "_key" : "B", "_id" : "circles/B", - "_rev" : "_e4zwgvW--_", + "_rev" : "_e9TR6rW---", "label" : "2" }, { "_key" : "C", "_id" : "circles/C", - "_rev" : "_e4zwgvW--A", + "_rev" : "_e9TR6ra---", "label" : "3" }, { "_key" : "D", "_id" : "circles/D", - "_rev" : "_e4zwgvW--C", + "_rev" : "_e9TR6re---", "label" : "4" }, { "_key" : "E", "_id" : "circles/E", - "_rev" : "_e4zwgvi---", + "_rev" : "_e9TR6ri---", "label" : "5" }, { "_key" : "F", "_id" : "circles/F", - "_rev" : "_e4zwgvi--_", + "_rev" : "_e9TR6rm---", "label" : "6" }, { "_key" : "G", "_id" : "circles/G", - "_rev" : "_e4zwgvi--A", + "_rev" : "_e9TR6rm--_", "label" : "7" }, { "_key" : "H", "_id" : "circles/H", - "_rev" : "_e4zwgvm---", + "_rev" : "_e9TR6rq---", "label" : "8" }, { "_key" : "I", "_id" : "circles/I", - "_rev" : "_e4zwgvm--_", + "_rev" : "_e9TR6ru---", "label" : "9" }, { "_key" : "J", "_id" : "circles/J", - "_rev" : "_e4zwgvm--A", + "_rev" : "_e9TR6ru--_", "label" : "10" }, { "_key" : "K", "_id" : "circles/K", - "_rev" : "_e4zwgvm--B", + "_rev" : "_e9TR6ry---", "label" : "11" } ] arangosh> db.edges.toArray(); [ { - "_key" : "63854", - "_id" : "edges/63854", + "_key" : "63855", + "_id" : "edges/63855", "_from" : "circles/A", "_to" : "circles/B", - "_rev" : "_e4zwgvm--C", + "_rev" : "_e9TR6r2---", "theFalse" : false, "theTruth" : true, "label" : "left_bar" }, { - "_key" : "63856", - "_id" : "edges/63856", + "_key" : "63857", + "_id" : "edges/63857", "_from" : "circles/B", "_to" : "circles/C", - "_rev" : "_e4zwgvm--D", + "_rev" : "_e9TR6r2--_", "theFalse" : false, "theTruth" : true, "label" : "left_blarg" }, { - "_key" : "63858", - "_id" : "edges/63858", + "_key" : "63859", + "_id" : "edges/63859", "_from" : "circles/C", "_to" : "circles/D", - "_rev" : "_e4zwgvm--E", + "_rev" : "_e9TR6r6---", "theFalse" : false, "theTruth" : true, "label" : "left_blorg" }, { - "_key" : "63860", - "_id" : "edges/63860", + "_key" : "63861", + "_id" : "edges/63861", "_from" : "circles/B", "_to" : "circles/E", - "_rev" : "_e4zwgvm--F", + "_rev" : "_e9TR6s----", "theFalse" : false, "theTruth" : true, "label" : "left_blub" }, { - "_key" : "63862", - "_id" : "edges/63862", + "_key" : "63863", + "_id" : "edges/63863", "_from" : "circles/E", "_to" : "circles/F", - "_rev" : "_e4zwgvm--G", + "_rev" : "_e9TR6s---_", "theFalse" : false, "theTruth" : true, "label" : "left_schubi" }, { - "_key" : "63864", - "_id" : "edges/63864", + "_key" : "63865", + "_id" : "edges/63865", "_from" : "circles/A", "_to" : "circles/G", - "_rev" : "_e4zwgvm--H", + "_rev" : "_e9TR6sC---", "theFalse" : false, "theTruth" : true, "label" : "right_foo" }, { - "_key" : "63866", - "_id" : "edges/63866", + "_key" : "63867", + "_id" : "edges/63867", "_from" : "circles/G", "_to" : "circles/H", - "_rev" : "_e4zwgvq---", + "_rev" : "_e9TR6sG---", "theFalse" : false, "theTruth" : true, "label" : "right_blob" }, { - "_key" : "63868", - "_id" : "edges/63868", + "_key" : "63869", + "_id" : "edges/63869", "_from" : "circles/H", "_to" : "circles/I", - "_rev" : "_e4zwgvq--_", + "_rev" : "_e9TR6sG--_", "theFalse" : false, "theTruth" : true, "label" : "right_blub" }, { - "_key" : "63870", - "_id" : "edges/63870", + "_key" : "63871", + "_id" : "edges/63871", "_from" : "circles/G", "_to" : "circles/J", - "_rev" : "_e4zwgvq--A", + "_rev" : "_e9TR6sK---", "theFalse" : false, "theTruth" : true, "label" : "right_zip" }, { - "_key" : "63872", - "_id" : "edges/63872", + "_key" : "63873", + "_id" : "edges/63873", "_from" : "circles/J", "_to" : "circles/K", - "_rev" : "_e4zwgvq--B", + "_rev" : "_e9TR6sO---", "theFalse" : false, "theTruth" : true, "label" : "right_zup" @@ -33357,7 +33492,7 @@ arangosh> db.mycollection.save({ _key: "_id" : "mycollection/testKey", "_key" : "testKey", - "_rev" : "_e4zwdDi--_" + "_rev" : "_e9TRt8y---" } arangosh> db._query('FOR my IN mycollection RETURN my._key').toArray() [ @@ -33384,8 +33519,7 @@ arangosh> db._query('FOR my IN mycollection RE
-arangosh> db._query(
-........> 'FOR c IN @@collection FILTER c._key == @key RETURN c._key', {
+arangosh> db._query('FOR c IN @@collection FILTER c._key == @key RETURN c._key', {
 ........>   '@collection': 'mycollection', 
 ........>   'key': 'testKey'
 ........> }).toArray();
@@ -33399,6 +33533,35 @@ arangosh> db._query(
     @endDocuBlock 02_workWithAQL_bindValues
 
 
+
+    @startDocuBlockInline 02_workWithAQL_aqlTemplateString
+
+
+
+ +
+
+arangosh> var key = 'testKey';
+arangosh> aql`FOR c IN mycollection FILTER c._key == ${key} RETURN c._key`
+
Show execution results
+
+
+ + @endDocuBlock 02_workWithAQL_aqlTemplateString + + @startDocuBlockInline 02_workWithAQL_aqlQuery @@ -33408,7 +33571,7 @@ arangosh> db._query(
 arangosh> var key = 'testKey';
 arangosh> db._query(
-........> aql`FOR c IN mycollection FILTER c._key == ${key} RETURN c._key`
+........>   aql`FOR c IN mycollection FILTER c._key == ${key} RETURN c._key`
 ........> ).toArray();
 [ 
   "testKey" 
@@ -33428,13 +33591,12 @@ arangosh> db._query(
 
 
@@ -33460,8 +33621,7 @@ arangosh> db._query(aql`FOR doc IN
 arangosh> db._query(`FOR i IN 1..100
-........>             INSERT { _key: CONCAT('test', TO_STRING(i)) }
-........>                INTO mycollection`
+........>   INSERT { _key: CONCAT('test', TO_STRING(i)) } INTO mycollection`
 ........> ).getExtra();
 { 
   "warnings" : [ ], 
@@ -33476,7 +33636,7 @@ arangosh> db._query(`FOR i IN 1..100
     "cacheMisses" : 0, 
     "filtered" : 0, 
     "httpRequests" : 0, 
-    "executionTime" : 0.0008644869994895998, 
+    "executionTime" : 0.0024684749078005552, 
     "peakMemoryUsage" : 32768, 
     "intermediateCommits" : 0 
   } 
@@ -33486,8 +33646,7 @@ arangosh> db._query(`FOR i IN 1..100
 
 arangosh> db._query(`FOR i IN 1..100
-........>             INSERT { _key: CONCAT('test', TO_STRING(i)) }
-........>                INTO mycollection`
+........>   INSERT { _key: CONCAT('test', TO_STRING(i)) } INTO mycollection`
 ........> ).getExtra();
 
Show execution results
@@ -33504,9 +33663,10 @@ arangosh> db._query(`FOR i IN 1..100
 arangosh> db._query(
-........> 'FOR i IN 1..100000 SORT i RETURN i', {}, {
-........>   memoryLimit: 100000
-........> }).toArray();
+........>   'FOR i IN 1..100000 SORT i RETURN i',
+........>   {},
+........>   { memoryLimit: 100000 }
+........> ).toArray();
 [ArangoError 32: AQL: query would use more memory than allowed (while executing)]
 
@@ -33522,8 +33682,7 @@ arangosh> db._query(
-arangosh> stmt = db._createStatement( {
-........> "query": "FOR i IN [ 1, 2 ] RETURN i * 2" } );
+arangosh> stmt = db._createStatement( { "query": "FOR i IN [ 1, 2 ] RETURN i * 2" } );
 [object ArangoStatement]
 
@@ -33539,7 +33698,7 @@ arangosh> stmt = db._createStatement( {
-arangosh> c = stmt.execute();
+arangosh> cursor = stmt.execute();
 
Show execution results
@@ -33564,7 +33723,7 @@ arangosh> c = stmt.execute();
-arangosh> c.toArray();
+arangosh> cursor.toArray();
 [ 
   2, 
   4 
@@ -33600,11 +33759,10 @@ arangosh> while (c.hasNext()) { 
 
 
-arangosh> var stmt = db._createStatement( {
-........> "query": "FOR i IN [ @one, @two ] RETURN i * 2" } );
+arangosh> var stmt = db._createStatement( { "query": "FOR i IN [ @one, @two ] RETURN i * 2" } );
 arangosh> stmt.bind("one", 1);
 arangosh> stmt.bind("two", 2);
-arangosh> c = stmt.execute();
+arangosh> cursor = stmt.execute();
 
Show execution results
@@ -33633,7 +33790,7 @@ arangosh> c = stmt.execute();
-arangosh> c.toArray();
+arangosh> cursor.toArray();
 [ 
   2, 
   4 
@@ -33652,7 +33809,7 @@ arangosh> c.toArray();
 
-arangosh> while (c.hasNext()) { require("@arangodb").print(c.next()); }
+arangosh> while (cursor.hasNext()) { require("@arangodb").print(cursor.next()); }
 2
 4
 
@@ -33670,12 +33827,12 @@ arangosh> while (c.hasNext()) {
 arangosh> stmt = db._createStatement( { 
-........>  "query": "FOR i IN [ @one, @two ] RETURN i * 2", 
-........>  "bindVars": { 
-........>    "one": 1, 
-........>    "two": 2 
-........>  } 
-........> } );
+........>   "query": "FOR i IN [ @one, @two ] RETURN i * 2", 
+........>   "bindVars": { 
+........>     "one": 1, 
+........>     "two": 2 
+........>   } 
+........> });
 [object ArangoStatement]
 
@@ -33692,7 +33849,7 @@ arangosh> stmt = db._createStatement( {
 arangosh> stmt = db._createStatement( {
-........> "query": "FOR i IN [ 1, 2, 3, 4 ] RETURN i",
+........>   "query": "FOR i IN [ 1, 2, 3, 4 ] RETURN i",
 ........> "count": true } );
 [object ArangoStatement]
 
@@ -33709,8 +33866,8 @@ arangosh> stmt = db._createStatement( {
-arangosh> var c = stmt.execute();
-arangosh> c.count();
+arangosh> var cursor = stmt.execute();
+arangosh> cursor.count();
 4
 
@@ -33727,7 +33884,7 @@ arangosh> c.count();
 arangosh> stmt = db._createStatement( {
-........> "query": "FOR i IN [ 1, 2, 3, 4 ] RETURN i",
+........>   "query": "FOR i IN [ 1, 2, 3, 4 ] RETURN i",
 ........> options: {"profile": true}} );
 [object ArangoStatement]
 
@@ -33744,8 +33901,8 @@ arangosh> stmt = db._createStatement( {
-arangosh> var c = stmt.execute();
-arangosh> c.getExtra();
+arangosh> var cursor = stmt.execute();
+arangosh> cursor.getExtra();
 
Show execution results
@@ -34385,79 +34542,96 @@ and old versions of a document can not be restored via the `_rev` value. @endDocuBlock - -@startDocuBlock get_api_database_current - -@brief retrieves information about the current database - -@RESTHEADER{GET /_api/database/current, Information of the database, getDatabases:current} - -@RESTDESCRIPTION -Retrieves the properties of the current database - -The response is a JSON object with the following attributes: + +@startDocuBlock UserHandling_create -- *name*: the name of the current database +@brief Create a new user. -- *id*: the id of the current database +@RESTHEADER{POST /_api/user, Create User} -- *path*: the filesystem path of the current database +@RESTBODYPARAM{user,string,required,string} +The name of the user as a string. This is mandatory. -- *isSystem*: whether or not the current database is the *_system* database +@RESTBODYPARAM{passwd,string,required,string} +The user password as a string. If not specified, it will default to an empty +string. -- *sharding*: the default sharding method for collections created in this database +@RESTBODYPARAM{active,boolean,optional,} +An optional flag that specifies whether the user is active. If not +specified, this will default to *true*. -- *replicationFactor*: the default replication factor for collections in this database +@RESTBODYPARAM{extra,object,optional,} +A JSON object with extra user information. It is used by the web interface +to store graph viewer settings and saved queries. Should not be set or +modified by end users, as custom attributes will not be preserved. -- *writeConcern*: the default write concern for collections in this database +@RESTDESCRIPTION +Create a new user. You need server access level *Administrate* in order to +execute this REST call. @RESTRETURNCODES -@RESTRETURNCODE{200} -is returned if the information was retrieved successfully. +@RESTRETURNCODE{201} +Returned if the user can be added by the server @RESTRETURNCODE{400} -is returned if the request is invalid. +If the JSON representation is malformed or mandatory data is missing +from the request. -@RESTRETURNCODE{404} -is returned if the database could not be found. +@RESTRETURNCODE{401} +Returned if you have *No access* database access level to the *_system* +database. + +@RESTRETURNCODE{403} +Returned if you have *No access* server access level. + +@RESTRETURNCODE{409} +Returned if a user with the same name already exists. @EXAMPLES -
-