Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8244373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:49:56+00:00 2026-06-07T21:49:56+00:00

We are investigating on choosing a nosql database for our web service. We have

  • 0

We are investigating on choosing a nosql database for our web service. We have tried Cassandra and successful model our original MySQL data using Cassandra column family and super column family. It’s a pretty interesting experience. Now, we start to look into Riak and wondering how the Cassandra’s super column family be modeled using Riak.

For example we have a super column family to store all the friends of a user, with the user’s id to be key, timestamp when the friend was connected as secondary key, and the key value pairs for the friend in the node column family.

uid1 ---- t1 ---- key1 : value11
                  key2 : value12

          t2 ---- key1 : value21
                  key2 : value22

          ...     ...    ...

uid2 ---- tm ---- key1 : valuem1
                  key2 : valuem2

          tn ---- key1 : valuen1
                  key2 : valuen2

          ...     ...    ...


uidx ---- .... 

With the above data modeling, one usage is that we can do range query to get all (or a given count of) the friends of an user (uid1, e.g.) connected within a given time range.

With Riak, how the data should be modeled to achieve the usage scenario above?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T21:49:59+00:00Added an answer on June 7, 2026 at 9:49 pm

    In Riak you would use Links. You would store the user information, the friend’s user information, then create a “link” from one friend to another. This can be bi-directional if you want.

    Link: </riak/users/alice>; riaktag="bob"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently investigating performance issues on our web app (MVC2, S#arp Architecture, fluent nHibernate),
I'm investigating the different types of NoSQL database types and I'm trying to wrap
I am investigating a problem calling a web service from AJAX, which intermittently faults
Previously I have been investigating several solutions how to register with email address instead
I have been investigating about creating a UDP server, at first i though i
When investigating effective methods of documenting our VB .NET project, by experimentation I discovered
I am investigating creating cross platform mobile apps using PhoneGap. I have looked at
Investigating/researching mysql/myisam locking. trying to find a good example of how to set the
I'm investigating using SCons for our build process as we develop C++ for multiple
I am just investigating the idea of this so have no example code. I've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.