Re: [orientdb] Importing JSON-encoded Data

2015-03-31 Thread Paul Scott
Yes, it is pretty simple with an upsert or insert. Insert into users {json} return something On Tue, 31 Mar 2015 07:11 Kun Liu liukunofc...@gmail.com wrote: Dear all, I wonder if OrientDB supports importing JSON-encoded data like ArangoDB? For example, I have the following file encoded in

[orientdb] Re: Creating/deleting edges changes vertex versions - OrientDB 2.0

2015-03-31 Thread Pramod N
Have observed this in a different context. When we add edges to the same vertex in a concurrent fashion. Posed this question to @lvca in another conversation https://groups.google.com/d/msg/orient-database/uu2j9W4paWU/5Y2IWbbWxHkJ It'll be interesting to hear about this. On Thursday, March

[orientdb] Re: Orientdb 2.0.5 and Gremlin

2015-03-31 Thread Ivan Plaza
I continue to have the connection problem, it seems everytime I do a pure gremlin query or even add gremlin in an orient SQL the database closes. On Tuesday, March 17, 2015 at 6:19:51 PM UTC+1, Ivan Plaza wrote: Hello I'm having some issues running Gremlin queries in the studio. 1) Every

[orientdb] Re: common parent vertex, SQL how 2?

2015-03-31 Thread F Campos
thanks for reply. I may have dozens of vertex, where I want to know the common ancestor; I may implement in Java, but I want to use the orientdb services; if any On Tuesday, 31 March 2015 02:46:01 UTC+1, Natal Kaplya wrote: Probably you should use shortestPath()

[orientdb] Re: One transaction - multiple threads

2015-03-31 Thread Colin
Hi Vladimir, You would need in each thread instance before accessing the database to set this: ODatabaseRecordThreadLocal.INSTANCE.set( database ); -Colin Orient Technologies The Company behind OrientDB On Monday, March 30, 2015 at 8:20:53 PM UTC-5, Vladimir Leberstein wrote: Hi!

[orientdb] Trying to find shortest path in one direction only

2015-03-31 Thread Boris Wexler
Hi - I am working on an application similar to Twitter, where users can follow eachother (one directional relationship). I'm trying to query the shortest path between two users but only in one direction - so if for example user A follow user B who follows user C (but no reverse relationship),

[orientdb] Re: want a solution on this error.

2015-03-31 Thread Colin
Hi Mahesh, What version of OrientDB are you using? What's your distributed configuration look like? How many nodes do you have? -Colin Orient Technologies The Company behind OrientDB On Tuesday, March 31, 2015 at 1:36:30 AM UTC-5, Mahesh Wabale wrote: hello everyone , I have getting

[orientdb] Re: Apparent Deadlock when inserting data

2015-03-31 Thread Colin
Hi Patrick, Are you sharing the same graph db connection among your threads doing the querying? What's your design look like for writing/reading the database? Thanks, -Colin Orient Technologies The Company behind OrientDB On Monday, March 30, 2015 at 3:02:39 PM UTC-5, Patrick Hoeffel

[orientdb] Shortest path one direction

2015-03-31 Thread Boris Wexler
Hi - I am currently working on a twitter like application with orient db, where users can follow eachother (one directional relationship). I am trying to find a good way to get the shortest path between two vertices one directionally. In other words, if I have users A, B, C and A follows B who

Re: [orientdb] Customize graph visualization

2015-03-31 Thread Cameron Hunt
Luigi, I'm also interested in contributing improvements and extensions to Studio. Before I just start making a mess, do you know if there are any plans to support a plug-in type architecture so that users can contribute extensions that won't alter the base behavior, and (hopefully) decrease

[orientdb] Released OrientDB 2.0.6 (hotfix)

2015-03-31 Thread Luca Garulli
Hi all, OrientDB Team just released OrientDB v. 2.0.6 (hotfix). Please upgrade your OrientDB v. 2.0.x, binary compatibility is guaranteed. What has been fixed? https://github.com/orientechnologies/orientdb/issues?q=milestone%3A2.0.6+is%3Aclosed . Download it from:

