[Neo4j] Python embedded and Java batch inserter

Jacopo Farina jacopo1.farina at gmail.com
Tue Oct 18 15:29:43 CEST 2011


Yes! It worked!
Thanks a lot.
Jacopo Farina

2011/10/18 Jacob Hansson <jacob.hansson at neotechnology.com>

> I think this might be another case of a problem that would be a lot easier
> to solve if the python bindings pushed out full stack traces. It's in my
> backlog to fix that.
>
> I'm gonna *guess* that the problem has to do with store upgrades. Are you
> using the 1.5.M02 version of neo4j embedded?
>
> If so, you need to tell the database it's ok to upgrade the store, like
> this:
>
>
> from neo4j import GraphDatabase
> db = new GraphDatabase('somefolder', allow_store_upgrade="true")
>
> On Mon, Oct 17, 2011 at 4:19 PM, Jacopo Farina <jacopo1.farina at gmail.com
> >wrote:
>
> > Hi all,
> > I'm trying to work with Neo4j embedded with Python, but, if I try to open
> a
> > database created with the Java batch inserter (neo4j 1.4) by using
> > Python-embedded, I get the error described here
> > https://trac.neo4j.org/ticket/275
> > The database works correctly when opened in Neoclipse or with neo4j
> > stand-alone server (by replacing the data folder), and if I create a new
> > database directly with Python embedded it works too. Is there a way to
> > solve
> > this problem?
> >
> > Then, how much is fast the neo4j-REST traverser compared with the Java
> > embedded traverser on a 3 million nodes graph?
> >
>
> As far as I know, we don't have any benchmarks that compare this. The speed
> difference should not be huge though. The server is a lot slower for reads
> and writes, but for traversals, the overhead of the server plays a much
> smaller part.
>
> Sidenote: The size of your graph should generally not affect traversal
> speed
> (unless the graph does not fit in memory), what matters is how much of the
> graph you traverse. In java embedded, we used to say that you get maybe 1
> 000 000 relationships traversed per second (although speed can be both
> higher and much lower, depending on what your traversal does).
>
>
> >
> > Cheers!
> > Jacopo Farinat
> > _______________________________________________
> > Neo4j mailing list
> > User at lists.neo4j.org
> > https://lists.neo4j.org/mailman/listinfo/user
> >
>
>
> /Jake
>
> --
> Jacob Hansson
> Phone: +46 (0) 763503395
> Twitter: @jakewins
> _______________________________________________
> Neo4j mailing list
> User at lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>


More information about the User mailing list