Against SQL
scattered-thoughts.net
Against SQL
1–10 of 354 posts
Re: Against SQL
#2>the only solution is to change half of the lines in the query
How about adding a second subquery for the salary.
Re: Against SQL
#3But you need to separate the data and the index so you can compress the data while still searching the index, and none of the SQL databases do that because they don't have one file per value (for obvious disk-size reasons).
We need to approach the database as files, even add features to our filesystems to accomodate that.
In my distributed HTTP/JSON database I use ext4 type small to not run out of inodes before disk space.
Re: Against SQL
#4>what if we want to return the salary too? >the only solution is to change half of the lines in the query How about adding a second subquery for the salary.
Re: Against SQL
#520% longer to write than what alternative? And how is this being measured?
And.. am I missing something?
By far the most common case for joins is following foreign keys. SQL has no special syntax for this:
select foo.id, quux.value
from foo, bar, quux
where foo.bar_id = bar.id and bar.quux_id = quux.id
Why can't this be expressed as an INNER JOIN?And can't some of these subqueries be written using a WHERE EXISTS or a windowing function?
Re: Against SQL
#6Of course they are incompatible. That's just par for the course when it comes to SQL.
Re: Against SQL
#7I could write a point by point rebuttal but I'll just pick one point, compressibility: VIEWs.
Re: Against SQL
#8>what if we want to return the salary too? >the only solution is to change half of the lines in the query How about adding a second subquery for the salary.
Re: Against SQL
#9Lots of the examples here are yhe author writing very poor, non idiomatic SQL and then criticizing it. I could write a point by point rebuttal but I'll just pick one point, compressibility: VIEWs.
Re: Against SQL
#10I'm curious how much work has been done on optimizers for Tutorial D or other D variants. It looks way nicer to use, but I wonder if it is easier to stumble into pathological cases.