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

  • Home
  • SEARCH
  • 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 8287253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:59:03+00:00 2026-06-08T11:59:03+00:00

I need to track users relations in a social app, something like this: UserA

  • 0

I need to track users relations in a social app, something like this:

UserA follow UserC, UserD, and UserE
UserZ follow UserC, UserD, and UserE
UserC follow UserA, UserD, and UserE

And so on.

First, I need a partition tolerant database so MySQL and its brothers are out of the game.

I look at couchdb but it creates a revision for each change, so, if your doc is like:

{
  uuid: uuid
  name: name,
  lastName: lastName
  follows: [ uuid1, uuid2, uuid3 ]
}

you will have this other revisions in the data base

(rev 1)
{
  uuid: uuid
  name: name,
  lastName: lastName
  follows: [ uuid1, uuid2 ]
}
(rev 2)
{
  uuid: uuid
  name: name,
  lastName: lastName
  follows: [ uuid1 ]
}

That is a lot of space, I know you can free this by some manual action but the problem don’t disappear.

I look at Cassandra, and so far it looks like a good solution, it allows insertions with no extra space issues like couchdb. I can create a key space, then a column and then an store relations, something like this:

keyspace:{
  column:{
    ...
    uuidT:{ uuidA: timestamp, uuidB: timestamp, uuidZ }
    uuidF:{ uuidA: timestamp, uuidB: timestamp, uuidZ }
    uuidH:{ uuidA: timestamp, uuidB: timestamp, uuidZ }
    ...
  }
}

But I’m wondering if a graphical database is best for this.

Edit:

After surf for a answer I found this page that helps to chose a DB. http://nosql.findthebest.com/

  • 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-08T11:59:05+00:00Added an answer on June 8, 2026 at 11:59 am

    FWIW, in CouchDB I always use arrays of objects, rather than just arrays of IDs. Eg.

    {
      uuid: uuid
      name: name,
      lastName: lastName
      follows: [ { _id: uuid1 }, { _id: uuid2 }, { _id: uuid3 } ]
    }
    

    This is for two reasons:

    1. It allows you, if you want, to easily add other join data to that object that you might want. Eg. { _id: uuid1, followed_on: "2011-10-22" }
    2. It fits in nicely with the include_docs=true options for grabbing the associated doc in your view queries.

    Update

    Hey, check it out, you can limit the number of revisions kept in the DB

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to track some information on users, but would like to retain it
I need something like a session-id. I will need to track a couple of
I have a table called 'notes', on this table I need to track who
I have a need to design a system to track users memberships to groups
I need to track my users time on website using javascript. My website is
I have a profile page (less than 10k users) and I need to track
I need to track changes on an input element but this should be done
For a library, I need to keep track of users and books. Basically I
I'm developing a CMS for my website. I need track Users activities in my
For my Android app, users need to connect to a server that will be

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.