Re: [Neo4j] Cypher: node IDs

2011-08-26 Thread Aseem Kishore
Hey, FWIW, we ended up needing this for actual queries in our app, not just the console, so we ended up adding a UUID property to every node in our graph, just so we can efficiently query collections of node pairs (where nodes may be duplicated many times across pairs). We (auto-)index this UUID

Re: [Neo4j] Cypher: how would you query first- and second-degree friends?

2011-08-26 Thread Aseem Kishore
I've run into another scenario which I think is related to this feature request. Take the IMDB example: the graph has movie nodes, and each movie has one or more genres/categories. You could express this as a property on each node, or you could have formal genre nodes that movies are connected

Re: [Neo4j] Cypher: node IDs

2011-08-26 Thread Aseem Kishore
I spoke too soon -- this doesn't seem to scale very far with many UUIDs being looked up together. Here's a query looking up 76 things that returns a 500 error -- due to a stack overflow exception. *START*node=(node_auto_index,'uuid_indexed:(f93d416a-40ae-4b5a-87d7-53b6bc4b54ab OR

Re: [Neo4j] Websocket Server instead of REST for Neo4J for access a DB

2011-08-26 Thread Rick Bullotta
Let's hope that one day soon all of these issues will be non-issues! Having cool technology always coming soon reminds me of this sign: http://www.rareirishstuff.com/media/13/a20792b12af7736b49978d_m.JPG -Original Message- From: user-boun...@lists.neo4j.org

Re: [Neo4j] Executing arbitrary code through REST (was: Specifying best first order of traverse over REST API)

2011-08-26 Thread Jacopo Farina
Nice! is there a way to run it easily from python with neo4jrestclient, avoiding creating an http request manually ? In general, I wasn't able to understand how to run a Gremlin script, or just a query, in python through the restclient library. Probably is a very simple business, but I started

Re: [Neo4j] bug in neo4j-community-1.4.1-unix.tar.gz neo4j script ?

2011-08-26 Thread Francesco Ruffino
Thank you Chris! I'm playing with the neo4j-shell. I'm using the one I have found in the tar.gz I have tried to run this command: [myclient]$ ./neo4j-community-1.4.1/bin/neo4j-shell -host myserver -port 1337 but nothing happens: the shell remains hanging... I have checked on the server-side

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

2011-08-26 Thread Nuo Yan
I later changed -Xmx to 1024m in the neo4j start script (./bin/neo4j line 109): JAVA_OPTS=-server ${wrapper_java_additional} -Xmx1024m I only have a few thousands nodes so I thought 1G should be enough (when my tests run, new nodes are being created frequently, but total number of nodes is

Re: [Neo4j] Executing arbitrary code through REST (was: Specifying best first order of traverse over REST API)

2011-08-26 Thread Matt Luongo
You can run the script through the Python neo4jrestclient by using the extension support. Try import neo4jrestclient.client as client gdb = client.GraphDatabase('http://localhost:7474/db/data') gdb.extensions.GremlinPlugin.execute_script(script=...) I think Javier is working on

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

2011-08-26 Thread Jim Webber
Hi Nuo, if you're using Neo4j server then you can edit the value in conf/neo-wrapper.conf wrapper.java.maxmemory=1024 Jim ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

[Neo4j] Neo4j Events Coming Up in September

2011-08-26 Thread Allison Sparrow
*** Hi Everyone, We have a bunch of great events coming up in September. Check it out below. We are adding more events on the regular, so be sure to check back at http://plancast.com/neo4j for updates throughout the month. If you have any questions regarding

Re: [Neo4j] Executing arbitrary code through REST (was: Specifying best first order of traverse over REST API)

2011-08-26 Thread Jacopo Farina
Thanks a lot for the answer. Cheers! Jacopo Farina 2011/8/26 Javier de la Rosa ver...@gmail.com On Fri, Aug 26, 2011 at 13:12, Matt Luongo m...@scholr.ly wrote: I think Javier is working on adding a returns=type style parameter in the most recent source so that the client can figure out

Re: [Neo4j] Neo4j Events Coming Up in September

2011-08-26 Thread Adriano Henrique de Almeida
Hi Allison, just adding, There will be Jim Webber's talk at QCon São Paulo, in my track, ( http://www.qconsp.com/schedule/sabado), which will be on Saturday, September 10, and the workshop, 1 day before. (which I'll attend). ;) Cheers, Adriano Almeida 2011/8/26 Allison Sparrow

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

2011-08-26 Thread Nuo Yan
Hey Adriano, Thanks very much for your reply. I will try with MaxPermSize. It's on my local machine, we are evaluating Neo4j and do not have it on production yet. I'm accessing the server through the REST APIs, the app is separate from Neo. I will see if I can do some profiling on Neo when I run

[Neo4j] BatchInserterIndex and ValueContext[]

2011-08-26 Thread Benjamin Gehrels
Hi folks, i've just - after a lot of searching - recognized, that the LuceneBatchInserterIndex handles ValueContext[] a little bit different than the normal one: When calling add(), the LuceneIndex converts its Parameter to an Object[], and checks for each element if it is an ValueContext.