I am using the Neo4j Desktop app with a local database. I've loaded approximately 7,000 nodes and am now adding 4,400 edges between two node types. However, the process has been running for over an hour and has only added 550 edges so far.
I copy and paste the code into the desktop browser query window using the following syntax:
This approach is not scalable, as I need to add significantly more nodes and edges. My system is a high-performance PC with 16 cores and 128 GB of RAM.
Does anyone know what might be causing this issue and how I can add large volumes of data more efficiently?
No indexes yet. I'm just getting started on Neo4j and have not looked at indexes. I was trying to create a proof of concept to get a project off the ground.
Attached is a screenshot of the profile and I'm not using parameterized queries. I showed code I'm executing in the post above.
"I copy and paste the code into the desktop browser query window using the following syntax:
also it was running so slow, i let it run overnight and it added only 2k of 4k edges. This morning I saw this error so I assume it stopped running when this popped up.
I would start of with creating indexes. The current provided plan
gathers all nodes with label :NotaryAgent.. to which there are some 2900
gathers all nodes with label :Document ... to which there are 3542
filter all :NotaryAgent where Id=??? to which there is but 1
filter all :Document where Doc_id=???? to which there is 1
....
.......
with indexes this could be
use index to find all :NotaryAgent nodes which Id=??? to which there are 1
use index to find all :Document nodes which Doc_Id=??? to which there are 1
.....
......
The only reason not to use indexes was I did not know about them till now and I will try your recommendation. Thanks.
Regarding the errors and the logs, it looks like it was trying to check for updates and had a problem resolving a name. This is strange because I just re-installed Neo4J a few days ago so everything should be very current:
Could not check for updates Error: net::ERR_NAME_NOT_RESOLVED
at SimpleURLLoaderWrapper.<anonymous> (node:electron/js2c/browser_init:101:7169)