• fxdave@lemmy.ml
      link
      fedilink
      arrow-up
      10
      ·
      edit-2
      1 month 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.

    • jubilationtcornpone@sh.itjust.works
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      1 month 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
      1
      ·
      1 month ago

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