aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/arangodb/readme.md
diff options
context:
space:
mode:
authorelee <eddy@gfxlabs.io>2022-03-18 21:51:16 -0500
committerelee <eddy@gfxlabs.io>2022-03-18 21:51:16 -0500
commit411c0df3fec3344c3e5538cf56b54c1567162386 (patch)
tree9879535202b9610043f4d71552db7c0a682dd347 /weed/filer/arangodb/readme.md
parent1cea6c73d30ddee95b42335af74701a61c19ec84 (diff)
downloadseaweedfs-411c0df3fec3344c3e5538cf56b54c1567162386.tar.xz
seaweedfs-411c0df3fec3344c3e5538cf56b54c1567162386.zip
switch to multi collection, change readme
Diffstat (limited to 'weed/filer/arangodb/readme.md')
-rw-r--r--weed/filer/arangodb/readme.md48
1 files changed, 25 insertions, 23 deletions
diff --git a/weed/filer/arangodb/readme.md b/weed/filer/arangodb/readme.md
index e56012d8c..e189811fb 100644
--- a/weed/filer/arangodb/readme.md
+++ b/weed/filer/arangodb/readme.md
@@ -3,7 +3,6 @@
database: https://github.com/arangodb/arangodb
go driver: https://github.com/arangodb/go-driver
-
options:
```
@@ -11,40 +10,43 @@ options:
enabled=true
db_name="seaweedfs"
servers=["http://localhost:8529"]
+#basic auth
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
+i test using this dev database:
`docker run -p 8529:8529 -e ARANGO_ROOT_PASSWORD=test arangodb/arangodb:3.9.0`
-## todo
-
-performance test
-
+## 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
-## thoughts
-should there be one collection per bucket? this would make deleting a bucket O(1) instead of O(n)
-
-
-## comparison
+## complexity
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
+O(1)
+- InsertEntry
+- UpdateEntry
+- FindEntry
+- DeleteEntry
+- KvPut
+- KvGet
+- KvDelete
+
+O(log(BUCKET_SIZE))
+- DeleteFolderChildren
+
+O(log(DIRECTORY_SIZE))
+- ListDirectoryEntries
+- ListDirectoryPrefixedEntries