Questions tagged [memgraphdb]

Use this tag for questions related to Memgraph streaming graph database.

Memgraph is an open source graph database built for real time streaming data, compatible with Neo4j. It is an in-memory graph database that uses Cypher as a query language. Memgraph can be extended with graph algorithms that are part of Memgraph Advanced Graph Extensions (MAGE). Graphs can be visualized using Memgraph Lab application.

390 questions
0
votes
1 answer

How to represent Unicode codepoints in string literals in Memgraph?

What is the correct way to represent Unicode codepoints in string literals in Memgraph? Does memgraph support UTF-16 or UTF-32 codepoints?
KWriter
  • 1,024
  • 4
  • 22
0
votes
1 answer

Should I use single or double quotes in Cypher queries?

Is it better to use ' or " when I need to return the text? I have the following return statement: Please don't forget to submit your ID.
KWriter
  • 1,024
  • 4
  • 22
0
votes
1 answer

How to check access rights, using Cypher, to assets to which users are note directly connected?

We have a bunch of files and we want only users belonging to a certain department to have access to a specific set of files. We want to create a system that would upon swiping the card allows access to files. I don't want to have multiple relations…
KWriter
  • 1,024
  • 4
  • 22
0
votes
1 answer

Transforming SQL query for product recommendation to Cypher query

I have a recommendation system that uses SQL query similar to this one: select B.* from user User1 join rating Rating1 on User1.user_id = Rating1.id and Rating1.value = 5 join product A on A.id = Rating1.product_id join rating Rating2 on…
KWriter
  • 1,024
  • 4
  • 22
0
votes
1 answer

Memory is still allocated but not used?

I've got this long path traversal query: match path=(n)-[:CFG|DFG|IDFG*bfs..1000]->(m)-[:CFG|DFG|IDFG*bfs..1000]->(k) return nodes(path) as n, relationships(path) as r limit 10; The query aborts with the memory limit exceeded. Memgraph keeps…
MPesi
  • 212
  • 8
0
votes
1 answer

How does parameter --query-vertex-count-to-expand-existing=10 influence query execution in Memgraph?

There is one configuration parameter in the Memgraph instance that I got as part of a project. This parameter is --query-vertex-count-to-expand-existing=10. What would be the exact purpose of this configuration parameter?
KWriter
  • 1,024
  • 4
  • 22
0
votes
2 answers

How to include a persistent volume claim when using Memgraph on Kubernetes?

I run Memgraph on Kubernetes using the sample service+deployment found in the memgraph/bolt-proxy repo. Unfortunately, that config doesn’t include a persistent volume claim. I'd like to keep Memgraph’s log and snapshots persistent in Kubernetes. How…
KWriter
  • 1,024
  • 4
  • 22
0
votes
1 answer

How can I index properties in Memgraph?

How can I index properties in the Node and Relationship classes I created in Memgraph with GQLAlchemy? Is it possible to create only a Label index?
MPesi
  • 212
  • 8
0
votes
1 answer

Which of Cypher components are case sensitive in Cypher query?

Is Cypher case sensitive or not? I've read a lot of different things. Some say yes, others no. Does it depend on the graph database and Cypher flavor that you use?
KWriter
  • 1,024
  • 4
  • 22
0
votes
1 answer

Can I paginate query results in Memgraph using Cypher query?

I encountered an out-of-memory issue and I thought I could make use of some kind of pagination of results. I'd like to divide them by 1000 at the time. This is the query that I came up with: match(n)-[r]->(m) SKIP 1000 LIMIT 1000 return n; Will…
KWriter
  • 1,024
  • 4
  • 22
0
votes
1 answer

How to insert python variables inside query in Memgrpah?

I need to execute the following query: CREATE (m: Temp {val1: }) I know there exists save_node functionality but I don't want to use that. I tried the following syntax but it didn't work connection.execute("CREATE (m: Temp {{val1:…
KWriter
  • 1,024
  • 4
  • 22
0
votes
1 answer

How to write queries traversing n hops in GQLAlchemy?

I have a query that I would like to model using GQLAlchemy: MATCH (n)-[2]->(c) RETURN Count() How can I do this?
KWriter
  • 1,024
  • 4
  • 22
0
votes
1 answer

What is the difference between relationship, edge and link?

When I was reading about the theory of graph databases I found the different terms that denote connections between nodes. What is the difference between relationships, edges and links?
KWriter
  • 1,024
  • 4
  • 22
0
votes
1 answer

What is the difference between node, vertex and point?

Literature about graph databases talks about nodes, vertices and points. What is the difference between them?
KWriter
  • 1,024
  • 4
  • 22
0
votes
1 answer

How to use "WITH" clause with Memgraph’s GQLAlchemy?

Im working with GQLAlchemy and was wondering how to properly use WITH clause and import a CSV file with headers using Memgraph’s GQLAlchemy.
MPesi
  • 212
  • 8