Related Articles
This is interesting, I like it. I imagine if you wanted to query for the next 20 days, rather than from a date range, you could do this:<br /><br />START root=node:node_auto_index(name = 'Root')<br />MATCH <br /> commonPath=root-[:`2011`]->()-[:`01`]->()-[:`01`]->,<br /> valuePath=startLeaf-[:NEXT*0..]->middle-[:NEXT*0..20]->endLeaf,<br /> values=middle-[:VALUE]->
Thanks!<br />I have a problem for a clinic setting, where there are multiple patients with multiple events per interval (say 1 – 15 minutes), and multiple state changes for an event. Would it be better to have tree for each patient, or a common tree for all ? What impact would the granularity of the time be, down to the minute or second ?<br /><br />Regards,<br />Bryan Webb
Thanks!<br />I have a problem for a clinic setting, where there are multiple patients with multiple events per interval (say 1 – 15 minutes), and multiple state changes for an event. Would it be better to have tree for each patient, or a common tree for all ? What impact would the granularity of the time be, down to the minute or second ?<br /><br />Regards,<br />Bryan Webb
@bww00 depends a bit on the amount of data. How big is the total number of events going to be?
@bww00 I think you should just create a testcase and try it out. It sounds like doable with one big tree for all events, but I wouldn't do that without performance testing.
Hello Peter, thank you for this nice example.<br />We are trying to use this approach to represent a timeline of frames, and a graph on each frame. However, we are using the Neo4j <a href="http://api.neo4j.org/current/org/neo4j/graphdb/Node.html#createRelationshipTo(org.neo4j.graphdb.Node,%20org.neo4j.graphdb.RelationshipType)" rel="nofollow">createRelationshipTo</a> method to create the
Hi think the key here is to use DynamicRelationshipsType.withName("MONTH_01") which will let you create dynamic relationship types.
Thanks Peter, I was not aware of the availability of the DynamicRelationshipsType class.
By the way, there's any performance advantage in using relationship types in place of relationship properties?
Hi Peter, thanks for the example, looks pretty good! Although I haven't done much tests with Lucene, I was wondering why you noted that using such index would be "very costly" to do the sorting? In my situation, I need to implement a filter that returns all Nodes within a date range. Nodes are tagged with a start and optional end date (node properties). I noticed that
peter,<br />what would be the fastest way to create a test graph.<br />I also need to add a physician node with a relation to the event and a function node with a relation to the event.<br />I would need to query the events by date/time. I will need to query events by physician and also by function.<br /><br />I am having trouble getting started in creating the graph and relationships.<br /><br /
Thanks Peter, for a nice explanation. I'm seriously looking at the graph databases now for our reporting suite – I have tried to model the time series data as you had suggested but since it goes down up to the seconds level I'm quite conscious about performance. I have devices sending the data so I can append to the timeline graph with seconds precision. These devices are tied to a client
This is nice but only for the cases when a node is defined for in a timeline once and for all. What if the relationship is time-dependant? Reporting lines, period of studies, marriage, place of living, etc. How to model then relationship right to perform effectively? Create "since" and "until" attributes and run subfilters? What's the right way?
@bww00 Can you share your data model? I would like to make a similar setup. I have the same question about: Where to introduce several "users" into this model. Have you gotten any test results back?<br /><br />@Unknown I don't think you have to specify the frames to the smallest unit of time. You can have an hour as smallest frame and then attach all those events to this hour. But
[…] reading this blog, this reference, and reviewing the answer to this question, I’m confused as to how one can […]
Leave a Reply