Re: [Neo4j] Copy queries from the web admin console?

2011-11-16 Thread Kevin Versfeld
I can confirm this behaviour on Chrome If I drag to select, and before releasing, right click, I can use the context menu to copy successfully Not ideal, but certainly workable. -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Re-Neo4j-Copy-queries

[Neo4j] Simple paging question - Gremlin

2011-11-14 Thread Kevin Versfeld
hi folks I'm implementing paging in a gremlin query - Can anyone tell me the difference(s) between the following two techniques: g.v(293).in.drop(5).take(5) and g.v(293).in[5..9] (Both return the same, correct result set) I will be doing some performance tests today on the two, but last week w

Re: [Neo4j] Gremlin - how to flatten a tree, and sort

2011-11-11 Thread Kevin Versfeld
hi Michael/Peter Peter: yes, that about sums it up. Webadmin console is fine, but REST not so much. Michael: my final set is a little over 100K nodes, and while I am still playing around as part of a technical proof of concept, I think I will need this data more or less in its entirety. I pumped

Re: [Neo4j] Gremlin - how to flatten a tree, and sort

2011-11-10 Thread Kevin Versfeld
furthermore, I tried a simple query, that returns about the same number of rows (still around 100K), and increased the timeout of my REST call (to several minutes) - and got my OutOfMemoryError again :) latest query is just g.v(293).in('R_Bought'). Running it through the webadmin console is quick,

Re: [Neo4j] Gremlin - how to flatten a tree, and sort

2011-11-10 Thread Kevin Versfeld
hi, thanks for the quick reply. I need to add some more info (some I left out, some I discovered later) This only happens when I use that gremlin over REST. Executing the gremlin in the webadmin console is pretty quick, and I don't see any memory spikes or anything. What I did (after posting the p

Re: [Neo4j] Gremlin - how to flatten a tree, and sort

2011-11-10 Thread Kevin Versfeld
hi again I've been trying that query out (slightly modified now to return all nodes of a different kind, but attached to a node in the first set), on a data set of around 100K, and I'm getting an OutOfMemoryError: { "message" : "GC overhead limit exceeded", "exception" : "java.lang.OutOfMemoryE

Re: [Neo4j] Gremlin - how to flatten a tree, and sort

2011-11-08 Thread Kevin Versfeld
Perfect, thanks! (Seems so obvious now... *sigh*) At least I now have the easier query done, and can get on to the tricky ones *nervous* -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Gremlin-how-to-flatten-a-tree-and-sort-tp3480586p3489600.html Sent

Re: [Neo4j] Gremlin - how to flatten a tree, and sort

2011-11-07 Thread Kevin Versfeld
Great! Thanks Marko, this has been very helpful. I did realise my mistake on the sort: when I tried it the way you suggested originally, I also had a few other things wrong, and obviously did not apply a methodical approach to solving it. One last question: I need to just return the nodes, at the

Re: [Neo4j] Gremlin - how to flatten a tree, and sort

2011-11-07 Thread Kevin Versfeld
hi again I've played around a bit more, and this is the query that currently works best for me... would anyone mind "reviewing" it for me please? Feels a little like I'm getting the right answer, but the wrong way gremlin> m = [:]; gremlin> g.v(162).in('R_PartOf').loop(1){m.put(it.object, it.lo

Re: [Neo4j] Gremlin - how to flatten a tree, and sort

2011-11-07 Thread Kevin Versfeld
hi again I suspect I'm missing something small, but when I run the following in the webadmin console, I don't get any output? m = [:]; g.v(162).in('R_PartOf').loop(1){m.put(it.object, it.loops); true}.cap.next().sort{a, b -> a.value <=> b.value}.keySet >> [] (m is empty too...) Thanks for the