OrientDB

First time OrientDB user regarding security in REST api

僤鯓⒐⒋嵵緔 提交于 2019-12-04 18:37:07
I am new to OrientDB. I am going thorugh the REST apis and I am not able to understand the security of the apis. I dont have much experience with backend development (i am a front end developer) so please help me clarify some points here : As I can see all the GET requests are open, as in, if I know the url & the record or class name I can simply type it in the web browser & anyone can access all the records. How does this data is protected ?? How does access tokens or session works with the REST Apis ?? This might be a very basic question but since I have just started learning it please

How to backup all Nexus 3 artifacts?

痴心易碎 提交于 2019-12-04 15:07:49
I was wondering how to download all (not one or two specified ones) artifacts from a Nexus 3 repo to local disk. In Nexus 2 it was easy since everything was stored on disk and I would just rsync all the artifacts to my local disk. But in Nexus 3 all artifacts are stored in the OrientDB and I will have to take an other route. I was thinking about downloading them per http after getting a complete list somehow. Does anybody has an idea on how to perform such an export? I modified following groovy scirpt, which can be uploaded using the API: https://gist.github.com/kellyrob99

Insert records into embedded field of OrientDB class from select

夙愿已清 提交于 2019-12-04 13:11:21
I am evaluating OrientDB database. I have two document classes imported from a relational database. class Order with properties (ID: integer, OrderItems: EmbeddedList of OrderItem) and class OrderItem with properties (ID: integer, OrderID: integer, PropA: string) Both classes are filled with data from the database (except field Order.OrderItems). Now I would like to insert data from class OrderItem into class Order based on OrderID. I have tried SQL like update Order set OrderItems = (select from OrderItem where OrderID = Order.ID) without success, with error like The field 'Order.OrderItems'

OrientDB corruption state in Nexus Repository version 3.2.0-01

拜拜、爱过 提交于 2019-12-04 08:11:31
问题 We are using Nexus Repository version 3.2.0-01 and started getting the following error in nexus.log. OrientDB has got corrupted. Nexus is no longer starting. 2017-03-21 13:00:36,329+0000 INFO [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.orient.DatabaseServerImpl - OrientDB version: 2.2.13 2017-03-21 13:00:36,348+0000 INFO [FelixStartLevel] *SYSTEM com.orientechnologies.orient.server.OServer - OrientDB Server v2.2.13 is starting up... 2017-03-21 13:00:36,355+0000 INFO [FelixStartLevel

Create a user with Java with lowest rights in OrientDB

对着背影说爱祢 提交于 2019-12-04 05:40:26
问题 I create a user with lowest rights in the following way: db.command(new OCommandScript("sql", "insert into orole set name = 'ardaRole', mode = 0")).execute(); db.command(new OCommandScript("sql", "update orole put rules = 'database.class', 2 where name = 'ardaRole'")).execute(); db.command(new OCommandScript("sql", "update orole put rules = 'database.function', 2 where name = 'ardaRole'")).execute(); db.command(new OCommandScript("sql", "update orole put rules = 'database.cluster', 2 where

How to embed ArangoDB in a desktop application

烈酒焚心 提交于 2019-12-04 03:34:54
I would like to embed a graph database in my application (shipping for windows, linux & MAC). I narrowed the search down to ArangoDB & OrientDB. I was able to get embedded OrientDB to work but I'd still like to try ArangoDB to make an informed decision. Documentation for OrientDB embedded version is pretty clear while I can't find anything for ArangoDB. ArangoDB is written in C++ so I also have to figure out how to make it be portable across platforms and how to install it with my application. The usage of ArangoDB (or OrientDB) should be transparent to the users of our application. Thanks!

OrientDB slow write

南楼画角 提交于 2019-12-04 02:30:22
OrientDB official site says: On common hardware stores up to 150.000 documents per second, 10 billions of documents per day. Big Graphs are loaded in few milliseconds without executing costly JOIN such as the Relational DBMSs. But, executing the following code shows that it's taking ~17000ms to insert 150000 simple documents. import com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx; import com.orientechnologies.orient.core.record.impl.ODocument; public final class OrientDBTrial { public static void main(String[] args) { ODatabaseDocumentTx db = new ODatabaseDocumentTx("remote

Can I register my Java classes as OrientDB Vertices and/or Edges?

柔情痞子 提交于 2019-12-03 20:48:19
I tried the OrientDB Object Database API , which allows to use register Java POJOs to the database with entityManager.registerEntityClasses(packagename) and then read write them with minimal extra effort. However, what I would like to achieve is to register my Java POJOs as Vertices in a graph. Is there some mapping available for registering Java POJOs as Vertices? Sorry, GraphAPI can't be bound to Object Database API. You could use TinkerPop Frames for this purpose. Michail Michailidis Since TinkerPop Frame was very restricting for me I saved a lot of boilerplate code by making my Vertex to

Lucene in Neo4j has some misbehaviours in terms of reliable search querys - compared to OrientDB

谁说我不能喝 提交于 2019-12-03 20:28:46
I'm still in the evaluation of Neo4j vs. OrientDB . Most importantly I need Lucene as full-text index engine. So I created on both databases the same schema with the same data (300Mio lines). I'm also experienced with querying different things in both systems. I used the Standard Analyzer on both sides. The OrientDB test query results are all fine and really good in terms of reliability and speed. The speed of Neo4j is also ok but the results are kind of bad in most of the cases. So let's come to the different issues I have with Neo4j Lucene indexing. I always give you an example of how it

Get visited edges in OrientDB's shortestPath()

北战南征 提交于 2019-12-03 14:11:36
I am new to OrientDB and I want to use the new shortestPath() method to get the edges that are between two vertices. What I do is: OSQLSynchQuery<T> sql = new OSQLSynchQuery<T>("select shortestpath(" + firstVertex + ", " + secondVertex + ").asString()"); List<ODocument> execute = db.query(sql); and what I can only get is [#-2:1{shortestpath:[#8:1, #8:3]} v0] . So, I wanted to know how could I extract the edges (well, only one edge in this case, because these two vertices are directly connected) from this output or from the output that I get without asString() : [#-2:1{shortestpath:[2]} v0]