2 ms·
Sooooo if you use a SQL database and a Haskell access library, you kind of get this. Like esqueleto for instance. With it, you basically use Haskell as a meta-
by whateveracct 2y ago
Sooooo if you use a SQL database and a Haskell access library, you kind of get this.
Like esqueleto for instance. With it, you basically use Haskell as a meta-programming language for SQL. It's really nice when it works.
But yeah..makes me think that a more first-class thing would be even better.
Tbh, maybe Haskell compiled to a lower-level query language would be better. A language that is about tables and btrees etc. Where there's no planner because the low-level language is the plan.
- lmz 2y agoMost planners use statistics. A fixed plan may not be optimal (and at the same time, statistics may be out of date).