From: Michael Hunger <michael.hun...@neotechnology.com>
Date: Thu, 26 Apr 2012 00:09:20 +0200
Local: Wed, Apr 25 2012 6:09 pm
Subject: Re: [Neo4j] java-rest-bindings batch support
Daniel, we also discussed an approach like your Transaction suggestion, the main problem with that is references leaking outside the scope (imho).
But might be worth a try.
Feel free to chime in and try it out.
Cheers
Michael
Let's have a look at the test: BatchRestAPITest
@Test
Relationship foundRelationship = TestHelper.firstRelationshipBetween( r.n1.getRelationships(Type.TEST, Direction.OUTGOING), r.n1, r.n2);
assertThat(r.n1.getRelationships(Type.TEST, Direction.OUTGOING), new IsRelationshipToNodeMatcher(r.n1, r.n2));
Am 25.04.2012 um 21:01 schrieb Daniel Cox:
> Hey All,
> The java-rest-bindings readme says it supports batch operations, but I haven't found any code examples. My best guess is that it supports batches transparently through GraphDatabaseService's transactions, so that I would just do this, and it would kick off a batch operation in tx.success(): > Transaction tx = db.beginTx();
> Is that right?
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||