News for hackers. Stuff that matters.
Re:JSONB Has Landed in SQLite by chungy on Wednesday December 06, 2023 @12:45PM (#38547143)
> It would also be nice to be able to access subfields of the JSON.

Not that it's not _useful_ sometimes, but it amuses me that this is a huge violation of 1NF and people are often ok with it. It really depends on whether you're treating the JSON object as an atomic unit on its own, regardless of contents, or using the JSON to store more fine-grained information.

I guess the same argument can be made for XML data types, and everyone's OK with it too.

Re:JSONB Has Landed in SQLite by yencabulator on Wednesday December 06, 2023 @07:31PM (#38551369)
1NF is a theory construct that makes no accommodation for real-world performance. I'm shuddering even thinking how many tables and joins I would need to store some of these 3rd party JSON things I need to import & refine.
Re:JSONB Has Landed in SQLite by icedchai on Wednesday December 06, 2023 @07:07PM (#38551204)
Database design is, unfortunately, a lost art. Up through the early 2010's I remember having design reviews for database schemas, etc. That isn't "agile"... so you just fix it in the next sprint, as you explain to someone what a unique constraint is and why a table is now full of duplicates.
Re:JSONB Has Landed in SQLite by marcosdumay on Wednesday December 06, 2023 @01:29PM (#38547732)
The principles of relational algebra aren't always compatible with real applications.

They are successful beyond anything that I can imagine people expecting when creating them. But they are not that complete silver bullet that solves every problem humanity will ever need solved.