Questions tagged [python-arango]

python-arango is a Python driver for ArangoDB. Please use this tag to discuss on queries related to python-arango. Question the tag should be limited the scope of the python-arango. For more information, please visit the documentation.

26 questions
5
votes
3 answers

UPSERT with python-arango driver for ArangoDB

I'm using python-arango as a driver for ArangoDB, and there doesn't seem to be an UPSERT interface. I intended to tag this with python-arango, but I have insufficient rep to create new tags. I'm managing with something like the function shown below,…
Thomas Fauskanger
  • 2,536
  • 1
  • 27
  • 42
3
votes
1 answer

ArangoDB Read timed out (read timeout=60)

I have a problem. I am using ArangoDB enterprise:3.8.6 via Docker. But unfortunately my query takes longer than 30s. When it fails, the error is arangodb HTTPConnectionPool(host='127.0.0.1', port=8529): Read timed out. (read timeout=60). My…
Test
  • 571
  • 13
  • 32
2
votes
1 answer

SSL Certificate Error with python-arango Library

I am trying to connect the Python-Arango library to an application. I have set up the ArangoDB on Kubernetes nodes using this tutorial. My yaml file for the cluster is like this: --- apiVersion: "database.arangodb.com/v1alpha" kind:…
Arghya Dutta
  • 105
  • 1
  • 8
2
votes
1 answer

AQL Upsert performance ArangoDB with python-arango

I am experimenting on UPSERT-statements for multiple items (around 20 - 30k) using paython-arango and a aql query. Overall, this method seems to be much slower in python compared to NodeJS anyway but I tried two different methods and suprisingly the…
Thomas Dorloff
  • 111
  • 1
  • 1
  • 5
1
vote
2 answers

Cursor not found while reading all documents from a collection

I have a collection student and I want this collection as list in Python, but unfortunately I got the following error CursorNextError: [HTTP 404][ERR 1600] cursor not found. Is there an option to read a 'huge' collection without an error? from…
Test
  • 571
  • 13
  • 32
1
vote
1 answer

Unable to get an ArangoSearch view working properly in ArangoDB

I'm having trouble with ArangoSearch. Here is some dummy data that I have in a collection called things (for simplicity I have removed each of their "_id", "_key" and "_rev" properties): {"text":"eat a cookie"} {"text":"I like cookies"} …
green
  • 77
  • 7
1
vote
1 answer

Using "COUNT INTO length" or Aggregate-functions in a regular filtered Query

I'm using Python to access my ArangoDB. Sometimes it would be useful to figure out if the result is empty or if I have exactly one result by using len(cursor). This unfortunately leads mostly to an exception: │arango.exceptions.CursorCountError:…
Qohelet
  • 1,459
  • 4
  • 24
  • 41
1
vote
2 answers

Connect ArangoDB cluster hosted on Kubernetes pods via Python

I have a 3 node system, on which I have hosted a basic ArangoDB cluster having 3 dbservers. I am using Python-arango library, which says that to connect to the clusters, we need to supply the list of IPs with the port 8529 to ArangoClient class.My…
Arghya Dutta
  • 105
  • 1
  • 8
1
vote
0 answers

Why simple aql execute returns AsyncJobResultError when client requests data?

Simple aql execute queries return this error too often. arango.exceptions.AsyncJobResultError: [HTTP 204] job 4739915 not done Sometimes it returns the data and sometime it doesn't while throwing above error. Example query is below. # here db is an…
Yehya
  • 506
  • 1
  • 5
  • 16
1
vote
1 answer

Call ArangoDB docker container from a python script container fails

I have a python script that I dockerized, inside the script i make a call to ArangoDB. I have another container running an ArangoDB image. When i run both containers, I'm able to access ArangoDB on my localhost and if I run my python script from…
1
vote
2 answers

how to insert data with variables in arangodb with python-arango

I try to insert data from a variable and can't find a way to do this, can someone help me? something like this: name = "mark" surname = "clark" db.collection('user').insert([{'username': @name, 'usersurname': @surname}]) thanks!
yiya
  • 11
  • 1
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
0 answers

Arango db not starting

I have been using arango db for a month. Its wonderful at almost all the things I want it to do for me. Suddenly I have been having crashes on Linux Mint and I dont know what is the cause. The problems range from missing indexes and memory crashes…
DUMBA
  • 159
  • 2
  • 10
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
1
2