OrientDB

Do Orientdb use the deleted vertex or edge memory?

时光毁灭记忆、已成空白 提交于 2019-12-25 02:41:03
问题 Suppose we have an edge or a vertex but we don't need that vertex anymore when we delete that vertex does orientdb use that space again that was allocated to the deleted vertex or edge. 回答1: The space is reused, but the RID (Record ID) is never recycled. 来源: https://stackoverflow.com/questions/26160635/do-orientdb-use-the-deleted-vertex-or-edge-memory

Presence / absence of an outgoing edge from a vertex in OrientDb

妖精的绣舞 提交于 2019-12-25 01:56:16
问题 I have seen some similar questions on SO but none of the answers have worked for me yet, so I am hoping to get a new answer with the new features that have been added to recent versions of OrientDb since the other questions were asked. I am trying to query all vertices which have an outgoing edge of a particular type but no outgoing edge of another type. As an example in a simple relationship of Person ---- Friend ---> Person Person ---- Owns ---> Car I am trying to find all the persons who

OrientDB spatial query to find all pairs within X km of each other

穿精又带淫゛_ 提交于 2019-12-25 01:39:06
问题 I'm testing out the orientdb spatial module. I've put together a simple dataset with coordinates for a few of geoglyphs in the nazca lines ( nazca_lines.csv ): 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

OrientDB 3.0.4 Console EMBEDDEDLIST CREATE VERTEX

て烟熏妆下的殇ゞ 提交于 2019-12-24 23:14:40
问题 It appears that console application in OrientDB 3.0.4 is not backward compatible with OrientDB 3.0.2 for creating Vertex having EMBEDDEDLIST. Following Query fails in OrientDB 3.0.4 console: CREATE VERTEX Profile SET name = "John", phone = [{ "@type":"d", "number" : "212" }] How can I resolve the issue? What are the changes for v3.0.4 and where can I find updated documentation? OrientDB console v.3.0.2 - Veloce (build e47e693f1470a7a642461be26983d4eca70777fd, branch develop) OrientDB console

PHP Warning: A session is active. You cannot change the session module's ini settings at this time in /../

£可爱£侵袭症+ 提交于 2019-12-24 13:33:09
问题 I created my custom PHP session handler and sometimes I get the PHP warning: PHP Warning: curl_exec(): A session is active. You cannot change the session module's ini settings at this time in This appear to be a randomic issue, and "curl_exe()" function is not the problem, since the function always changes when the error occures. The custom session handler saves sessions into memcache and OrientDB, I am sure memcache and orientdb don't have problems when the error occures because I have no

Issue with creating edge in OrientDb with Blueprints / Tinkerpop

馋奶兔 提交于 2019-12-24 11:34:11
问题 I am recently trying to learn OrientDb and now that I am somewhat familiar with the OrientDb console itself I am moving on to using Blueprints to write a simple java program to create a graph. I am trying to create a few vertices and edges between them, but although my vertices are created successfully, I am unable to see my edges unless I call the method for creation twice. If I comment out one of the calls, none of the edges are being created. I tried checking for any timing issues by

How to use OrientDB in a SailsJS App

走远了吗. 提交于 2019-12-24 11:20:05
问题 I am new to NodeJS and SailsJS, was working with Rails or PHP before. I want to use SailsJS together with OrientDB. What would be the best approach? I found two options so far, but the amount of information isn't that great (yet). Go with Waterline and this sails adapter for orientdb Go one level deeper and use the binary adapter from nodejs Any help, tips, hints would be greatly appreciated. I am a bit lost but very excited to understand more about these great tools. Thanks! 回答1: You

Print the shortest path to the java console using orientdb

淺唱寂寞╮ 提交于 2019-12-24 08:25:27
问题 I want to print in the Java console shortestpath between two vertices. I can not print anything or if you have any way to do that would appreciate it. String subquery = "Select shortestpath(17:10, 17:14, BOTH) "; Iterable<OrientVertex> result = orientDBGraph.command(new OSQLSynchQuery<OrientVertex>(subquery)).execute(); Assert.assertTrue(result.iterator().hasNext()); System.out.println(result); for (OrientVertex d : result) { System.out.println("Shortest path from " + ((OrientVertex) d

OrientDB - How to append a string with SQL

笑着哭i 提交于 2019-12-24 07:55:21
问题 I am trying to update a string with another string using SQL. UPDATE #9:14 set foo = (SELECT foo.append('abc')FROM #9:14) returns: ['123abc'] This does what I want with the exception that it wraps the string in brackets. Is there a better solution? 来源: https://stackoverflow.com/questions/42665658/orientdb-how-to-append-a-string-with-sql

OrientDB ETL Throws exception on loading CSV file

泪湿孤枕 提交于 2019-12-24 04:51:56
问题 I am trying to load a simple CSV file to OrientDB and it always throws this exception. CSV File Content id, name, role 1, Sarath, Architect 2, Anoop, Project Manager 3, Nazeem, Lead Developer 4, Rini, Senior Developer 5, Shine, iOS Developer 6, Vishnu, iOS Developer json config file { "source": { "file": { "path": "./dev.csv" } }, "extractor": { "row": {} }, "transformers": [ { "csv": {} }, { "vertex": { "class": "Person" } } ], "loader": { "orientdb": { "dbURL": "remote:localhost/dev",