• fxdave@lemmy.ml
      link
      fedilink
      arrow-up
      15
      ·
      edit-2
      17 hours ago

      That’s not the point of JSONB. Use normalized tables whenever you can. JSONB allows you to store a document with unknown structure, and it allows you to access that data within SQL.

      • Simulation6@sopuli.xyz
        link
        fedilink
        arrow-up
        2
        ·
        16 hours ago

        I probably have just run into a bad example of its use. I can see it being useful for unknown documents.

    • jubilationtcornpone@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      13 hours ago

      I run a web app that processes at least one third party JSON document that is so large it would exceed the table column limit if flattened out. It gets stored in a JSONB column. EFCore with Npgsql can query JSON documents in Postgres. Works just fine as long as you put indexes on the fields you’re going to be querying.

    • Slotos@feddit.nl
      link
      fedilink
      arrow-up
      2
      ·
      17 hours ago

      I can’t muster any sarcasm out of sheer disappointment. You win this time…