Skip to content

Parallel cypher import #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

tonijurjevic96
Copy link
Contributor

@tonijurjevic96 tonijurjevic96 commented Apr 29, 2025

Summary

Please explain what you're showcasing at a best practice.

General checklist

  • Best practice is categorized inside one of the directories of this repo
  • Provided code of the best practice
  • Documented the code of the best practice thoroughly
  • Added requirements.txt file for installing dependencies

README.md checklist

  • Provided steps on how to run Memgraph
  • Added version on which you have tested this example
  • Added whether this is an Enterprise or Community best practice capability

@tonijurjevic96 tonijurjevic96 self-assigned this Apr 29, 2025
Copy link
Contributor

@Josipmrden Josipmrden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your example contains also the content from querying GQLAlchemy

Copy link
Contributor

@Josipmrden Josipmrden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please update this PR

To run Memgraph Community using Docker:

```bash
docker run -it --rm -p 7687:7687 memgraph/memgraph:3.1.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

memgraph/memgraph-mage:3.2


This example was built and tested with:

- **Memgraph v3.1.1**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Memgraph MAGE v3.2

Comment on lines +11 to +17
1. **Run cypher_file_splitter_script.py** - helper script to split pokec dataset into nodes and relationships and saving into sperate folder.
2. **Run multiprocess_import_test.py**
- you should create proper indices before hand in this case it is:
-`CREATE INDEX ON :User;`
-`CREATE INDEX ON :User(id);`
- this script first loads nodes than relationships and uses 8 processes for parallel import

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also the script can execute STORAGE MODE IN_MEMORY_ANALYTICAL, DROP GRAPH and creation of indices

@tonijurjevic96 tonijurjevic96 requested a review from Josipmrden May 14, 2025 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants