graphile / crystal

🔮 Graphile's Crystal Monorepo; home to Grafast, PostGraphile, pg-introspection, pg-sql2 and much more!
https://graphile.org/
Other
12.62k stars 571 forks source link

`withPgClientBatched` or similar helper to do a batched form of `withPgClient` #2212

Open benjie opened 1 month ago

benjie commented 1 month ago

May actually be better for withPgClient to be renamed to withPgClientUnbatched but it's a bit late for that now. Similarly lambda should maybe be lambdaUnbatched

Also maybe sqlResult or similar that does loadOne/loadMany-like batching for SQL.

Also we should make it so .find() supports IN queries, perhaps via a helper.