Re: [Neo4j] t= new Table() in Gremlin

2011-07-06 Thread Marko Rodriguez
Hi, To further clarify, Table is provided in Gremlin 1.1+. To check the version of Gremlin, do GremlinTokens.VERSION. Good luck, Marko. http://markorodriguez.com On Jul 6, 2011, at 8:40 PM, Michael Hunger wrote: > Boris, > > I think, 1.3 uses a much older version of gremlin which didn't get

Re: [Neo4j] Performance issue on nodes with lots of relationships

2011-07-06 Thread David Montag
Hi Andrew, How big is your configured Java heap? It could be that all the nodes and relationships don't fit into the cache. David On Wed, Jul 6, 2011 at 8:03 PM, Andrew White wrote: > Here is some interesting stats to consider. First, I split my nodes into > two groups, one node with 1.4M chil

Re: [Neo4j] Performance issue on nodes with lots of relationships

2011-07-06 Thread Andrew White
Here is some interesting stats to consider. First, I split my nodes into two groups, one node with 1.4M children and the other with 3.4M children. While I do see some cache warm-up improvements, the transversal doesn't seem to scale linearly; ie the larger super-node has 2.4x more children but

Re: [Neo4j] Performance issue on nodes with lots of relationships

2011-07-06 Thread Andrew White
I just tested with 1.4.M06 and performance seems about the same. Also, only the supernodes are affected, the child nodes are very fast. On 07/06/2011 09:31 AM, Michael Hunger wrote: > Andrew, > > could you please also try to access the graph via the latest Milestone > 1.4.M06 to see if things ha

Re: [Neo4j] t= new Table() in Gremlin

2011-07-06 Thread Michael Hunger
Boris, I think, 1.3 uses a much older version of gremlin which didn't get the Table result type yet? Please pull 1.4.M06 and try to use it there to see if it works in the current version. Cheers Michael Am 07.07.2011 um 04:34 schrieb Boris Kizelshteyn: > Greetings! I am using stable 1.3 and

[Neo4j] t= new Table() in Gremlin

2011-07-06 Thread Boris Kizelshteyn
Greetings! I am using stable 1.3 and when I issue t = new Table() in the gremlin shell I get: - gremlin> t = new Table(); - ==> startup failed: - ==> groovysh_evaluate: 26: unable to resolve class Table - ==> @ line 26, column 5. - ==>t = new Table(); What am I doing wrong?

Re: [Neo4j] Performance issue on nodes with lots of relationships

2011-07-06 Thread Andrew White
I am on a standard filesystem (ext4). I haven't seen the issue again today so I wonder if it was a fluke. Andrew On 07/06/2011 12:29 PM, Paul Bandler wrote: >> Any hints on the memory map issue are welcomed too. > I experienced that on Solaris when I'd placed the db on a filesystem that > didn'

Re: [Neo4j] Indexed relationships

