OrientDB

Orientdb fastest batchimport

守給你的承諾、 提交于 2020-01-06 14:29:42
问题 I'm trying to find the fastest way to import edges to OrientDB Graph from CSV. (My OrientDB version is 2.1.15.) Now I have a graph with 100k Vertices and 1,5M Edges. Soon I will increase its size to 100M Vertices and 100B+ Edges and I don't want to wait till import ends for months :) I've tried to do it with different ways: Default JSON ETL. Edges load rate is about 200-300 rows/sec. Very slow, it works about 1,5h. Tried to change "Tx" mode and other properties, it didnt make any changes in

Orientdb fastest batchimport

安稳与你 提交于 2020-01-06 14:29:09
问题 I'm trying to find the fastest way to import edges to OrientDB Graph from CSV. (My OrientDB version is 2.1.15.) Now I have a graph with 100k Vertices and 1,5M Edges. Soon I will increase its size to 100M Vertices and 100B+ Edges and I don't want to wait till import ends for months :) I've tried to do it with different ways: Default JSON ETL. Edges load rate is about 200-300 rows/sec. Very slow, it works about 1,5h. Tried to change "Tx" mode and other properties, it didnt make any changes in

orientdb sql update edge?

被刻印的时光 ゝ 提交于 2020-01-05 19:38:37
问题 I have been messing around with orientdb sql, and I was wondering if there is a way to update an edge of a vertex, together with some data on it. assuming I have the following data: Vertex: Person, Room Edge: Inside (from Person to Room) something like: UPDATE Persons SET phone=000000, out_Inside=( select @rid from Rooms where room_id=5) where person_id=8 obviously, the above does not work. It throws exception: Error: java.lang.ClassCastException: com.orientechnologies.orient.core.id

orientdb sql update edge?

我们两清 提交于 2020-01-05 19:36:43
问题 I have been messing around with orientdb sql, and I was wondering if there is a way to update an edge of a vertex, together with some data on it. assuming I have the following data: Vertex: Person, Room Edge: Inside (from Person to Room) something like: UPDATE Persons SET phone=000000, out_Inside=( select @rid from Rooms where room_id=5) where person_id=8 obviously, the above does not work. It throws exception: Error: java.lang.ClassCastException: com.orientechnologies.orient.core.id

Renaming existing edge relationships?

独自空忆成欢 提交于 2020-01-05 08:54:01
问题 Is there a simple way to update the name of all of a type of existing edge relationships? alter class EDGE_NAME name NEW_EDGE_NAME updates the name of the base edge class, but doesn't affect any existing relationships. ie: create class Person extends V create class Car extends V create class OWNS extends E create vertex Person set name="Bob" create vertex Car set name="Jeep" create edge OWNS from (select from Person where name="Bob") to (select from Car where name="Jeep") alter class OWNS

OrientDB - How do I get elapsed query time in the REST with OrientDB?

泄露秘密 提交于 2020-01-05 04:10:06
问题 How do I get elapsed query time in the REST with OrientDB? I need a json field that shows the elapsed query time. Thanks. 回答1: You can use http://localhost:2480/command/name your db/sql/explain your query Hope it helps. 来源: https://stackoverflow.com/questions/35316652/orientdb-how-do-i-get-elapsed-query-time-in-the-rest-with-orientdb

OrientDB - Create Edge using kind of self join

妖精的绣舞 提交于 2020-01-03 05:13:18
问题 I have imported hierarchical data into OrientDB from RDMBS using OETL. In RDBMS we used to store parentId in the same row. e.g. the table structure is something like this: ID - Name - Parent_ID Corp - Corporate Office - Corp D1 - District Office 1 - Corp D2 - District Office 2 - Corp SO1 - Small Office 1 - D1 SO2 - Small Office 2 - D2 SO3 - Small Office 3 - D1 Now each row is a node in Orientdb. I want to create an edge (ParentOf) from say Corp to D1 and D1 to SO1 and so on. How can I write a

Best practice for managing OrientDB connections in Express.js / Web Applications

て烟熏妆下的殇ゞ 提交于 2020-01-03 04:43:12
问题 What is the recommended way to manage OrientDB connections in Express.js or any web application for that matter? Connection per request? Would be using the oriento Node.js driver 回答1: If you are using Oriento, you can try connection pooling, as per PR #7 you can set it like this: var server = Oriento({ user: 'root', password: 'foo', pool: { max: 10 // use a maximum of 10 sockets in the pool } }); Please bear in mind that at some point connection pooling config was hidden from Oriento's README

OrientDB Client-side firing query

谁说我不能喝 提交于 2020-01-03 04:04:30
问题 I had a task to create a simple application using eclipse as a tool and OrientDB through java, u can look into the code that I have posted below and I have connected to the OrientDB server, I'm getting the output on the console window but I want to command from the web page that is on client side. Please help me out in firing queries on the client side. package test; import com.orientechnologies.orient.core.sql.OCommandSQL; import com.tinkerpop.blueprints.Vertex; import com.tinkerpop

How to make a ST_spatial query ST_Within Orientdb by selecting spatial classes

…衆ロ難τιáo~ 提交于 2020-01-03 03:05:32
问题 I am trying to understand how to use the LUCENE Spatial queries in Orientdb 2.2.17 using pyorient. I have note yet figure it out how to select all the properties of a point vertex class that is within a polygon vertex from another class. Region Vertex Class has two properties: name coordinates (EMBEDDED OPolygon) LUCENE index CREATE CLASS Region EXTENDS V CREATE PROPERTY Region.name IF NOT EXISTS STRING CREATE PROPERTY Region.coordinates IF NOT EXISTS EMBEDDED OPolygon CREATE INDEX Region