Re: [Neo4j] performance issues with ubuntu

2011-05-31 Thread Alexander Smirnov
I have some clue about this problem. I did face it before, though not with Neo4j but with other programs that intensive use disks. For example, my linux box completely frozen by svn update command for huge projects. The symptoms are same : low CPU load with high iowait ( in your message, I saw

Re: [Neo4j] unique indexes

2011-06-10 Thread Alexander Smirnov
Check befor update could not help there, because Neo4j does not show uncommited changes to other transactions, so it's possible to store the same value in concurrent transactions. I also tried to figure out how to avoid duplicated values in database. Seems that it needed some locks on database

Re: [Neo4j] polyglot persistence for neo4j

2011-07-05 Thread Alexander Smirnov
We use Neo4j and MySQL for our project, in the JEE environment, with XA datasource for RDBM + Neo4j JCA connector https://github.com/alexsmirnov/neo4j-connector that let us to synchronize transactions between these sources. The prototype http://www.netoprise.com is far away from production :-),

Re: [Neo4j] Officially supported mechanism for J2EE

2011-07-18 Thread Alexander Smirnov
I use neo4j in Glassfish, with JCA connector ( https://github.com/alexsmirnov/neo4j-connector ), and currently tested it with Jboss7. The connector has been created for my startup project ( www.netoprise.com, sorry for horrible design, ot's only 10% done ), and I plan to convert it to HA connector

Re: [Neo4j] Neo4j 1.4 / Lucene 3.1 / OSGi - No index provider 'lucene' found

2011-07-20 Thread Alexander Smirnov
Just curious - as I traced down OSGI service loading from the neo4j Service class it commented out, so the only Java META-INF/services used in any environment. May be that's the case ? On Wed, Jul 20, 2011 at 4:55 AM, Jörg Richter j...@deepamehta.de wrote: Thanks for replies! Yes, the super

Re: [Neo4j] Officially supported mechanism for J2EE

2011-07-22 Thread Alexander Smirnov
No, that's wrong. To create ( and shut down GraphDatabaseService in your bean, you should: 1) create @Singleton session bean. In its @PostConstruct method, create appropriate GraphDataBase service object, and stop it in @PreDestroy method. You can mark that bean as created on startup, if you wish

Re: [Neo4j] Test and try/catch block

2011-08-29 Thread Alexander Smirnov
I use jUnit MethodRule that starts embedded server in temporary folder and cleans up transaction after the test: public class Neo4jRule extends TemporaryFolder { private GraphDatabaseService graphDatabase; private Transaction transaction; @Override

Re: [Neo4j] Transparent Distributed Queries?

2011-10-11 Thread Alexander Smirnov
You can try to implement Google Pregel http://dl.acm.org/citation.cfm?id=1807167.1807184 algorithm on top of Neo4j or use existing implementation http://www.goldenorbos.org/ On Tue, Oct 11, 2011 at 3:26 PM, amitp amit.port...@gmail.com wrote: Hey, - I'm designing a P2P application in which