Re: [orientdb] Storing Collections as vertex properties

2015-07-24 Thread Luigi Dell'Aquila
Hi José, this could be a problem in the driver or more likely in your application. All the map attributes are returned as OTrackedMap instances, that implements Map (not Hashtable). I suggest you to use Map interface in your variable declarations. If you want, you can post the code snippet that

Re: [orientdb] Re: Problem with cache level 1 on multi threads application

2015-07-24 Thread Andrey Lomakin
Hi, You should consider graphdb instance as connection instance, merely use pool and open/close create db on each request. Such approach does not add any overhead. On Fri, Jul 24, 2015 at 11:03 AM Vianney Grassaud vgrass...@gmail.com wrote: I found a workaround and I follow your documentation

Re: [orientdb] Adding property to a Vertex

2015-07-24 Thread Luigi Dell'Aquila
Hi Daniel, OrientDB can work in schemaless or schemaful mode, so different records can have different sets of properties by design. How are you manipulating your data? There are many ways to do this: - In SQL you can just use an UPDATE statement: UPDATE Person set myAttribute = value where some

Re: [orientdb] Corrupt database after restart

2015-07-24 Thread Andrey Lomakin
Hi, It is already fixed in new versions. We will release 2.1-RC6 today and I do suggest you to try it. About 1.7.0 version sorry but we do not support old versions only new ones. On Thu, Jul 23, 2015 at 7:05 PM Hung Tran Dinh tdhun...@gmail.com wrote: Hi Andrey, It's OrientDB v1.7.0. On

[orientdb] How to save a nested object in a server function?

2015-07-24 Thread Chandima Jayawickrema
Hello, I am trying to write a Javascript Server Function to save a nested object which is directly coming from my UI. my example is that I have Department record which already exists in DB and i am creating a new Employee record while linking to this existing Department record. var employee

[orientdb] Re: How to save a nested object in a server function?

2015-07-24 Thread SavioL
Hi, in the class Employee, the field department is a property of type 'Link'?? or an other type? regards, Savio L. -- --- 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

[orientdb] Re: Problem with cache level 1 on multi threads application

2015-07-24 Thread Vianney Grassaud
I found a workaround and I follow your documentation to use OrientDB in a web application. So, I implemented a servlet filter, this filter get OrientGraph from the factory, invalidate the localcache and close the graph at the end. Is it a good solution ? Le jeudi 23 juillet 2015

[orientdb] Upsert using OrientJs

2015-07-24 Thread Vipul Maheshwari
How to perform use update function of Orientjs driver to with upsert ? -- --- 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

[orientdb] How can I config multi url(distributed mode) in java?

2015-07-24 Thread 김제준
Hi there~ I'm working on distribute mode. When I connect db in java it has single url. ex( new OrientGraph(url, id, pw) Can I config multiple url and it support failover like If node1 dead send request to node2 automatically. -- --- You received this message because you are subscribed to

Re: [orientdb] How can I config multi url(distributed mode) in java?

2015-07-24 Thread Luigi Dell'Aquila
Hi, right now you cannot explicitly define multiple URLs, so the application will initially connect to a single node. After that, your client will receive from the remote node the list of all the existing nodes in the network; after a failure your client will be able to redirect calls to other

[orientdb] Re: How to save a nested object in a server function?

2015-07-24 Thread Chandima Jayawickrema
Yes it is a Link for Department class. On Friday, July 24, 2015 at 3:31:26 PM UTC+5:30, SavioL wrote: Hi, in the class Employee, the field department is a property of type 'Link'?? or an other type? regards, Savio L. -- --- You received this message because you are subscribed to the

[orientdb] New contribution for review: 'UNTIL' clause for traverse command

2015-07-24 Thread nagaraja sosale ramaswamy
Hi everyone, I've introduced a new keyword 'UNTIL' clause in the traverse command that executes the traversal until the condition becomes true (opposite of while clause). the implementation is quite trivial, i've added a boolean flag 'negating' to OSQLFilter which if set, causes the result of

[orientdb] Re: Performance of Create Vertex

