Re: [Neo4j] Fastest way to count relationships from a particular node.

2011-08-23 Thread Jim Webber
Hey, What you suggest (a cache node) is an OK way of doing things. You could also inline the cached values in the node itself. Since managing relationships is atomic with respect to the cached counters, there will never be inconsistencies. Jim ___

[Neo4j] [Spring Data Graph] Precisions about Detached Entities and SDG under the hood

2011-08-23 Thread Michel Domenjoud
Hello, I'm currently testing some of Spring Data Graph features, and I have a few questions about some usages. Could someone explain to me how the following example works? I run the following unit test: @Test public void testUpdatingEntitiesNotInTransaction(){ Movie m = new Movie();

[Neo4j] Neo4j High Availability

2011-08-23 Thread Madan Gubbala
Hi, I am trying to configure Neo4J High availability. But I am getting some exceptions. The following are the configuration details. We have 3 Linux servers (Amazon cloud instances). Each one has Zookeeper 3.3.2 and Jetty 7. Deployed web application in Jetty by giving corresponding

Re: [Neo4j] Announcing neo4django

2011-08-23 Thread Peter Neubauer
Matt, very very cool, and a great contribution to the ecosystem! Now, Jake is working on a native Python upgrade from Tobias first stab, and it would be awesome to wire that in as an alternative way of connecting to your library, so you can choose either embedded or server use. I think Jake will

