Heho and welcome to Redis,
when working with Redis you have to leave some of the knowledge about
databases behind and think in the opposite way.
How do you need to query the data?
Only with an answer to this question it's possible to discuss the data layout.
There is no single 1:1 mapping from relational databases to Redis that works for everyone.
On Mon, Nov 09, 2015 at 10:42:56AM -0800, Carlos Barreto wrote:
> Hello, this my first post at community and I’m very excited to work with
> Redis.
>
> Actually I have a table design and for performance reasons and the number
> of rows we decided to migrate this table to Redis.
>
> The actual design is attached in the question.
>
> But, my question is, what is the best way to convert this SQL design to Key
> -> Value storage.
>
> My first, and only, idea is to use at this way:
>
> *room:$id:channel:$id:date:$date* =>
>
> * exclusive: 1 nexclusive: 2 units_alloc: 3 units_room: 4*But i don’t now
> if this is the best way.
>
> Thanks for answers.
>
> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
redis-db+u...@googlegroups.com.
> To post to this group, send email to
redi...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/redis-db.
> For more options, visit
https://groups.google.com/d/optout.