Re: [orientdb] How (or at what layer) do you deal with null vs empty collections

2015-03-31 Thread Rasmus Schultz
Well, it's not really a technical problem, so much as a practical one. I understand that the database needs to be able to make a distinction between an empty collection and NULL, because otherwise you couldn't tell if schema-less documents have a given property or not. By the way, I'm using

Re: [orientdb] Re: Apparent Deadlock when inserting data

2015-03-31 Thread Patrick Hoeffel
Colin, It's only running on a single thread right now, so everything is running serially and synchronously. The idea is that I get a JSON data document from a relational database (SQL Server), and that record has a number of FK values as fields. 1. Insert/Update the main record 2. Iterate over

[orientdb] Re: Shortest path one direction

2015-03-31 Thread Natal Kaplya
Right now tested shortestPath(): select shortestPath(#9:0, #9:2, 'OUT') returns: shortestPath: [ #9:0, #9:1, #9:2 ] On the contrary this: select shortestPath(#9:0, #9:2, 'IN') returns shortestPath: [ #9:0, #9:2 ] On the graph: #9:0 -- #9:1 -- #9:2 #9:0 So this function

[orientdb] Re: Orientdb 2.0.5 and Gremlin

2015-03-31 Thread Natal Kaplya
I encountered the same problem after updated from 2.0.3 to 2.0.5, if you update studio page, then connection is reestablished correctly, so after every gremlin query need press f5. Database is not closed probably, merely studio connection drops. I think it's a new bug, have to make an issue on

[orientdb] any way in etl config file to specify a directory and look at all files in that directory as source

2015-03-31 Thread sck2015
hi all, looking at orientdb etl json examples, is there a way for the source to be a directory where one can load all files in that directory or all files matching a wildcard name, I haven't seen examples of this, I found this link but it is still for a single source file with a variable path

[orientdb] Visualize the properties of a class

2015-03-31 Thread Kun Liu
Hi all, I create a class called Well and then use the following statement to insert a record: insert into well (my_prop) values ({pressVal: [1200, 2000], pressDate: ['2013-07-31', '2013-08-31']}) But, I cannot see the property my_prop in the Schema in the Studio. Is it because there is no

[orientdb] Re: ETL: how to import a huge csv and generate different vertexes/edges based on the csv column values

2015-03-31 Thread sck2015
Hi Lars and Luca, was this ever resolved? This is related to my question re: creating multiple vertices from within a single etl config json file. Similarly, another post asked how to create edges between two vertices that already exist via the etl (is this possible). My perception is that

Re: [orientdb] Re: Apparent Deadlock when inserting data

2015-03-31 Thread Colin
I believe that just affects the document API. 2.0.6 has just been released. You might try it and see if the deadlock still occurs. Please let me know. -Colin On Tuesday, March 31, 2015 at 3:07:28 PM UTC-5, Patrick Hoeffel wrote: Is there any chance that I'm seeing a side effect of issue

[orientdb] Re: Accessing Rexster embedded OrientDB from Remotly through java driver

2015-03-31 Thread tribhuwan . negi
Thanks Natal! Titan had a way to start with embedded Rexster which OrientDB do not. I need to write some Rexster extensions to run custom traversal and execution code. I now have following setup: 1) Rexster server running locally with OrientDB on same VM. Rexster server accesses orientdb

[orientdb] Re: Accessing Rexster embedded OrientDB from Remotly through java driver

2015-03-31 Thread Natal Kaplya
Yes, it sounds reasonable and correct. -- --- 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

Re: [orientdb] Re: Apparent Deadlock when inserting data

2015-03-31 Thread Patrick Hoeffel
Is there any chance that I'm seeing a side effect of issue #3786 https://github.com/orientechnologies/orientdb/issues/3786, which is fixed in version 2.0.6? It *does* occur during an UPSERT, after which I am adding one or more edges. The issue is described as, *In case of concurrency, the