Re: [orientdb] Help optimize a query and/or graph design

2015-06-11 Thread Khaled B
Hi Enrico, I'm using Orientdb 2.0.5. On Wednesday, June 10, 2015 at 6:53:17 PM UTC+3, Enrico Risa wrote: Hi Khaled which version of OrientDB are you using? 2015-06-10 14:29 GMT+02:00 Khaled Bakhit k...@khaled-bakhit.com javascript:: Hello, I need help optimizing a query or

[orientdb] Re: looking up a vertex in java api by a non-string property

2015-05-04 Thread Khaled B
Hey, Orientdb indexes' implementation is different than the one used by Tinkerpop . So, in gremlin, to get a vertex by index, do the following : instead of u= g.V('Person.personid',7409070) use this ( uses Orientdb's index manager) : u=

[orientdb] Re: Help translate gremlin to OSQL

2015-04-28 Thread Khaled B
Can anyone help with this please :) ? -- --- You received this message because you are subscribed to the Google Groups OrientDB group. To unsubscribe from this group and stop receiving emails from it, send an email to orient-database+unsubscr...@googlegroups.com. For more options, visit

[orientdb] Help translate gremlin to OSQL

2015-03-18 Thread Khaled B
Hello, I've been using gremlin for a while with Orientdb , however I noticed that I can get queries answered even faster with Orient SQL. is it possible to translate the following gremlin script into OSQL: Graph: User --- Likes --- Item Goal: Find top 15 similar items to item x and filter

[orientdb] Re: Accessing graph return variables in Server Side Scripts

2015-02-18 Thread Khaled B
anyone? -- --- You received this message because you are subscribed to the Google Groups OrientDB group. To unsubscribe from this group and stop receiving emails from it, send an email to orient-database+unsubscr...@googlegroups.com. For more options, visit

[orientdb] Accessing graph return variables in Server Side Scripts

2015-02-17 Thread Khaled B
Hello, I'm trying the following javascript server side function. I want to access the returned user IDs : var gdb = orient.getGraph(); var friends= gdb.command( sql, select userid from (select expand(out(\Friend\)) from User where userid= 1) ); var first_friend= friends[0]; // friends

[orientdb] Help writing a Simple Query

2015-02-10 Thread Khaled B
Hello, I'm using orientdb community version 2.0.1 and I'm just getting started with learning using this technology. I have a simple vertex class User with a unique UserID parameter. I also created an edge Friend linking users together. If user 1 and 2 are friends, then I have 2 Friend edges