I'm using Neo4j 3.1.1 community edition. I'm trying to fetch roughly 80 million entries from the db via python using the officialy supported python driver. The python script is running against localhost, i.e. on the same machine as Neo4j and not over network. Access to Neo4j works all fine until it comes to the point:
result = session.run("match (n:Label) return n.Property as property")
property_list = [record["property"] for record in result]
Assembling the property_list
fails in essence with the error statement:
File "...\neo4j\bolt\connection.py", line 124, in fill raise ServiceUnavailable("Failed to read from connection %r" % (self.address,)) neo4j.bolt.connection.ServiceUnavailable: Failed to read from connection Address(host='127.0.0.1', port=7687)
The same code works absolutely fine when fetching a smaller dataset thus assembling a smaller list.
Now I wonder:
- Is there an option to keep the bolt session open?
- Do I have to configure/tweak the Neo4j Server in a certain way to enable such transactions?
- Or is there a magic "third way" to get it done?