neo4j

Neo4j browser not working in Google Chrome

岁酱吖の 提交于 2019-12-10 11:33:53
问题 Have not been able to use Chrome (Version 42.0.2311.90 (64-bit)) as a neo4j browser client after upgrading to the latest XCode / Command Tools in MacOS Yosemite 10.10.3 . Safari is working fine though. Is there an easy way to pinpoint to the actual problem? I'm using Neo4j 2.2.1 The following is a screenshot from the JavaScript console showing the errors: mostly load resource errors and an uncaught error failing to instatiate module neo4jApp . It works fine under Safari. It also works in a

Have both Gremlin-Server AND NEO4J Server running at the same time

人盡茶涼 提交于 2019-12-10 11:18:46
问题 Current it seems we cannot run both Neo4J Server and Gremlin Server at the same time. Is there any way to have run both? NEO4J is running and I try to start to Gremlin Server then I get the following error java.lang.RuntimeException: GraphFactory could not instantiate this Graph implementation [class org.apache.tinkerpop.gremlin.neo4j.structure.Neo4jGraph].......................(truncated) Gremlin Server is running and I try to start NEO4J Server then I get the following error Caused by: org

Clear Neo4j Embedded database

北慕城南 提交于 2019-12-10 11:14:23
问题 With a new version of Spring Data Neo4j I can't use Neo4jHelper.cleanDb(db); So, what is the most effective way to completly clear Embedded Neo4j database in my application? I have implemented my own util method for this purpose, but this method is slow: public static void cleanDb(Neo4jTemplate template) { template.query("MATCH (n) OPTIONAL MATCH (n)-[r]-() DELETE n,r", null); } How to properly clear/delete database ? UPDATED This is the similar question How to reset / clear / delete neo4j

Neo4j cpu stuck on GC

冷暖自知 提交于 2019-12-10 11:12:07
问题 Suddenly, after working for one month with almost no use of cpu (between 1 to 5%). The neo4j server is stuck 100% cpu on garbage collecting. I have neo4j-entherprise 2.0.3 (not embedded) running on ubuntu 4 processors server . this is my neo4j configuration: wrapper: wrapper.java.additional=-Dorg.neo4j.server.properties=conf/neo4j-server.properties wrapper.java.additional=-Djava.util.logging.config.file=conf/logging.properties wrapper.java.additional=-Dlog4j.configuration=file:conf/log4j

Session.run() VS transaction.run() in Neo4j Bolt

北战南征 提交于 2019-12-10 11:09:37
问题 What is the difference between the Session.run() and transaction.run() in Neo4j Bolt driver? My knowledge is: Session.run() will execute a single statement transaction.run() executes multiple statements. Those are the information I know which are correct. What are the all other differences? 回答1: Session.run() will actually create a transaction, execute the statement, and commit the transaction. Transaction.run() will leave the transaction open until you commit it, but the statement will still

Maximum size of Parameter Object in Query?

妖精的绣舞 提交于 2019-12-10 11:06:43
问题 I am using the graphaware php client for neo4j. When running a query with a "large" parameter object (about 200 lines in pretty print, field values are 30 characters max), it freezes. The $queryparams object looks like { "data": { "someproperty": 30000, "anotherproperty": "stringentry", <about 200 more like this here, partially nested> } } where everything is inside the data wrapper most of the 200 entries are garbage that the query never uses The line $queryresult = $client->run($query,

How to configure to make neo4j faster?

末鹿安然 提交于 2019-12-10 11:03:38
问题 I try to use neo4j to do some experiment about SNS. I have created a random graph consisted of 1 million users, 100 thousand items, and each user has about 100 friends and 100 favourite items. So there are about 1 million nodes and 200 million relationships in the graph and the graph files take up 4.8GB. All nodes only have an id and I have created index for them. Now I have used Java APIs to set up a small cluster to maintain this graph, which is consisted of three VMs. Each VM has 16GB ram,

Retrieving neo4j nodes related to a given node using scala

孤人 提交于 2019-12-10 10:56:34
问题 I have 2 nodes named User_node and Article_node which are related by the relation article_node --> "Written_By" --> user_node How do i get all the article nodes that are written by a given user node? 回答1: I'm assuming you are using the embedded neo4j and thus have an object of type org.neo4j.graphdb.Node . Node has the method getRelationships with several overloads, but the one that takes varargs of RelationshipType should work for you. To get all the Node objects connected to your starting

How to get Node object when using Neo4j jdbc?

扶醉桌前 提交于 2019-12-10 10:53:29
问题 I used neo4j-rest-binding in my project, but I face some transaction issue, so I want to control transaction by my self. I found neo4j-jdbc is a good option, and it sounds have more pros than neo4j-rest-binding from the article in google forum. (https://groups.google.com/forum/#!topic/neo4j/4DG_R5Yh2BM) I used neo4j-rest-binding to do query and I can transform the result to Node object. QueryResult<Map<String, Object>> result = engine.query("MATCH (n) RETURN n") Iterator<Node> nodeIter =

Understanding of Neo4j object cache

泪湿孤枕 提交于 2019-12-10 10:47:23
问题 I'm trying to understand Neo4j object cache by some investigation into it. My first impression of Object cache come from the slides in this link: http://www.slideshare.net/thobe/an-overview-of-neo4j-internals Specifically the Node/Relationship object in cache should look like slide 9 or 15/42. To verify this, I wrote a simple server script using existing graph database contents. The way I do it is trying to look into the starting virtual address of the node/relationship object using sun.misc