2022-03-18 02:12:25 +00: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"]
|
2022-03-19 02:51:16 +00:00
|
|
|
#basic auth
|
2022-03-18 02:12:25 +00:00
|
|
|
user="root"
|
|
|
|
pass="test"
|
|
|
|
|
|
|
|
# tls settings
|
|
|
|
insecure_skip_verify=true
|
|
|
|
```
|
|
|
|
|
2022-03-19 02:51:16 +00:00
|
|
|
i test using this dev database:
|
2022-03-18 02:12:25 +00:00
|
|
|
`docker run -p 8529:8529 -e ARANGO_ROOT_PASSWORD=test arangodb/arangodb:3.9.0`
|
2022-03-18 02:26:16 +00:00
|
|
|
|
|
|
|
|
2022-03-19 02:51:16 +00:00
|
|
|
## features i don't personally need but are missing
|
|
|
|
[ ] provide tls cert to arango
|
|
|
|
[ ] authentication that is not basic auth
|
|
|
|
[ ] synchronise endpoint interval config
|
|
|
|
[ ] automatic creation of custom index
|
|
|
|
[ ] configure default arangodb collection sharding rules
|
|
|
|
[ ] configure default arangodb collection replication rules
|
2022-03-18 02:26:16 +00:00
|
|
|
|
|
|
|
|
2022-03-19 02:51:16 +00:00
|
|
|
## complexity
|
2022-03-18 02:26:16 +00:00
|
|
|
|
2022-03-18 05:26:11 +00:00
|
|
|
ok, so if https://www.arangodb.com/docs/stable/indexing-index-basics.html#persistent-index is correct
|
2022-03-18 05:33:08 +00:00
|
|
|
|
2022-03-19 02:51:16 +00:00
|
|
|
O(1)
|
|
|
|
- InsertEntry
|
|
|
|
- UpdateEntry
|
|
|
|
- FindEntry
|
|
|
|
- DeleteEntry
|
|
|
|
- KvPut
|
|
|
|
- KvGet
|
|
|
|
- KvDelete
|
|
|
|
|
|
|
|
O(log(BUCKET_SIZE))
|
|
|
|
- DeleteFolderChildren
|
|
|
|
|
|
|
|
O(log(DIRECTORY_SIZE))
|
|
|
|
- ListDirectoryEntries
|
|
|
|
- ListDirectoryPrefixedEntries
|