I need to store the relation “voting” for a topic in aerospike. What is the best approach ? This is what Ive done in redis before:
to see if user with id=13 has been voted for the topic with the id=44 Ive create following rediskey: “44:13” … and with a dummy value. So this is the fasted thing to see if an user has been voted for a topic. I can do this also for aerospike … this is a normal key/value functionality.
Now the other case. How can I see who has voted for topic id =44. For this I can do a redis.keys(‘44:*’) … a kind of wildcard search. How can I solve this in aerospike, afaik there is no wildcard search … Is it better to store a “json” in the key “44” with all users ? I dont know if areospike is good in large json structures …
Thank you very much, greets