2010/10/27, Roman Uhlig <[email protected]>: > Ok, that's embarrassing. ;) > I could swear to high heaven that it wasn't there a few weeks ago as I tried > it first. But maybe I just overlooked it. > > Sorry for bothering you guys, it's all clear and doesn't need any further > clarification. > > BTW, we have test-ported our first big database with a strong network > character from PostgreSQL/Hibernate to Neo4j and had an average performance > boost of 350% on the database layer. Nice one! :)
that sounds awesome! The performance boost doesn't surprise me at all and I'm sure it can be even more when tweaked and all that. > > Roman > > > -----Ursprüngliche Nachricht----- > Von: Roman Uhlig > Gesendet: Mittwoch, 27. Oktober 2010 18:50 > An: technik > Betreff: rrrr > > > I just looked at > http://wiki.neo4j.org/content/Getting_Started_In_One_Minute_Guide and > http://wiki.neo4j.org/content/Getting_Started_Guide and they include the > tx.success() thingie. Does it need to be clarified somehow and if so how? > > 2010/10/26 Roman Uhlig <Roman.Uhlig at maxity.de> > >> Thanks Axel, that did it. >> Most of the tutorials (especially the getting started guide) don't show >> this, so I'd recommend to include it. It's a bit confusing, especially >> when >> you come from the relational database environment or even an ORM mapper, >> where .commit() / .rollback() usually closes the transaction as well. >> >> Thanks for your help, >> Roman >> >> >> -----Ursprüngliche Nachricht----- >> Von: Roman Uhlig >> Gesendet: Dienstag, 26. Oktober 2010 16:01 >> An: technik >> Betreff: Re: Neo4j tutorial >> >> You forgot tx.success() in the try{} block, see >> http://wiki.neo4j.org/content/Transactions#Controlling_success. >> >> Greetings >> >> Axel >> >> Am 26.10.2010 11:19, schrieb Roman Uhlig: >> > Hi, >> > I'm completely new to Neo4j and got an issue while trying the getting >> started guide. >> > >> > Everytime I close the database (GraphDatabaseService.shutdown()) and >> > open >> it again later, all data is gone (or was never saved). I did exactly as >> described in the guide, so maybe someone can point me in the right >> direction? Probably just some stupid mistake by me. ;) >> > >> > My tiny test case (Windows, Java 1.6): >> > >> > Writing data: >> > >> > GraphDatabaseService db = new >> > EmbeddedGraphDatabase("/temp/neo4j/test1"); >> > try { >> > org.neo4j.graphdb.Transaction tx = db.beginTx(); >> > try { >> > Node rootNode = db.getReferenceNode(); >> > Node firstNode = db.createNode(); >> > rootNode.createRelationshipTo(firstNode, >> IdabaRelTypes.ROOT_TYPES); >> > } finally { >> > tx.finish(); >> > } >> > } finally { >> > db.shutdown(); >> > } >> > >> > Reading data: >> > >> > GraphDatabaseService db = new >> > EmbeddedGraphDatabase("/temp/neo4j/test1"); >> > try { >> > org.neo4j.graphdb.Transaction tx = db.beginTx(); >> > try { >> > Node rootNode = db.getReferenceNode(); >> > for (Relationship rel : rootNode.getRelationships()) { >> > // output test data, but nothing in it >> > } >> > } finally { >> > tx.finish(); >> > } >> > } finally { >> > db.shutdown(); >> > } >> > >> > >> > Thanks in advance, >> > Roman >> > _______________________________________________ >> > Neo4j mailing list >> > User at lists.neo4j.org >> > https://lists.neo4j.org/mailman/listinfo/user >> >> >> -- >> Axel Morgner >> Creative Solutions - Software Engineering >> GUI& UX Design - Project Management >> >> c/o inxire GmbH >> Hanauer Landstr. 293a >> 60314 Frankfurt >> Germany >> >> Phone +49 151 40522060 >> E-mail axel at morgner.de >> Web http://morgner.de >> _______________________________________________ >> Neo4j mailing list >> User at lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user >> > > > > -- > Mattias Persson, [mattias at neotechnology.com] > Hacker, Neo Technology > www.neotechnology.com > _______________________________________________ > 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

