Please enable JavaScript.
Coggle requires JavaScript to display documents.
Key-value databases - Coggle Diagram
Key-value databases
Key-value store
Obtain a value from a key
Set a value for a key
Delete a key
High performance
Scalable
Some databases the object to be stored can be any data structure
Characteristics of the key-value store
Consistency
Only applies to single key operations
Transactions
there are no guarantees on the deeds.
Consultation features
Key query
Consultation requirements cannot be checked
A list of existing keys cannot be retrieved
The keys used must be intuitive
Data structure
No matter what type of value is assigned
Scaling
Sharding
When not to use
Relationships between data
Relationships between datasets between different sets of keys
Multi-operation operations
Unable to revert errors when entering multiple invalid keys
Data query
No way to operate several keys at the same time
Operations by sets
Cannot inspect the value from the database
Suitable use cases
Storage of session information
Efficiency by consulting the information in a single request
User profiles, preferences
Easy of access to data in a single key query
Shopping cart data
Bukets
Riak allows keys to be stored in buckets
A disadvantage is that it increases the likelihood of key conflicts
Simple hash table
Access through master key