1
0
mirror of https://github.com/nxshock/zkv.git synced 2024-11-27 11:21:02 +05:00

Add note about memory consumption

This commit is contained in:
nxshock 2022-12-09 20:28:24 +05:00
parent f093b7feed
commit fe90a55322

View File

@ -10,7 +10,7 @@ Simple key-value store for single-user applications.
## Cons
* Index stored in memory (`map[key hash (28 bytes)]file offset (int64)`)
* Index stored in memory (`map[key hash (28 bytes)]file offset (int64)`) - average 200-250 Mb of RAM per 1M keys
* Need to read the whole file on store open to create file index
* No way to recover disk space from deleted records
* Write/Delete operations block Read and each other operations