Re: [Neo4j] 10 questions

2011-09-12 Thread Peter Neubauer
Linan, that is actually exactly what Neo4j is doing. Indexing is done via the Index Framework, that makes external indicies like Lucene, Redas, BabuDB etc conform to transactional semantics in order to keep consistent between the Neo4j graph engine kernel and the indecies. See

Re: [Neo4j] 10 questions

2011-09-05 Thread Tatham Oddie
Hi Linan, anyone show some love ;) Generally 10 questions have a better chance of getting answered if they are 10 separate threads. It's much easier to follow that way. -- Tatham ___ Neo4j mailing list User@lists.neo4j.org

Re: [Neo4j] 10 questions

2011-09-02 Thread Anders Nawroth
Hi! 2011-09-01 03:29, Linan Wang: 2, does index operation add/remove/modify threadsafe, don't need lock/transaction? 3, does it simple property writing operations also need to be wrapped inside transaction? if so, in the imdb exmaple tutor/domain/MovieImpl.java underlyingNode.setProperty is

Re: [Neo4j] 10 questions

2011-09-02 Thread Linan Wang
Hi anders, thanks for the clarification. On Fri, Sep 2, 2011 at 8:32 AM, Anders Nawroth and...@neotechnology.com wrote: Hi! 2011-09-01 03:29, Linan Wang: 2, does index operation add/remove/modify threadsafe, don't need lock/transaction? 3, does it simple property writing operations also

Re: [Neo4j] 10 questions

2011-09-02 Thread Anders Nawroth
Hi! All modifying operations need to be performed inside a transaction. In most cases it makes sense to perform multiple operations in a single transaction. For example in a web application it may be a good fit to wrap the handling of one request in a transaction. So if a method doesn't

Re: [Neo4j] 10 questions

2011-09-02 Thread Linan Wang
hi On Fri, Sep 2, 2011 at 10:18 AM, Anders Nawroth and...@neotechnology.com wrote: Hi! All modifying operations need to be performed inside a transaction. In most cases it makes sense to perform multiple operations in a single transaction. For example in a web application it may be a good

Re: [Neo4j] 10 questions

2011-09-02 Thread Anders Nawroth
Hi! Seems like the node and index modifications belong in the same transaction, to make sure any modifications to nodes are always reflected in the indexes as well. Otherwise they could get out of sync if your application crashes after the commit of the first, node-modifying transaction. it

Re: [Neo4j] 10 questions

2011-09-02 Thread Linan Wang
great. i thought transaction only applies to nodes operations. seems it also including indexing. it's handy! other 9 questions? :) On Fri, Sep 2, 2011 at 12:55 PM, Anders Nawroth and...@neotechnology.com wrote: Hi! Seems like the node and index modifications belong in the same transaction, to

Re: [Neo4j] 10 questions

2011-09-02 Thread Marko Rodriguez
Oh, I didn't see this: (use twitter example: my followees' followers) Then the query I provided in the previous email: g.v(1).out('livesIn').sideEffect{city = it}.back(2).out.out.filter{it.out('livesIn').next().equals(city)}.groupCount(age){it.age}.groupCount(gender){it.gender}

Re: [Neo4j] 10 questions

2011-09-01 Thread wangii
in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-10-questions-tp3300093p3302418.html Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org

Re: [Neo4j] 10 questions

2011-09-01 Thread Peter Neubauer
of a movie should be modelled as relationship since every year lots of movies are produced. -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-10-questions-tp3300093p3302418.html Sent from the Neo4j Community Discussions mailing list archive

Re: [Neo4j] 10 questions

2011-09-01 Thread Linan Wang
are produced. -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-10-questions-tp3300093p3302418.html Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. ___ Neo4j mailing list

[Neo4j] 10 questions

2011-08-31 Thread Linan Wang
hi, got some questions not found simple answers from the documents. i bet some of them are pretty primitive, bear with me please. 1, what's the general rule for choosing properties or relationship? say a User lives in a City, which just contains a simple int id value. to find users live in a