orientdb2.2

How to load a huge CSV file in orient db

送分小仙女□ 提交于 2020-01-16 18:32:48
问题 I want to load a huge CSV file in my orient Db database.there is some checklist for the database ,that should our db follows. 1- there would be a single csv file and this CSV file will have millions of records and more then 20 Columns. 2- From this csv i have to create multiple Classes and each class will have different Properties (is it possible with Orient db). 3- i have to create index too Please help for this.how should i create Etl config file for this Thanks in advance. please let me

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:-

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

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

二次信任 提交于 2020-01-03 03:05:07
问题 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

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

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

OrientDB: Efficient way to select records with a value equal to the max of all such values?

限于喜欢 提交于 2019-12-11 05:10:07
问题 I'm not sure how to do this without using a JOIN (which ODB doesn't have, of course). In "generic" SQL, you might do something like this: Select * FROM table INNER JOIN (SELECT max(field) AS max_of_field, key FROM table GROUP BY key) sub ON table.field = sub.max_of_field AND table.key = sub.key Is there an efficient way to do this in ODB, using SELECT and/or MATCH? 来源: https://stackoverflow.com/questions/49460138/orientdb-efficient-way-to-select-records-with-a-value-equal-to-the-max-of-all-s

Edge properties clobbering vertex properties in OrientDB from ETL

和自甴很熟 提交于 2019-12-08 02:04:30
问题 This is a follow-up to another question I had posted regarding importing a simple database into OrientDB using ETL that had both edge and vertex properties with dates on both. Here's my data: vertices.csv : label,data,date v01,0.1234,2015-01-01 v02,0.5678,2015-01-02 v03,0.9012,2015-01-03 edges.csv : u,v,weight,date v01,v02,12.4,2015-06-17 v02,v03,17.9,2015-09-14 For brevity, I'll add just the updated commonEdges.json file using the edits from the other question. The other JSON files are

Edge properties clobbering vertex properties in OrientDB from ETL

狂风中的少年 提交于 2019-12-06 06:38:11
This is a follow-up to another question I had posted regarding importing a simple database into OrientDB using ETL that had both edge and vertex properties with dates on both. Here's my data: vertices.csv : label,data,date v01,0.1234,2015-01-01 v02,0.5678,2015-01-02 v03,0.9012,2015-01-03 edges.csv : u,v,weight,date v01,v02,12.4,2015-06-17 v02,v03,17.9,2015-09-14 For brevity, I'll add just the updated commonEdges.json file using the edits from the other question. The other JSON files are unchanged. commonEdges.json : { "begin": [ { "let": { "name": "$filePath", "expression": "$fileDirectory

OrientDB ETL loading CSV with vertices in one file and edges in another

六月ゝ 毕业季﹏ 提交于 2019-11-30 22:29:39
I have some data that is in 2 CSV files, one contains the vertices and the other file contains the edges are in the other file. I'm working out how to set this up using ETL and am close but not quite there yet--it mostly works but my edges have properties and I'm not sure that they're loading right. This question was helpful but I'm still missing something... Here's my data: vertices.csv : label,data,date v01,0.1234,2015-01-01 v02,0.5678,2015-01-02 v03,0.9012,2015-01-03 edges.csv : u,v,weight,date v01,v02,12.4,2015-06-17 v02,v03,17.9,2015-09-14 I import my vertices using this: commonVertices