TypeScript incomplete declaration of Traverser
get
as an method to retrieve a specific object.
```
const { graph: orgDb, client: nClient } = connectNeptune();
const dept_and_div = (await orgDb.V().has('email', "[email protected]")
.inE('manages').outV().valueMap()...How to create indexes by Label?
Is it possible to create an index for vertexes and edges by specifying them by label since I have vertices and edges with different labels that have different properties? Does anyone know what this implementation would look like? In my current implementation I do it in a simple way as follows: ...
just by calling g.V().limit(1) with concurrent calls on an r6g.2xlarge machine, the average time is 250msHow may concurrent calls? An
r6g.2xlarge
instance has 8 vCPUs (and 16 available query execution threads). If you're issuing more than 16 requests in parallel, any additional concurrent requests will queue (an instance can queue up to 8000 requests). You can see this with the /gremlin/status
API (of %gremlin_status
Jupyter magic) with the number of executing queries and the number of "accepted" queries. If you need more concurrency, then you'll need to add more vCPUs (either by scaling up or scaling out read replicas).
But in the query mentioned, the bottleneck starts at the stage where it calls the last otherV() before path(). ...
Parameterized edges creation in existing graph
has()
steps cannot currently take a traversal as an argument. It's listed as a roadmap item for a future TinkerPop 4.x release: https://github.com/apache/tinkerpop/blob/087b3070914123055d3e4ededc2550f12715a0b4/docs/src/dev/future/index.asciidoc#has-traversalNeo4j Chypre convention in to gremlin query
``
MATCH (from:
Person {title: "John"}), (to:
Location` {title: "New York City"})
MATCH p = (from)-[rel*..5]->(to)...How to Work with Transactions with Gremlin Python
multiprocessing
to create separate processes. They can share a connection pool to Neptune if you so choose. The number of parallel processes should equal the number of query execution threads available on your Neptune writer instance (which is equal to 2x the number of vCPUs on whatever size instance you're using).
If you follow those guidelines, you should get similar performance to what you would see with Neptune's bulk loader. Note that conditional writes will have overhead. If using mergeV()
, you're unlikely to see the same write throughput as Neptune's bulk loader as the bulk loader is not doing conditional writes....
mergeV with onMerge when extra properties are unknown
Using java/gremlin inside python with Jpype!
Sqlg
. It seems a very easy and powerful way to give python code full access to the any java api. In my case I am making SqgGraph
available to python. It is about 5 lines of setup code and voila, the python code has the same functionality as native java.
Does anyone use Jpype, anything caveats I should know about?...Structure Test Suite - Test Data Types and Serialization Types Don't Match?
Lists
, since when GLVs serialize property values of type array or list they come in as an ArrayList
.
However, the structure test suite, namely PropertyTest
, sends the property value type directly to the graph as int[]{1, 2, 3}
for example which breaks our Graph since we only expected ArrayList
due to the expectation of serialization....What's the significance of done: false ? (after calling .next())
Profiling Neptune from javascript
select T.id + optional properties
select().by
does not work as it filters out not productive
properties.
Here is the sample graph I am testing this on.
...Is there a way to specify a query execution timeout via the GremlinLangScriptEngine?
ScriptEngine
implementations in that it operates in the current thread without interrupt. we'd wrapped the GremlinScriptEngine
up into the GremlinExecutor
to try to generalize behavior for timeouts and Future
based execution. you would have to use that class to get that sort of behavior and avoid direct use of the GremlinLangScriptEngine
directly.What algorithms exist for this hypergraph data structure?
Basic vertex querying does not work in Amazon Neptune but it works with local Gremlin Server
await this.gremlinService.readClientSource.V().elementMap().toList()
will return an Array of Maps.
JSON.stringify()
, which NestJS is likely calling for you, doesn't support Maps so you need to convert them into objects using something like Object.fromEntries()
....CollectingBarrierStep bug
pymogwai
Naming multiple vertices
Possibilities to improve performance on query?

Neptune Cluster Balancing Configuration

[Bug] clone query affects original cloned query
process
to gProcess
as it's a global variable in Nodejs...