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
124
votes
9 answers

Neo4j - Cypher vs Gremlin query language

I'm starting to develop with Neo4j using the REST API. I saw that there are two options for performing complex queries - Cypher (Neo4j's query language) and Gremlin (the general purpose graph query/traversal language). Here's what I want to know -…
Rubinsh
  • 4,883
  • 10
  • 34
  • 41
14
votes
2 answers

DETACH DELETE Neo4j 2.3.x/Cypher

What is the behaviour and purpose of the new Cypher operator DETACH DELETE added in Neo4j 2.3.x?
alexanoid
  • 24,051
  • 54
  • 210
  • 410
6
votes
1 answer

How to persist Memgraph data to local hard drive?

I am running Memgraph on Windows 11 WSL using this command: docker run -it -p 7687:7687 -p 3000:3000 -e MEMGRAPH="--bolt-port=7687" -v mg_lib:/mnt/c/temp/memgraph/lib -v mg_log:/mnt/c/temp/memgraph/log -v mg_etc:/mnt/c/temp/memgraph/etc…
Tony
  • 16,527
  • 15
  • 80
  • 134
5
votes
2 answers

How to export Memgraph graph as a series of Cypher statements, so I can use it to import the data to another instance or Neo4j?

I have a Memgraph database running. How to export Memgraph graph as a series of Cypher statements, so I can use it to import to another instance? I was reading the documentation and only found how to Import Cypher, but not how to Export Cypher. I…
Tony
  • 16,527
  • 15
  • 80
  • 134
5
votes
1 answer

How to connect mg_client outside container in Docker?

I am trying to access mg_client inside a docker container but unfortunately, I am unable to connect it. I have followed instructions from the docs here docker-compose.yaml version: "3" services: redis: image: redislabs/redisgraph …
Raj
  • 85
  • 8
4
votes
2 answers

Memgraph C# Connection Issue (Session NullReferenceException) using Neo4j.Driver

I need to connect to my memgraph server (runs through docker), but any basic example I try ends up with a null reference exception when running any query. The code I am using is: public async void DatabaseConnectionTest() { IDriver…
zackper
  • 125
  • 7
4
votes
2 answers

How to do an ORDER BY ignoring the diacritical marks (use a collation) in Cypher?

I have a list of names where some names contain diacritics characters, like Á, Ê For example: Átila André Êlisa Mercês Sá But when I run a simple query like this: MATCH (p:Person) ORDER BY p.Name It returns the names out of alphabetical order,…
Tony
  • 16,527
  • 15
  • 80
  • 134
4
votes
1 answer

Memgraph database questions: replication, partitioning, parallelizing, graph storage

I am currently researching Memgraph, and I have a few questions: 1) Do you provide replication and sharding/partitioning of data? 2) Can queries be parallelized to allow larger analytics queries to be faster? 3) Are edges stored with the vertex, or…
3
votes
1 answer

Traverse each node label only once

How do I make sure each node label (not just the node itself) is unique in the path it traverses? MATCH (customer:Customer { id: '123' })-[*]->(product:Product) RETURN product The behavior I want: [Customer]->[Sale]->[Product] What I don't want…
W4G1
  • 1,337
  • 1
  • 11
  • 15
3
votes
2 answers

How much memory do I need to to work with graph that has around one million nodes and four million relationships?

I plan to run Memgraph platform via Docker. I can see the memory footprint of the empty Memgraph. I need to import (I have data in CSV format) about one million nodes and four million relationships. How much memory will I need to store and work with…
KWriter
  • 1,024
  • 4
  • 22
3
votes
1 answer

How to start Memgraph database on Ubuntu?

I know that there are two ways to run Memgraph on Ubuntu: sudo systemctl start memgraph sudo service memgraph start Is there a preferred way to run Memgraph? I've seen that if Ubuntu is run as WSL that the command for running it is sudo runuser -l…
user17781575
3
votes
1 answer

How to run Memgraph database without any disk persistence

How to run Memgraph database with the database in memory only with no snapshots to disk and no write-ahead logging, no disk persistence. I am happy to loose all data is the database is stopped.
Phil
  • 46,436
  • 33
  • 110
  • 175
3
votes
1 answer

memgraphdb: Support for time travel queries in graph databases

Let's say I want to model a graph with sales people. They belong to an organisation, have a manager, etc.. They are assigned to specific territories and/or client accounts. Your company may work with external partners, which must be managed, and so…
Juergen
  • 699
  • 7
  • 20
2
votes
1 answer

Issue setting up Apache Reverse Proxy for Memgraph

I'm facing issues while trying to run Memgraph lab behind Apache reverse proxy. I get the following error Error in web browser And my Apache configuration file is as follows: #ServerName my-server-name.com ServerName…
user224040
  • 41
  • 3
2
votes
1 answer

Find root of tree given any node in memgraph

Given a tree (not an arbitrary graph) and a node in the tree then is it possible to find the root node of the tree in an efficient way in memgraph? At the moment I've created an empty memgraph db in docker, and run: CREATE INDEX ON…
mwpb
  • 83
  • 7
1
2 3
25 26