graphaware

Use neo4j server instead of embedded mode

天涯浪子 提交于 2019-12-11 02:32:01
问题 I'm working on a webapp running on Tomcat which using spring-data to connect to a neo4j graph in embedded mode. I would like to use neo4j server instead of the embedded mode and I am looking for some help to be sure about how to do that. Some of my application services are quite difficult and combine, in a single transaction, the result of several cypher requests in a dto sent back to the user. First I thought that I have to create a server unmanaged extension and I think I should follow

Neo4j Recommendation Cypher Query Optimization

一世执手 提交于 2019-12-10 22:35:39
问题 I am using Neo4j community edition embedded in java application for recommendation purpose. I made a custom function which contains a complex logic of comparing two entities, namely product and users. Both entities are present as nodes in graph and has more than 20 properties each for comparison purpose. For eg. I am calling this function in following format: match (e:User {user_id:"some-id"}) with e match (f:Product {product_id:"some-id"}) with e,f return e,f,findComparisonValue(e,f) as pref

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,

Neo4j TimeTree REST API Previous and Next Navigation

删除回忆录丶 提交于 2019-12-01 07:40:36
问题 I am currently using Neo4j TimeTree REST API and is there any way to navigate to the time before and after a given timestamp? My resolution is Second and I just realize that if the minute has changed, then there is no 'NEXT' relationship bridging the previous Second in previous Minute to the current Second. This makes the cypher query quite complicated and I just don't want to reinvent the wheel again if it's already available. Thanks in advance and your response would be really appreciated!

Neo4j TimeTree in Spring Data Neo4j 4.0

柔情痞子 提交于 2019-11-29 12:27:00
I'm trying to utilize the timetree library in my spring data neo4j 4.0.0 project. As elaborated in this page, https://github.com/graphaware/neo4j-timetree , I've edited my neo4j.properties file to enable the auto event attaching, add timetree dependency to my gradle, and set a property 'creationDate' in the event node with Long data type. Albeit everything looks as it should be, it still doesn't create any timetree. Hereby is my neo4j.property file: # Runtime must be enabled like this com.graphaware.runtime.enabled=true # A Runtime module that takes care of attaching the events like this (TT

Neo4j TimeTree in Spring Data Neo4j 4.0

旧街凉风 提交于 2019-11-28 06:29:26
问题 I'm trying to utilize the timetree library in my spring data neo4j 4.0.0 project. As elaborated in this page, https://github.com/graphaware/neo4j-timetree, I've edited my neo4j.properties file to enable the auto event attaching, add timetree dependency to my gradle, and set a property 'creationDate' in the event node with Long data type. Albeit everything looks as it should be, it still doesn't create any timetree. Hereby is my neo4j.property file: # Runtime must be enabled like this com