seaweedfs/weed/filer/arangodb/readme.md

51 lines
1014 B
Markdown
Raw Normal View History

2022-03-18 10:12:25 +08:00
##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`
2022-03-18 10:26:16 +08:00
## todo
2022-03-18 13:34:19 +08:00
performance test
2022-03-18 10:26:16 +08:00
## thoughts
2022-03-18 13:34:19 +08:00
should there be one collection per bucket? this would make deleting a bucket O(1) instead of O(n)
2022-03-18 10:26:16 +08:00
## comparison
2022-03-18 13:26:11 +08:00
ok, so if https://www.arangodb.com/docs/stable/indexing-index-basics.html#persistent-index is correct
2022-03-18 13:33:08 +08:00
2022-03-18 13:26:11 +08:00
it should be log time to the number of files in the directory
2022-03-18 13:33:08 +08:00
2022-03-18 13:26:11 +08:00
and constant time if you have full directory + file
2022-03-18 13:33:08 +08:00
deleting a folder should be log time to number of folders + files that need to be deleted