arangodb

number of 'graphs' in a ArangoDB database

别来无恙 提交于 2019-12-13 01:24:50
问题 I am exploring Arangodb and I am not sure I understand correctly how to use the graph concept in ArangoDb. Let's say I am modelling a social network. Should I create a single graph for the whole social network or should I create a graph for every person and its connections ? I've got the feeling I should use a single graph... But is there any performance/fonctionality issue related to that choice ? Maybe the underlying question is this: should I consider the graph concept in arangodb as a

Can graph db solve my graph problems?

纵饮孤独 提交于 2019-12-13 00:04:54
问题 I have transactions data (pastebin.com/ZswbyVHM) like this: {"accountId":3,"recordedAt":"2013-12-01T00:00:00.000Z","region":"South","status":"H"} {"accountId":3,"recordedAt":"2014-01-01T00:00:00.000Z","region":"South","status":"A"} {"accountId":3,"recordedAt":"2014-02-01T00:00:00.000Z","region":"South","status":"B"} {"accountId":3,"recordedAt":"2014-03-01T00:00:00.000Z","region":"South","status":"E"} {"accountId":3,"recordedAt":"2014-04-01T00:00:00.000Z","region":"South","status":"C"} when

How to limit ArangoDB RAM usage inside of a docker container?

拈花ヽ惹草 提交于 2019-12-12 18:34:43
问题 We use ArangoDB 3.3.14 (Community Edition) with MMFiles storage engine for a relatively large data set (a bit over 30 GB when you back it up). We run it inside of a docker container using ECS. Our host VM has 64 GB of RAM and we have dedicated 55 GBs exclusively for ArangoDB container (we set a hard limit for that container to 55 GBs). When ArangoDB is just started and have all the collections loaded into the RAM it would take about 45 GBs, so we have about 10 GBs of free RAM to be used for

Can't switch to database other than _system within Foxx

三世轮回 提交于 2019-12-12 18:20:00
问题 I'm trying to dynamically generate databases/collections on application startup, in case they do not exist yet. This works fine when working with the _system database. The thing is that it seems not to be allowed when trying to switch to other databases. From the docs: db._useDatabase(name) Changes the current database to the database specified by name. Note that the database specified by name must already exist. Changing the database might be disallowed in some contexts, for example server

retrieve vertices with no linked edge in arangodb

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 12:07:29
问题 What is the best way to retrieve all vertices that do not have an edge in a related edge_collection I've tried to use the following code but it's got incredibly slow since arangodb 2.8 (It was not really fast in previous versions but round about 10 times faster as now). It takes more than 30 seconds on collection sizes of around 1000 edges and around 3000 vertices. FOR v IN vertex_collection FILTER LENGTH( EDGES(edge_collection, v._id, "outbound"))==0 RETURN v._id ... update ... After playing

How to embed ArangoDB in a desktop application

删除回忆录丶 提交于 2019-12-12 08:33:58
问题 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

Arangod.conf for SSL

与世无争的帅哥 提交于 2019-12-12 05:38:34
问题 What does arangod.conf look like for running TLS 1.2 on port 8529 with a self-signed certificate at /server.pem ? The current documentation lists only the parameters for starting the server, but not the equivalent arangod.conf . [database] directory = /var/lib/arangodb3 [server] endpoint = ssl://0.0.0.0:8529 authentication = true threads = 0 statistics = true uid = arangodb enter code here [scheduler] threads = 0 [javascript] startup-directory = /usr/share/arangodb3/js app-path = /var/lib

ArangoDB Java API create database not working in 3.1.RC3

本小妞迷上赌 提交于 2019-12-12 03:47:46
问题 I have installed ArangoDB 3.1 RC3 community edition and created maven project with below code ArangoDB arangoDB = new ArangoDB.Builder().host("127.0.0.1").port(8529).build(); String dbName = "mydb"; try { arangoDB.createDatabase(dbName); System.out.println("Database created: " + dbName); } catch (ArangoDBException e) { System.err.println("Failed to create database: " + dbName + "; " + e.getMessage()); } Here is my pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http:/

ArangoDB 3.0: Usage of unknown function 'TRAVERSAL()' (while parsing)

痴心易碎 提交于 2019-12-12 03:09:48
问题 I freshly installed ArangoDB 3.0.2 via Homebrew When I ran a query following this link https://docs.arangodb.com/3.0/cookbook/Graph/FindingLeafNodesAql.html#using-the-visitor-from-an-aql-query This error occurred: Query: usage of unknown function 'TRAVERSAL()' (while parsing) Could somebody please explain why I got this error? Thank you very much in advance. FYI: I did run that query successfully in ArangoDB 2.8. 回答1: All graph-related functions were removed from AQL in 3.0. The faster and

AQL template in arango Foxx does not work correctly with array

◇◆丶佛笑我妖孽 提交于 2019-12-11 19:06:52
问题 The below query would not work if I used an array but work normally if we use a string to construct the snippet. Did I make a mistake somewhere or is this one is a bug related to arango? var array=["1","2"] //Make a snippet depend on array. var snippet=aql.literal(`FILTER u.id IN "${array}"`) //Main query. Result is incorrect even though it runs var query=db._query(aql` For u in Collection {$snippet} RETURN u ` ) Example of the correct query using string var string="1" var snippet=aql.literal