Questions tagged [redisgraph]
97 questions
1
vote
2 answers
How do I return a relation in RedisGraph?
Using RedisGraph, I'd like for a QUERY to RETURN a relation's type.
An example query:
MATCH (n1:Entity { id: "foo" }) MATCH (n2:Entity2 { id: "bar" }) CREATE (n1)-[r:areFriends]->(n2) RETURN *
Unfortunately, the returned value only includes n1 and…

duck degen
- 1,163
- 1
- 9
- 16
1
vote
2 answers
Redis Graph compilation on macOS
I am getting below error when I compile RedisGraph from https://github.com/RedisLabsModules/redis-graph.git
Error is
[ 0%] Building C object CMakeFiles/graphblas.dir/Source/GB_AxB_builtin.c.o
In file included from…

Tanzil Khader
- 31
- 4
1
vote
1 answer
Unable to load redisgraph
I tried the ways like adding
loadmodule /home/s/webapi/redis-module-graph/src/redisgraph.so
in redis.conf and
~/$ redis-server --loadmodule /home/s/webapi/redis-module-graph/src/redisgraph.so
on redisgraph.io.
But I get an error:
*** FATAL CONFIG…

SHIVANI SINGH
- 25
- 5
1
vote
1 answer
Working with redis-graph
I'm a beginner in redis-graph and presently I'm working on K-shortest path algorithm which is implemented in JAVA(where a graph is created using hashmap) and as the dataset is quite large(27 million rows) I need to a database to store a graph and…

gaurav1207
- 693
- 2
- 11
- 26
0
votes
0 answers
RedisGraph How best to store nested objects so they are searchable
RedisGraph can't store nested objects on nodes natively, apparently because Cypher does not. In my use-case, I want to store a map of uuids per node, like this example:
{
"nodeid": 1,
// other props...
// Each node has a varying number of…

Murrah
- 1,508
- 1
- 13
- 26
0
votes
1 answer
Exists function in RedisGraph
I have a cypher query that works as expected in Neo4j but is failing for me in RedisGraph.
So I have a query like this:
MATCH (dp:DataProduct {name: 'DataProduct1'})-[:CONTAINS]->(t:Table {name: 'output_table'})-[:HAS_COLUMN]->(c:Column {name:…

Jonck van der Kogel
- 2,983
- 3
- 23
- 30
0
votes
1 answer
Storing technique of Redis Graph
could anyone please let me know how RedisGraph internally stores Nodes and Edges. Would be great if someone helps. Thank you!
I tried searching about the storage technique but I just got one clue that it uses sparse adjacency matrix which not…
0
votes
1 answer
Optimizing / rewriting redisgraph query / schema
I am working on an OSS project called deps-graph, basically I download data from https://static.crates.io/db-dump.tar.gz and then pre-process them and connect crate versions together based on how they depend on each other (meaning that I work with a…

TDiblik
- 522
- 4
- 18
0
votes
0 answers
How can the elements of graph in Redisgraph store on disk?
I interest in the form of the graph's elements in Redisgraph. I wonder how the elements such as nodes, edges and properties stored. Redis use the key-value formation, so I want to know that what is the key, and what is the value.
I know that the…

Hua
- 1
0
votes
2 answers
How to return distinct nodes asJson
Using GRAPH.QUERY mykey "MATCH (node:m000) RETURN toJson(node)" I get the following:
[
{
"key": "000", "containerid": "10000" // id 1
},
{
"key": "001", "containerid": "10001" // id 2
},
{
"key": "000", "containerid": "10000"…

Murrah
- 1,508
- 1
- 13
- 26
0
votes
0 answers
Cypher - find all paths through nodes with highest score
I have a graph with all nodes having a property called score. I want to find all paths that start with a particular node and traverse all nodes having score greater than a threshold.
I want a cypher query that can be run in Redisgraph but I can only…

navgeet
- 987
- 1
- 10
- 23
0
votes
1 answer
RedisGraph: how to persist properties in data containing BOTH single AND double quotes?
I am testing RedisGraph as a way to store my data which originates from a client as JSON.
The JSON passes through a bean for validation etc and I use Jackson to serialise the bean so the RedisGraph string is in the correct format. For completeness…

Murrah
- 1,508
- 1
- 13
- 26
0
votes
1 answer
Cypher performance on matching million users
I am using redisgraph and the query is simple. How do I make it faster for getting a list of countries like that?
> GRAPH.profile g "MATCH (u:user) return collect(distinct u.countryCode) as codes"
1) "Results | Records produced: 1, Execution time:…

kakakakakakakk
- 467
- 10
- 31
0
votes
0 answers
Make cypher query more effective
I have a goal of having this query return data in less than 10 ms, currently it's less than 50ms.
The relationships are
(l:list)<-[:IN_LIST]-(p:product)<-[:PRODUCT]-(a:a)
I have over 20m of :a in the db and this significantly slows down the query.…

kakakakakakakk
- 467
- 10
- 31
0
votes
1 answer
Redisgraph find shortest path between 2 nodes
I am new to using graph tech . Below is one sample data i have , i want to put this in redis graph and find the shortest distance between 2 points…

Mohit H
- 927
- 3
- 11
- 26