• jubilationtcornpone@sh.itjust.works
    link
    fedilink
    arrow-up
    51
    arrow-down
    1
    ·
    edit-2
    4 days ago

    Every time I’m assigned to a project that uses a document database


    “So how are you guys handling all your related data?”

    Finds collection of massive JSON documents containing all the related data

    “Oh boy.”

    • BlueBockser@programming.dev
      link
      fedilink
      arrow-up
      12
      arrow-down
      3
      ·
      edit-2
      4 days ago

      What’s the problem with that? In my previous team, we had a structure with four levels of nesting where we only ever needed to query the first two levels. At first we used Postgres with normalized tables, but it was just slow as hell. Switching to MongoDB actually made our performance issues vanish.

      Of course it all depends on what kinds of queries you need to run, but I don’t think that large JSON documents are necessarily a problem.