Re: [Neo4j] TimelineIndex usage
2010/7/23 Tim Jones bogol...@ymail.com Hi, I need to be able to retrieve nodes whose timestamps are greater than a particular time. I've been trying to use a TimelineIndex, but didn't realise that it was a persistent structure - I've written code that will create a new Timeline each time my application is instantiated, and it's complaining that nodes already exist in the Timeline. So you don't want to use a persistent timeline? The Timeline class stores the timeline in the graph itself so if you'd like a non-persistent timeline it would have to be implemented and there isn't such an implementation a.t.m. The nodes that I'm relating to each other in the Timeline are not themselves directly related. Is this going to cause problems using the Timeline since it won't be able to traverse a subgraph? I'm not sure I understand what you mean here. It may be (I'm not really sure on this one) that the timeline structure just refers to your indexed nodes via id, not creating relationships to them. You're worried that nodes will become related when they are added to a timeline? Any way it wouldn't be a problem if you always specify which relationships to traverse in traversals. Thanks, Tim ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- Mattias Persson, [matt...@neotechnology.com] Hacker, Neo Technology www.neotechnology.com ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] TimelineIndex usage
Hi, I need to be able to retrieve nodes whose timestamps are greater than a particular time. I've been trying to use a TimelineIndex, but didn't realise that it was a persistent structure - I've written code that will create a new Timeline each time my application is instantiated, and it's complaining that nodes already exist in the Timeline. So you don't want to use a persistent timeline? The Timeline class stores the timeline in the graph itself so if you'd like a non-persistent timeline it would have to be implemented and there isn't such an implementation a.t.m. No, persistent is OK. I just thought that it wasn't that's all. The nodes that I'm relating to each other in the Timeline are not themselves directly related. Is this going to cause problems using the Timeline since it won't be able to traverse a subgraph? I'm not sure I understand what you mean here. It may be (I'm not really sure on this one) that the timeline structure just refers to your indexed nodes via id, not creating relationships to them. You're worried that nodes will become related when they are added to a timeline? Any way it wouldn't be a problem if you always specify which relationships to traverse in traversals. I'm not worried that nodes will become related, I just wanted to make sure that because they aren't already related that this wasn't going to cause a problem before I implement the Timeline - I've already spent longer than I'd intended on this and don't want to reimplement it if it's not going to work because of the structure of the graph. I don't know the capabilities of the Timeline, but I guess since the docs don't mention nodes must themselves be related I assume it'll probably work. Thanks, Tim ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- Mattias Persson, [matt...@neotechnology.com] Hacker, Neo Technology www.neotechnology.com ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] TimelineIndex usage
I'm not worried that nodes will become related, I just wanted to make sure that because they aren't already related that this wasn't going to cause a problem before I implement the Timeline - I've already spent longer than I'd intended on this and don't want to reimplement it if it's not going to work because of the structure of the graph. I don't know the capabilities of the Timeline, but I guess since the docs don't mention nodes must themselves be related I assume it'll probably work. I'm pretty sure the graph created by the index is unrelated to the graph you create yourself (if any). So you can have your own structures, or none at all, and it should work fine. If you do have no graph of your own, then the timeline index would be the only way to traverse to your data. That might even be what you want. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user