Re: [orientdb] defining gremlin steps using binary protocol

2015-10-28 Thread Lev Givon
Received from leo...@kensho.com on Wed, Oct 28, 2015 at 12:52:40PM EDT: > Hi. > > We are using orientdb via pyorient library (so with binary protocol). I am > able to run regular gremlin scripts and get a response. But I cannot figure > out how to define custom steps to be used in my script. Is

[orientdb] defining gremlin steps using binary protocol

2015-10-28 Thread leonid
Hi. We are using orientdb via pyorient library (so with binary protocol). I am able to run regular gremlin scripts and get a response. But I cannot figure out how to define custom steps to be used in my script. Is there a good way to do it for each call? What about storing them server-side? Th

[orientdb] Re: migration version 1.7.2 to 2.2 get inconsitance rid for edge creation

2015-10-28 Thread alexander anguiano
I'm not sure about what you are facing, but i do want to tell you that the sql in 2.2 is more strict and may not work. I got errors in my logs. You can get it to be less strict by adding this to your database ALTER DATABASE custom strictSQL=false On Tuesday, October 27, 2015 at 5:57:50 AM UTC

Re: [orientdb] com.orientechnologies.orient.core.exception.OConcurrentModificationException at Distributed mode

2015-10-28 Thread alexander anguiano
I just ran into this problem. In your response you say "reduce occurrences". So, shouldn't we catch the exception and try again in a loop and give up after so many attempts? I thought i've seen some code that did that at one point on this. On Tuesday, September 15, 2015 at 10:53:37 AM UTC-5,

[orientdb] Re: Traverse all Vertecies without removing duplicates (orientdb-community-2.0)

2015-10-28 Thread Emin Agassi
Luigi, Thank you for this help. I will try this. Emin On Wednesday, June 3, 2015 at 10:18:51 AM UTC-4, SavioL wrote: > > Hi Emin, > > this is JavaScript function that you were looking for: > > var gdb = orient.getGraphNoTx(); > var list = gdb.command( "sql", "select expand(in('link_to_school')) f

[orientdb] DB stored functions and prepared statements - ODB 2.1.2

2015-10-28 Thread Mihai Ocneanu
Hello, I wrote a function with 2 input parameters that tries to run this query: var db = orient.getGraph(); *b = db.command("sql","select expand(sp) from (select shortestPath(?, ? , 'OUT') as sp)",[itemId, vertexId]);* When running the function, I get this error: Error on parsing script at pos

[orientdb] Fetch plan: Return expanded resultset

2015-10-28 Thread Thomas Kennedy
I have a simple query select * from Questions fetchplan last_comment:0 order by createdAt desc I am looking for the resultset to return the last_comment expanded along with the result of the questions class. I am using a Orientjs to interface with orient. It doesnt return the expanded result

Re: [orientdb] Having issues with ObjectDatabase and using Links / Link lists

2015-10-28 Thread Sem van der Wal
For anyone reading this, I found out that the key to using the javascript functions in OrientDB is that the object you retrieve from either the graph or document databases, are in fact the same object as you would get in the Java API. So the Java API can be used as reference for writing javascri