News for hackers. Stuff that matters.
Re:Haskell2020 Is Dead, but All Hope Is Not Lost (2019) by ParetoOptimal on Friday February 18, 2022 @01:22AM (#30382687)
> So if you have a companies table joined to a contacts table, you'd get a two element tuple with a list of companies and a list of contacts, and then you have to iterate to do the joins and turn it into a JSON tree.

Esqueleto has a function to avoid n+1's and return a map now:

https://hackage.haskell.org/package/esqueleto-3.5.3.0/docs/D...

https://www.foxhound.systems/blog/grouping-query-results-has...

There are no comments on this comment yet.