• 1 Post
  • 39 Comments
Joined 1 year ago
cake
Cake day: July 1st, 2023

help-circle









  • Mostly storage space and ease of updating records.

    Let’s say you have records of users who watch a TV show.

    You could keep users as a key and shows as an array. Where each array entry is a record of the TV show title, release date, and other info such as time watched by that user.

    In this case you’re duplicate the strings for shows like “Fallout” and the release date thousands of times. And then if there’s an update such as a title change or the streaming service or channel where it’s found you have to find those thousands of subrecords and update them.

    Keeping a reference to another key/json file by some ID makes it easier to do such updates and reduces storage for that data. Except now you have to correlate that data when doing things like reports of what shows were watched by what users.