Re: [Neo4j] Cypher REST endpoint

2011-12-02 Thread jadell
No worries :-) I'm on github all day and just happened to see it on my feed. Good to know that the plugin is staying around for a little while. I'll probably make the switch to the new endpoint for the next milestone, so that it can start seeing some use. This will be a good test of libraries sup

[Neo4j] Cypher REST endpoint

2011-12-02 Thread jadell
Quick question: Just saw this commit from Jake: http://github.com/neo4j/community/commit/f011c51fcbd5f12236fc633f57dcec9fb8cade83 Will the old Cypher plugin endpoint be going away, or will it remain for back-compat? Which release will have the new endpoint? This will be helpful info for library

Re: [Neo4j] REST API - always batch?

2011-12-01 Thread jadell
To toss my two cents in, I had been thinking about moving my REST library to use only batches for all CRUID operations. I've been putting it off, and I will probably drop the idea for now based on Jake's response. Jacob Hansson-2 wrote > > 1. There are limits to how large the results can be fro

[Neo4j] Neo4jPHP v0.0.5

2011-11-16 Thread jadell
Hey all, Not sure how many people out there are using Neo4j from a PHP application, but I wanted to let you all know that I just released Neo4jPHP v0.0.5-beta. New in this release is better batch support, and a more fluent way of creating nodes and relationships: http://github.com/jadell/Neo4jPHP

Re: [Neo4j] Cypher->Pickle?

2011-11-04 Thread jadell
Mattias Persson-2 wrote: > > 2011/11/4 maxdemarzi > I'd say the strongest part of Cypher is the "ascii art" pattern where you > clearly see what you're querying for, right there and then without having > to parse it into a graph into your head. Removing that would reduce my > intere

Re: [Neo4j] Cypher->Pickle?

2011-11-04 Thread jadell
This! A thousand times this! Whenever I'm trying to explain how you find connected information without joins, people's eyes tend to glaze over until I a) draw the graph on the whiteboard, b) write out the Cypher query _directly_inside_the_graph_. That's the "no f-ing way!" moment for most people to

Re: [Neo4j] Integer cost property

2011-10-21 Thread jadell
Created an issue for this: https://github.com/neo4j/community/issues/71 -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Integer-cost-property-tp3077887p3442643.html Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. ___

Re: [Neo4j] Run test and development DBs at same time

2011-10-08 Thread jadell
For development using the REST interface, I usually run two databases on separate ports or hosts. On the development/testing database, I use the remote clean extension found at https://github.com/jexp/neo4j-clean-remote-db-addon to reset the database before running my automated tests. -- Josh Ade

Re: [Neo4j] REST Performance

2011-10-02 Thread jadell
Christian, Here are some benchmarks from a few weeks ago that I did comparing batch operations to single operations using a PHP client over REST. Don't know if they help at all, but maybe get you started? http://neo4j.org/forums/#nabble-td3282984 There is another set at the bottom of that threa

Re: [Neo4j] Forward slashes in index values

2011-09-28 Thread jadell
Thanks for the heads up, Jim. On a tangentially related note, I filed this request: https://github.com/neo4j/community/issues/35 Basically, in the future, it would be useful to have a way to determine the server version via REST so the various clients can account for differences in the protocol l

Re: [Neo4j] List all indexed key/values for an entity

2011-09-21 Thread jadell
OED and Merriam Webster both say it can be either: http://www.merriam-webster.com/dictionary/index I have no technical reasoning one way or the other which it should be called. (A quick search shows that "indices" is slightly more favored in maths and science, while "indexes" is the more common f

Re: [Neo4j] List all indexed key/values for an entity

2011-09-21 Thread jadell
Done. http://github.com/neo4j/community/issues/26 Thanks! -- Josh -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/List-all-indexed-key-values-for-an-entity-tp3348997p3355537.html Sent from the Neo4j Community Discussions mailing list archive at Nabble.co

[Neo4j] List all indexed key/values for an entity

2011-09-19 Thread jadell
Is there any way via the REST API to list all the indexes and keys/values that a given entity is indexed on? Something like: GET http://0.0.0.0:7474/db/data/node/123/indexes returns: [ "http://0.0.0.0:7474/db/data/index/node/favorites/color/blue";, "http://0.0.0.0:7474/db/data/index/node/favori

Re: [Neo4j] questions related to neo4jphp

2011-09-19 Thread jadell
Hey Filip, I've tried to answer your questions inline as best as I can: F. De Haes wrote: > > - Relation types give problems in Cypher when they contain a blank space. > Correct? > I believe Andres answered this already. According to his example, make sure you are using backticks (`) not sing

Re: [Neo4j] Traversal REST body language

2011-09-13 Thread jadell
Thanks Peter. Great turnaround time on the answer, as always! -- Josh -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Traversal-REST-body-language-tp3331584p3332322.html Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. __

[Neo4j] Traversal REST body language

2011-09-12 Thread jadell
I don't use traversals that much, and I'm trying to help another user. The docs are a bit ambiguous, so I want to make sure I have this correct. When using a traversal via REST, for the prune_evaluator, I can do this: "prune_evaluator": { "language" : "builtin", "name" : "none" } or I ca

[Neo4j] REST batch completes with error code

2011-09-01 Thread jadell
I'm sending a batch REST request, with 15000 operations (1 create nodes, and 5000 create relationships between those nodes.) In webadmin, I can see all the nodes and relationships have been created, and I can browse them using the data browser. So the all my entities were successfully created

[Neo4j] More batch vs. single operation benchmarks

2011-08-28 Thread jadell
Here are the latest benchmarks of batch vs. individual entity creation using the Neo4jPHP library. Most of the processing time is spent on the server, so I believe that these numbers are probably not specific to Neo4jPHP. I'm not implying that there is anything wrong or to be fixed; I just though

Re: [Neo4j] Neo4jPHP batch insert benchmarks

2011-08-26 Thread jadell
Jim, Fair enough. For now, I'll just know not to try and make batches that big :-) My own use case is for the transaction safety rather than trying to create thousands of entities at once, so it doesn't effect me that much. I just wanted to have something more concrete to tell other users who mi

Re: [Neo4j] Neo4jPHP batch insert benchmarks

2011-08-25 Thread jadell
I bumped the maxmemory up to 512 and ran a batch to create 10 nodes (repeated 10 times). After an average of 20 seconds, I always received the following response: HTTP/1.1 100 Continue HTTP/1.1 500 Java heap space Content-Type: text/html; charset=iso-8859-1 Cache-Control: must-revalidate,no

Re: [Neo4j] Neo4jPHP batch insert benchmarks

2011-08-25 Thread jadell
Jim, When I was running into the issue, I set the maxmemory=256 and can confirm that it took much longer to fail, but it did fail in the same way. I didn't think of setting it smaller than the default, but I suspect you are correct. I'll try it that way when I attempt to generate the stack trace

Re: [Neo4j] Neo4jPHP batch insert benchmarks

2011-08-25 Thread jadell
Hey Peter, I don't have any way of verifying on the server side, other than measuring the time it takes for curl_exec to return a response. On the client side I can see that PHP's json_encode/json_decode functions are taking less than .5% of the total run time, even with a batch size of 1. Dur

[Neo4j] Neo4jPHP batch insert benchmarks

2011-08-24 Thread jadell
Hey all, I've been working on adding batch support to http://github.com/jadell/Neo4jPHP Neo4jPHP . Here are the results of my latest benchmarks. First column is the number of nodes being inserted, second column is the average in seconds over 5 runs to insert that many nodes in a single