Questions tagged [pyarango]

Python Object Wrapper for ArangoDB with built-in validation

Python Object Wrapper for ArangoDB with built-in validation https://pyarango.readthedocs.io

44 questions
1
vote
0 answers

pyArango bulkImport_json is complaining about improper indicies

I'm testing the ability to store PyTest results, generated by the json plugin for that test harness, into ArangoDB. I am attempting to import as follows import pyArango.connection as adbConn dbConn = adbConn.Connection(...) db =…
Andrew Falanga
  • 2,274
  • 4
  • 26
  • 51
1
vote
3 answers

Move Documents between collections in ArangoDB

Is there a simple way to move documents between collections in ArangoDB? I tried the cheap approach to just alter the _id, but as feared that's not supposed to be done or possible: FOR i IN collection_A UPDATE { _key: i._key, _id:…
Qohelet
  • 1,459
  • 4
  • 24
  • 41
1
vote
0 answers

Best practices for removing Documents/Edges with Graph Traversals (AQL and Python)

As AQL doesn't support deleting edges and vertices directly. I'd like to know how I'm able to delete a set of nodes/edges obtained by Graph traversals. My current code for obtaining the Edges and Nodes is quite easy and works: LET edgeKeys = (FOR v,…
Qohelet
  • 1,459
  • 4
  • 24
  • 41
1
vote
1 answer

Relationship between 2 collections Arangodb

I have 2 collections : User Tweet I want store in User the list of tweet_id and in each tweet the user_id. In my json Tweets files I have the tweet author champ.I try with AQL but I did not succeed, can you help me ? Thanks ps: I'm French student…
4 Matic
  • 13
  • 3
1
vote
1 answer

Data gets mixed up while trying to transfer it to arangodb

I'm trying to transfer ca. 10GB of json data (tweets in my case) to a collection in arangodb. I'm also trying to use joblib for it: from ArangoConn import ArangoConn import Userdata as U import encodings from joblib import Parallel,delayed import…
1
vote
0 answers

How do I implement ArangoDB HTTP API authentication on DC/OS cluster

When using a single arangodb instance, I've used the root user and a password to authenticate my pyArango connection in my application. I tried to do the same thing with my cluster, but i couldn't. Is there a better way?
chanakyan
  • 73
  • 4
0
votes
0 answers

Error: 1600 - cursor not found issue with arango spark datasource when try to fetching enitre collection

I am writing a data pipeline to ingest data from arango db to Bigquery. I have used arango spark data source. here is the code : df: DataFrame = spark.read.format("com.arangodb.spark") \ .option("query", query) \ …
0
votes
1 answer

arangodb document key length best practice

I am wokring on arangodb and was wondering weather doucment key size will affect database size. I am not sure how arango db stores data but does key length of document affects db size ? { 'username': 'testuser', 'password':…
0
votes
0 answers

ArangoDB - Document Revision Increases Size on Disk

Requirement is to update document stored in ArangoDB with values every one minute on large dataset. Reading Updating the document is faster and works properly but on every update the size of document on disk keeps increasing gradually. Found that…
Vimalan E
  • 351
  • 3
  • 12
0
votes
2 answers

PyArango holds persistent connection with pod even after Node Death (Kubernetes)

I have a Kubernetes Multinode system set up 3 three nodes. I am creating a connection between a pod on Node 2 to the Arango deployment using PyArango, the Arango Deployment has two coordinator pods one on Node 2 and one on Node 3. I'm testing out…
Joel Gray
  • 139
  • 1
  • 1
  • 8
0
votes
1 answer

Sorting on _key and filter

I have a requiremnt in which I am getting stucked. Below are few points that needs to be done. 1: I want to sort on _key field which is system generated (configured as auto increment) and filter them accordingly. Eg: SORT users._key DESC FILTER…
Abhay Rawat
  • 43
  • 1
  • 5
0
votes
1 answer

PyArango document values has wrong type after save()

I have an ArangoDB collection containing some documents. I need to get one of them, add or update some data and save it. To get the document, I use Document _key field on Collection instance: doc = collection[key] Then, I update with a dict…
Cyrille
  • 13,905
  • 2
  • 22
  • 41
0
votes
1 answer

from arango import ArangoClient ImportError: cannot import name ArangoClient

I am trying to run a python script which post data in arangodb. BUt while running the script i am getting above error Arangodb is running successfully in my localhost. from arango import ArangoClient # Initialize the ArangoDB client. client =…
0
votes
1 answer

Using arango search to find JSON keys in a collection and clean data

I am using arangoDB for a project where there is variable structure to JSON objects. I was thinking I could create a view that would search the collection and extract pertinent keys. It seems that all of the documentation assumes you know where a…
Sami Wood
  • 305
  • 3
  • 10
0
votes
1 answer

ArangoDB 2 GraphML

Is there a way to export ArangoDB-Graphs to GraphML? I'm accessing the database using pyArango. arangoexport seems to focus on JSON(L) only.
Qohelet
  • 1,459
  • 4
  • 24
  • 41