relational type operation on key value storage
Posted
by
wayne
on Stack Overflow
See other posts from Stack Overflow
or by wayne
Published on 2012-09-04T09:36:40Z
Indexed on
2012/09/04
9:37 UTC
Read the original article
Hit count: 289
in my objects table i have
id | type | parent | order | created
and then in my data table i have
object_id | key | value
i want to get object of type 'x' where key 'y' === 'z' in the most optimal way possible.
ie. get user where slug === 'jonny'
i'm currently doing it with joins, because i'm doing this in mysql as a quick test. but i'll be moving to redis or a similar key/value storage system so obviously that won't work.
© Stack Overflow or respective owner