[Neo] basic questions

2010-03-16 Thread Lincoln
Hi, I've just started looking at Neo4j and I'm quite intrigued. However, the cognitive dissonance that I've grown so used to in modeling storage is proving to be a bit difficult to let go at this early stage :) I was hoping that if someone could help me through an example I would be able to grok

Re: [Neo] Leaderboard?

2010-03-16 Thread Lachlan Cotter
You don't need to consult every single player after updating the scores — only the ones that are already on the leader board. So the time to make an update should be relatively constant. The maximum number of updates will be relative to the deepest chain of introductions in the pyramid. I d

Re: [Neo] Problems installing neo4j.py

2010-03-16 Thread Erik Ask
I'm away from the computer in question now, but I did have that directory, and it did contain files. I've also tried installing to a directory in my home directory, i.e. no sudo involved, and everything seemed to install just fine. But still no backend when actually running. Is there a list of the

Re: [Neo] Creating an Edge list from graph (Python)

2010-03-16 Thread Tobias Ivarsson
Hi Ryan, It's nice to see that interest in using Neo4j with Python is picking up :) Traversers in Neo4j return the (returnable) nodes they visit as they traverse the graph. It sounds to me that you are more interested in the relationships. I'm working on changing the traversal subsystem, that wil

Re: [Neo] Problems installing neo4j.py

2010-03-16 Thread Tobias Ivarsson
Your previous error indicated that the dependencies directory could not be created during the setup, this is where all the java libraries gets downloaded to. Could you make sure that your Neo4j python install directory (seems to be /usr/local/jython/Lib/site-packages/neo4j in your case) contains a

[Neo] Creating an Edge list from graph (Python)

2010-03-16 Thread Ryan Rosario
Hi, I have a large graph and I am trying to extract the list of edges that correspond to some relationship "foo", node A -> node B. I cannot figure out how to do this. I have tried using a traversal class, but I am not having any luck. neo = NeoService("the path") class Follow(neo4j.Traversal):

Re: [Neo] Problems installing neo4j.py

2010-03-16 Thread Erik Ask
Tobias Ivarsson wrote: > It looks very strange. Which version of Jython are you using? > > On Tue, Mar 16, 2010 at 4:12 PM, Erik Ask wrote: > > >> Hello, I'm having trouble installing neo4j.py >> >> >>> sudo jython setup.py install >>> >> root's password: >> warning: /root/.jython i

Re: [Neo] Problems installing neo4j.py

2010-03-16 Thread Tobias Ivarsson
It looks very strange. Which version of Jython are you using? On Tue, Mar 16, 2010 at 4:12 PM, Erik Ask wrote: > Hello, I'm having trouble installing neo4j.py > > > sudo jython setup.py install > root's password: > warning: /root/.jython is a directory, not a file > *sys-package-mgr*: processing

[Neo] Problems installing neo4j.py

2010-03-16 Thread Erik Ask
Hello, I'm having trouble installing neo4j.py > sudo jython setup.py install root's password: warning: /root/.jython is a directory, not a file *sys-package-mgr*: processing new jar, '/usr/local/jython/jython.jar' *sys-package-mgr*: processing new jar, '/usr/lib64/jvm/java-1.6.0-sun-1.6.0/jre/lib/

Re: [Neo] Directional links in neoclipse.

2010-03-16 Thread Chris Dew
Thanks for your answer, it's a pity. I don't have enough time to develop this feature myself; it's not a high priority and I don't have any experience of developing eclipse components. I'd be happy to offer a very small bounty (~$50) if somebody else is interested in implementing this as a featur

Re: [Neo] Leaderboard?

2010-03-16 Thread Craig Taverner
If the total number of players scores changed was a relatively small part of the list, then re-linking those on each change might still be efficient, but you indicate that the number might be high, then Rick's b-tree approach works better. In my opinion you have two options: - Lucene - you can

Re: [Neo] neo4j.py for loops and traversals

2010-03-16 Thread Tobias Ivarsson
Yes, this will work. The delete operation is really just a "mark for removal" operation, they still be reachable until the transaction is finished(), this is to enable things exactly like the scenario you are describing. On Mon, Mar 15, 2010 at 3:10 PM, Erik Ask wrote: > Hello > > Im going to de

Re: [Neo] Java outof 64 GB ram

2010-03-16 Thread Peter Neubauer
Miguel, from your code, it seems that you are trying to read up a lot of relationships from the nodespace into RAM by populating the Set ltra = new HashSet(); I cannot test the code, but you should probably check the size of that construct. Neo4j itself should degrade performance gracefully if th

Re: [Neo] Can't find index

2010-03-16 Thread Tobias Ivarsson
The create=True parameter is per session at the moment, this is a known issue, and is going to be resolved at some point. It depends on support from the underlying subsystem that is not implemented yet. On Tue, Mar 16, 2010 at 7:09 AM, Ryan Rosario wrote: > Hi, > > I am using neo4j.py and I crea

Re: [Neo] Leaderboard?

2010-03-16 Thread Mattias Ask
Thanks for answering! Linked list... My spontaneous feeling is that then I'll have to sort every time the scores change, right? And that operations would probably take more and more time depending on the number of players..? But the fetching of the leaderboard would be dead fast every time! The lo