Skip to content
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

gds.beta.graph.export.csv would be very useful if the csv files can be used for "neo4j-admin import incremental" #241

Open
cpuwar opened this issue Jan 8, 2023 · 0 comments
Labels
feature request A suggestion for a new feature

Comments

@cpuwar
Copy link

cpuwar commented Jan 8, 2023

Is your feature request related to a problem? Please describe.
I used this feature to generate csv files for "neo4j-admin database import full". It is very easy and successful. But I cannot use them for "neo4j-admin database import incremental"

Describe the solution you would like
"neo4j-admin import" tool is very good to import a huge graph. Now it supports "incremental" mode and it's really big step up for import tool's usefulness. But "import incremental" seemed to require uuid of Node as its property. So I added them in Movie and Person nodes by apoc.uuid.install and export them in csv files when I test gds.beta.graph.export.csv with Movie graph(from :play movies).

And I got the csv files like these:
< nodes_Person_0.csv >
1,"Keanu Reeves",,"bf59b74a-9ac2-4c1f-8de7-b22be51f731a"
2,"Carrie-Anne Moss",,"c5642d98-09f7-4469-9efa-2606ea92ef9e"
3,"Laurence Fishburne",,"365c1fe3-9039-4a38-be9b-ec6fce9111b3"
....
< nodes_Movie_0.csv >
0,,"The Matrix","aeff74b8-8c0c-4d98-9395-9463af575602"
9,,"The Matrix Reloaded","8d69c33d-4d68-454c-85d7-ef222f8e6ebb"
10,,"The Matrix Revolutions","f2368b75-3ddd-45a3-95f7-de10a2f4a715"
....
< relationships_ACTED_IN_0.csv >
1,0
1,9
1,10
...

I don't know how to use them for "neo4j-admin database import incremental" if I want to import the data to an existing graph incrementally.

Describe alternatives you have considered
If gds.beta.graph.export.csv can export uuid property in relationship.csv like this, I would use all the csv files to import them incrementally:
< relationships_ACTED_IN_0.csv >
"bf59b74a-9ac2-4c1f-8de7-b22be51f731a","aeff74b8-8c0c-4d98-9395-9463af575602"
"bf59b74a-9ac2-4c1f-8de7-b22be51f731a","8d69c33d-4d68-454c-85d7-ef222f8e6ebb"
"bf59b74a-9ac2-4c1f-8de7-b22be51f731a","f2368b75-3ddd-45a3-95f7-de10a2f4a715"
...

Could you add this option in the next release? Or do you know any current method to generate the csv files for "neo4j-admin database import incremental"? Actually I don't understand it clearly though I read the manual many times:
https://neo4j.com/docs/operations-manual/current/tools/neo4j-admin/neo4j-admin-import/

Dongho.

@cpuwar cpuwar added the feature request A suggestion for a new feature label Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A suggestion for a new feature
Projects
None yet
Development

No branches or pull requests

1 participant