-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document version limitations #6
Comments
Within a scala play app I had: val req = Cypher("start n=node(*) return n.name") which would return ca. 10.000 nodes, calling val stream = req() caused: Just getting a single node worked like a charm. |
Thanks Stephan, I'm planning to revamp the error handling so you can actually see what the response from the service is, instead of just 400. Can you run your query with curl? I think the server is actually choking on it. On Dec 19, 2012, at 4:30 AM, Stephan Froede notifications@github.com wrote:
|
Hi Wes, curl?I have no clue how to use cypher queries from curl. However, the cypher query is working from the data browser and a more complex version of it: start f=node:user_profiles(name="Group") // response <500 ms in average I filled Neo4J with the batch-importer I also ran into problems trying to use ExecutionEngine with Java, I have some doubts regarding the REST API it behaves not as expected with cypher queries. I will try an embedded approach. Regards, |
Are you using 1.9? |
Yep. Is that causing this problems!? |
No, but your query wouldn't even run in 1.8.x--which could have been causing the 400 error (that's why I asked). I think it's actually a timeout issue when the data is pretty big. There was some discussion on the google group about a similar error with the PHP REST driver. |
Hmm, the data from the request are not so big just 55 rows with 4 columns, my impression was that the query itself is causing the problem not the data delivered. As I tried REST with Java, I had heap space problems (with 220 cells), the problem occured somewhere in REST Api, it looked like a loop that went out of control (it crashed always with an array operation). Since AnormCypher is more or less using the same underlying REST Apis, I think it could be the same problem (that is only guessing by intuition). |
I need to make the 400 error give the body of the response through AnormCypher's exception, because it will usually tell you exactly where it doesn't like your query. I have an open issue for that (when I was using it myself recently, that was my main pain point)--I'll try to fix it this weekend. |
To test your query in CURL you can just run (replace your query--you might want to use single quotes instead of double, to avoid needing to escape them:
|
The Curl statement worked, it needed under 1 sec to print all 9378 nodes in the terminal. It would surly help a lot if AnormCypher would give more details, I tried it myself but I was not able to get more informations. I am using Neo4J as an embedded db (in play!) at the moment (as I was not able to connect via REST), but it looks very pragmatic resp. ugly, using REST would probably allow for a much more scalable and flexible architecture - and more elegant as well. |
as in... versions of neo4j
The text was updated successfully, but these errors were encountered: