News for hackers. Stuff that matters.
Re:Against SQL by randomdata on Saturday July 10, 2021 @05:50AM (#27792319)
There was a strong push for "NoSQL" about a decade ago, but it got marred by document databases trying to usurp relational databases around the same time. When people realized they chose the wrong tool for the job (that is, the document database), they were happy to return to their relational databases using SQL. That completely killed any momentum that had been built to replace SQL with different languages.
Re:Against SQL by ahartmetz on Saturday July 10, 2021 @06:07AM (#27792378)
I don't think that NoSQL ever was about better query languages for relational databases. It was about making databases faster and easier to use by using simpler data models with fewer guarantees.
Re:Against SQL by 1337shadow on Saturday July 10, 2021 @06:14AM (#27792405)
And now that we can query JSON fields in PG we get the best of both world.
Re:Against SQL by jjgreen on Saturday July 10, 2021 @07:55AM (#27792758)
I like this (and use it) but it has to be said, the syntax is grim.
Re:Against SQL by LAC-Tech on Saturday July 10, 2021 @09:00AM (#27793077)
Still, I'd rather query JSON in postgres than do joins in mongo.
Re:Against SQL by Izkata on Saturday July 10, 2021 @03:23PM (#27795774)
For now. Next version (currently in beta) will support the usual [] syntax in queries: https://blog.crunchydata.com/blog/better-json-in-postgres-wi...
Re:Against SQL by Semaphor on Saturday July 10, 2021 @08:59AM (#27793069)
Same for MSSQL, all XML or JSON Syntax is very… unfun.
Re:Against SQL by zozbot234 on Saturday July 10, 2021 @06:04AM (#27792364)
The author seems to think that putting structured data in columns is a good idea. That is pretty clearly contrary to the basics of the relational model itself, never mind SQL. In fact it's quite close to how document databases work, so a very NoSQLish proposal overall.
Re:Against SQL by fauigerzigerk on Saturday July 10, 2021 @07:52AM (#27792744)
>That is pretty clearly contrary to the basics of the relational model itself

The consensus among relational theorists appears to be that data types can be arbitrarily complex. For instance, C.J Date and Hugh Darwen write the following ([1] page 56):

Third, we remind you that types are not limited to simple things like integers. Indeed, we saw in Chapter 1 that values and variables can be arbitrarily complex—and that is so precisely because the types of those values and variables can be arbitrarily complex. Thus, to paraphrase a remark from that chapter, a type might consist of geometric points, or polygons, or X rays, or XML documents, or fingerprints, or arrays, or stacks, or lists, or relations (and on and on).

[1] https://www.dcs.warwick.ac.uk/~hugh/TTM/DTATRM.pdf

Re:Against SQL by LAC-Tech on Saturday July 10, 2021 @08:59AM (#27793070)
Alright, JSON in RDBMS is now canon!