From 1c6f90984badcf077cdd5074b9d944bb805df246 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 9 Sep 2021 17:17:05 -0700 Subject: [PATCH] Updated Optimization (markdown) --- Optimization.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Optimization.md b/Optimization.md index 6e94a45..15a0edb 100644 --- a/Optimization.md +++ b/Optimization.md @@ -91,9 +91,13 @@ curl "http://localhost:9333/dir/status?pretty=y" Once you are sure about the volume free spaces, you can use your own file ids. Just need to ensure the file key format is compatible. -The assigned file cookie can also be customized. +The assigned file cookie can also be customized, as long as it is 32-bit. -Customizing the needle id and/or file cookie is an acceptable behavior. "strict monotonously increasing" is not necessary, but keeping file id in a "mostly" increasing order is expected in order to keep the in memory data structure efficient. +### Volume Server Efficiency + +"strict monotonously increasing" needle id is not necessary, but keeping needle id in a "mostly" increasing order helps to keep the in memory data structure efficient. + +If the needle id have to be random, you can use leveldb as the index when starting volume server. ## Upload large files