[orientdb] Re: How to create index if not exist ?

2014-02-21 Thread Fabrizio Fortino
Hi Madhu, I think you can use the javascript client side command. js try { db.command('select from index:V_TOPO_TYPE');} catch(e) { db.command (create index V_TOPO_TYPE on V (TOPO_TYPE) NOTUNIQUE'); } If the index does not exist the first command throws an Exception. Then, in the catch you

[orientdb] Database hangs after create property from Studio

2014-02-21 Thread Fabrizio Fortino
Hi guys, I am experiencing this problem using OrientDB 1.7-rc2-SNAPSHOT. 1) Connect to a database from Studio (I have tested it on GratefulDeadConcerts DB) 2) Click on Schema - + New Class (let's name it Test) 3) Click on Test on the Schema table 4) Select + New Property (name ID, type STRING)

Re: [orientdb] Graph Database - Required Edge?

2014-02-21 Thread Andrey Lomakin
Hi, It is possible, Just set field for in and out links to be the not null LINK type. So if you will add more than one edge you will have exception Type of field provided in schema ' + prop.getType() + can not be used for creation to hold several links. It is IllegalStateException but I will

Re: [orientdb] Database hangs after create property from Studio

2014-02-21 Thread Andrey Lomakin
Hi Fabrizio, Could you create issue about this ? I will finish till Tuesday new commercial feature and I will concentrate on fixing of issues to release new rc2 version. On Fri, Feb 21, 2014 at 12:25 PM, Fabrizio Fortino fabrizio.fort...@gmail.com wrote: Hi guys, I am experiencing this

Re: [orientdb] Database hangs after create property from Studio

2014-02-21 Thread Fabrizio Fortino
Done. https://github.com/orientechnologies/orientdb/issues/2059 On Friday, February 21, 2014 10:30:26 AM UTC, Andrey Lomakin wrote: Hi Fabrizio, Could you create issue about this ? I will finish till Tuesday new commercial feature and I will concentrate on fixing of issues to release new

Re: [orientdb] Re: Transitioning to 1.7-rc1 from 1.6.3

2014-02-21 Thread Andrey Lomakin
Hi Odysseas, I will finish commercial issue during 2 days then I will help you with migration. On Thu, Feb 20, 2014 at 8:06 PM, Odysseas odysseaspe...@gmail.com wrote: We are seeing various concurrent modification exceptions after moving to 1.7-rc1. Once these start to occur, we then end up

Re: [orientdb] Re: Transitioning to 1.7-rc1 from 1.6.3

2014-02-21 Thread Odysseas Pentakalos
Thanks Andrey On Fri, Feb 21, 2014 at 6:13 AM, Andrey Lomakin lomakin.and...@gmail.comwrote: Hi Odysseas, I will finish commercial issue during 2 days then I will help you with migration. On Thu, Feb 20, 2014 at 8:06 PM, Odysseas odysseaspe...@gmail.com wrote: We are seeing various

Re: [orientdb] Schema driven serialization #1890

2014-02-21 Thread Ameer Tamboli
Hi all, Posting it with more elaborately. Also if someone deletes a Property from Class. It would need to delete the property i.e. field from all the records in the database for that class. If we keep mapping as suggested above, the deleted property can be removed straight-away from the

[orientdb] Re: What is the best practice to get edge between two vertices?

2014-02-21 Thread Shishya
Hi, I am trying to use g.getEdgesBetweenVertexes() by defining a function in 1.7rc1 studio.B ut I get this error. TypeError: Cannot find function getEdgesBetweenVertexes in object orientgraph[plocal:${ORIENTDB_HOME}/databases var g = orient.getGraph(); var ed =

[orientdb] Re: 1.6.3: Roles of connected users using remote connection is passthrough

2014-02-21 Thread Claudio
Things can be worse if I try to manipulate the roles collection. Using the local connection, this code works: ouser.getRoles().remove(oldORole); ouser.addRole(newORole); ouser.save(); If I use a remote connection, the remove() statements simply does nothing because the oldORole doesn't belong to

[orientdb] Re: [newbie] How would you model an Error

2014-02-21 Thread Charles Monteiro
No takers ? On Tuesday, February 18, 2014 9:28:30 AM UTC-5, Charles Monteiro wrote: hi, just wondering what the best practices are. My objective is to model an Error object that has the following attributes: code - Integer message - String stack - String This is driven by the fact

Re: [orientdb] Aggregation performances

2014-02-21 Thread Nicolas Clairon
Thanks Lvc@ for your replay Actually, in my example, blog wasn't really needed (my bad) : it is a single relation between Author and BlogPost. So here, the edge is not the BlogPost but just an 'edge'. By the way, I used your example and I get an error: Error:

Re: [orientdb] Aggregation performances

2014-02-21 Thread Luca Garulli
Hi, by using the graph api you always have edges as bidirectional links. And in your case you can cross from Author to Posts that is the opposite direction you're creating with such create link command. If you create: create link posts from BlogPost.authorID to Author.login inverse You could

Re: [orientdb] Re: 1.6.3: Roles of connected users using remote connection is passthrough

2014-02-21 Thread Luca Garulli
Hi Claudio, that was needed to avoid checks on client side and server side. In this way security checks run at server side only. Lvc@ On 21 February 2014 15:48, Claudio giastfa...@gmail.com wrote: Things can be worse if I try to manipulate the roles collection. Using the local connection,

Re: [orientdb] Schema driven serialization #1890

2014-02-21 Thread Luca Garulli
On 20 February 2014 13:24, Steve shadders@gmail.com wrote: Hi Andrey, I forked orient-core today and spent most of the day playing around with the source trying to work out how to change over my pseudo schema, property, type classes into OSchema, OProperty, OType.

Re: [orientdb] Number of database limit

2014-02-21 Thread Luca Garulli
No limits. Lvc@ On 21 February 2014 19:53, archangle edila...@gmail.com wrote: I am curious about whether there is any limitation about the number of databases (graph) i can create? Using OrientDB Server v1.7-rc1. -- --- You received this message because you are subscribed to the

[orientdb] Is cluster position in RID literal

2014-02-21 Thread Steve
Is it actual offset of the record in the cluster or is it and index in a lookup table? If it is literal wouldn't that mean if a record has to be moved (perhaps due to growing in size) that all references to it have to be found and updated? -- --- You received this message because you are

[orientdb] Is cluster position in RID literal

2014-02-21 Thread Steve
Is it actual offset of the record in the cluster or is it an index in a lookup table? If it is literal wouldn't that mean if a record has to be moved (perhaps due to growing in size) that all references to it have to be found and updated? -- --- You received this message because you are