aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/arangodb/readme.md
blob: e56012d8cc49572d090c776ac11abe7bfec2b6b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
##arangodb

database: https://github.com/arangodb/arangodb
go driver: https://github.com/arangodb/go-driver


options:

```
[arangodb]
enabled=true
db_name="seaweedfs"
servers=["http://localhost:8529"]
user="root"
pass="test"

# whether to enable fulltext index
# this allows for directory prefix query
fulltext=true

# tls settings
insecure_skip_verify=true
```

supports buckets with an extra field in document.
omitempty means extra space is not used.

i test with
`docker run -p 8529:8529 -e ARANGO_ROOT_PASSWORD=test arangodb/arangodb:3.9.0`


## todo

performance test


## thoughts

should there be one collection per bucket? this would make deleting a bucket O(1) instead of O(n)


## comparison

ok, so if https://www.arangodb.com/docs/stable/indexing-index-basics.html#persistent-index is correct

it should be log time to the number of files in the directory

and constant time if you have full directory + file

deleting a folder should be log time to number of folders + files that need to be deleted