3 ms·
Forgive my ignorance, but I never programmed much and not at all in several years, so I have been reading Learning Perl as a refresher. In what way(s) is a Key-
by billswift 17y ago
Forgive my ignorance, but I never programmed much and not at all in several years, so I have been reading Learning Perl as a refresher. In what way(s) is a Key-Value database different from a hash, or set of hashes? According to the book, a hash is a set of key-value pairs. I assume the database is normally several hashes with the same keys for finding values, and the software for associating the values from multiple hashes, but is there more to it?
- lucifer 17y agoThe difference is persistence provided by a "store", not the semantics of the data space (which is a mapping from keys to values). Further, a hash is one of the alternative implementation strategies for a key-value space; your typical in-memory "database" will likely opt for hashes, while issues regarding disk access latencies favor tree structures.
- billswift 17y agoThanks, that makes sense.