Re: [Neo4j] batch import 2.0 avoiding duplicate relationships?

2014-08-18 Thread gg4u
hello, someone could tell me which file /where to modify batch importer so that to create relationships like: Merge (a)-[:REL]-(b) On create set r.weight = 123 ? thank you! Il giorno sabato 16 agosto 2014 16:34:52 UTC+2, gg4u ha scritto: Hi Mattias, I see. So how the relationships and

Re: [Neo4j] batch import 2.0 avoiding duplicate relationships?

2014-08-16 Thread gg4u
Hi Mattias, I see. So how the relationships and nodes are created: using *create *or *merge* ? I think merge would solve the issue for a check on duplication of relationships, especially if the directions of connection could be specified or unspecified. Java is not my thing, maybe someone can

Re: [Neo4j] batch import 2.0 avoiding duplicate relationships?

2014-08-15 Thread Mattias Persson
The batch inserter http://docs.neo4j.org/chunked/2.1.3/javadocs/org/neo4j/unsafe/batchinsert/BatchInserter.html does no such checks, no On Thu, Aug 14, 2014 at 6:54 PM, gg4u luigi.as...@gmail.com wrote: Hi, a quick note on the batch importer: does it import the relationships with an

Re: [Neo4j] batch import 2.0 avoiding duplicate relationships?

2014-08-15 Thread Michael Hunger
Batch inserter is insert only you have to deduplicate upfront With merge you can use Merge (a)-[:REL]-(b) On create set r.weight = 123 To ignore direction Sent from mobile device Am 14.08.2014 um 18:54 schrieb gg4u luigi.as...@gmail.com: Hi, a quick note on the batch importer: does

[Neo4j] batch import 2.0 avoiding duplicate relationships?

2014-08-14 Thread gg4u
Hi, a quick note on the batch importer: does it import the relationships with an equivalent *create ()-[]-() *or *merge ()-[]-()* ? In order to reduce the size of the graph, I would like to avoid to have duplicate relationships, in the sense that if a rel a-[]-b exist, that is equivalent