Skip to content

schema to delete a user. #4685

Description

@joaoarmando

I'm facing some difficulties with updating counters.
I'm developing a "social networking" application, this is my first application.
In the scenario, we have the following situation:
User X has 300 followers.
User Y will in turn follow user X, then I will go to the Follows counter of user X and increase by 1, user X happens to have 301 followers now, and I also go to user Y who has followed up, and increased your following counter at 1.
The problem lies in, if user X, resolves to delete your account, I will have to make 301 calls, for each of the followers of user X, and decrease the following counter of all those users at -1, That is the way correct to do this?
-Sorry my english, i'm using translator

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions