arangodb

ArangoDB Faceted Search Performance

纵然是瞬间 提交于 2019-12-08 19:36:31
问题 We are evaluating ArangoDB performance in space of facets calculations. There are number of other products capable of doing the same, either via special API or query language: MarkLogic Facets ElasticSearch Aggregations Solr Faceting etc We understand, there is no special API in Arango to calculate factes explicitly. But in reality, it is not needed, thanks for a comprehensive AQL it can be easily achieved via simple query, like: FOR a in Asset COLLECT attr = a.attribute1 INTO g RETURN {

Issues while setting up ArangoDB Cluster

荒凉一梦 提交于 2019-12-08 09:23:13
问题 Recently I was trying to setup a development cluster on my local machine in ArangoDB. I tried to create a cluster through the web interface, I got this error stating: " Error while starting the cluster: Unauthorized ". The first time I tried doing it, it doesn't show any error, but kept asking for username and password again and again, and shows: Coordinator User invalid . My ArangoDB version is 2.6.8 Where have I gone wrong? 回答1: The ArangoDB Cluster abilities are migrated to Apache Mesos

ArangoDB - how to perform computations in graph traversals?

不想你离开。 提交于 2019-12-07 13:46:44
问题 I have a simple graph for keeping a track of people whom I have lent money to. So the graph looks like this: userB -- owes to (amount: 200) --> userA userC -- owes to (amount: 150) --> userA and so on... Lets say you need to find out how much money each user is owed, using a graph traversal. How do you implement this? 回答1: Let me explain this using the city example graph Vertices (cities) have a numeric attribute, population ; Edges (highways) have a numeric attribute distance . Inspecting

How to dump all databases with ArangoDB

久未见 提交于 2019-12-07 12:33:45
问题 I have ArangoDB running locally with databases, collections, data and graphs from several different projects in it. I'd like to back up everything so I can rebuild my system. I know how to do a backup of a single database, but because I have a bunch I'm hoping to do this in one shot. Essentially, I'm looking for the ArangoDB equivalent of mysqldump -u root -p --all-databases > alldb.sql Obviously the ArangoDB equivalent of mysql -u root -p < alldb.sql Would be good to know too. 回答1: As of

Arangodb custom filter/visitor for my tree graph

主宰稳场 提交于 2019-12-07 12:13:07
问题 I have a graph with two edge definitions like this: isDepartment: [organisation] -> [organisation] hasAccess: [user] -> [organisation] Organisations are nested in a tree (no cycles). There are multiple top-level organisations without any incoming isDepartment edges. Users are granted access to one or more organisations. These can be top-level organisations or organisations somewhere lower down the tree. If a user has access to an organisation, it has access to all child organisations. I am

How to store images in ArangoDB?

本小妞迷上赌 提交于 2019-12-07 08:12:29
问题 I want to store images in ArangoDb as image file. I want to know if there is any API or Java API for the same. Thanking You in advance. 回答1: Storing binary data inside ArangoDB has been a long standing feature request. Currently its not possible out of the box. One can however do this by creating a foxx service that handles the data. The recommended way is to create a file and reference that file name inside the database. A detailed description and an example foxx app can be found in the

ArangoDB Transactions - How prevent from throwing exceptions

喜欢而已 提交于 2019-12-07 07:46:03
问题 How to prevent ArangoDB from throwing an exception during the Transaction when looking for a specific document which perhaps does not exist at that moment? Nodejs sends the transaction in one block to ArangoDb where it gets processed. That's perfect. I want to unload all math to the server. During the Transaction, I want to look at a specific Collection and check if a document exists, if document can be found, then get field 'balance', but if the Document cant be found or their field, then I

Remote javascript interaction with arangodb

蓝咒 提交于 2019-12-06 13:28:39
Our production environment doesn't provide a shell but only javascript engine and REST interface. Our arangodb server will be installed at a remote location. Since all of our users are comfortable with javascript implementation we are looking for a solution if we could provide them an interface where they write the queries for arangodb in javascript (the way we do in arangodbsh) and we can execute them remotely and get the result. Is it somehow possible ? I am new to arangodb and so far I have found that there is only REST interface available to interact remotely. arangosh is not available and

ArangoDB Foxx and Clojure script

拜拜、爱过 提交于 2019-12-06 06:47:18
问题 I'd like to implement a Foxx service using ClojureScript. I've read that one can use Typescript and Coffeescript by running the transpiler during each development step; Can I do similar for ClojureScript? 回答1: As far as we know, it is not possible to write ClojureScript applications in such a way that they could run in ArangoDB/Foxx. Unlike TypeScript and CoffeeScript, ClojureScript is not just a language but an application runtime. It's better to think of it not as an alternative syntax for

Programmatically creating edges in ArangoDB

微笑、不失礼 提交于 2019-12-06 05:11:34
What is the simplest way to quickly create edges in ArangoDB programmatically? I would like to create relationships between documents based on a common attribute. I'd like to be able to select an attribute, and for every document in collection A, create an edge to every document in collection B that has the same value in an equivalent attribute. For example, if I've imported email messages into a collection and people into another collection, I would like to generate edges between the emails and collections. An email's schema might look like this: { "_key": "subject": "body": "from": "to": }