|
|
|
|
|
by randomdata
1376 days ago
|
|
> If we still use math 100 years from now, we'll still use SQL. Those are incongruent. Do you mean Western notation? > It's a fine way to query relational data It's quirky, but good enough for ad-hoc queries that I think it will be hard to overcome the momentum in that area. It's not fine for application work, where you need things like composition. We've tried to solve those problems with ORMs, but the ORM is starting to fall out of fashion due to a number of problems of its own. SQL is not a great compiler target. I do eventually see something lower level built for programmers, not data analysts, rising up here. If SQL is compared to Javascript, something akin to WASM, perhaps. |
|
A non-great opportunity for an ORM is anything I'd call a "report query" (some complex read-only query involving a lot of JOINs, a bunch of WHERE clauses and possibly some nested aggregation for funsies) - this is where you pull out the SQL (or alternative query language!) because an ORM will struggle to properly support all the functionality you need and because trying to tune a query being produced by an ORM (even just to make sure it's well aligned with logical indices) is a task that yields nothing but endless frustration.