2011-07-06 Thread Niels Hoogeveen
Pushed SortedTree to Git after adding a unit test and doing some debugging. TODO:Add API for indexed relationships using SortedTree as the implementation.Make SortedTree thread safe. With regard to the latter issue. I am considering the following solution. Acquire a lock (delete a non existent p

Re: [Neo4j] Setting up a Cluster and querying

2011-07-06 Thread David Montag
Hi Christian, Please see http://docs.neo4j.org/chunked/1.4.M06/ha.html for info on Neo4j HA. You can run a coordinator and a Neo4j server on the same machines. That's a common setup. As for how to query it, answering that requires some more explanation about how Neo4j can be run. Neo4j can be use

[Neo4j] Neo4jPHP

2011-07-06 Thread Josh Adell
Hey all, I've been working on another PHP client for Neo4j. I think it's ready for some real-life testing, and I'm interested to see what you all think. GitHub: https://github.com/jadell/Neo4jPHP Download: https://github.com/jadell/Neo4jPHP/tarball/0.0.1-beta Features: - Developed against the Ne

Re: [Neo4j] Unable to upgrade neostore

2011-07-06 Thread Paul A. Jackson
I did not. If this is what is required then you have answered my question. Thanks. -Paul -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Adriano Henrique de Almeida Sent: Tuesday, July 05, 2011 10:59 PM To: Neo4j user discussions

Re: [Neo4j] Performance issue on nodes with lots of relationships

2011-07-06 Thread Mattias Persson
Just noticed that "ls" shell reads all relationships before displaying them... I'll fix this tomorrow. 2011/7/6 Mattias Persson > > > 2011/7/6 Jim Webber > >> Hi Rick, >> >> > Are you thinking maybe of lazily loading relationships in 1.5? That >> might be a huge boost. >> >> Added to the backl

Re: [Neo4j] Performance issue on nodes with lots of relationships

2011-07-06 Thread Mattias Persson
2011/7/6 Jim Webber > Hi Rick, > > > Are you thinking maybe of lazily loading relationships in 1.5? That > might be a huge boost. > > Added to the backlog to be discussed for inclusion in 1.5. > Neo4j _is_ lazily loading relationships... and have done since before 1.0. Maybe there's some issue

[Neo4j] Setting up a Cluster and querying

2011-07-06 Thread Christian Godde
Hi there, I am quite a newbie with neo4j and I hope somebody can help me. I want to set up a Cluster with 6 Servers and a few Coordinators (can a Server at the same time be a Coordinator?). Theoretically the setting up of this cluster is more or less clear to me. But the big question for me is: H

Re: [Neo4j] Performance issue on nodes with lots of relationships

2011-07-06 Thread Andrew White
Logs are attached. I am using the Sun 64bit HotSpot JVM (see logs). For this particular graph I simply have a single root reference node (0) and millions of nodes with a 1:1 relationship with the root. For all intents, this version of the graph is like a flat table with all elements sharing the

Re: [Neo4j] Performance issue on nodes with lots of relationships

2011-07-06 Thread Paul Bandler
>Any hints on the memory map issue are welcomed too. I experienced that on Solaris when I'd placed the db on a filesystem that didn't support memory mapped I/o such as NFS Sent from my iPhone On 6 Jul 2011, at 17:48, Andrew White wrote: > Any > hints on the memory map issue are welcomed too.

Re: [Neo4j] Performance issue on nodes with lots of relationships

2011-07-06 Thread Michael Hunger
Ok, then it is checking the connectedness which actually really traverses all the relationships between the current and the target node. Could you share the whole messages.log file from that graph store? Which JVM are you running? If you can't share the db, could you please describe the struct

Re: [Neo4j] Performance issue on nodes with lots of relationships

2011-07-06 Thread Andrew White
When using `cd -a` it is indeed very fast. As to the logs, those where from messages.log. Sharing the graph-db would be tough considering I am generating this graph off of several GB of data and my local upload is very limited. Any hints on the memory map issue are welcomed too. Thanks for all

Re: [Neo4j] Performance issue on nodes with lots of relationships

2011-07-06 Thread Michael Hunger
Andrew, can you by chance share you graph-db or perhaps your generator script? Then we could evaluate that and see where the performance hit occurs. Neo4j-shell checks the connectedness of the graph so that you can't get lost just while navigating. Could you try to use cd -a 1 (this does absol

Re: [Neo4j] Performance issue on nodes with lots of relationships

2011-07-06 Thread Jim Webber
Hi Rick, > Are you thinking maybe of lazily loading relationships in 1.5? That might be > a huge boost. Added to the backlog to be discussed for inclusion in 1.5. Jim ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinf

Re: [Neo4j] Start script of 1.4.M05/1.4.M06 fails with older versions of bash + FIX

2011-07-06 Thread Jim Webber
Thanks for that Stephan, I've dropped it into our QA backlog for the 1.4 GA release. Jim On 6 Jul 2011, at 12:06, Stephan Hagemann wrote: > Hi everyone, > > a rather old linux installation on our build server led us to find out that > the new start script introduced in M05 (?) does not work wi

Re: [Neo4j] Data Federation

2011-07-06 Thread Jim Webber
Hi John, > But if I try to do a distributed join, aren't I hit with having to transfer > more data over the wire? Yes you're right - that's one penalty of having a graph distributed. Each time you hit a relationship that crosses a machine, the latency is way higher than if you were traversing

Re: [Neo4j] neo4j spatial bounding box vs. lat/lon

2011-07-06 Thread Boris Kizelshteyn
Ah ha ... the reason I couldn't find it is because there is a typo ... "udpateGeometryFromWKT" the p and d are switched :) However, I rebuilt it but do not see this in the REST extensions after moving everything from /target/dependency to plugins. Any thoughts? Thanks! On Wed, Jul 6, 2011 at 4:3

Re: [Neo4j] Performance issue on nodes with lots of relationships

2011-07-06 Thread Andrew White
This is consistently slow. I made a graph which just goes off of the root reference node (0) and I am seeing the following... (0)$ cd 1 (1)$ cd 0 (0)$ cd 1 It's almost like it is scanning the entire relationship list before actually looking up the next node. Of note I have found

Re: [Neo4j] Performance issue on nodes with lots of relationships

2011-07-06 Thread Peter Neubauer
Andrew, if you upgrade to 1.4.M06, your shell should be able to do Cypher in order to count the relationships of a node, not returning them: start n=(1) match (n)-[r]-(x) return count(r) and try that several times to see if cold caches are initially slowing down things. or something along these

Re: [Neo4j] Performance issue on nodes with lots of relationships

2011-07-06 Thread Rick Bullotta
Hi, Michael. Are you thinking maybe of lazily loading relationships in 1.5? That might be a huge boost. Rick -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Michael Hunger Sent: Wednesday, July 06, 2011 10:32 AM To: Neo4j user d

Re: [Neo4j] Performance issue on nodes with lots of relationships

2011-07-06 Thread Michael Hunger
Andrew, could you please also try to access the graph via the latest Milestone 1.4.M06 to see if things have improved. Does this behaviour only effect the supernodes or every node in your graph (e.g. when you access, cd, ls a person-node?) We've been discussing some changes to the initial load

Re: [Neo4j] Lifecycle of a Graph ?

2011-07-06 Thread Michael Hunger
Could you explain, how you "load" it into memory? And what you do that returns null? The graph itself has no lifecycle. Then Graph-Entities are attached the nodes and relationships when you load (via repositories, cypher or direct, or when you navigate along relationships) them and allow writ

Re: [Neo4j] Performance issue on nodes with lots of relationships

2011-07-06 Thread Rick Bullotta
Hi, Andrew. In general, this scenario (1 million+ relationships on a node) can be slow, but usually only the first time you access the node. If you're only accessing the node once in a session, then yes, it will seem sluggish. The Neoclipse issue is probably a combination of two issues: the f

[Neo4j] Lifecycle of a Graph ?

2011-07-06 Thread V
Can anyone explains me the life cycle of a graph with Neo4j spring data graph. I want to load multiple copies of a persisted graph in memory, but some how the second instance returns null. Not sure if I am doing something wrong or if this is something related to the graph lifecycle? Any comments/

[Neo4j] Performance issue on nodes with lots of relationships

2011-07-06 Thread Andrew White
I have a graph with roughly 10M nodes. Some of these nodes are highly connected to other nodes. For example I may have a single node with 1M+ relationships. A good analogy is a population that has a "lives-in" relationship to a state. Now the problem... Both neoclipse or neo4j-shell are terrib

[Neo4j] REST Batch: failed to insert empty array as a node property

2011-07-06 Thread Igor Dovgiy
When trying to process POSTing to batch-path of something like... [{"id":1, "method":"POST", "to":"/node", "body":{"user_properties":[]} }] ...server fails with... "exception" : "java.lang.RuntimeException", "stacktrace" : [ "org.neo4j.server.rest.web.BatchOperationService.performJob(Bat

[Neo4j] Start script of 1.4.M05/1.4.M06 fails with older versions of bash + FIX

2011-07-06 Thread Stephan Hagemann
Hi everyone, a rather old linux installation on our build server led us to find out that the new start script introduced in M05 (?) does not work with all versions of bash. We got: cruise:/virtual/hudson/hudson_home/jobs/graphdb/workspace# /opt/neo4j/bin/neo4j start /opt/neo4j/bin/neo4j: line 37:

Re: [Neo4j] Possibility of extending Zookeeper features to App Server

2011-07-06 Thread Mattias Persson
The role of Zookeeper in HA in neo4j is just master election and instance discovery. It's not involved in the actual communication between instances. Knowing that, are your questions still valid? 2011/7/1 Brendan Cheng > Hi, > > I'm very interested your HA architecture and wonder if possible to

Re: [Neo4j] neo4j + RDF + SPARQL or non-RDF?

2011-07-06 Thread Mattias Persson
I'd say that you can often use nodes and relationships without URIs, although maybe some concept of IDs other than the internal ids of nodes and relationships. Data stored in neo4j can often be seen as triples-like statements: (personA)--[KNOWS]-->(personB) but that's just the simplest form...

Re: [Neo4j] neo4j spatial bounding box vs. lat/lon

2011-07-06 Thread Craig Taverner
Hi Boris, I can see the new update method here: https://github.com/neo4j/neo4j-spatial/blob/master/src/main/java/org/neo4j/gis/spatial/server/plugin/SpatialPlugin.java#L138 And the commit for it is here: https://github.com/neo4j/neo4j-spatial/commit/22eaf91957a6265ef1e6923b5da572b75383b83e Hope