Re: [Neo4j] Fuzzy Search Not Working :(

2011-08-23 Thread Peter Neubauer
Romiko, thanks a lot for the update, I expanded the REST docs a bit to show this, see the manual http://docs.neo4j.org/chunked/snapshot/rest-api-indexes.html#rest-api-find-node-by-query that will be updated shortly from

Re: [Neo4j] Which one would perform better traversal or lucene index look up

2011-08-23 Thread Mattias Persson
If you haven't figured it out I'd say index is better suited for that, it's a virtually constant lookup time. 2011/7/29 noppani...@gmail.com Hi all, I'm trying to collecting website information and I'm using Jtidy to get something like title tag or some meta tag when crawling. However, I've

Re: [Neo4j] User Digest, Vol 53, Issue 95

2011-08-23 Thread Michel Domenjoud
Michael, Thanks for your quick answer. This leads me to two new points: - You said that an entity is attached when freshly loaded, but I found no way to explicitly detach entities. Am I right? If so, I think you should update the documentation which is quite confusing on this point, and

Re: [Neo4j] Checking for unfinished transactions

2011-08-23 Thread Mattias Persson
Transactions that haven't yet committed aren't written to the logical log so if you're about to check this at runtime it cannot be done in the same way. What you'd have to do is to monitor the transactions that are alive and maybe tie each to a client so that they can be rolled back if they get

Re: [Neo4j] User Digest, Vol 53, Issue 95

2011-08-23 Thread Michael Hunger
Hi Michel, they are implicitely detached when modified outside of a transaction. But even in detached mode, for the unmodified fields it still reads through ! Could you point out how the docs could be improved? To make that easier to understand:

Re: [Neo4j] Fuzzy Search Not Working :(

2011-08-23 Thread Romiko Derbynew
Hi Peter, Perfect, and it is always nice to have bob in an example :) much appreciated, will blog about search and neo4j so I don't forget. Much appreciated Sent from my iPhone On 23/08/2011, at 8:14 PM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Romiko, thanks a lot for the

Re: [Neo4j] Optimal Seating plan problem

2011-08-23 Thread Peter Neubauer
David, I think this problem falls into the category of graph algos. It seems there is some research required to get a suitable solution. Have you done some investigations yourself and can point the community to starting points, so people might have an easier time to get ideas? Cheers, /peter

Re: [Neo4j] [Spring Data Graph] Precisions about Detached Entities and SDG under the hood

2011-08-23 Thread Michel Domenjoud
Hi Michael, Ok, I get your point now. In fact, the thing I didn't understand yet was that each get call on an entity can be compared as a SELECT on relational db, even no explicit call to the graph repository is done. So, if I understand well, I'd improve the documentation by adding somthing like

Re: [Neo4j] Neo4j-Spatial: problems when delete spatial entities

2011-08-23 Thread Peter Neubauer
Ben, the deletion code is in Andreas fork, see https://github.com/AndreasWilhelm/neo4j-spatial/blob/master/src/test/java/org/neo4j/gis/spatial/LayersTest.java#L82 for a test. We are about to release Neo4j Spatial 0.6, and after that merge this into the master. Just a heads-up. Cheers, /peter

[Neo4j] Scala, SBT and Neo4J

2011-08-23 Thread Alex
Dear Neo4Jers I am experiencing some issues with the Scala (2.9.0-1) sbt (0.10.1) dependency control and Neo4J (1.4.1), and namely I observed the following facts: 1- When using the sbt line org.neo4j % neo4j % 1.4.1 neo4j-kernel is not fetched or/and is not found, which results in the

Re: [Neo4j] Spring Data Graph 1.1.0

2011-08-23 Thread Peter Neubauer
Hi, if you look at https://github.com/SpringSource/spring-data-graph-examples/blob/master/hello-worlds/pom.xml I think you need to add the Springsource repo in order to find the artifacts? Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975

Re: [Neo4j] Enhanced API rewrite

2011-08-23 Thread Peter Neubauer
Niels, I think the SuperGraph API (TM) should go into its own component and then depend on the collections component. I can prepare that and maybe move the code there during the week or next? This way, we can evolve the API apart from the more pragmatic collection component. WDYT? Cheers,

Re: [Neo4j] Neo4j index performance using Lucene

2011-08-23 Thread Mattias Persson
Hi Erik, I don't think there's much to be done about it. An on-disk Lucene index (not even an in-memory Lucene index I can imagine) will never be as fast as a HashMap or similar approach. Although you're using setCacheCapacity on the index which should make it pretty close to the performance of a

Re: [Neo4j] Strange storage [Block not in use ] error we face with in neo4j.

2011-08-23 Thread Peter Neubauer
Pere, are you stil having these issues? Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter      http://twitter.com/peterneubauer http://www.neo4j.org               - Your high

Re: [Neo4j] Replication corner cases?

2011-08-23 Thread Mattias Persson
2011/8/15 Tuure Laurinolli tuure.laurino...@portalify.com On Aug 12, 2011, at 20:40 , Tuure Laurinolli wrote: Updates will however propagate from the master to other slaves eventually so a write from one slave is not immediately visible on all other slaves. It sounds like eventual

Re: [Neo4j] Replication corner cases?

2011-08-23 Thread Mattias Persson
Hm, actually client X can't read anything touched by T from master, since slave A will have taken write locks on things it modifies, and the write locks are associated with T that never finishes in this example. Still, master's state will diverge from cluster state. It's ok to read things

Re: [Neo4j] Very Slow Transaction only on Windows

2011-08-23 Thread Mattias Persson
The problem could be that your Blueprints graph is instantiated with wrong transaction settings, making it commit for each operation. The reason it's fast on a Mac is that OS X cheats and doesn't actually force stuff to disk when you tell it to. 2011/8/15 Keiichiro Ono kei...@gmail.com Hi

Re: [Neo4j] Memory overflow while creating big graph

2011-08-23 Thread Mattias Persson
Could you just quickly look at where most time is spent when it's slowing down? Just start VisualVM, attach to the process and monitor CPU 2011/8/16 Jose Vinicius Pimenta Coletto jvcole...@gmail.com Hi, I made some changes to use the BatchInserter to generate the initial database. The

Re: [Neo4j] Replication corner cases?

2011-08-23 Thread Tuure Laurinolli
On Aug 23, 2011, at 17:30 , Mattias Persson wrote: Hm, actually client X can't read anything touched by T from master, since slave A will have taken write locks on things it modifies, and the write locks are associated with T that never finishes in this example. Still, master's state will

Re: [Neo4j] Replication corner cases?

2011-08-23 Thread Mattias Persson
2011/8/12 Tuure Laurinolli tuure.laurino...@portalify.com On Aug 11, 2011, at 23:26 , dhsieh wrote: According to http://docs.neo4j.org/chunked/stable/ha-architecture.html, this is my understanding and I would like for confirmation from Neo4j: A slave will handle writes by

Re: [Neo4j] HA Consistency

2011-08-23 Thread Peter Neubauer
Dave, the HA MBean, see http://docs.neo4j.org/chunked/snapshot/operations-monitoring.html is giving you information about what instance currently being master, so you can use that information to set up your load balancing. Would that work? Cheers, /peter neubauer GTalk:      neubauer.peter

Re: [Neo4j] Replication corner cases?

2011-08-23 Thread Mattias Persson
2011/8/23 Tuure Laurinolli tuure.laurino...@portalify.com On Aug 23, 2011, at 17:30 , Mattias Persson wrote: Hm, actually client X can't read anything touched by T from master, since slave A will have taken write locks on things it modifies, and the write locks are associated with T

Re: [Neo4j] Neo4j High Availability

2011-08-23 Thread Peter Neubauer
Madan, just talked to Mattias on this. Zookeeper is a strange beast and casting exceptions often - what is the actual effect you are seeing - is the cluster not starting up or are there multiple masters? Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone      

Re: [Neo4j] Building neo4jpy for JCC in windows

2011-08-23 Thread Peter Neubauer
Cool. Jake is to get the updated python bindings out soon against the embedded API, so we can merge and update things in this space! Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter   

Re: [Neo4j] Using Spring Data Graph with REST

2011-08-23 Thread Peter Neubauer
Hi Musa, while the REST server works with SDG, I would prefer staying embedded because the performance is just no great with the HTTP protocol. Do you absolutely need to use a remote DB? Another approach is to use Neo4j HA, execute against a local cluster instance and let Neo4j replicate to the

Re: [Neo4j] Spring Data Graph 1.1.0

2011-08-23 Thread Michael Hunger
This file spring-data-graph-core is no longer there. It should be enough if you'd depend on org.springframework.data : spring-data-graph-neo4j : 1.1.0.RELEASE see here: http://search.maven.org./#artifactdetails%7Corg.springframework.data%7Cspring-data-neo4j%7C1.1.0.RELEASE%7Cjar Michael Am

Re: [Neo4j] NodeBacked to Node

2011-08-23 Thread sambodhi
Thanks Michael, that was pretty helpful. I was already using @GraphTraversal but findAllByTraversal() and createEntityFromState() methods are what I was actually looking for. Thanks! -- View this message in context:

[Neo4j] FullText and Exact Indices in graphs

2011-08-23 Thread sambodhi sagi
Hi, I have some confusion around indices (full-text and index). Is it fine to have same index for all full-text and non-full-text (or exact) fields? or does it affect the performance? Or to put it in a different way, at what point do we separate indices? For example: I have a NodeEntity

[Neo4j] Server couldn't start after java.lang.OutOfMemoryError

2011-08-23 Thread Nuo Yan
The neo4j server refuses to start after getting a Java OutOfMemory Error. I was trying to start the server using the ./bin/neo4j start command. Starting neo4j-service...WARNING: not changing user process [26266]... waiting for server to be

Re: [Neo4j] Server couldn't start after java.lang.OutOfMemoryError

2011-08-23 Thread Jim Webber
Hi Nuo, process [26266]... waiting for server to be ready. BAD. another server-process is running with [] Just to check before we dig deeper, are you certain you don't have

Re: [Neo4j] Server couldn't start after java.lang.OutOfMemoryError

2011-08-23 Thread Nuo Yan
I don't think another process was running but I'm not 100% certain (didn't check other than doing ./bin/neo4j status which shows not running). When it happens again I will check further and let you know. Thanks! Nuo On Tue, Aug 23, 2011 at 6:23 PM, Jim Webber j...@neotechnology.com wrote: Hi

Re: [Neo4j] Server couldn't start after java.lang.OutOfMemoryError

2011-08-23 Thread Mattias Persson
It would also be very useful if you could send data/db/messages.log (to me directly since the mailing list doesn't like attachments) after such an error. thanks, Mattias Den onsdagen den 24:e augusti 2011 skrev Nuo Yanyan@gmail.com: I don't think another process was running but I'm not 100%