• Adanisi
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 months ago

    Because then people can vote an unlimited number of times.

    There needs to be some sort of identifier

    • m3t00🌎@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 months ago

      array votes[post_id, vote]; // for storing in user profile not public but can be hashed if you don’t trust your dba

      • Adanisi
        link
        fedilink
        English
        arrow-up
        2
        ·
        3 months ago

        Enumerating every user to get the vote count on every single post/comment seems too computationally expensive.