Limitations of Graph in Redis
The limitations of Graph in Redis are :
-
The uniqueness of relationships in patterns
Suppose a relation of a match pattern is not referenced anywhere else in the query. In that case, RedisGraph will only check whether that relation exists in the query or not rather than checking every matching relation.
This leads to abnormal behavior in some queries.
For example, consider a graph with two nodes and relations.
CREATE (a)-[:e {val: '1'}]->(b), (a)-[:e {val: '2'}]->(b)
If we count the number of explicit edges in the graph, we get two.
But, if we count the number of nodes present in the pattern without mentioning the relation, we get one.
Research is going on to solve this problem so that it doesn’t downgrade the performance.
-
No effect of the LIMIT clause on eager operations
If a WITH or RETURN clause brigns in a LIMIT value, then that value should be appreciated by the preceding operations.
But it is not the case, and hence all eager operations like MERGE, SET, CREATE, etc., are affected due to this.
-
Indexing Limitations
The current implementation of the index does not include not-equal (<>) filters. RedisGraph can optimize its queries when a filter is mentioned on an indexed label-property pair using index scans.
To check whether index optimizations have been introduced and to profile a query, we can use GRAPH.EXPLAIN endpoint.
You can also read about the memory hierarchy.
Frequently Asked Questions
Is Redis a Graph database?
Yes, Redis is a graph database.
Is RedisGraph open source?
Yes, Redis is open source, but higher-valued modules are now under a commercial agreement.
Is RedisGraph distributed?
No, RedisGraph is not a distributed graph system.
What is the limitation of Redis?
Redis is a data structure server and hence does not support query relational algebra and no query language.
What happens when Redis runs out of memory?
When Redis runs out of memory, it throws errors on writing commands.
Conclusion
This article discussed the limitations of Graph in Redis.
Hoping this blog has helped you enhance your knowledge regarding the limitations of Graph in Redis. To know more about Redis, check out this link. To learn more about IoT, view our blog, curated by experts.
Check out this problem - Matrix Median
Check out our fantastic interview preparation course for your dream companies and a complete preparation guide.
Upvote our blog to help other ninjas grow!
Happy Learning!!