2015-07-24 Thread nagaraja sosale ramaswamy
did you try declare intent massive ~nagu. On Friday, July 24, 2015 at 6:07:49 PM UTC+5:30, Weili wrote: Hi, I'm evaluating the create/insert performance of OrientDB (version 2.0.12 Linux) with my 64-bit Linux VM, 2 core processor @ 2.6Ghz. Out of 16GB RAM, I allocated 12GB to the server

[orientdb] Re: How to save a nested object in a server function?

2015-07-24 Thread SavioL
try this changes: 1) in the class Employee, change the departement property as: LINKSET 2) in your function javascript, delete db.save(employee); and add g.command( sql, insert into Employee(name,department) values ('John2',[#2:33]) ); *example:var g= orient.getGraph(); var employee =

[orientdb] Re: Performance of Create Vertex

2015-07-24 Thread Weili
Yes I did. Currently, I used OrientDB with Java 7. I'll try again with Java 8... But I am more baffled by performance degrade when OrientDB 2.0.12 is in 2-node distributed mode as I thought performance should improve. Any help here? final OrientGraph graph = new

[orientdb] PLocal Error in New Installation

2015-07-24 Thread Scott Orr
We've just installed OrientDB Community 2.0.12 on a new AWS VM--we installed it ourselves, rather than using the pre-installed version that AWS makes available. I can run it, and it seems to load OK, other than an error that it can't load a log handler. However, I can't create a PLocal

[orientdb] Orientdb enterprise distributed clustering not working?

2015-07-24 Thread Josh Harrison
I've been attempting to spin up a clustered/distributed orientDB in a local cloud I have. I have three servers: 10.0.0.12 - orientdb-workbench-2.0.3 10.0.0.25 - orientdb-enterprise-2.0.13 10.0.0.26 - orientdb-enterprise-2.0.13 All are using the default hazelcast ?xml version=1.0 encoding=UTF-8?

[orientdb] Re: PLocal Error in New Installation

2015-07-24 Thread Scott Orr
...and the problem went away all by itself. I'm mystified. -- --- 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

[orientdb] Orientdb on Azure

2015-07-24 Thread Leonard Sisson
I am a professional web dev with an interest I Orientdb. I've dabbled a little taken some of the free training with Orient on a Windows machine but haven't been able to justify the cost of hosting orientdb for further learning experimentation. However, I'm just now seeing that orientdb can

[orientdb] Is there a way to retrieve the latest created vertex in a javascript function?

2015-07-24 Thread Jenica Abrudan
I am new to OrientDB and I need to create a number of random people information but each level of information (firstname, lastname so on) is a subclass of person not a property (as is in the example). Is there a way to get the @RID of the just created person (superclass) vertex and use the

Re: [orientdb] Storing Collections as vertex properties

2015-07-24 Thread José Cornado
I made the blind assumption that the get would return the same class. I will change my code to casts the property gets to map and go from there. Thanks! On Friday, July 24, 2015 at 1:33:40 AM UTC-6, Luigi Dell'Aquila wrote: Hi José, this could be a problem in the driver or more likely in

[orientdb] Re: ODatabaseRecordThreadLocal and multiple/single database instance(s) in single-threaded application

2015-07-24 Thread Alicia Lobo
It gets even better: I'm getting the following exception: com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage 'ow' with mode=rw at com.orientechnologies.orient.core.storage.impl.local. OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:220)

[orientdb] Re: How to save a nested object in a server function?

2015-07-24 Thread Chandima Jayawickrema
Yes that works, but i was wondering if the save operation takes care of links as it would have been very convenient when dealing with multiple LINK fields and when you cant always guarantee their existence. For example if Employee had a Country link too, and if it is not always guaranteed that

[orientdb] Performance of Create Vertex

2015-07-24 Thread Weili
Hi, I'm evaluating the create/insert performance of OrientDB (version 2.0.12 Linux) with my 64-bit Linux VM, 2 core processor @ 2.6Ghz. Out of 16GB RAM, I allocated 12GB to the server -Dstorage.diskCache.bufferSize Below is my Java statement to create vertex: for (int i= 0; i 1; i++){