orientdb-2.1

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 Gremlin - Retrieve Vertex for a class in gremlin not hitting indexes

妖精的绣舞 提交于 2019-12-22 17:54:21
问题 I'm using OrientDB 2.1.11 and rexster 2.6 and gremlin is the main query language. I use via rexpro (and rexster REST). My issue is: how to get the indexes to hit from gremlin (I must use gremlin not orient sql). I have a vertex class zipcode, which has 1 property zip_code defined in schema and indexed as dictionary: zipcode.zip_code DICTIONARY ["zip_code"] SBTREE But when I query it using gremlin, its slow when records are around >25k (haven't tested with lower numbers). To give proper

OrientDB Gremlin - Retrieve Vertex for a class in gremlin not hitting indexes

我只是一个虾纸丫 提交于 2019-12-22 17:53:15
问题 I'm using OrientDB 2.1.11 and rexster 2.6 and gremlin is the main query language. I use via rexpro (and rexster REST). My issue is: how to get the indexes to hit from gremlin (I must use gremlin not orient sql). I have a vertex class zipcode, which has 1 property zip_code defined in schema and indexed as dictionary: zipcode.zip_code DICTIONARY ["zip_code"] SBTREE But when I query it using gremlin, its slow when records are around >25k (haven't tested with lower numbers). To give proper

OrientDB create edge issue in batch/script

不羁岁月 提交于 2019-12-11 12:40:10
问题 I have 2 problems with edge creation. First , I'm creating a bunch of vertices and edges with a batch command. Sometimes and edge is created between vertices that havent been created yet (it depends on the input order, and for now that cannot be controlled) . Of course Orient server throws an exception instead of failing silently. I couldnt find a way of telling it to skip it or avoid creating the edge. In Neo4j you can do: MATCH (a {id:'zz'}),(b {id:'yy'}) CRAETE UNIQUE (a)-[r:REL {'id': 'xx

Creating a database in Orientdb in distributed mode

南楼画角 提交于 2019-12-11 12:30:26
问题 Our system creates OrientDB databases programmatically and uses one database for each customer (before anyone jump on dismissing this design, the reasons are security, possibility to move certain customer/data between datacenters/regions and the possibility to relocation to on-premise). This works great in OrientDB in single mode. However, when the database is setup in distributed mode (3 servers, on amazon). The behaviour is, to put it mildly, weird. I know the docs doesn't say anything

OrientDB import edges only using ETL tool

 ̄綄美尐妖づ 提交于 2019-12-10 11:29:39
问题 I already used the OETL to insert all my Vertex to the graph. Now I have a file that outlines the edges at the following way: node_1,rel_type,node_2 11000001,relation_A,10208879 11000001,relation_A,10198662 11000001,relation_B,10159927 11000001,relation_C,10165779 How can I import it using the OrientDB OETL tool? I tried the following: "transformers": [ { "csv": {} }, { "command" : { "command" : "create edge ${rel_type} from (select flatten(@rid) from V where node_id= ${node_1}) to (select

OrientDB Gremlin - Retrieve Vertex for a class in gremlin not hitting indexes

十年热恋 提交于 2019-12-06 05:08:25
I'm using OrientDB 2.1.11 and rexster 2.6 and gremlin is the main query language. I use via rexpro (and rexster REST). My issue is: how to get the indexes to hit from gremlin (I must use gremlin not orient sql). I have a vertex class zipcode, which has 1 property zip_code defined in schema and indexed as dictionary: zipcode.zip_code DICTIONARY ["zip_code"] SBTREE But when I query it using gremlin, its slow when records are around >25k (haven't tested with lower numbers). To give proper context, I try to find the zipcode first, if it doesn't exist then I create the vertex for later use. Find

Can we UPSERT an EDGE in orientdb?

余生长醉 提交于 2019-12-01 09:29:10
Is it possible to get an example to upsert an edge in orientdb. IF it does not exist is there a way to check if the edge exist, if it does then just update the edge else create a new edge. I am using Orientdb 2.1.13 version. Thank you via SQL you can use the basic UPDATE command update written_by SET out = #9:2, in = #16:43, prop="gianni" UPSERT WHERE out = #9:2 and in = #16:43 http://orientdb.com/docs/last/SQL-Update.html 来源: https://stackoverflow.com/questions/38060343/can-we-upsert-an-edge-in-orientdb

Can we UPSERT an EDGE in orientdb?

烈酒焚心 提交于 2019-12-01 07:06:24
问题 Is it possible to get an example to upsert an edge in orientdb. IF it does not exist is there a way to check if the edge exist, if it does then just update the edge else create a new edge. I am using Orientdb 2.1.13 version. Thank you 回答1: via SQL you can use the basic UPDATE command update written_by SET out = #9:2, in = #16:43, prop="gianni" UPSERT WHERE out = #9:2 and in = #16:43 http://orientdb.com/docs/last/SQL-Update.html 来源: https://stackoverflow.com/questions/38060343/can-we-upsert-an