Redis is conceptually different from the traditional SQL databases that I use, and I'm trying to figure out if this is suitable for my project ... I look around but can't find the answer to my question.
I have a set of users that I need to store, each with a unique identifier and several values (such as their name) associated with it. It seems I can just save them as a hash:
user:fef982dcfe1a7bcba4849b4c281bba95
"username" "andrewm" "name" "Andrew"
I also have a bunch of messages that I want to save, each of which has several properties, such as sender and receiver:
message:1a7bcba4849b4c281bfef98a952dcfeb
"sender" "fef982dcfe1a7bcba4849b4c281bba95" "recipient" "82dcfe1a7bcba4849b4c281bba95fef9" "message" "Hi!"
My question is: how can I get all messages sent by a specific user (indicated by their hash). Should I use a traditional relational database or even a NoSQL database like MongoDB (which I used before)? If so, does anyone have any suggestions for high-end stores? I will not search for the true query (i.e. MySQL LIKE) - just browse the key values.
source
share