Updated Optimization (markdown)

Chris Lu 2021-09-09 17:17:05 -07:00
parent 3d3bb1e58a
commit 1c6f90984b

@ -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