On Sun, Oct 2, 2011 at 10:36 PM, Mattias Persson
<[email protected]>wrote:

> 2011/10/2 Jacob Hansson <[email protected]>
>
> > Hey Christian,
> >
> > we don't have any proper benchmarks for the server currently, but it is,
> > unfortunately, still quite a bit slower than the core embedded database.
> >
> > There are a few things you can do to get a faster experience:
> >
> >   - Use persistent HTTP connections
> >   - Use HTTP pipelining (this has, in my late-night-hacky tests, given
> >   significant performance boosts, close to twice the speed)
> >
> > Any code/config/hints as to how to achieve this?
>

Well, most modern HTTP implementations will use persistent connections if
they can, but it's implementation dependent. In Java, the built in
UrlConnection (or whatever the name of the class is, I don't remember. The
thing you get when you do URL#getConnection) reuses TCP connections per
default, on the precondition that you read the full response before sending
the next request.

As for pipelining, this is (supposedly) supported by Jetty, and so should
work on the neo4j server (my experiments did not use Jetty to serve our API,
but the principle for why it is faster still applies, and the same
performance gains should be seen). So really, it's just a matter of using a
HTTP client that supports pipelining, unfortunately, there are very few to
choose from.

Here is one for Java:
http://hotpotato.biasedbit.com/


>
>
> > /Jake
> >
> >
> > On Sun, Oct 2, 2011 at 6:37 AM, Christian Straight <
> > [email protected]> wrote:
> >
> > >
> > > I'm evaluating using REST-ful calls to neo4j stand-alone
> server....mainly
> > I
> > > would like to understand the performance issues better.  Can anyone on
> > this
> > > list direct me to some neo4j benchmarks?
> > >
> > > many thanks,
> > > Christian Straight @
> > > WildGigs
> > >
> > > .:. Typed with thumbs and sent from my HTC Evo
> > >
> > > _______________________________________________
> > > Neo4j mailing list
> > > [email protected]
> > > https://lists.neo4j.org/mailman/listinfo/user
> > >
> >
> >
> >
> > --
> > Jacob Hansson
> > Phone: +46 (0) 763503395
> > Twitter: @jakewins
> > _______________________________________________
> > Neo4j mailing list
> > [email protected]
> > https://lists.neo4j.org/mailman/listinfo/user
> >
>
>
>
> --
> Mattias Persson, [[email protected]]
> Hacker, Neo Technology
> www.neotechnology.com
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Jacob Hansson
Phone: +46 (0) 763503395
Twitter: @jakewins
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to