jakekgrog / GhostDB

GhostDB is a distributed, in-memory, general purpose key-value data store that delivers microsecond performance at any scale.
http://www.ghostdbcache.com
BSD 3-Clause "New" or "Revised" License
750 stars 44 forks source link

keyspaceSize definition #11

Open nodesocket opened 4 years ago

nodesocket commented 4 years ago

Found this project via Hacker News. Looks awesome. Quick question:

“keyspaceSize”: 65536

Is that the number of items or number of bytes that can be stored? Typically you allocate X number of bytes of memory that can be used. Allocating the number of items seems strange as items will be variable length right?

jakekgrog commented 4 years ago

Currently keyspaceSize represents the number of allowed key-value pairs on the node. This should really be the number of allowed bytes. It is an issue we'll address soon.