OrientDB

SELECT and UPDATE multiple records in oriento / orientjs and transaction in waterline

做~自己de王妃 提交于 2019-12-22 01:49:25
问题 How can I select or update multiple records in oriento? Like in waterline we can offersModel.update({id:items_ids,status:INACTIVE},{status:ACTIVE}) But in waterline transaction is not available. So I want to use : var db = offersModel.getDB(); var trans = db.begin(); trans.update('offers') .set({status:INACTIVE}) .where({id:items_ids,status:ENM.SELLING_STATUS.ACTIVE})//.exec() .then(function(offers){ if (offers.length != items_ids.length) {trans.rollback(); /* send error here*/} else trans

How to backup all Nexus 3 artifacts?

匆匆过客 提交于 2019-12-21 22:01:22
问题 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? 回答1: I modified following

OrientDB slow write

孤者浪人 提交于 2019-12-21 07:37:48
问题 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

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

余生颓废 提交于 2019-12-21 06:28:13
问题 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

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

橙三吉。 提交于 2019-12-21 06:25:23
问题 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? 回答1: Sorry, GraphAPI can't be bound to Object Database API. You could use TinkerPop Frames for this purpose. 回答2: Since TinkerPop

Which Graph Database (Orient or Titan) is good to use with spring and liferay? [closed]

家住魔仙堡 提交于 2019-12-21 05:28:32
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . please help me , I'm quite confuse while deciding to use graph database , I'm developing a Social networking website . so please suggest me which I have to use . I developing this project using spring and liferay 6.2. Please help me . Thanks in advance. 回答1: Titan as product is dead about 2 weeks ago. DataStax

Get visited edges in OrientDB's shortestPath()

不打扰是莪最后的温柔 提交于 2019-12-21 04:55:30
问题 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

OrientDB : Edges vs LinkList vs Linkmap

半世苍凉 提交于 2019-12-20 23:58:13
问题 What are the pros and cons for using either a linklist , a linkmap or an edge to store relationships between my vertices ? 回答1: An edge defines a relationship between two vertices. For example, you define two vertices, Person and Car. You then define an Edge Drives. This edge ties the two vertices together. "Jane" Drives "Ford". A linklist is a list of classes associated with another class. A Car class might have a linklist of parts from the Part class. A car consists of multiple parts. A

rooted spatial query with sub-select in OrientDB

回眸只為那壹抹淺笑 提交于 2019-12-20 07:22:35
问题 I am trying to put together a query to find nodes that are within 2km of a node in my graph. Say I have a dataset that marks some geoglyphs from the nazca lines: Name,Latitude,Longitude Hummingbird,-14.692131,-75.148892 Monkey,-14.706940,-75.138532 Condor,-14.697444,-75.126208 Spider,-14.694145,-75.122381 Spiral,-14.688277,-75.122746 Hands,-14.694459,-75.113881 Tree,-14.693898,-75.114520 Astronaut,-14.745222,-75.079755 Dog,-14.706401,-75.130788 Wing,-14.680309,-75.100385 Parrot,-14.689463,-75

can i make Geo server connection with Orient DB using WFS

馋奶兔 提交于 2019-12-20 02:39:39
问题 Hi i got a new requirement i.e I want manipulate my spatial data in GeoServer. is there any way to connect geo server with orient db. as I know that geo server support few data bases . 回答1: GeoServer has no connector for OrientDB (not an official one in the geoserver.org community at least). That said, it should be possible to develop one mimicking the existing stores for existing spatial databases. 来源: https://stackoverflow.com/questions/36011293/can-i-make-geo-server-connection-with-orient