309
you are viewing a single comment's thread
view the rest of the comments
[-] Simulation6@sopuli.xyz 1 points 1 month ago

I really dislike JSonB in Postgres. Just use a ORM at that point.

[-] fxdave@lemmy.ml 18 points 1 month ago* (last edited 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.

[-] Simulation6@sopuli.xyz 2 points 1 month 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 4 points 1 month ago* (last edited 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.

[-] Simulation6@sopuli.xyz 7 points 1 month ago

Ok, I was wrong. The only example I have worked with was just someone being lazy.

[-] Slotos@feddit.nl 2 points 1 month ago

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

this post was submitted on 13 Sep 2025
309 points (100.0% liked)

Programmer Humor

27083 readers
648 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS