I think you could instead do a Cypher index lookup and then just return what you need, like
Start n=node:persons(name = 'test') return id(n)
?
I think you could instead do a Cypher index lookup and then just return what you need, like
Start n=node:persons(name = 'test') return id(n)
?
Brian,
what is the rationale behind your worry? Would you like to access
MySQL via REST Tuple atomic operations rather than SQL? I think this
is a VERY important discussion, for all of us.
Cheers,
/peter neubauer
G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L: http://www.linkedin.com/in/neubauer
T: @peterneubauer
If you can write, you can code - @coderdojomalmo
If you can sketch, you can use a graph database - @neo4j
If you have to tunnel some other form within a REST API, it brings into question why you needed a REST API in the first place. But perhaps you're making the point that REST APIs are not well suited to database operations, which is certainly a very good point.
My scenario:I am writing a Ruby on Rails application. I don't want to move to JRuby and so I can't make use of direct access to a Neo4j server. My only option at this point is to use the REST API, perhaps with one of the available Ruby bindings such as Neography. If I were using some RDBMS rather than Neo4j, I'd be using whatever Ruby driver is available for that database to provide remote communication. If I were writing a Java application against an RDBMS, I'd be using JDBC. So I no, I wouldn't expect to be using a REST API against the database itself.
Comments inline...
To address the three issues here:
+1 on Brian's point that putting the indexed value in the URI is a problem.. I'm not quite sure how to solve it, since the same entity can be indexed with the same key and multiple different values, and we need a way to address specific ones. Will put it into the backlog for consideration.
On the subject of limitations of rest, previous discussions have shown that 1) we can in fact properly introduce transactions in a RESTful way (see the fast-http prototype) 2) that the overhead of the verbose API is a much smaller part than the overhead induced by Jersey and jetty, in our internal prototypes we have successfully improved performance more than 100-fold without changing the data transferred over the wire
Jake
Sent from my phone, please excuse typos and brievety.
--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Neo4j" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/neo4j/vY4AbPYWUR0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to neo4j+un...@googlegroups.com.