OrientDB

orientDB cant delete value from map

雨燕双飞 提交于 2020-01-17 06:17:25
问题 I been trying the following query: UPDATE #15:1 REMOVE jsonData.contactName And receive the following { "result": [ { "@type": "d", "@version": 0, "value": 1 } ], "notification": "Query executed in 0.027 sec. Returned 1 record(s)" } Which mean been succedd, Now when i query to check the value i get: select * from #15:1 { "result": [ { "@type": "d", "@rid": "#15:1", "@version": 6, "@class": "TestClass", "postUrl": "ABC", "postCategory": "#11:497", "jsonData": { "contactName": "JHON" }, "

How to load a huge CSV file in orient db

送分小仙女□ 提交于 2020-01-16 18:32:48
问题 I want to load a huge CSV file in my orient Db database.there is some checklist for the database ,that should our db follows. 1- there would be a single csv file and this CSV file will have millions of records and more then 20 Columns. 2- From this csv i have to create multiple Classes and each class will have different Properties (is it possible with Orient db). 3- i have to create index too Please help for this.how should i create Etl config file for this Thanks in advance. please let me

How can I query an edge property by value?

扶醉桌前 提交于 2020-01-15 15:30:37
问题 I'm using OrientDB (Community-2.0.9) and have two vertices: Person and University and one edge: isStudent. The edge isStudent has the property 'mark' as float. Person --isStudent--> University. Now I want to select all persons, where the mark is greater than 3.0, but I got no results, but if I query for equality I got two results. Do you have any ideas how to solve this? Queries: SELECT FROM PERSON WHERE out_isStudent.mark = 3.4 --> two results SELECT FROM PERSON WHERE out_isStudent.mark > 3

Is it possible to work with OrientDB using C#?

不问归期 提交于 2020-01-12 07:15:28
问题 Are there any implementations, api or examples of OrientDB and C#. The reason I am looking at OrientDB is becuase it's the only one that I found that is a combination of Graph and Document. Any suggestions on how I should try this. My next choice is RavenDB, but I am not sure if it supports joins or linked documents? Any thoughts... 回答1: I just developed a first version of a REST client for OrientDB. http://netorientdb.codeplex.com 回答2: OrientDB has an official binary driver for .NET look

Querying an orient-db index on embedded list

房东的猫 提交于 2020-01-07 05:02:18
问题 How do I query an index on an embedded list of strings. I tried the following, but it did not return any results. select from index:Customers.cities WHERE key = 'delhi' But querying the class directly below worked and it used the same index which I tried above. select from Customers WHERE cities = 'delhi' "Cities" is an embedded list of string in the class Customers. Customers.cities is a NOTUNQIUE index on cities. 来源: https://stackoverflow.com/questions/32471152/querying-an-orient-db-index

Orientdb performance issue on multi-threaded system

♀尐吖头ヾ 提交于 2020-01-07 03:09:28
问题 When you go through OrientDb website, they give some fancy statistics about number of document than can be created per second . I am not in need of any these fancy speed, a moderate will work for my use case. My use case : My system is multi-threaded On per request I am receiving Db-Name Current_Vertex_Name Previous_Vertex_Name Then execute the below pseudo code :- I did tried my use-case with the below pseudo code but I found speed very slow. Pseudo code of my use case is following below:-

OrientDB automatic on-record changelog via trigger

吃可爱长大的小学妹 提交于 2020-01-07 02:54:49
问题 long time lurker but first question. Finally figured out how to maintain a changelog by trigger on this question Embedding record from function in OrientDB But I'd also like to maintain the user updating the record, and maybe other metadata like which props were updated. My use case is passing batches of upserts from c# using HTTP requests with a JSON array of commands, into some base classes as follows: ALTER CLASS V SUPERCLASS +OTriggered CREATE CLASS ChangeHistory ABSTRACT CREATE PROPERTY

“Transaction was rolled back more times than it was started” Exception?

試著忘記壹切 提交于 2020-01-06 19:16:10
问题 I am running into this exception in a really odd place. Immediately after the first transaction on a fresh graph instance. This is the static factory pseudocode: if (factory == null){ factory = new OrientGraphFactory("plocal:" + args[0] + File.separatorChar + "dir").setupPool(1, 10); factory.setAutoStartTx(false); } return new GRAPHWRAPPER(factory.getTx(), arg2, arg3, arg4, arg5); inside the GRAPHWRAPPER class constructor I have the following: begin TX, add two vertices, commit TX <- Throws

“Transaction was rolled back more times than it was started” Exception?

这一生的挚爱 提交于 2020-01-06 19:15:46
问题 I am running into this exception in a really odd place. Immediately after the first transaction on a fresh graph instance. This is the static factory pseudocode: if (factory == null){ factory = new OrientGraphFactory("plocal:" + args[0] + File.separatorChar + "dir").setupPool(1, 10); factory.setAutoStartTx(false); } return new GRAPHWRAPPER(factory.getTx(), arg2, arg3, arg4, arg5); inside the GRAPHWRAPPER class constructor I have the following: begin TX, add two vertices, commit TX <- Throws

“Transaction was rolled back more times than it was started” Exception?

时光怂恿深爱的人放手 提交于 2020-01-06 19:14:53
问题 I am running into this exception in a really odd place. Immediately after the first transaction on a fresh graph instance. This is the static factory pseudocode: if (factory == null){ factory = new OrientGraphFactory("plocal:" + args[0] + File.separatorChar + "dir").setupPool(1, 10); factory.setAutoStartTx(false); } return new GRAPHWRAPPER(factory.getTx(), arg2, arg3, arg4, arg5); inside the GRAPHWRAPPER class constructor I have the following: begin TX, add two vertices, commit TX <- Throws