zlacker

[return to "Pipe Syntax in SQL"]
1. sklivv+Wy[view] [source] 2024-08-24 20:02:29
>>legran+(OP)
SQL doesn't have problems. It's arguably one of the oldest and most successful languages of all times.

Some developers have problems, because they don't understand its abstraction. Periodically they try to re-implement feature to "fix" SQL. Every time it's an absolute disaster.

I realize this is how the world works, but it's just a waste of time.

◧◩
2. tmoert+eA[view] [source] 2024-08-24 20:10:34
>>sklivv+Wy
> Some developers have problems, because they don't understand its abstraction.

I think the point of this new syntax is to lower the cost of understanding the abstraction. You keep the familiar clause syntax but let clauses be chained into pipelines in which the actual (semantic) execution order is the same as the written order.

◧◩◪
3. sklivv+HA[view] [source] 2024-08-24 20:14:45
>>tmoert+eA
I think this new syntax is more imperative (you tell the DB "how" to get you the data). The old syntax is more declarative (you tell the DB "what" you need).

The big advantage is that the SQL engine can optimize the how if you focus on the what -- especially after so much research has been don building query compilers.

If you want to focus on the "how" then perhaps a "bare bones" DB like Redis is more in line with this kind of thinking.

[go to top]