Re: [orientdb] Creating edges in strict mode in schema-full graph: problems with LINKBAG

2015-07-02 Thread Luigi Dell'Aquila
Hi Alicia, yes, this is the right approach. You can just avoid to define the linked class for LINKBAG, because if you use Graph API in_owns and out_owns will be guaranteed to contain only references to "owns" edges. So the following should be enough: inVertexClass.createProperty("in_" + className

[orientdb] Re: year: property or vertex?

2015-07-02 Thread Dennis O
Thank you! On Wednesday, July 1, 2015 at 3:35:54 AM UTC-4, alessand...@gmail.com wrote: > > Hi Dennis, > I think that a standard approach of having a "year" property for each node > and searching with a "where" clause is better, so you avoid to have all the > links. > > Regards, > Alessandro >

[orientdb] Fetch vertices from a range using Graph API

2015-07-02 Thread Kalatheeswaran TM
Hi, I need to fetch a specified set of newly inserted vertices from a OrientDB graph to create edges. If I make use of the getVerticesOfClass("ClassName") method in OrientBaseGraph fetches all the vertices (vertices previously inserted and for those edges have been created). How to fetch the

Re: [orientdb] Re: Difference between graph shutdown and graph drop?

2015-07-02 Thread W. Craig Trader
Nandan ... Graph.shutdown() effectively closes a connection (the OrientGraph object) -- use it early and often, but only when you're done with the connection. Graph.drop() will remove the database from memory, disk, etcetera -- only use with caution! In my unit tests, I create an in-memory instan

[orientdb] Re: distributed architecture : number of replica

2015-07-02 Thread yooo
orientdb seems be able to define a fine grained configuration for distributing and replicating the clusters. For exemple : China - no replica US - one replica Europe - two replicas This is smarter than basic RAID. but in my tests the only thing I am able to do is replicate all the clu

[orientdb] Creating edges in strict mode in schema-full graph: problems with LINKBAG

2015-07-02 Thread alicia . lobo . msc
Hello, I am new to OrientDB and I'm running into issues when creating edges in a schema-full graph. I have 2 vertex classes: * Property * Owner both of which are in strict mode: vertexClass.setStrictMode(true) I have 1 edge class: * Owns which is also in strict mode and connects owners an

[orientdb] Query ORecordBytes from console or studio

2015-07-02 Thread David Laberge
Hi all, I'm trying to query an XML file that I saved in an Orient db 2.1-rc4. When I pass trough the JAVA API it actually works Here is how I'm getting the binary data currently from the the following JAVA / Extend code queryStr.append("select * from ConfiguratorXmlTemp where refererId=\""); q

[orientdb] Re: Difference between graph shutdown and graph drop?

2015-07-02 Thread alessandrorota04
Hi, you can use the graph.shutdown() when you want to release the OrientGraph instance. Regards, Alessandro -- --- 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 o

[orientdb] Difference between graph shutdown and graph drop?

2015-07-02 Thread nandan parikh
What is the primary difference between graph shutdown and graph drop? When should graph.shutdown() be used? Are there any threads which keep running if we dont use graph.shutdown? -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscri

Re: [orientdb] Can we use ObjectDatabase API and GraphDatabase API

2015-07-02 Thread xvik
Hi, Could you please describe cases when such hybrid approach could cause problems. I am very interested in this topic: I did many small tests and didn't found problems. In general, I found that orient apis are interchangeable (and this is fantastic!). Ofc there are minor cases (like vertex

[orientdb] Re: Using an index to query based on datetime property

2015-07-02 Thread machak
On Tuesday, June 30, 2015 at 9:39:57 PM UTC+2, Team Xcelerator Inc. wrote: > > Hi, I know how to handle a basic date query. My question was about > specifically using an index for a date range. Currently, index keys only > allow a single value to my knowledge which prevents a range lookup. > >

Re: [orientdb] Can we use ObjectDatabase API and GraphDatabase API

2015-07-02 Thread Luca Garulli
Hi, Even if this could work on basic cases, the Object API is not intended to work in this way. Best Regards, Luca Garulli CEO at Orient Technologies LTD the Company behind OrientDB On 1 July 2015 at 16:12, xvik wrote: > Hi, > > I'm a bit not agree. Graph api is based on

[orientdb] Re: distributed architecture : number of replica

2015-07-02 Thread James Wang
If above is correct, then I guess cluster numbers have to be a multiple of factor numbers. I.e. if replica factor number is 3, cluster numbers can then be: 3 (at least), 6, 9, 12 Am I correct please? On Thursday, 2 July 2015 09:16:02 UTC+1, James Wang wrote: > > Please refer to RAID 10: >

[orientdb] Re: distributed architecture : number of replica

2015-07-02 Thread James Wang
Please refer to RAID 10: http://www.prepressure.com/library/technology/raid Clusters == striping ? (so China is stripped to 3) Replica == mirror ? (US has a mirror and Europe has 2 mirrors) I might be wrong :D On Wednesday, 1 July 2015 18:56:05 UTC+1, yooo wrote: > > Yes you are right. I'v